:root {
  --stage-black: #4e0555;
  --curtain: #010429;
  --curtain-deep: #4e0555;
  --gold: #7bf6fa;
  --gold-bright: #7bf6fa;
  --paper:  #f7f1e3;
  --paper-dim:  #f7f1e3;
}

/* ---- Grid container ---- */

.grid-container,
.show-grid-container {
    position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  justify-content: center;
  justify-items: center;
  gap: 2.5rem 2rem;
  padding: 3rem 2rem;
  background: var(--stage-black);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, #4e0555, transparent 60%);

  z-index: 100 !important;
}

@media (max-width: 640px) {
  .grid-container,
  .show-grid-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 220px));
    gap: 1.75rem 1rem;
    padding: 1.5rem 1rem;
  }
}

/* ---- Poster card ---- */

.grid-item,
.show-grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: linear-gradient(180deg, var(--curtain) 0%, var(--curtain-deep) 100%);
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px #010429,
    0 18px 34px -22px rgba(0, 0, 0, 0.75);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.grid-item h1, p, a {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;

}

.grid-item::before,
.show-grid-item::before {
  /* spotlight glow on hover */
  content: "";
  position: absolute;
  inset: -30% -30% auto -30%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 199, 102, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.grid-item:hover,
.show-grid-item:hover {
  transform: translateY(-10px) rotate(-0.4deg);
  box-shadow:
    0 0 0 1px #010429,
    0 30px 50px -20px rgba(0, 0, 0, 0.85);
}

.grid-item:hover::before,
.show-grid-item:hover::before {
  opacity: 1;
}

/* main poster image */

.grid-item img,
.show-grid-item img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 297 / 420 !important; /* true A3 proportions */
  object-fit: cover !important;
  display: block;
  filter: saturate(0.95) contrast(1.02);
  transition: filter 0.4s ease, transform 0.4s ease;
  width: 90% !important;
  padding-top: 10px;
  margin: 0 auto;
}

.grid-item:hover img,
.show-grid-item:hover img {
  filter: saturate(1.1) contrast(1.05) brightness(1.05);
  transform: scale(1.03);
}

/* press releases */
/* press releases */
.press-release-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px; /* keeps the box off the screen edges on small viewports */
}
.press-release-overlay.open {
    display: flex;
}

.press-release-box {
    background: #4e0555;
    color: #fff;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden; /* prevents any child from ever forcing horizontal scroll */
    border-radius: 8px;
    position: relative;
}

.press-release-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.press-release-close:hover {
    background: rgba(0, 0, 0, 0.55);
}

/* Image: flush with the top of the box (no bleed/negative-margin trick,
   which was causing the horizontal overflow). object-fit: contain rather
   than cover, so poster artwork with text baked into the design is never
   cropped — it may letterbox on unusual aspect ratios, but nothing gets cut off. */
.press-release-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(200px, 40vw, 380px);
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25); /* fills any letterboxed space around a contained image */
    border-radius: 8px 8px 0 0;
}

/* Padding now lives here instead of on .press-release-box, so it only
   ever applies to text content — the image stays edge-to-edge and can't
   be pushed wider than the box by mismatched margins. */
.press-release-text {
    padding: clamp(20px, 4vw, 40px);
}

.press-release-title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
}

.press-release-date {
    color: #d9b8de;
    margin: 0 0 20px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.press-release-body {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word; /* long unbroken words/links can't force horizontal scroll either */
}
.press-release-body p {
    margin: 0 0 1em;
}
.press-release-body h1,
.press-release-body h2,
.press-release-body h3 {
    margin: 1.2em 0 0.5em;
    line-height: 1.3;
}
.press-release-body a {
    color: #f1c867;
}

/* On narrow screens, let the box use more of the viewport and drop the
   image bleed (which relies on side padding that's already minimal here) */
@media (max-width: 480px) {
    .press-release-overlay {
        padding: 0;
        align-items: flex-end; /* box rises from the bottom, more native-feeling on mobile */
    }
    .press-release-box {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
    }
    .press-release-image {
        height: 200px;
    }
}


/* motion / accessibility */

@media (prefers-reduced-motion: reduce) {
  .grid-item,
  .show-grid-item,
  .grid-item img,
  .show-grid-item img,
  .grid-item::before,
  .show-grid-item::before {
    transition: none;
  }
  .grid-item:hover,
  .show-grid-item:hover {
    transform: none;
  }
}