:root {
  --ink: #17201f;
  --pine: #263b36;
  --wine: #6e2f2f;
  --copper: #b47a55;
  --ivory: #fbf8f1;
  --linen: #eee7db;
  --white: #ffffff;
  --line: rgba(23, 32, 31, .18);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-width: 320px; background: var(--ivory); color: var(--ink); font-family: Montserrat, Arial, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 20; border-bottom: 1px solid rgba(255, 255, 255, .16); background: rgba(23, 32, 31, .95); backdrop-filter: blur(18px); }
.nav-shell { width: min(1220px, calc(100% - 72px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.brand { color: var(--white); font-size: 18px; font-weight: 500; letter-spacing: 5px; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 28px; flex: 1; }
.nav-links a { color: var(--white); font-size: 11px; font-weight: 500; letter-spacing: 2px; opacity: .86; text-decoration: none; text-transform: uppercase; transition: color .2s ease, opacity .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--linen); opacity: 1; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; }

.gallery-hero { padding: 176px 0 92px; background: var(--linen); }
.gallery-hero .container { max-width: 980px; margin-left: max(20px, calc((100vw - var(--max)) / 2)); }
.eyebrow { color: var(--copper); font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.gallery-hero .eyebrow { margin-bottom: 22px; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; line-height: .98; }
h1 { max-width: 820px; font-size: clamp(52px, 7vw, 104px); }
.gallery-intro { max-width: 610px; margin-top: 28px; color: rgba(23, 32, 31, .7); font-size: 16px; line-height: 1.85; }

.gallery-filters { position: sticky; top: 78px; z-index: 10; padding: 16px 0; border-bottom: 1px solid var(--line); background: rgba(251, 248, 241, .96); backdrop-filter: blur(16px); }
.filter-wrap { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.filter { flex: 0 0 auto; border: 1px solid rgba(23, 32, 31, .28); background: transparent; color: var(--ink); cursor: pointer; font: 500 11px Montserrat, Arial, sans-serif; letter-spacing: 1.2px; padding: 11px 16px; text-transform: uppercase; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.filter:hover, .filter.active { border-color: var(--pine); background: var(--pine); color: var(--white); }

.gallery-content { padding-bottom: 104px; }
.event-section { display: grid; grid-template-columns: minmax(230px, .66fr) minmax(0, 1.6fr); gap: 72px; padding: 96px 0; border-bottom: 1px solid var(--line); }
.event-copy { position: sticky; top: 168px; align-self: start; }
.event-copy .eyebrow { margin-bottom: 18px; }
.event-copy h2 { font-size: clamp(34px, 4vw, 56px); }
.event-copy p:last-child { margin-top: 26px; color: rgba(23, 32, 31, .7); font-size: 14px; line-height: 1.85; }
.photo-grid { column-count: 2; column-gap: 16px; }
.photo { display: block; width: 100%; min-width: 0; margin: 0 0 16px; border: 0; background: var(--pine); cursor: zoom-in; overflow: hidden; break-inside: avoid; }
.photo img { width: 100%; height: auto; transition: transform .45s ease, opacity .3s ease; }
.photo:hover img { opacity: .9; transform: scale(1.045); }
.event-section[hidden] { display: none; }

.gallery-cta { margin-top: 96px; padding: 88px 32px; background: var(--pine); color: var(--white); text-align: center; }
.gallery-cta .eyebrow { margin-bottom: 18px; }
.gallery-cta h2 { font-size: clamp(42px, 5vw, 70px); }
.gallery-cta p:not(.eyebrow) { max-width: 500px; margin: 22px auto 30px; color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.8; }
.button { display: inline-block; border: 1px solid var(--white); background: var(--wine); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 2px; padding: 16px 23px; text-decoration: none; text-transform: uppercase; transition: background .2s ease, transform .2s ease; }
.button:hover { background: #5b2424; transform: translateY(-2px); }

.site-footer { padding: 42px 24px 36px; background: var(--ink); color: var(--white); text-align: center; }
.site-footer img { display: block; width: 56px; margin: 0 auto 18px; }
.site-footer p { margin: 0; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }
.site-footer span { margin: 0 14px; color: rgba(255, 255, 255, .7); }
.footer-social { display: flex; justify-content: center; gap: 10px; margin: 0 auto 20px; }
.footer-social a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255, 255, 255, .34); color: rgba(255, 255, 255, .84); transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.footer-social a:hover, .footer-social a:focus-visible { border-color: var(--copper); background: var(--copper); color: var(--white); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }
.social-icon-fill { fill: currentColor; }
.social-icon-stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; border: 0; background: rgba(8, 13, 12, .95); padding: 36px; }
.lightbox::backdrop { background: rgba(8, 13, 12, .95); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(1120px, 92vw); max-height: 86vh; width: auto; height: auto; }
.lightbox-close { position: fixed; top: 18px; right: 24px; border: 0; background: transparent; color: var(--white); cursor: pointer; font-size: 40px; font-weight: 300; line-height: 1; }

@media (max-width: 980px) {
  .nav-shell { width: min(100% - 40px, 1220px); gap: 24px; }
  .nav-links { gap: 18px; }
  .event-section { gap: 46px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 78px; right: 0; left: 0; display: none; padding: 18px 20px 24px; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .12); flex-direction: column; align-items: flex-start; }
  .site-header.open .nav-links { display: flex; }
  .gallery-hero { padding: 142px 0 70px; }
  .gallery-hero .container { margin-left: auto; }
  .gallery-filters { top: 78px; }
  .event-section { grid-template-columns: 1fr; gap: 32px; padding: 68px 0; }
  .event-copy { position: static; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, var(--max)); }
  .nav-shell { width: min(100% - 28px, 1220px); }
  .brand { font-size: 15px; letter-spacing: 4px; }
  .photo-grid { column-count: 1; column-gap: 0; }
  .photo { margin-bottom: 12px; }
  .gallery-cta { margin-top: 68px; padding: 68px 22px; }
  .site-footer span { display: block; margin: 10px 0; }
}
