/* Disable the static ::before wallpaper — case-space-bg fixed layer takes over */
.work-landing-section.toybox-experience::before {
  display: none;
}

/* Fun Toybox experience pages: back link, then a two-column stage (copy left, 16:9 video right). */

.work-landing-section.toybox-experience {
  --toybox-stage-max-h: min(52dvh, 56svh, 620px);
  padding-top: clamp(12px, 2.5vw, 24px);
  padding-bottom: clamp(1.25rem, 4vw, 2.5rem);
  min-height: 100dvh;
}

.work-landing-section.toybox-experience .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.35rem, 1.2vw, 0.75rem);
}

.toybox-experience__back {
  order: 1;
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 clamp(1rem, 2.5vw, 1.75rem);
}

/* Copy + video — wider media column; player fills that column at 16:9. */
.toybox-experience__stage {
  order: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, min(62%, 820px));
  gap: clamp(1rem, 2.8vw, 2.25rem);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.toybox-experience__copy {
  min-width: 0;
}

/* Title + body copy, then action buttons directly under the text (left column). */
.toybox-experience__hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.toybox-experience__media-col {
  min-width: 0;
  width: 100%;
}

/* Kill full-bleed when video sits in the stage (overrides earlier toybox rules). */
.work-landing-section.toybox-experience .toybox-experience__stage .case-video-block {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

/*
 * YouTube 16:9 — beat selectedwork.css .case-video-embed { width:100%; padding-bottom:56.25% }
 * without inheriting “full viewport width” (that made the box read as nearly square on screen).
 */
.work-landing-section.toybox-experience
  .toybox-experience__media-col
  .case-video-block
  .case-video-embed:has(iframe.case-youtube-embed) {
  position: relative;
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: clamp(10px, 1.5vw, 16px);
}

.work-landing-section.toybox-experience
  .toybox-experience__media-col
  .case-video-embed:has(video.case-study-video) {
  position: relative;
  margin-top: 0;
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: clamp(10px, 1.5vw, 16px);
}

.work-landing-section.toybox-experience .case-video-embed iframe,
.work-landing-section.toybox-experience .case-video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-landing-section.toybox-experience .case-video-embed__meta {
  max-width: 100%;
  margin-inline: 0;
  margin-top: clamp(0.35rem, 1vw, 0.65rem);
}

.toybox-experience__header.bio-page-heading {
  flex: none;
  min-width: 0;
  margin: 0;
  max-width: min(40rem, 100%);
  text-align: left;
}

.work-landing-section.toybox-experience .toybox-experience__header .experience-section-eyebrow,
.work-landing-section.toybox-experience .toybox-experience__header .experience-section-title,
.work-landing-section.toybox-experience .toybox-experience__header .experience-section-lede {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.work-landing-section.toybox-experience
  .toybox-experience__header
  .experience-section-lede
  + .experience-section-lede {
  margin-top: 0.65rem;
}

.toybox-experience__ctas {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  margin: clamp(0.65rem, 1.8vw, 1rem) 0 0;
  flex: none;
  align-self: flex-start;
}

.toybox-experience__ctas .case-back.case-view-case-study {
  margin: 0;
}

@media (max-width: 900px) {
  .toybox-experience__stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .toybox-experience__ctas {
    align-items: stretch;
    align-self: stretch;
  }
}

/* Static hero image */
.toybox-experience__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-block: clamp(8px, 1.5vw, 14px);
}

.toybox-experience__media {
  display: block;
  max-width: 100%;
  max-height: var(--toybox-stage-max-h);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: clamp(10px, 1.5vw, 16px);
  box-shadow:
    0 0 0 1px rgba(120, 200, 255, 0.2),
    0 18px 48px rgba(0, 0, 0, 0.4);
}

/* WIP / coming-soon image with scrim */
.toybox-experience__wip-figure {
  position: relative;
  margin: 0;
  border-radius: clamp(10px, 1.5vw, 16px);
  overflow: hidden;
}

.toybox-experience__wip-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.toybox-experience__wip-scrim {
  display: none;
}

/* AI gen image mosaic grid — 4 columns, 2 rows */
.toybox-experience__gen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 1vw, 10px);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.toybox-experience__gen-grid a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(2, 12, 28, 0.6);
}

.toybox-experience__gen-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.92;
}

.toybox-experience__gen-grid a:hover img,
.toybox-experience__gen-grid a:focus img {
  transform: scale(1.06);
  opacity: 1;
}

/* wipcomingsoon1 — sits under left-column text */
.toybox-experience__wip-footer {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  display: flex;
  justify-content: flex-start;
}

.toybox-experience__wip-footer img {
  display: block;
  max-width: min(280px, 100%);
  height: auto;
  border-radius: clamp(8px, 1.2vw, 12px);
  opacity: 0.82;
}

@media (max-width: 600px) {
  .toybox-experience__gen-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Gen-image lightbox */
.gen-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: lb-fade-in 0.18s ease;
}

.gen-lightbox[hidden] { display: none; }

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.gen-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  animation: lb-scale-in 0.2s ease;
}

@keyframes lb-scale-in {
  from { transform: scale(0.93); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.gen-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.gen-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
}
