.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
body.lightbox-open { overflow: hidden; }

/* Intro */
.g-intro { padding-block: 190px 96px; }
.g-intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 11%; margin-top: 28px; }
.g-intro h1 { font-size: clamp(60px, 7vw, 112px); }
.g-intro-copy { max-width: 440px; padding-bottom: 12px; }
.g-intro-copy .lead { margin-bottom: 22px; font-size: 28px; }
.g-intro-copy p:not(.lead) { color: var(--muted); font-size: 16px; }

/* Event index */
.g-events { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12%; padding-block: 24px 120px; }
.g-events-head .eyebrow { margin-bottom: 23px; }
.g-events-head h2 { font-size: 65px; }
.g-events-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.g-events-list li { display: grid; grid-template-columns: 92px 1fr auto; align-items: baseline; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .3s ease, background .3s ease; }
.g-events-list li:hover { padding-inline: 14px; background: var(--sand); }
.g-events-list time { color: var(--wine); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.g-events-list strong { color: var(--wine); font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.15; }
.g-events-list span { color: var(--muted); font-size: 13px; text-align: right; }
.g-events-list small { grid-column: 2 / -1; color: #8a7d71; font-size: 12px; letter-spacing: .04em; }

/* Archive */
.g-archive { padding-block: 100px 160px; background: var(--sand); overflow: hidden; }
.gallery-page .g-archive { padding-top: clamp(140px, 13vw, 180px); padding-bottom: 140px; }
.g-archive-head { position: relative; z-index: 2; background: var(--sand); display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 64px; padding-bottom: 28px; border-bottom: 1px solid #cbbfb0; }
.g-archive-title { font-family: var(--serif); font-size: clamp(40px, 5.2vw, 72px); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--forest, #25382e); margin: 0; }
.g-archive-title em { font-family: Fraunces, var(--brand-serif), serif; font-style: italic; font-weight: 300; }
.g-filters { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.g-filters button { position: relative; min-height: 44px; padding: 10px 0; color: rgb(78 32 42 / 45%); background: none; border: 0; font-size: 11px; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; transition: color .3s; }
.g-filters button::after { position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; content: ''; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.g-filters button:hover, .g-filters button[aria-pressed="true"] { color: var(--wine); }
.g-filters button[aria-pressed="true"]::after { transform: scaleX(1); }
.g-filters sup { margin-left: 3px; font-size: 9px; letter-spacing: .05em; }

.g-grid { --cols: 3; position: relative; z-index: 1; padding-top: 40px; display: grid; grid-template-columns: repeat(var(--cols), 1fr); align-items: start; gap: clamp(16px, 2.6vw, 40px); transition: opacity .22s ease; }
.g-grid.is-switching { opacity: 0; }
.g-col { display: flex; flex-direction: column; gap: clamp(16px, 2.6vw, 40px); will-change: transform; }
.g-col:nth-child(2) { margin-top: 90px; }

.g-tile { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; background: #d6cbbb; border: 0; cursor: pointer; }
.g-tile.is-in { opacity: 1; transform: none; }
.g-tile img { filter: saturate(.72) sepia(.08); transform: scale(1.02); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), filter 1s ease; }
.g-tile::after { position: absolute; inset: 0; content: ''; background: linear-gradient(to top, rgb(59 23 32 / 70%), transparent 45%); opacity: 0; transition: opacity .6s ease; }
.g-tile:hover img, .g-tile:focus-visible img { filter: none; transform: scale(1.07); }
.g-tile:hover::after, .g-tile:focus-visible::after { opacity: 1; }
.g-tile:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.g-tile-caption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 4px; color: var(--ivory); text-align: left; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.g-tile:hover .g-tile-caption, .g-tile:focus-visible .g-tile-caption { opacity: 1; transform: none; }
.g-tile-cat { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.g-tile-cat::before { width: 18px; height: 1px; content: ''; background: currentColor; }
.g-tile-title { font-family: var(--serif); font-size: 24px; font-style: italic; line-height: 1.15; }

/* Cursor */
.g-cursor { position: fixed; z-index: 50; top: 0; left: 0; display: grid; place-items: center; width: 88px; height: 88px; color: var(--ivory); background: rgb(78 32 42 / 82%); border-radius: 50%; pointer-events: none; opacity: 0; scale: .4; transition: opacity .3s ease, scale .3s ease; backdrop-filter: blur(4px); }
.g-cursor span { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.g-cursor.is-on { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) {
  .g-grid .g-tile { cursor: none; }
}

/* CTA */
.g-cta { padding-block: 112px; color: var(--ivory); background: var(--oxblood); }
.g-cta-inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.g-cta .eyebrow, .g-cta h2 { color: inherit; }
.g-cta .eyebrow { margin-bottom: 26px; }

/* Lightbox */
.g-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; color: var(--ivory); background: #240e13; border: 0; }
.g-lightbox::backdrop { background: rgb(36 14 19 / 70%); }
.g-lightbox[open] { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; animation: lb-in .35s ease both; }
.g-lb-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100dvh; padding: 72px 0 32px; }
.g-lb-figure img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 190px); object-fit: contain; animation: lb-img .5s ease both; }
.g-lb-figure figcaption { display: grid; grid-template-columns: 1fr auto; gap: 4px 32px; width: min(100%, 720px); margin-top: 22px; color: inherit; font-size: inherit; }
.g-lb-figure .eyebrow { color: #c7a4a7; }
.g-lb-title { grid-column: 1; font-family: var(--serif); font-size: 30px; font-style: italic; line-height: 1.15; }
.g-lb-count { grid-column: 2; grid-row: 1 / 3; align-self: end; color: #c7a4a7; font-size: 12px; letter-spacing: .12em; }
.g-lb-nav, .g-lb-close { color: var(--ivory); background: none; border: 0; }
.g-lb-nav { justify-self: center; width: 56px; height: 56px; font-size: 22px; border: 1px solid rgb(246 242 235 / 30%); border-radius: 50%; transition: background .2s, color .2s; }
.g-lb-nav:hover { color: var(--wine); background: var(--ivory); }
.g-lb-close { position: absolute; z-index: 2; top: 22px; right: 28px; display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }
.g-lb-close span { font-size: 22px; line-height: 1; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-img { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .g-intro { padding-block: 150px 64px; }
  .g-intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .g-events { grid-template-columns: 1fr; gap: 34px; padding-block: 8px 80px; }
  .g-events-head h2 { font-size: 54px; }
  .g-archive { padding-block: 64px 110px; }
  .gallery-page .g-archive { padding-top: 110px; padding-bottom: 80px; }
  .g-archive-head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; padding-bottom: 22px; }
  .g-filters { gap: 4px 24px; }
  .g-col:nth-child(2) { margin-top: 48px; }
  .g-tile-caption { left: 16px; right: 16px; bottom: 14px; }
  .g-tile-title { font-size: 20px; }
  .g-cta { padding-block: 76px; }
  .g-cta-inner { flex-direction: column; align-items: start; }
  .g-lightbox[open] { grid-template-columns: 1fr; }
  .g-lb-figure { padding: 64px 16px 96px; }
  .g-lb-figure img { max-height: calc(100dvh - 230px); }
  .g-lb-title { font-size: 24px; }
  .g-lb-nav { position: absolute; bottom: 22px; width: 48px; height: 48px; }
  .g-lb-prev { left: calc(50% - 60px); }
  .g-lb-next { right: calc(50% - 60px); }
}

@media (max-width: 560px) {
  .g-events-list li { grid-template-columns: 1fr auto; }
  .g-events-list time { grid-column: 1 / -1; }
  .g-events-list strong { font-size: 24px; }
  .g-events-list small { grid-column: 1 / -1; }
  .g-col:nth-child(2) { margin-top: 0; }
  .g-tile-caption { opacity: 1; transform: none; }
  .g-tile::after { opacity: 1; }
  .g-tile img { filter: none; }
}

@media (hover: none) {
  .g-tile-caption { opacity: 1; transform: none; }
  .g-tile::after { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .g-tile { opacity: 1; transform: none; }
}
