.posters-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 6rem;
}

.page-head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.page-kicker {
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.page-title {
  font-family: "Boogaloo", cursive;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0;
  color: var(--text-primary);
}

.page-lead {
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0.8rem auto 0;
  max-width: 34rem;
}

.poster-grid {
  background: none;
  border-radius: 0;
  padding: 2rem 0;
  columns: 3;
  column-gap: 1.5rem;
}

.poster-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: #1a1209;
  border-radius: 3px;
  padding: 6px;
  box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transform-origin: top center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-card::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #888;
  border-radius: 50%;
  z-index: 3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.poster-card:hover {
  box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.5);
  transform: rotate(0deg) scale(1.02);
}

.poster-wrapper {
  background: #f5f0e8;
  padding: 8px;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.poster-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: all;
  z-index: 2;
}

.poster-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 8px;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 899px) {
  .poster-grid {
    columns: 2;
  }
}

@media (max-width: 519px) {
  .poster-grid {
    columns: 1;
  }
}

@media (min-width: 900px) {
  .poster-card {
    width: 94%;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  outline: 10px solid #1a1209;
  outline-offset: 0;
  padding: 12px;
  background: #f5f0e8;
  border-radius: 2px;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 4px 8px 32px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox--open .lightbox__img {
  transform: scale(1);
  opacity: 1;
}

.lightbox__room-btn,
.lightbox__back-btn {
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(20, 20, 20, 0.75);
  color: #f5f0e8;
  border-radius: 999px;
  padding: 0.3rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox__room-btn:hover,
.lightbox__back-btn:hover {
  background: rgba(38, 38, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox--room-mode .lightbox__img {
  display: none;
}

.room-mockup {
  transition: opacity 0.15s ease;
}

.room-mockup__scene {
  position: relative;
  display: inline-block;
  max-height: 80vh;
}

.room-mockup__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(60, 40, 15, 0.18);
  border-radius: 8px;
  pointer-events: none;
  z-index: 10;
}

.room-mockup__bg {
  display: block;
  max-height: 80vh;
  width: auto;
  border-radius: 8px;
}

.room-mockup__frame {
  position: absolute;
  top: 11%;
  left: 36%;
  width: 33%;
  aspect-ratio: 4 / 5;
  background: #3d2b1a;
  padding: 5px;
  transform: perspective(1200px) rotateY(2deg) rotateX(1deg);
  transform-origin: center center;
  box-shadow:
    6px 12px 40px rgba(0, 0, 0, 0.55),
    2px 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.room-mockup__frame::after {
  display: none;
}

.room-mockup__mat {
  background: #f5f0e8;
  padding: 6px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(0, 0, 0, 0.08);
}

.room-mockup__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  filter: brightness(0.92) sepia(0.12) saturate(0.95) hue-rotate(-8deg);
  mix-blend-mode: normal;
}

@keyframes popIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
