/* ---- Theme ---------------------------------------------------------- */
:root {
  --bg:        #0e0f13;
  --bg-soft:   #15171d;
  --ink:       #f3f1ea;
  --ink-dim:   #a6a39b;
  --accent:    #c9a14a;   /* warm gold, like card-foil */
  --radius:    10px;
  --gap:       14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* ---- Hero ----------------------------------------------------------- */
.hero {
  text-align: center;
  padding: clamp(4rem, 12vw, 9rem) 1.5rem clamp(2.5rem, 7vw, 5rem);
  background: radial-gradient(120% 90% at 50% 0%, #1c1e26 0%, var(--bg) 70%);
}

.hero__suits {
  letter-spacing: 0.5rem;
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  letter-spacing: 0.02em;
  margin: 0;
}

.hero__tagline {
  color: var(--ink-dim);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin: 0.75rem auto 0;
  max-width: 34ch;
}

/* ---- Gallery -------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gap) 4rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  border: none;
  padding: 0;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery__item:hover,
.gallery__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  outline: none;
}

.gallery__item img,
.gallery__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* play badge for video tiles */
.gallery__item[data-type="video"]::after,
.gallery__item[data-type="youtube"]::after {
  content: "\25B6";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.gallery__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.8rem 0.6rem;
  font-size: 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption { opacity: 1; }

.gallery__empty {
  text-align: center;
  color: var(--ink-dim);
  padding: 2rem 1.5rem 5rem;
}
.gallery__empty code {
  background: var(--bg-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ---- Footer --------------------------------------------------------- */
.footer {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid #20222a;
}
.footer__links { margin: 0 0 0.6rem; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---- Lightbox ------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.95);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  z-index: 100;
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  max-height: 85vh;
}
.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
}

/* YouTube embed: keep the right shape (16:9 normal, 9:16 for Shorts) */
.lightbox__stage iframe {
  border: 0;
  border-radius: 6px;
  width: min(90vw, 151.11vh);   /* 16/9 * 85vh */
  aspect-ratio: 16 / 9;
}
.lightbox__stage iframe.is-vertical {
  width: min(90vw, 47.81vh);    /* 9/16 * 85vh */
  aspect-ratio: 9 / 16;
}

.lightbox__caption {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
  color: var(--ink-dim);
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

.lightbox__btn {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.lightbox__btn:hover { color: var(--accent); }

.lightbox__close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-size: 2.4rem;
}
.lightbox__prev,
.lightbox__next { font-size: 3.5rem; padding: 0 0.5rem; }
.lightbox__prev { grid-column: 1; grid-row: 1; }
.lightbox__next { grid-column: 3; grid-row: 1; }

@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { font-size: 2.5rem; }
}
