/* =========================================================
   AAVAN GALLERY PAGE
   Public archive + animated album carousel
   ========================================================= */

.gallery-page {
  overflow-x: hidden;
}

.gallery-page main {
  overflow: hidden;
}

.gallery-page .container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* =========================================================
   HERO
   ========================================================= */

.gallery-hero {
  position: relative;
  padding: 78px 0 88px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf9 0%, #f6f1e8 100%);
}

.gallery-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -245px;
  right: -145px;
  border-radius: 50%;
  background: rgba(183, 32, 46, .045);
  pointer-events: none;
}

.gallery-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 68px;
}

.gallery-hero-copy {
  min-width: 0;
}

.gallery-hero-copy h1 {
  max-width: 610px;
  margin: 12px 0 24px;
  font-family: Georgia, serif;
  font-size: clamp(58px, 6.3vw, 86px);
  line-height: .94;
  letter-spacing: -.045em;
}

.gallery-hero-copy h1 span {
  display: block;
  color: var(--red);
}

.gallery-hero-lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.gallery-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.gallery-hero-link:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================================
   HERO COLLAGE
   ========================================================= */

.gallery-hero-visual {
  position: relative;
  min-height: 520px;
}

.gallery-hero-image {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
  background: #eee7dd;
  box-shadow: 0 24px 60px rgba(55, 39, 24, .12);
}

.gallery-hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-hero-image-main {
  top: 0;
  left: 0;
  width: 74%;
  height: 430px;
}

.gallery-hero-image-secondary {
  right: 0;
  bottom: 0;
  width: 45%;
  height: 250px;
  border: 7px solid #f6f1e8;
}

.gallery-hero-note {
  position: absolute;
  left: 28px;
  bottom: 26px;
  width: min(300px, 58%);
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gallery-hero-note span {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
}

.gallery-hero-note strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.25;
}

/* =========================================================
   ARCHIVE
   ========================================================= */

.gallery-archive {
  padding: 88px 0 96px;
  background: var(--cream);
}

.gallery-archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 26px;
}

.gallery-archive-head h2 {
  max-width: 620px;
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.035em;
}

.gallery-archive-intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* =========================================================
   YEAR FILTER
   ========================================================= */

.gallery-filter-wrap {
  width: 190px;
  flex: 0 0 auto;
}

.gallery-filter-wrap label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gallery-select-wrap {
  position: relative;
}

.gallery-select-wrap select {
  width: 100%;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.gallery-select-wrap::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-55%);
  color: var(--green);
  font-size: 16px;
  pointer-events: none;
}

/* =========================================================
   MEDIA FILTERS
   ========================================================= */

.gallery-media-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 38px;
}

.gallery-media-tab {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #514b45;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.gallery-media-tab:hover,
.gallery-media-tab.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

/* =========================================================
   YEAR GROUPS
   ========================================================= */

.gallery-year-archive {
  display: grid;
  gap: 62px;
}

.gallery-year-group {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.gallery-year-heading {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 7px;
  padding-top: 12px;
}

.gallery-year-heading h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.gallery-year-heading > span {
  color: var(--red);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* =========================================================
   CAROUSEL
   ========================================================= */

.gallery-carousel {
  position: relative;
  min-width: 0;
  padding: 16px 54px 42px;
}

.gallery-carousel-viewport {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  padding: 24px 0 30px;
}

.gallery-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
  min-width: 100%;
  padding: 0 calc(50% - 260px);
}

.gallery-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 59, 50, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: var(--green);
  box-shadow: 0 10px 28px rgba(50, 38, 24, .10);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-58%);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.gallery-carousel-arrow:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-58%) scale(1.06);
}

.gallery-carousel-arrow--prev {
  left: 0;
}

.gallery-carousel-arrow--next {
  right: 0;
}

.gallery-carousel-meta {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  min-width: 58px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(20, 59, 50, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #736b62;
  font-size: 10.5px;
  font-weight: 750;
}

.gallery-carousel.is-single {
  padding-left: 0;
  padding-right: 0;
}

.gallery-carousel.is-single .gallery-carousel-arrow,
.gallery-carousel.is-single .gallery-carousel-meta {
  display: none;
}

.gallery-carousel.is-single .gallery-carousel-track {
  justify-content: center;
  padding-inline: 0;
}

/* =========================================================
   ALBUM CARDS
   ========================================================= */

.gallery-album-card {
  position: relative;
  flex: 0 0 520px;
  width: 520px;
  min-width: 0;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: center;
  opacity: .58;
  transform: scale(.88);
  transform-origin: center center;
  box-shadow: 0 10px 26px rgba(50, 38, 24, .035);
  transition:
    transform .55s cubic-bezier(.2,.8,.2,1),
    opacity .4s ease,
    border-color .3s ease,
    box-shadow .4s ease;
}

.gallery-album-card.is-prev,
.gallery-album-card.is-next {
  opacity: .78;
  transform: scale(.94);
}

.gallery-album-card.is-active {
  z-index: 3;
  opacity: 1;
  transform: scale(1);
  border-color: rgba(20, 59, 50, .20);
  box-shadow: 0 22px 54px rgba(50, 38, 24, .13);
}

.gallery-album-card.is-active:hover {
  transform: scale(1.035) translateY(-4px);
  border-color: rgba(20, 59, 50, .30);
  box-shadow: 0 28px 64px rgba(50, 38, 24, .17);
}

.gallery-album-media {
  position: relative;
  display: block;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #ece5da;
}

.gallery-album-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}

.gallery-album-card.is-active:hover .gallery-album-media img {
  transform: scale(1.045);
}

.gallery-album-video-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(17, 17, 17, .72);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
}

.gallery-album-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.gallery-album-card-copy small {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.gallery-album-card-copy strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1.08;
}

.gallery-album-card-copy > span {
  display: block;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.gallery-empty {
  max-width: 660px;
  margin: 24px auto 0;
  padding: 48px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}

.gallery-empty-mark {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.gallery-empty h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 27px;
}

.gallery-empty p {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   COMMUNITY CTA
   ========================================================= */

.gallery-community-cta {
  padding: 70px 0;
  background: #fffdf9;
}

.gallery-community-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 46px;
  padding: 34px 38px;
  border-radius: 22px;
  background: var(--green);
  color: #fff;
}

.gallery-community-copy {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 760px;
}

.gallery-community-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: #f0b6a3;
}

.gallery-community-icon svg {
  width: 24px;
  height: 24px;
}

.gallery-community-copy .eyebrow {
  color: #f4a58d;
}

.gallery-community-copy h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -.03em;
}

.gallery-community-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: #d9e6e1;
  font-size: 14px;
  line-height: 1.65;
}

.gallery-community-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* =========================================================
   FOOTER
   ========================================================= */

.gallery-footer {
  padding: 64px 0 24px;
  background: #111;
  color: #d7d7d7;
}

.gallery-footer-grid {
  display: grid;
  grid-template-columns: 1.45fr .8fr .9fr 1fr .8fr;
  gap: 42px;
  padding-bottom: 46px;
}

.gallery-footer-brand {
  max-width: 280px;
}

.gallery-footer-brandmark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gallery-footer-brandmark img {
  width: 46px;
  height: 46px;
  padding: 5px;
  border-radius: 11px;
  background: #fff;
  object-fit: contain;
}

.gallery-footer-brandmark strong {
  display: block;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.1;
}

.gallery-footer-brandmark span {
  display: block;
  margin-top: 3px;
  color: #8f8f8f;
  font-size: 11px;
}

.gallery-footer-brand > p {
  margin: 0;
  color: #9f9f9f;
  font-size: 12px;
  line-height: 1.65;
}

.gallery-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.gallery-footer-column h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-footer-column a,
.gallery-footer-column > span {
  color: #9f9f9f;
  font-size: 11.5px;
  line-height: 1.45;
  text-decoration: none;
}

.gallery-footer-column a:hover {
  color: #fff;
}

.gallery-social-item {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.gallery-social-item svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
  display: block;
  color: #a9a9a9;
}

.gallery-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #797979;
  font-size: 10.5px;
}

.gallery-footer-mini-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-footer-mini-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.gallery-footer-mini-brand strong {
  color: #cfcfcf;
  font-size: 11px;
}

/* =========================================================
   GALLERY VIEWER
   ========================================================= */

.gallery-viewer[hidden] {
  display: none !important;
}

.gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gallery-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 13, .82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.gallery-viewer-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 22px;
  background: #fffdf9;
}

.gallery-viewer-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, .96);
  backdrop-filter: blur(10px);
}

.gallery-viewer-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-viewer-header h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.gallery-viewer-header button {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.gallery-viewer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.gallery-viewer-photo,
.gallery-video-item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.gallery-viewer-photo img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  background: #eee7dd;
}

.gallery-viewer-photo figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.gallery-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.gallery-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-video-copy {
  padding: 14px 15px 16px;
}

.gallery-video-copy strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.2;
}

.gallery-video-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.gallery-viewer-loading,
.gallery-viewer-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.gallery-viewer-empty strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 24px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {
  .gallery-hero-grid {
    gap: 44px;
  }

  .gallery-hero-visual {
    min-height: 470px;
  }

  .gallery-hero-image-main {
    height: 390px;
  }

  .gallery-hero-image-secondary {
    height: 225px;
  }

  .gallery-year-group {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
  }

  .gallery-carousel-track {
    padding: 0 calc(50% - 220px);
  }

  .gallery-album-card {
    flex-basis: 440px;
    width: 440px;
    min-height: 420px;
  }

  .gallery-album-media {
    height: 280px;
  }

  .gallery-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    row-gap: 34px;
  }

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

/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 900px) {
  .gallery-page .container {
    width: min(100% - 32px, 760px);
  }

  .gallery-hero {
    padding: 56px 0 64px;
  }

  .gallery-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-hero-copy h1 {
    font-size: clamp(48px, 11vw, 66px);
  }

  .gallery-hero-visual {
    min-height: 500px;
  }

  .gallery-archive {
    padding: 64px 0 72px;
  }

  .gallery-archive-head {
    display: block;
  }

  .gallery-filter-wrap {
    width: 100%;
    max-width: 260px;
    margin-top: 24px;
  }

  .gallery-year-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-year-heading {
    position: static;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--line);
  }

  .gallery-carousel {
    padding-left: 44px;
    padding-right: 44px;
  }

  .gallery-carousel-track {
    padding: 0 calc(50% - 200px);
  }

  .gallery-album-card {
    flex-basis: 400px;
    width: 400px;
  }

  .gallery-community-card {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .gallery-footer-brand {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 600px) {
  .gallery-page .container {
    width: calc(100% - 28px);
  }

  .gallery-hero {
    padding: 44px 0 52px;
  }

  .gallery-hero-copy h1 {
    font-size: clamp(42px, 12.5vw, 54px);
  }

  .gallery-hero-lead {
    font-size: 15.5px;
  }

  .gallery-hero-link {
    min-height: 42px;
    font-size: 12.5px;
  }

  .gallery-hero-visual {
    min-height: 395px;
  }

  .gallery-hero-image-main {
    width: 88%;
    height: 320px;
    border-radius: 18px;
  }

  .gallery-hero-image-secondary {
    width: 46%;
    height: 175px;
    border-width: 5px;
    border-radius: 16px;
  }

  .gallery-hero-note {
    left: 14px;
    bottom: 8px;
    width: 64%;
    padding: 13px 14px;
  }

  .gallery-hero-note strong {
    font-size: 14px;
  }

  .gallery-archive-head h2 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .gallery-media-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .gallery-media-tab {
    width: 100%;
    padding: 0 6px;
    font-size: 10.5px;
  }

  .gallery-year-heading {
    display: flex;
    align-items: center;
  }

  .gallery-year-heading h3 {
    font-size: 25px;
  }

  .gallery-carousel {
    margin-inline: -14px;
    padding: 8px 28px 38px;
  }

  .gallery-carousel-viewport {
    padding: 18px 0 24px;
  }

  .gallery-carousel-track {
    gap: 14px;
    padding: 0 calc(50% - 152px);
  }

  .gallery-album-card {
    flex-basis: 304px;
    width: 304px;
    min-height: 390px;
    border-radius: 20px;
    opacity: .50;
    transform: scale(.91);
  }

  .gallery-album-card.is-prev,
  .gallery-album-card.is-next {
    opacity: .70;
    transform: scale(.95);
  }

  .gallery-album-card.is-active {
    transform: scale(1);
  }

  .gallery-album-card.is-active:hover {
    transform: scale(1.015) translateY(-2px);
  }

  .gallery-album-media {
    height: 218px;
  }

  .gallery-album-card-copy {
    padding: 17px 17px 19px;
  }

  .gallery-album-card-copy strong {
    font-size: 22px;
  }

  .gallery-carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .gallery-carousel-arrow--prev {
    left: 2px;
  }

  .gallery-carousel-arrow--next {
    right: 2px;
  }

  .gallery-community-cta {
    padding: 52px 0;
  }

  .gallery-community-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .gallery-community-copy {
    display: block;
  }

  .gallery-community-icon {
    margin-bottom: 18px;
  }

  .gallery-community-copy h2 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .gallery-community-button {
    width: 100%;
    justify-content: center;
  }

  .gallery-footer {
    padding: 48px 0 20px;
  }

  .gallery-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-footer-brand {
    grid-column: auto;
  }

  .gallery-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .gallery-viewer {
    padding: 8px;
  }

  .gallery-viewer-shell {
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .gallery-viewer-header {
    padding: 16px;
  }

  .gallery-viewer-header h2 {
    font-size: 26px;
  }

  .gallery-viewer-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .gallery-viewer-photo img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .gallery-carousel-viewport {
    scroll-behavior: auto;
  }

  .gallery-album-card,
  .gallery-album-media img,
  .gallery-carousel-arrow {
    transition: none;
  }
}
