.gallery {
  overflow-x: clip;
  padding: 115px clamp(24px, 7.5vw, 130px) 125px;
  color: var(--cream);
  background: #111a17;
}
.gallery__intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6vw; align-items: end; margin-bottom: 88px; }
.gallery__kicker, .gallery__category-label { margin: 0; color: #cbb27c; font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.gallery h2 { margin: 20px 0 0; font-family: "Cormorant", Georgia, serif; font-size: clamp(80px, 8.2vw, 130px); font-weight: 400; letter-spacing: -.055em; line-height: .87; }
.gallery h2 em { color: #ccb680; font-weight: 400; }
.gallery__intro > p { max-width: 390px; margin: 0 0 4px; color: #d1d1c8; font-size: 18px; line-height: 1.65; }
.gallery__group + .gallery__group { margin-top: 90px; }
.gallery__group-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; border-top: 1px solid #d9c6a83d; padding: 22px 0 28px; }
.gallery__group h3 { margin: 0; font-family: "Cormorant", Georgia, serif; font-size: clamp(47px, 4.4vw, 70px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.gallery__group-head p { max-width: 345px; margin: 0; color: #bbbeb7; font-size: 17px; line-height: 1.6; }
.gallery__grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 16px; }
.gallery__card { position: relative; min-width: 0; height: clamp(350px, 35vw, 560px); margin: 0; overflow: hidden; background: #26302a; }
.gallery__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.18,.67,.2,1); }
.gallery__card:hover img { transform: scale(1.07); }
.gallery__card::after { content: ""; position: absolute; inset: 45% 0 0; pointer-events: none; background: linear-gradient(transparent, #080f0cc4); }
.gallery__card figcaption { position: absolute; z-index: 1; right: 22px; bottom: 22px; left: 22px; display: flex; justify-content: space-between; gap: 10px; align-items: end; font-family: "Cormorant", Georgia, serif; font-size: 27px; line-height: 1; }
.gallery__card figcaption small { flex: none; color: #e7d4aa; font-family: "Manrope", Arial, sans-serif; font-size: 11px; letter-spacing: .1em; }
.gallery__note { margin: 55px 0 0; color: #abb2a9; font-size: 15px; line-height: 1.7; }

@media (max-width: 760px) {
  .gallery { padding: 82px 23px 95px; }
  .gallery__intro { grid-template-columns: 1fr; gap: 26px; margin-bottom: 60px; }
  .gallery h2 { font-size: clamp(72px, 15vw, 100px); }
  .gallery__intro > p { font-size: 16px; }
  .gallery__group + .gallery__group { margin-top: 65px; }
  .gallery__group-head { display: grid; gap: 13px; }
  .gallery__group h3 { font-size: 55px; }
  .gallery__group-head p { font-size: 16px; }
  .gallery__grid { display: flex; gap: 12px; margin-right: -23px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 23px 18px 0; }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .gallery__card { flex: 0 0 min(78vw, 335px); height: 430px; scroll-snap-align: start; }
  .gallery__card figcaption { font-size: 24px; }
  .gallery__note { margin-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__card img { transition: none; }
}
