/* The landing gallery — a poster wall for the film library. Loads styles.css
   first for the font; everything here is scoped to body.gallery. */

/* styles.css locks html+body to 100% / overflow:hidden for the player stage;
   the gallery is a long scrolling page, so undo that on this page only. */
html {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
body.gallery {
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  background:
    radial-gradient(1200px 600px at 50% -10%, #23202e 0%, #141018 60%, #0c0a10 100%);
  color: #d8d4c4;
  font-family: var(--px-font);
  cursor: default;
  padding: 0 5vw 6vh;
  -webkit-font-smoothing: none;
}

#gv-head {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8vh 0 4vh;
  text-align: center;
}
#gv-head h1 {
  font-size: clamp(28px, 6vw, 60px);
  letter-spacing: 4px;
  color: #f0e6d2;
  text-shadow: 3px 3px 0 #000;
  font-weight: normal;
}
#gv-head p {
  margin-top: 1.2em;
  font-size: clamp(12px, 1.8vw, 16px);
  color: #8f8a7c;
  line-height: 1.6;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

#gv-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.gv-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #191622;
  border: 1px solid #2c2838;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.gv-card:hover {
  transform: translateY(-4px);
  border-color: #f0a8b8;
  box-shadow: 0 10px 30px -12px #000;
}

.gv-poster {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0c0a10;
  overflow: hidden;
}
.gv-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  display: block;
}
.gv-poster-empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, #1a1622 0 8px, #211c2c 8px 16px);
}
.gv-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(20, 16, 24, 0.55);
  border: 2px solid rgba(240, 168, 184, 0.85);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
}
.gv-card:hover .gv-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.gv-meta { padding: 12px 14px 16px; }
.gv-meta h2 {
  font-size: 15px;
  letter-spacing: 1px;
  color: #f0e6d2;
  font-weight: normal;
}
.gv-meta p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #8f8a7c;
}

#gv-foot {
  max-width: 1100px;
  margin: 6vh auto 0;
  text-align: center;
  font-size: 11px;
  color: #5c5866;
}
#gv-foot a { color: #8f8a7c; }
