:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #66716b;
  --paper: #f7f4ed;
  --card: #fffdf8;
  --accent: #b4532a;
  --line: rgba(23, 32, 28, 0.12);
  --shadow: 0 16px 40px rgba(32, 40, 35, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fffdf8;
  background:
    radial-gradient(circle at 85% 10%, rgba(218, 137, 83, 0.34), transparent 34rem),
    linear-gradient(135deg, #17201c 0%, #263b31 100%);
}

.hero::after {
  position: absolute;
  inset: auto -4rem -8rem auto;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: #edb58f;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 8vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.event-details {
  display: grid;
  width: fit-content;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  gap: 0.25rem;
}

.event-details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.45;
}

.event-details strong { color: #fff; }

.event-details a {
  color: #ffd2b3;
  font-weight: 800;
  text-underline-offset: 0.18em;
}

.event-details a:hover { color: #fff; }

.intro {
  max-width: 620px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.17rem);
  line-height: 1.65;
}

.count {
  display: inline-flex;
  margin: 1.35rem 0 0;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.83rem;
  font-weight: 700;
}

main {
  width: min(1500px, calc(100% - 1.2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 4rem) 0 5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.media-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 12px rgba(32, 40, 35, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-card img,
.media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9ddd9;
}

.media-card img { transition: transform 300ms ease; }
.media-card:hover img { transform: scale(1.025); }

.video-card::before {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.68);
  content: "Video";
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  pointer-events: none;
  text-transform: uppercase;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: white;
  background: rgba(5, 8, 7, 0.94);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox::backdrop { background: rgba(5, 8, 7, 0.8); }

.lightbox figure {
  display: grid;
  place-items: center;
  max-width: calc(100vw - 7rem);
  max-height: calc(100vh - 4rem);
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  border-radius: 5px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox figcaption {
  min-height: 1.3rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.lightbox__close,
.lightbox__nav {
  position: fixed;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  font-size: 1.8rem;
}

.lightbox__nav {
  top: 50%;
  width: 3rem;
  height: 3rem;
  font-size: 2.2rem;
  transform: translateY(-50%);
}

.lightbox__nav--previous { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

footer {
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 620px) {
  main { width: min(100% - 0.8rem, 1500px); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
  .media-card { border-radius: 9px; }
  .lightbox figure { max-width: calc(100vw - 1rem); }
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
  .lightbox__nav--previous { left: calc(50% - 3.5rem); }
  .lightbox__nav--next { right: calc(50% - 3.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
