:root {
  --gallery-green: #164c3b;
  --gallery-wine: #641a2a;
  --gallery-ink: #181a18;
  --gallery-paper: #f7f3ec;
}

body { background: var(--gallery-paper); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { color: var(--gallery-ink); background: rgba(247, 243, 236, .96); box-shadow: 0 1px 0 rgba(24, 26, 24, .08); backdrop-filter: blur(14px); }
.site-header .brand img { filter: none; }
.main-nav a[aria-current="page"] { color: var(--gallery-wine); }

.gallery-intro { padding: 154px 6vw 34px; max-width: 1600px; margin: 0 auto; }
.gallery-view .gallery-intro { display: none; }
.gallery-breadcrumbs { display: flex; gap: 10px; margin-bottom: 28px; color: #6c706b; font-size: 14px; }
.gallery-breadcrumbs a { color: var(--gallery-green); }
.gallery-intro h1, .gallery-detail h1 { max-width: 880px; margin: 12px 0 0; color: var(--gallery-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5.6vw, 84px); font-weight: 400; line-height: 1.02; letter-spacing: 0; }

.gallery-products { max-width: 1600px; margin: 0 auto; padding: 0 6vw 104px; }
.gallery-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 360px; gap: 18px; }
.gallery-product-card { min-width: 0; overflow: hidden; background: #222; }
.gallery-product-card a { position: relative; display: block; width: 100%; height: 100%; color: #fff; overflow: hidden; }
.gallery-product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 17, 13, .82) 0%, rgba(8, 17, 13, .12) 58%, rgba(8, 17, 13, .04) 100%); }
.gallery-card-copy { position: absolute; left: 30px; right: 82px; bottom: 28px; display: grid; gap: 6px; }
.gallery-card-copy > span { color: #e0c7a8; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.gallery-card-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 400; line-height: 1.08; letter-spacing: 0; }
.gallery-card-copy small { font-size: 14px; opacity: .8; }
.gallery-card-arrow { position: absolute; right: 28px; bottom: 30px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; transition: background .25s ease, color .25s ease; }
.gallery-card-arrow svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.gallery-product-card a:hover img { transform: scale(1.035); }
.gallery-product-card a:hover .gallery-card-arrow { background: #fff; color: var(--gallery-green); }

.gallery-detail { max-width: 1600px; min-height: 80vh; margin: 0 auto; padding: 150px 6vw 110px; }
.gallery-detail-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-bottom: 52px; }
.gallery-detail-head h1 { font-size: clamp(44px, 5vw, 76px); }
.gallery-detail-head p:last-child { max-width: 700px; margin: 20px 0 0; color: #5f645f; font-size: 18px; line-height: 1.65; }
.gallery-back { align-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 0; border: 0; background: transparent; color: var(--gallery-green); font: inherit; font-weight: 700; cursor: pointer; }
.gallery-back svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gallery-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(300px, 36vw); gap: 18px; }
.gallery-photo { position: relative; padding: 0; overflow: hidden; border: 0; background: #ddd; cursor: zoom-in; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-photo > span { position: absolute; right: 20px; bottom: 20px; display: grid; width: 44px; height: 44px; place-items: center; background: rgba(255,255,255,.94); color: var(--gallery-green); opacity: 0; transition: opacity .2s ease; }
.gallery-photo svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gallery-photo:hover img { transform: scale(1.025); }
.gallery-photo:hover > span { opacity: 1; }

.gallery-cta { display: flex; gap: 40px; align-items: end; justify-content: space-between; padding: 72px 6vw; background: var(--gallery-green); color: #fff; }
.gallery-cta > div { max-width: 760px; }
.gallery-cta h2 { margin: 8px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4vw, 58px); font-weight: 400; letter-spacing: 0; }
.gallery-cta p:last-child { margin: 0; font-size: 17px; line-height: 1.65; opacity: .8; }
.gallery-cta .button.primary { flex: 0 0 auto; background: #fff; color: var(--gallery-green); }

.gallery-lightbox { width: min(94vw, 1500px); height: 92vh; max-width: none; max-height: none; padding: 0; overflow: hidden; border: 0; background: #0d1512; color: #fff; }
.gallery-lightbox::backdrop { background: rgba(4, 8, 7, .88); }
.gallery-lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; margin: 0; padding: 30px 90px 22px; }
.gallery-lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-lightbox figcaption { padding-top: 16px; color: rgba(255,255,255,.72); font-size: 14px; text-align: center; }
.lightbox-close, .lightbox-arrow { position: absolute; z-index: 2; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.38); background: rgba(13,21,18,.72); color: #fff; cursor: pointer; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-arrow { top: 50%; border-radius: 50%; transform: translateY(-50%); }
.lightbox-arrow.previous { left: 22px; }
.lightbox-arrow.next { right: 22px; }
.lightbox-close svg, .lightbox-arrow svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 900px) {
  .gallery-intro { padding-top: 122px; }
  .gallery-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 330px; }
  .gallery-detail-head { grid-template-columns: 1fr; gap: 24px; }
  .gallery-detail-head .button { justify-self: start; }
}

@media (max-width: 620px) {
  .gallery-intro { padding: 106px 20px 34px; }
  .gallery-breadcrumbs { margin-bottom: 28px; }
  .gallery-intro h1, .gallery-detail h1 { font-size: 42px; }
  .gallery-products { padding: 0 20px 68px; }
  .gallery-product-grid { grid-template-columns: 1fr; grid-auto-rows: 310px; gap: 12px; }
  .gallery-card-copy { left: 22px; right: 70px; bottom: 22px; }
  .gallery-card-copy strong { font-size: 31px; }
  .gallery-card-arrow { right: 20px; bottom: 22px; }
  .gallery-detail { padding: 108px 20px 72px; }
  .gallery-detail-head { margin-bottom: 30px; }
  .gallery-photo-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; gap: 10px; }
  .gallery-photo > span { opacity: 1; }
  .gallery-cta { display: grid; padding: 54px 20px; }
  .gallery-lightbox { width: 100vw; height: 100vh; }
  .gallery-lightbox figure { padding: 64px 16px 18px; }
  .lightbox-arrow { top: auto; bottom: 62px; }
}
