.gallery-hero {
  position: relative;
  min-height: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--champagne);
}

.gallery-hero-copy {
  align-self: center;
  max-width: 700px;
  padding: 70px 10% 70px 13%;
}

.gallery-hero h1,
.gallery-heading h2,
.gallery-cta h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.02;
}

.gallery-hero h1 em,
.gallery-heading h2 em,
.gallery-cta h2 em {
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.06em;
}

.gallery-hero-copy > p:not(.eyebrow) {
  max-width: 430px;
  margin: 17px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.gallery-hero h1 { font-size: clamp(43px, 5vw, 64px); }
.gallery-hero-copy > p.gallery-hero-lead { margin: 19px 0 20px; }
.gallery-hero-copy > p.gallery-hero-benefit-title { margin: 0 0 15px; color: var(--ink); font-weight: 700; }
.gallery-hero-benefits { display: grid; gap: 13px; margin: 0 0 22px; padding: 0; list-style: none; }
.gallery-hero-benefits li { display: flex; align-items: flex-start; gap: 10px; }
.gallery-hero-benefits li > span:first-child { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--forest); font-size: 11px; }
.gallery-hero-benefits li > span:last-child { display: grid; gap: 3px; }
.gallery-hero-benefits strong { color: var(--ink); font-size: 11px; }
.gallery-hero-benefits small { color: var(--muted); font-size: 10px; line-height: 1.6; }

.gallery-hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 29px;
  color: var(--muted);
  font-size: 9px;
}

.gallery-hero-note span { color: var(--accent); font-size: 16px; }

.gallery-hero-image { position: relative; min-height: 700px; overflow: hidden; }
.gallery-hero-image::after { position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgb(20 24 32 / 48%)); content: ""; }
.gallery-hero-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.gallery-hero-image > span { position: absolute; z-index: 1; right: 28px; bottom: 24px; left: 28px; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.gallery-hero-image > span i { padding: 0 8px; color: var(--gold); font-size: 13px; font-style: normal; }
.gallery-hero-index { position: absolute; right: 6.5%; top: 30px; color: #9c948b; font-family: var(--serif); font-size: 12px; letter-spacing: .12em; writing-mode: vertical-rl; }

.gallery-section { padding: 96px 8% 102px; background: var(--paper); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin: 0 auto 38px; max-width: 1200px; }
.gallery-heading h2 { font-size: clamp(38px, 4.4vw, 55px); }
.gallery-heading > p { max-width: 350px; margin: 0 0 6px; color: var(--muted); font-size: 10px; line-height: 1.9; }

.gallery-filters { max-width: 1200px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 auto 28px; }
.gallery-filter { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #e1dcd5; border-radius: 30px; background: transparent; color: #65665f; cursor: pointer; font-size: 9px; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.gallery-filter:hover, .gallery-filter.is-active { border-color: var(--forest); background: var(--forest); color: #fff; }
.gallery-filter span { color: var(--accent); font-size: 8px; }

.gallery-grid { max-width: 1200px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 28px 18px; margin: 0 auto; }
.gallery-card { min-width: 0; }
.gallery-card-tall { grid-row: span 2; }
.gallery-image-button { position: relative; width: 100%; height: 250px; display: block; overflow: hidden; padding: 0; border: 0; background: #e7e1db; cursor: zoom-in; }
.gallery-card-tall .gallery-image-button { height: 100%; min-height: 530px; }
.gallery-image-button::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(20 24 32 / 24%)); content: ""; pointer-events: none; }
.gallery-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-image-button:hover img { transform: scale(1.045); }
.gallery-zoom { position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 85%); border-radius: 50%; color: white; font-size: 15px; }
.gallery-card-caption { padding-top: 12px; }
.gallery-card-caption > span { color: var(--accent-dark); font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.gallery-card-caption h3 { margin: 5px 0 0; font-family: var(--serif); font-size: clamp(17px, 1.9vw, 22px); font-weight: 500; line-height: 1.2; }
.gallery-note { max-width: 1200px; margin: 28px auto 0; color: var(--muted); font-size: 9px; line-height: 1.7; }

.gallery-cta { position: relative; display: grid; justify-items: center; padding: 82px 7% 87px; background: var(--champagne); text-align: center; }
.gallery-cta-flower { position: absolute; top: 44px; right: 10%; color: var(--accent); font-size: 37px; }
.gallery-cta > .eyebrow { margin: 0 0 13px; }
.gallery-cta h2 { font-size: clamp(42px, 5vw, 60px); }
.gallery-cta > p:not(.eyebrow) { max-width: 420px; margin: 17px 0 23px; color: var(--muted); font-size: 10px; line-height: 1.8; }

.gallery-lightbox { position: fixed; width: min(92vw, 960px); max-width: none; max-height: 92vh; overflow: visible; padding: 15px; border: 1px solid rgb(255 255 255 / 20%); background: #171a18; color: #fff; }
.gallery-lightbox::backdrop { background: rgb(16 18 17 / 84%); backdrop-filter: blur(4px); }
.gallery-lightbox img { width: 100%; max-height: calc(92vh - 75px); object-fit: contain; }
.gallery-lightbox p { margin: 12px 0 0; color: #e6dfd8; font-size: 10px; text-align: center; }
.gallery-lightbox-close { position: absolute; top: -17px; right: -17px; width: 38px; height: 38px; border: 1px solid #fff; border-radius: 50%; background: #28332d; color: #fff; cursor: pointer; font-size: 24px; }
.gallery-card[hidden] { display: none; }

@media (max-width: 900px) {
  .gallery-hero { min-height: 650px; }
  .gallery-hero-copy { padding: 52px 8%; }
  .gallery-hero h1 { font-size: clamp(40px, 5.6vw, 54px); }
  .gallery-hero-image { min-height: 650px; }
  .gallery-section { padding-right: 6%; padding-left: 6%; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .gallery-hero { grid-template-columns: 1fr; }
  .gallery-hero-copy { padding: 45px 7% 39px; }
  .gallery-hero h1 { font-size: clamp(43px, 11vw, 58px); }
  .gallery-hero-copy > p:not(.eyebrow) { margin: 14px 0; font-size: 10px; }
  .gallery-hero-benefits { gap: 11px; margin-bottom: 20px; }
  .gallery-hero-benefits strong { font-size: 10px; }
  .gallery-hero-benefits small { font-size: 9px; }
  .gallery-hero-note { margin-top: 22px; }
  .gallery-hero-image { min-height: 0; height: 78vw; max-height: 430px; }
  .gallery-hero-index { top: 19px; right: 6%; font-size: 9px; }
  .gallery-section { padding: 64px 6.5% 70px; }
  .gallery-heading { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 23px; }
  .gallery-heading h2 { font-size: 40px; }
  .gallery-heading > p { font-size: 9px; }
  .gallery-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -7%; padding: 0 7% 8px 0; scrollbar-width: none; }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .gallery-filter { flex: 0 0 auto; padding: 9px 12px; font-size: 8px; }
  .gallery-grid { gap: 21px 11px; }
  .gallery-card-tall { grid-row: auto; }
  .gallery-image-button { height: 43vw; max-height: 230px; }
  .gallery-card-tall .gallery-image-button { min-height: 0; height: 43vw; }
  .gallery-card-caption { padding-top: 9px; }
  .gallery-card-caption > span { font-size: 6px; }
  .gallery-card-caption h3 { font-size: 16px; }
  .gallery-note { font-size: 8px; }
  .gallery-cta { padding: 65px 7% 68px; }
  .gallery-cta-flower { top: 24px; right: 7%; font-size: 27px; }
  .gallery-cta h2 { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-image-button img, .gallery-filter { transition: none; }
}
