/* Snap Happy ABQ responsive styles. Loaded after site.css and page-specific base styles. */

/* Shared public-site responsive rules */
@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 135px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(100%, 720px); margin: 0 auto; }
  .hero-scroll { display: none; }
  .section-heading--split { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 310px; }
  .event-showcase { grid-template-columns: 1fr; }
  .event-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .about { grid-template-columns: 1fr; }
  .about-media { width: min(80%, 650px); margin: 0 auto; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-newsletter { grid-template-columns: 1fr; gap: 25px; }
  .form-message { grid-column: 1; margin-bottom: 0; }
}

@media (max-width: 820px) {
  .site-header {
    top: 16px;
    left: auto;
    right: 16px;
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 5px;
    justify-content: center;
    border-radius: 50%;
    transform: none;
  }
  .site-header.is-scrolled {
    top: 10px;
  }
  .brand img { width: 105px; height: 44px; }
  .menu-toggle { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; border: 0; border-radius: 50%; background: var(--navy); cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 2px; display: block; background: #fff; }
  .primary-nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    padding: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    background: rgba(255,255,255,.98);
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 10px 6px; }
  .primary-nav .nav-cta { text-align: center; }
  .hero { grid-template-columns: minmax(0,1fr); padding-inline: 20px; }
  .hero h1 { font-size: clamp(3.1rem, 14vw, 5.2rem); }
  .hero-visual { min-height: 510px; }
  .hero-card--main { inset: 3% 5% 3% 5%; }
  .hero-card--small { width: 150px; height: 180px; }
  .hero-card--top { right: -1%; }
  .hero-card--bottom { left: -1%; }
  .event-side { grid-template-columns: 1fr; }
  .event-feature { min-height: 520px; }
  .review-card { grid-template-columns: 1fr; }
  .review-card img { width: 100%; min-height: 270px; height: 270px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__wide { grid-column: 1; }
  .subscribe-form { grid-template-columns: 1fr; }
  .subscribe-consent { grid-column: 1; }
  .contact, .footer { width: calc(100% - 16px); }
}

@media (max-width: 560px) {
  .hero { min-height: auto; padding-top: 118px; padding-bottom: 55px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-proof { display: grid; }
  .hero-visual { min-height: 420px; }
  .hero-card--small { width: 115px; height: 145px; border-width: 6px; border-radius: 18px; }
  .hero-card--main { border-radius: 38% 38% 24px 24px; }
  .section { width: min(calc(100% - 28px), var(--content)); padding-block: 82px; }
  .feature-card { padding: 27px; }
  .event-feature { min-height: 460px; }
  .event-overlay { left: 24px; right: 24px; bottom: 25px; }
  .event-note { padding: 28px; }
  .about-media { width: 100%; }
  .about-badge { right: -4px; width: 125px; height: 125px; }
  .contact { padding-inline: 18px; border-radius: 30px 30px 0 0; }
  .contact-form { padding: 18px; }
  .footer { padding-inline: 18px; border-radius: 0 0 30px 30px; }
  .footer-newsletter { padding-block: 55px 45px; }
}

@media (max-width: 640px) {
  .feature-card--gallery { min-height: 430px; padding: 145px 28px 78px; }
  .feature-card__action { left: 28px; bottom: 24px; }
  .service-gallery-dialog { padding: 0; }
  .service-gallery-dialog__panel { width: 100%; max-height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  .service-gallery-dialog__header { padding: 18px 16px 14px; }
  .service-gallery-stage { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 12px; gap: 10px; }
  .service-gallery-set.is-detail .service-gallery-stage { padding: 0 12px 64px; }
  .service-gallery-set.is-detail .service-gallery-slide img { max-height: 58dvh; border-radius: 13px; }
  .service-gallery-nav { top: auto; bottom: 8px; width: 50px; height: 50px; }
  .service-gallery-nav--previous { left: calc(50% - 60px); }
  .service-gallery-nav--next { right: calc(50% - 60px); }
}

@media (min-width: 641px) and (max-width: 900px) {
  .service-gallery-stage { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card--gallery { transition: none; }
  .feature-card--gallery:hover { transform: none; }
}

@media (max-width: 1100px) {
  .featured-events { grid-template-columns: 1fr; }
  .featured-event-card__image { height: 360px; }
  .event-showcase--merged { grid-template-columns: 1.2fr .8fr; }
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-bottom .footer-brand,
  .footer-bottom nav,
  .footer-meta {
    justify-self: center;
    text-align: center;
  }
  .footer-bottom .footer-brand img { margin-inline: auto; }
  .footer-meta .footer-socials { justify-content: center; }
}

@media (max-width: 820px) {
  .brand img { width: 155px; height: 54px; }
  .site-header { min-height: 74px; }
  .event-showcase--merged { grid-template-columns: 1fr; }
  .featured-events { grid-template-columns: 1fr; }
  .featured-event-card__image { height: 330px; }
  .review-card { grid-template-columns: 1fr; text-align: center; }
  .review-card img { margin-inline: auto; }
}

@media (max-width: 600px) {
  .experience-title-art { margin-inline: auto; }
  .feature-card__icon { width: 112px; height: 112px; }
  .feature-card__icon img { width: 78px; height: 78px; }
  .featured-event-card__image { height: 285px; }
}

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 34px; }
  .event-showcase--merged { grid-template-columns: 1fr; }
  .event-side--merged { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .event-more-button { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .site-header { justify-content: space-between; }
  .primary-nav { width: auto; justify-content: flex-start; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-bottom: 120px; }
  .hero-logo { margin-inline: auto; object-position: center; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-strip-wrap { min-height: 520px; }
  .experience { margin-top: -78px; border-radius: 38px 38px 0 0; }
  .event-side--merged { grid-template-columns: 1fr; }
  .event-more-button { grid-column: auto; }
  .testimonial-carousel { grid-template-columns: 1fr; }
  .testimonial-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); }
  .testimonial-arrow--prev { left: 10px; }
  .testimonial-arrow--next { right: 10px; }
}

@media (max-width: 600px) {
  .hero-logo { width: min(320px, 90%); }
  .hero-strip-wrap { min-height: 390px; }
  .photo-stack__card { inset: 5% 3% 3%; border-width: 6px; border-radius: 25px; }
  .experience { padding-inline: 20px; }
  .testimonial-arrow { width: 42px; height: 42px; }
}

@media (max-width: 1120px) {
  .event-showcase--merged { grid-template-columns: 1fr; }
  .event-side--merged {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, .7fr);
    gap: 24px;
    align-items: stretch;
  }
  .event-more-button { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 900px) {
  .hero.hero--current-layout { padding-top: 105px; }
  .hero-current-grid {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 5rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .hero-current-copy {
    grid-row: 1;
    width: 100%;
    justify-self: stretch;
    transform: none;
  }
  .hero-current-photos { grid-row: 2; }
  .hero-current-copy-inner {
    width: min(100%, 680px);
    margin-inline: auto;
    display: grid;
    justify-items: center;
  }
  .hero-logo--current {
    width: min(86vw, 516px);
    max-width: 100%;
    max-height: 34vh;
    margin-inline: auto;
    object-position: center;
    justify-self: center;
  }
  .hero--current-layout .photo-stack { width: min(59vw, 295px); }
  .feature-card--merged { padding-right: 120px; }
}

@media (max-width: 700px) {
  .event-side--merged { grid-template-columns: 1fr; }
  .feature-card--merged { padding: 32px 30px 128px; }
  .feature-card--merged .feature-card__icon {
    top: auto;
    right: 50%;
    bottom: 26px;
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  .hero-current-grid { padding-inline: 1rem; }
  .hero--current-layout .photo-stack { width: min(60.5vw, 245px); }
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 32px);
    justify-content: flex-end;
    padding: 8px;
  }
  .experience { padding-top: 145px; }
}

@media (max-width: 700px) {
  .experience { padding-top: 120px; }
  .feature-card--merged { padding: 34px 28px 32px; }
  .feature-card--merged .feature-card__icon {
    top: 22px;
    right: 22px;
    bottom: auto;
    width: 90px;
    height: 90px;
    transform: none;
  }
  .feature-card--merged .feature-card__icon img {
    width: 64px;
    height: 64px;
  }
  .feature-card--merged .feature-number { padding-right: 96px; }
  .about-frame { width: min(88vw, 460px); }
}

@media (max-width: 980px) {
  .experience { padding-top: 165px; }
}

@media (max-width: 700px) {
  .experience { padding-top: 135px; }
  .feature-card--merged {
    padding-top: 36px;
    padding-right: 112px;
  }
  .feature-card--merged .feature-card__icon {
    width: 92px;
    height: 92px;
  }
  .feature-card--merged .feature-card__icon img {
    width: 66px;
    height: 66px;
  }
  .about { width: min(calc(100% - 24px), 1380px); }
}

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

  .about-media {
    max-width: 330px;
  }
}

@media (max-width: 600px) {
  .feature-card--merged {
    padding: 34px 28px 32px;
  }

  .feature-card--merged .feature-number {
    padding-right: 96px;
  }

  .about-media {
    max-width: 280px;
  }

  .about-badge {
    right: -22px;
    width: 125px;
    height: 125px;
  }
}

@media (max-width: 980px) {
  .about-media {
    max-width: 165px;
  }
}

@media (max-width: 600px) {
  .about-media {
    max-width: 140px;
  }
}

@media (max-width: 980px) {
  .about-media {
    justify-self: center;
    margin-inline: auto;
  }

  .about-badge {
    left: -118px;
    bottom: 16%;
  }
}

@media (max-width: 600px) {
  .about-badge {
    left: -92px;
    bottom: 14%;
  }
}

@media (max-width: 980px) {
  .about-media {
    transform: translateX(24px);
  }

  .about-badge {
    left: -94px;
  }
}

@media (max-width: 600px) {
  .about-media {
    transform: translateX(12px);
  }

  .about-badge {
    left: -94px;
  }
}

@media (max-width: 820px) {
  body:not(.menu-open) .site-header,
  body:not(.menu-open) .site-header.is-scrolled {
    top: 16px;
    right: 16px;
    left: auto;
    width: 64px;
    max-width: 64px;
    height: 64px;
    min-height: 64px;
    padding: 6px;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
  }

  body:not(.menu-open) .menu-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--navy);
    box-shadow: 0 10px 28px rgba(4, 23, 34, .2);
  }

  body:not(.menu-open) .menu-toggle span:not(.sr-only) {
    width: 24px;
    height: 3px;
  }

  body.menu-open .site-header {
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    height: 64px;
    min-height: 64px;
    padding: 6px;
    justify-content: flex-end;
    border-radius: 32px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 15px 38px rgba(9, 39, 59, .14);
    transform: none;
  }

  body.menu-open .primary-nav {
    top: 88px;
  }
}

@media (max-width: 820px) {
  body:not(.menu-open) .site-header,
  body:not(.menu-open) .site-header.is-scrolled {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body:not(.menu-open) .menu-toggle {
    display: flex !important;
    flex: 0 0 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 6px !important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    background: var(--navy) !important;
    box-shadow: 0 10px 28px rgba(4, 23, 34, .22) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    overflow: hidden !important;
  }

  body:not(.menu-open) .menu-toggle span:not(.sr-only) {
    display: block !important;
    flex: 0 0 auto !important;
    width: 25px !important;
    height: 3px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
  }
}

@media (max-width: 1120px) and (min-width: 821px) {
  .event-side--merged {
    grid-template-rows: auto auto;
    grid-auto-rows: auto;
  }

  .event-more-button {
    grid-column: 1 / -1;
    min-height: 54px;
    height: 54px;
    max-height: 54px;
  }
}

@media (min-width: 821px) {
  .site-header {
    padding-left: 15px;
  }
}

@media (max-width: 980px) {
  .event-archive-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .event-archive-hero__copy {
    order: -1;
  }

  .event-archive-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .event-archive-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .event-archive-hero {
    padding-top: 6.5rem;
  }

  .event-archive-logo {
    width: min(82vw, 300px);
  }

  .event-archive-grid {
    grid-template-columns: 1fr;
  }

  .event-archive-card {
    border-radius: 1.6rem;
  }

  .event-archive-card__image {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-archive-card.is-revealing {
    animation: none;
  }
}

@media (max-width: 980px) {
  .event-archive-hero.hero--current-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }
  .event-archive-hero.hero--current-layout .event-archive-hero__copy {
    order: -1;
    transform: none;
  }
  .event-archive-hero.hero--current-layout .event-archive-stack {
    width: min(56vw, 285px);
    transform: translateY(11%);
  }
  .event-archive.section {
    padding-top: clamp(7rem, 18vw, 11rem);
  }
}

@media (max-width: 720px) {
  .event-archive-hero.hero--current-layout {
    padding-top: 6.5rem;
  }
  .event-archive-hero.hero--current-layout .event-archive-logo {
    width: min(92vw, 440px);
  }
  .event-archive-hero.hero--current-layout .event-archive-stack {
    width: min(61vw, 245px);
  }
  .event-archive.section {
    width: calc(100% - .75rem);
    border-radius: 1.8rem;
  }
  .event-archive-grid {
    padding: .55rem;
    border-radius: 1.65rem;
  }
  .event-archive-card {
    border-width: .45rem;
  }
  .event-archive-cta {
    width: calc(100% - .75rem);
    padding-inline: 1.4rem;
  }
}

@media (max-width: 720px) {
  .event-archive.section {
    padding-inline: 1rem;
  }

  .event-archive-heading {
    padding-inline: .35rem;
  }
}

@media (max-width: 980px) {
  .gallery-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 0;
  }
  .gallery-hero__copy {
    order: -1;
    transform: none;
  }
  .gallery-photo-stack {
    width: min(56vw, 285px);
    transform: translateY(11%);
  }
  .gallery-archive.section {
    padding-top: clamp(7rem, 18vw, 11rem);
  }
  .gallery-archive-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .gallery-hero {
    padding-top: 6.5rem;
  }
  .gallery-hero__copy .event-archive-logo {
    width: min(92vw, 440px);
  }
  .gallery-photo-stack {
    width: min(61vw, 245px);
  }
  .gallery-archive.section {
    width: calc(100% - .75rem);
    padding-inline: 1rem;
    border-radius: 1.8rem;
  }
  .gallery-archive-heading {
    padding-inline: .35rem;
  }
  .gallery-masonry {
    columns: 2 145px;
  }
  .gallery-tile {
    border-radius: 1rem;
  }
}

@media (max-width: 1100px) {
  .gallery-hero {
    grid-template-columns: minmax(245px, .78fr) minmax(340px, 1.22fr);
    gap: 1rem;
  }

  .gallery-photo-stack {
    transform: translate(3%, 15%);
  }

  .gallery-hero__copy {
    transform: none;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .gallery-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: clamp(4rem, 10vw, 6rem);
  }

  .gallery-hero__copy {
    order: 1;
    width: 100%;
  }

  .gallery-hero__media {
    order: 2;
    width: 100%;
    min-height: 0;
    margin-top: clamp(.5rem, 2vw, 1.25rem);
  }

  .gallery-photo-stack {
    width: min(52vw, 285px);
    transform: translateY(15%);
  }

  .gallery-hero__actions {
    margin-bottom: 0;
  }

  .gallery-archive.section {
    padding-top: clamp(6rem, 15vw, 9rem);
  }
}

@media (max-width: 720px) {
  .gallery-hero {
    padding-bottom: 4.5rem;
  }

  .gallery-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .gallery-hero__actions .button {
    width: 100%;
    box-sizing: border-box;
  }

  .gallery-photo-stack {
    width: min(62vw, 245px);
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .gallery-tile,
  .gallery-tile:hover,
  .gallery-tile:focus-visible {
    border-radius: 1.15rem;
  }

  .gallery-lightbox {
    width: 96vw;
    height: 92vh;
    border-radius: 1rem;
  }

  .gallery-lightbox img.is-zoomed {
    width: 220vw;
  }
}

@media (max-width: 1100px) {
  .gallery-masonry {
    columns: 3 220px;
  }
}

@media (max-width: 980px) {
  .gallery-hero {
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }

  .gallery-hero__media {
    position: relative;
    z-index: 2;
    margin-top: clamp(1.25rem, 4vw, 2.25rem);
    margin-bottom: clamp(2.25rem, 7vw, 4rem);
  }

  .gallery-photo-stack {
    transform: none;
  }

  .gallery-archive.section {
    position: relative;
    z-index: 3;
    padding-top: clamp(3rem, 7vw, 5rem);
  }

  .gallery-masonry {
    columns: 2 200px;
  }
}

@media (max-width: 720px) {
  .gallery-hero__media {
    margin-bottom: clamp(2rem, 9vw, 3.5rem);
  }

  .gallery-photo-stack {
    transform: none;
  }

  .gallery-archive.section {
    padding-top: 2.5rem;
  }

  .gallery-masonry {
    columns: 1;
  }

  .gallery-tile,
  .gallery-tile:hover,
  .gallery-tile:focus-visible {
    border-radius: 1.15rem;
  }

  .gallery-lightbox img.is-zoomed {
    width: var(--gallery-zoom-width-mobile, 140vw);
  }
}

@media (hover: none), (pointer: coarse) {
  .gallery-lightbox__stage,
  .gallery-lightbox img {
    cursor: default;
    touch-action: pan-x pan-y pinch-zoom;
  }
}

@media (max-width: 980px) {
  .gallery-hero__media {
    display: grid;
    place-items: start center;
    width: 100%;
    height: clamp(560px, 156vw, 855px);
    min-height: clamp(560px, 156vw, 855px);
    margin-top: clamp(1rem, 3vw, 1.75rem);
    margin-bottom: 0;
    overflow: visible;
  }

  .gallery-photo-stack {
    position: relative;
    inset: auto;
    width: min(52vw, 285px);
    height: auto;
    aspect-ratio: 2 / 6;
    transform: none;
  }

  .gallery-archive.section {
    z-index: 1;
    margin-top: 0;
  }
}

@media (hover: hover) and (pointer: fine) {
  .gallery-tile:hover,
  .gallery-tile:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(96, 200, 213, .5);
    box-shadow: 0 14px 28px rgba(5, 29, 43, .18);
  }

  .gallery-tile:hover img,
  .gallery-tile:focus-visible img {
    transform: scale(1.035);
    filter: brightness(1.035) saturate(1.04);
  }
}

@media (max-width: 1500px) {
  .gallery-masonry { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1220px) {
  .gallery-masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .gallery-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .gallery-hero__media {
    height: clamp(520px, 186vw, 735px);
    min-height: clamp(520px, 186vw, 735px);
  }

  .gallery-photo-stack {
    width: min(62vw, 245px);
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .gallery-tile,
  .gallery-tile:hover,
  .gallery-tile:focus-visible {
    border-radius: .9rem;
  }
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }

  body {
    position: relative;
    touch-action: pan-y pinch-zoom;
  }

  .site-header,
  .gallery-page,
  .gallery-hero,
  .gallery-hero__copy,
  .gallery-hero__media,
  .gallery-photo-stack,
  .gallery-archive,
  .gallery-archive.section,
  .gallery-masonry,
  .gallery-cta,
  .site-footer {
    max-width: 100%;
  }

  .gallery-photo-stack,
  .gallery-photo-stack .photo-stack__card {
    touch-action: pan-y pinch-zoom;
  }
}

@media (max-width: 760px) {
  .booking-test-hero {
    min-height: 0;
    padding-top: 7.2rem;
    padding-bottom: 3.4rem;
  }

  .booking-test-logo {
    width: min(340px, 88vw);
  }

  .booking-test-proof {
    display: grid;
  }

  .booking-test-section {
    padding-inline: .5rem;
  }

  .booking-test-page .booking-main {
    padding: 1.15rem;
    border-radius: 1.5rem;
  }

  .booking-test-page .booking-form {
    padding: 1rem;
    border-radius: 1.25rem;
  }
}

@media (max-width: 760px) {
  .booking-test-hero {
    padding-bottom: 5.5rem;
  }

  .booking-test-section {
    padding-top: 1.8rem;
    background:
      linear-gradient(180deg, #122735 0, #0d4357 4.5rem, #0b3347 10rem, #0b3347 100%);
  }

  .booking-test-page .booking-main {
    --booking-outer-radius: 1.5rem;
    margin-bottom: calc(-1 * var(--booking-outer-radius));
  }

  .booking-test-footer {
    padding-top: calc(6.25rem + 1.5rem);
  }

  .booking-test-page .booking-form {
    gap: 1.65rem;
  }
}

@media (max-width: 760px) {
  .booking-test-page {
    --booking-page-gutter: .5rem;
    --booking-outer-radius: 1.5rem;
  }

  .booking-test-footer {
    width: calc(100% - (2 * var(--booking-page-gutter)));
    margin-top: calc(-1 * var(--booking-outer-radius));
    padding-top: calc(6.25rem + var(--booking-outer-radius));
    border-radius: 0 0 32px 32px;
  }
}

@media (max-width: 760px) {
  .booking-test-footer {
    width: calc(100% - (2 * var(--booking-page-gutter)));
    margin-top: calc(-1 * var(--booking-outer-radius));
    padding-top: calc(6.25rem + var(--booking-outer-radius));
  }
}

@media (max-width: 760px) {
  .booking-test-proof {
    display: flex;
  }
}

@media (max-width: 760px) {
  .booking-test-page {
    --booking-page-gutter: .5rem;
    --booking-outer-radius: 1.5rem;
  }

  .booking-test-page .booking-main {
    padding-bottom: 2rem;
  }

  .booking-test-footer {
    width: calc(100% - (2 * var(--booking-page-gutter)));
    margin-top: calc(-1 * var(--booking-outer-radius));
    padding-top: calc(4.5rem + var(--booking-outer-radius));
    border-radius: 0 0 32px 32px;
  }
}

@media (min-width: 761px) {
  .booking-test-page .booking-choice:has(input[type="checkbox"])::after {
    left: 0 !important;
  }
}

/* Booking-page responsive rules */
@media (max-width:991.98px) {
      .booking-site-nav {
        flex-wrap:wrap;
        justify-content:space-between;
      }

      .booking-navbar-brand {
        order:1;
        margin-right:auto;
      }

      .booking-site-nav .navbar-toggler {
        order:2;
        margin-left:auto !important;
        margin-right:0 !important;
      }

      .booking-site-nav .navbar-collapse {
        order:3;
        flex:0 0 100%;
        width:100%;
      }

      .booking-site-nav .navbar-collapse > .d-flex,
      .booking-site-nav .navbar-nav {
        width:100%;
        align-items:center !important;
      }

      .booking-site-nav .navbar-nav .nav-link {
        text-align:center;
      }
    }

@media (max-width:760px) {
      .booking-main {
        width:min(100% - 32px,1400px);
        padding-top:26px;
      }

      .booking-desktop-columns {
        display:contents;
      }

      .booking-form {
        display:flex;
        flex-direction:column;
        gap:var(--booking-gap);
      }

      .booking-form > .wide:last-child {
        margin-top:0;
      }

      .booking-calendar-popover {
        width:100%;
      }
    }

/* Desktop service-card composition: icon floats above full-width copy. */
@media (min-width: 701px) {
  .feature-card--merged {
    padding-right: 34px;
  }

  .feature-card--merged .feature-card__icon {
    position: absolute;
    top: 22px;
    right: 22px;
  }

  .feature-card--merged .feature-number {
    padding-right: 118px;
  }

  .feature-card--merged h3,
  .feature-card--merged > p:last-child {
    width: 100%;
    max-width: none;
    padding-right: 0;
  }
}

/* Compact centered desktop testimonial cards with neighbors visible at the edges. */
@media (min-width: 821px) {
  .testimonial-viewport {
    width: 100%;
    max-width: 980px;
    margin-inline: auto;
  }

  .testimonial-track {
    gap: 24px;
    padding-inline: calc(50% - 175px);
  }

  .testimonial-track .review-card {
    flex: 0 0 min(350px, calc(100vw - 160px));
    width: min(350px, calc(100vw - 160px));
    max-width: 350px;
    min-height: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 18px;
    text-align: center;
  }
}

/* Keep testimonial portraits circular when cards stack on touch layouts. */
@media (max-width: 820px) {
  .review-card img,
  .testimonial-track .review-card img {
    width: min(190px, 52vw);
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
  }
}

/* Desktop testimonial hierarchy: neighboring cards are reduced; the active card remains full size. */
@media (min-width: 821px) {
  .testimonial-viewport {
    padding-block: 30px;
  }

  .testimonial-track {
    align-items: center;
  }

  .testimonial-track .review-card {
    position: relative;
    z-index: 1;
    transform-origin: center;
  }

  .testimonial-track .review-card.is-active,
  .testimonial-track .review-card[aria-current="true"] {
    z-index: 3;
  }
}

/* Keep touch-layout arrows centered on the client portrait instead of the card text. */
@media (max-width: 820px) {
  .testimonial-arrow {
    top: calc(22px + (min(190px, 52vw) / 2));
  }
}

/* Keep the About media frame constrained on iPhone-size screens. */
@media (max-width: 600px) {
  .about-frame {
    width: 100%;
  }
}

/* Desktop testimonial hierarchy: neighbors at 85%; active card at 100%. */
@media (min-width: 821px) {
  .reviews .testimonial-viewport {
    max-width: 1200px;
    min-height: 0;
    padding: 30px 0;
  }
  .reviews .testimonial-track {
    position: relative;
    width: 100%;
    min-height: 500px;
    padding: 0;
  }
  .reviews .testimonial-track .review-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(400px, 38vw);
    max-width: 400px;
    min-height: 440px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.72);
    transform-origin: center center;
    transition: left .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  }
  .reviews .testimonial-track .review-card.is-previous {
    left: 17%;
    z-index: 2;
    opacity: .72;
    transform: translate(-50%, -50%) scale(.82);
  }
  .reviews .testimonial-track .review-card.is-active,
  .reviews .testimonial-track .review-card[aria-current="true"] {
    left: 50%;
    z-index: 4;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }
  .reviews .testimonial-track .review-card.is-next {
    left: 83%;
    z-index: 2;
    opacity: .72;
    transform: translate(-50%, -50%) scale(.82);
  }
}

/* Balanced, centered iPhone About artwork size. */
@media (max-width: 600px) {
  .about-media {
    width: min(165px, 42vw);
    max-width: 165px;
    margin-inline: auto;
    transform: none;
  }
}


/* Homepage starting-price promo — responsive */
@media (max-width: 820px) {
  .homepage-offer__inner { grid-template-columns: auto minmax(0, 1fr); }
  .homepage-offer__button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 560px) {
  .homepage-offer {
    padding-inline: 16px;
  }
  .homepage-offer__inner {
    width: 100%;
    max-width: none;
    padding: 24px 20px;
    grid-template-columns: 1fr;
    text-align: center;
  }
  .homepage-offer__icon { margin: 0 auto; width: 68px; height: 68px; border-radius: 21px; }
  .homepage-offer h2 span { display: block; white-space: normal; margin-top: 4px; }
}


/* v6.6.1 mobile promo clearance fallback.
   JavaScript replaces the variable with the measured half-height, but this
   protects the final service card before/during measurement on iOS Safari. */
@media (max-width: 820px) {
  :root {
    --homepage-offer-half-height: 150px;
  }
}

@media (max-width: 560px) {
  :root {
    --homepage-offer-half-height: 205px;
  }

  .experience {
    padding-bottom: calc(clamp(90px, 10vw, 145px) + var(--homepage-offer-half-height));
  }

  .homepage-offer + .events {
    padding-top: calc(clamp(90px, 10vw, 145px) + var(--homepage-offer-half-height));
  }
}

/* v6.6.3 — Offer now lives after service card 3; no boundary clearance needed. */
@media (max-width: 820px) {
  .experience > .homepage-offer {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .experience > .homepage-offer {
    padding-inline: 0;
  }

  .experience > .homepage-offer .homepage-offer__inner {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .experience {
    padding-bottom: clamp(90px, 10vw, 145px);
  }
}

/* v6.6.6 — keep service cards two-wide on iPad/tablet widths.
   This intentionally overrides the older generic .feature-grid one-column rule. */
@media (min-width: 701px) and (max-width: 1050px) {
  .feature-grid.feature-grid--merged {
    width: min(100%, 724px);
    grid-template-columns: repeat(2, minmax(0, 350px));
    justify-content: center;
  }

  .feature-grid.feature-grid--merged .feature-card--merged:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .experience > .homepage-offer {
    width: min(100%, 724px);
  }
}

/* v6.6.7 — preserve refined promo hierarchy and icon treatment on narrow layouts */
@media (max-width: 560px) {
  .homepage-offer h2 {
    justify-content: center;
  }

  .homepage-offer h2 span {
    display: inline;
    margin-top: 0;
    font-size: .7em;
    white-space: normal;
  }
}

/* v7.4.0 — service gallery/card sizing overrides after legacy breakpoints. */
@media (max-width: 700px) {
  .feature-card.feature-card--gallery {
    min-height: 390px;
    padding: 142px 26px 70px;
  }
  .feature-card.feature-card--gallery .feature-card__icon {
    top: 22px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .service-gallery-stage { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-gallery-set.is-detail .service-gallery-stage { display:block; padding:0 12px 64px; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .service-gallery-stage { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

/* Homepage pricing, FAQ, and review popup — responsive */
@media (max-width: 760px) {
  .home-pricing,
  .home-faq {
    width: calc(100% - 16px);
    padding: 2.5rem 20px;
    border-radius: 30px;
  }

  .home-pricing {
    margin-block: 48px;
  }

  .home-section-heading,
  .home-package-grid {
    grid-template-columns: 1fr;
  }

  .home-package-card {
    border-radius: 22px;
  }
}

@media (max-width: 600px) {
  .review-popup {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .review-popup__header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding:
      calc(.75rem + env(safe-area-inset-top))
      1rem
      .75rem;
  }

  .review-popup__close {
    position: relative;
    z-index: 60;
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 2rem;
  }

  .review-popup__frame {
    height: calc(100% - 78px - env(safe-area-inset-top));
  }
}
