@media (max-width: 1100px) {
  .topbar__inner,
  .site-header__inner {
    width: min(calc(100% - 36px), var(--content-width));
  }

  .feature-row {
    width: min(calc(100% - 36px), var(--content-width));
  }

  .primary-nav a,
  .nav-group__toggle {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 15px;
  }

  .brand img {
    width: 105px;
    height: 105px;
  }

  .program-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Homepage program artwork is square at source. Let its intrinsic height
     follow the responsive width so breakpoints never crop or reshape it. */
  .home .program-card,
  .home .program-card img {
    min-height: 0;
  }

  .home .program-card img {
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 800px) {
  :root {
    --topbar-rendered-height: 0px;
    --header-stack-height: 95px;
  }

  body {
    font-size: 16px;
    line-height: normal;
  }

  .topbar,
  .social-rail {
    display: none;
  }

  .site-header {
    height: 95px;
  }

  .site-header__inner {
    width: 100%;
    padding: 0 20px;
  }

  .brand {
    position: static;
    gap: 14px;
  }

  .brand img {
    width: 67px;
    height: 67px;
  }

  .menu-toggle {
    position: relative;
    width: 46px;
    height: 46px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    background: var(--red);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 21px;
    height: 2px;
    display: block;
    background: currentColor;
    transition: 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    z-index: 49;
    top: var(--header-stack-height);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 20px 20px 90px;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Off-canvas submenu transforms must never become a horizontal touch pan. */
    touch-action: pan-y;
    background: rgb(0 0 0 / 98%);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: 180ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .primary-nav > ul {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
  }

  .primary-nav a,
  .nav-group__toggle {
    width: 100%;
    padding: 13px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #272727;
    text-align: left;
    white-space: normal;
  }

  .primary-nav li {
    position: static;
  }

  .primary-nav .submenu,
  .primary-nav .submenu .submenu {
    position: absolute;
    z-index: 10;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    background: #050505;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateX(105%);
    box-shadow: none;
    transition: transform 220ms ease;
  }

  .primary-nav li.is-open > .submenu {
    pointer-events: auto;
    transform: translateX(0);
  }

  /* Desktop hover/focus rules must not reveal a mobile panel before its
     submenu toggle is explicitly activated. */
  .primary-nav li:not(.is-open):hover > .submenu,
  .primary-nav li:not(.is-open):focus-within > .submenu {
    pointer-events: none;
    transform: translateX(105%);
  }

  .primary-nav .submenu-back {
    display: block;
    margin-bottom: 10px;
  }

  .primary-nav .submenu-back button {
    padding: 8px 8px 12px;
    color: var(--gold-light);
    background: transparent;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
  }

  /* Desktop submenu links carry a wider inset; normalize it to the mobile
     control inset so links and toggle buttons share one vertical text line. */
  .primary-nav .submenu a {
    padding-left: 8px;
  }

  .primary-nav .nav-cta {
    width: fit-content;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 13px 18px 13px 8px;
    text-align: center;
  }

  .feature-row {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .feature-row:nth-child(odd) .feature-row__media,
  .feature-row__media {
    min-height: 0;
    order: 0;
  }

  .feature-row__copy {
    min-height: 0;
    /* Feature artwork reaches both viewport edges, while its copy keeps the
       same readable 20px gutter as the rest of the mobile page content. */
    padding: 28px 20px 32px;
  }

  /* Reset the alternating desktop edge alignment after the rows stack. */
  .feature-row:nth-child(odd) .feature-row__copy,
  .feature-row:nth-child(even) .feature-row__copy {
    padding-right: 20px;
    padding-left: 20px;
  }

  .feature-row h2 {
    font-size: 19.2px;
  }

  .section-heading {
    font-size: 24px;
  }

  .button {
    min-width: 237px;
    padding: 15px 20px;
  }

  .programs,
  .visit {
    padding: 48px 20px;
  }

  .visit__lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .program-grid,
  .school-grid {
    grid-template-columns: 1fr;
  }

  .entry.schedule-page {
    padding-top: 34px;
    padding-bottom: 40px;
  }

  .schedule-page__header {
    margin-bottom: 20px;
  }

  .schedule-page__header .entry-title {
    font-size: 24px;
  }

  .schedule-table-wrap {
    width: calc(100% - 40px);
  }

  .schedule-table th,
  .schedule-table td {
    padding: 9px;
  }

  .schedule-table thead th {
    font-size: 18px;
  }

  .career-page {
    min-height: 0;
    padding: 34px 20px 55px;
  }

  .career-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .career-hero__copy p {
    font-size: 21px;
  }

  .contact-page {
    width: 100%;
    padding: 34px 20px 55px;
  }

  .contact-page__header {
    max-width: 620px;
  }

  .contact-page__header p {
    font-size: 16px;
  }

  .contact-page .school-grid {
    gap: 28px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .entry {
    width: 100%;
    padding: 0 0 55px;
  }

  /* Desktop page titles are too large once longer Greek headings wrap on a
     phone. Use the established mobile heading scale across news and pages. */
  .entry-title,
  .content-body .entry-title,
  .content-body .instructor-directory__title {
    font-size: 24px;
  }

  /* Single posts retain the live mobile main-column gutter. The desktop
     featured-page selector is more specific than `.entry`, so it needs an
     equally specific responsive width instead of leaving 40px on each side. */
  .entry.entry--featured {
    width: calc(100% - 40px);
  }

  .entry-header {
    padding: 34px 20px 8px;
  }

  .entry > .entry-header {
    padding: 34px 20px 8px;
  }

  .entry-layout {
    display: block;
  }

  .entry--featured .entry-layout {
    padding-top: 0;
    gap: 0;
  }

  .entry-feature img {
    max-height: none;
  }

  .entry-copy .content-body {
    padding: 0 20px 24px;
  }

  .content-body .vce-row-content {
    display: flex;
    flex-direction: column;
  }

  .content-body .vce-col {
    width: 100%;
    flex: auto;
  }

  .content-body .vce-row-wrap--reverse .vce-row-content {
    flex-direction: column-reverse;
  }

  .content-body .vce-col-content {
    padding: 24px 20px;
  }

  .content-body .vce-row-container:first-child .vce-col-content {
    padding-top: 34px;
  }

  .content-body {
    font-size: 16px;
    line-height: normal;
  }

  .entry--visual-composer .content-body .vce-row-content {
    gap: 0;
  }

  .entry--visual-composer .content-body > .vce-row-container {
    width: calc(100% - 40px);
  }

  .entry--visual-composer .content-body .vce-col-content {
    padding: 24px 20px;
  }

  /* Preserve the route-specific row padding defined by the live builder:
     course rows are vertically inset, while profiles keep 40px all around. */
  .entry--visual-composer
    .content-body
    > .vce-row-container
    > .vce-row
    > .vce-row-content
    > .vce-col
    .vce-col-content {
    padding: 0;
  }

  /* The combined teacher profile follows the same mobile stack as profiles
     whose image and biography are separate builder columns. */
  .instructor-profile--combined .content-body .vce-col-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .instructor-profile--combined .content-body .vce-text-block {
    padding: 24px 0 0;
  }

  .entry--featured .content-body {
    font-size: 16px;
    line-height: 1.75;
  }

  /* Preserve the title/date grouping while using a slightly tighter body gap
     on narrow screens where the title commonly wraps across several lines. */
  .entry--featured .entry-header,
  .entry--news .entry-header {
    margin-bottom: 20px;
  }

  .entry--featured .entry-title,
  .entry--news .entry-title {
    margin-bottom: 6px;
  }

  .content-body h1 {
    font-size: 28px;
  }

  .content-body h2 {
    font-size: 24px;
  }

  .content-body h3 {
    font-size: 21px;
  }

  .content-body iframe {
    min-height: 240px;
  }

  .video-page .content-body .vce-col-content {
    padding: 0;
  }

  .video-page .content-body .vce-row-content {
    gap: 0;
  }

  .video-page .content-body iframe {
    min-height: 0;
  }

  .content-body .gallery,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .content-body .gallery img,
  .photo-grid img {
    height: 160px;
  }

  .news-index {
    width: calc(100% - 40px);
    padding: 0 0 70px;
  }

  .news-index__intro {
    padding-top: 34px;
    margin-bottom: 19px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .news-index__intro > * {
    grid-column: 1;
  }

  .news-card__body {
    text-align: center;
  }

  .news-card h2 {
    font-size: 18px;
  }

  .site-footer {
    padding: 20px 20px 80px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .site-footer__bottom {
    text-align: left;
  }

  .bottom-ticker {
    --ticker-duration: 13.333s;
    height: 34px;
  }

  .bottom-ticker__track {
    padding-right: 28px;
    padding-left: 28px;
  }

  .bottom-ticker span {
    font-size: 14px;
  }

  .bottom-ticker__track::after {
    font-size: 14px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 38px;
  }

  .lightbox__nav--previous {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }
}

/* The live video grid keeps its paired desktop columns through 768px, while
   the general mobile article layout otherwise stacks columns through 800px. */
@media (min-width: 768px) and (max-width: 800px) {
  .video-page .content-body .vce-row-content {
    flex-direction: row;
    gap: 30px;
  }

  .video-page .content-body .vce-col {
    width: auto;
    flex: 1 1 0;
  }

  .video-page .content-body .vce-col--md-25p {
    max-width: calc(25% - 22.5px);
    flex: 0 0 calc(25% - 22.5px);
  }

  .video-page .content-body .vce-col--md-50p {
    max-width: calc(50% - 15px);
    flex: 0 0 calc(50% - 15px);
  }
}

/* The live gallery switches directly from five masonry columns to one column
   below 544px, keeping portrait and landscape images at natural proportions. */
@media (max-width: 543px) {
  .video-page
    .content-body
    > .vce-row-container:nth-child(n + 2):not(:nth-child(4))
    > .vce-row {
    padding: 20px;
  }

  .gallery-page
    .content-body
    .vce-row-container:first-child
    .vce-col-content {
    padding: 20px;
  }

  .gallery-page .vce-image-masonry-gallery-column {
    max-width: 100%;
    flex-basis: 100%;
  }
}

@media (max-width: 420px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .content-body .gallery,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .content-body .gallery img,
  .photo-grid img {
    height: auto;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__spacer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .bottom-ticker__track {
    padding: 0 18px;
    animation: none !important;
  }

  .bottom-ticker__track:nth-child(2) {
    display: none;
  }
}
