/* —— Figma main body (Ideation / WIP / Final Showcase) —— */
.dream-body {
  width: 100%;
}

.dream-title-lines {
  gap: var(--spacing-xs);
}

.dream-title-lines h2 {
  color: var(--color-primary);
}

.dream-ideation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-m);
  width: 100%;
}

.dream-insp {
  margin: 0;
  overflow: hidden;
  min-height: 0;
}

.dream-insp img,
.dream-insp-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dream-insp-video {
  background: #000;
}

.dream-insp-1,
.dream-insp-2,
.dream-insp-3 {
  min-height: 234px;
}

.dream-ideation-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-m);
  width: 100%;
  align-items: stretch;
}

.dream-card {
  height: 100%;
}

.dream-card .card-title {
  text-align: center;
}

.dream-card p {
  margin: 0;
}

.dream-card p + p {
  margin-top: var(--spacing-m);
}

.dream-accent {
  color: var(--color-primary);
}

.dream-scene-sub {
  margin-top: var(--spacing-m);
}

.dream-wip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-m);
  width: 100%;
}

.dream-wip-grid > div,
.dream-wip-grid figure {
  margin: 0;
  overflow: hidden;
  min-height: 0;
}

.dream-wip-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.dream-wip-grid img.zoom {
  transform-origin: center center;
  backface-visibility: hidden;
}

.dream-wip-grass figure {
  min-height: 280px;
}

.dream-hero {
  overflow: hidden;
  width: 100%;
}

.dream-monster-hero img,
video.dream-monster-hero-video {
  display: block;
  width: 100%;
  min-height: 320px;
  max-height: min(90vh, 652px);
  object-fit: contain;
  background: #000;
}

.dream-hero--youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  max-height: min(90vh, 652px);
  background: #000;
}

.dream-youtube-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.dream-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-m);
  width: 100%;
}

.dream-showcase-grid > div,
.dream-showcase-grid figure {
  margin: 0;
  overflow: hidden;
  min-height: 0;
}

.dream-showcase-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* img.zoom: scale is painted inside the cell; layout size stays the same */
.dream-showcase-grid img.zoom {
  transform-origin: center center;
  backface-visibility: hidden;
}

.dream-showcase-wide {
  grid-column: 1 / -1;
  min-height: min(70vw, 581px);
}

.dream-showcase-half {
  min-height: 0;
}

.dream-ar-narrow {
  aspect-ratio: 455 / 295;
}

.dream-ar-wide {
  aspect-ratio: 2550 / 1650;
}

@media screen and (max-width: 810px) {
  .dream-ideation-grid {
    grid-template-columns: 1fr;
  }

  .dream-ideation-grid > .dream-insp {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    min-height: 200px;
  }

  .dream-ideation-cards {
    grid-template-columns: 1fr;
  }

  .dream-wip-grid {
    grid-template-columns: 1fr;
  }

  .dream-showcase-wide {
    min-height: 40vh;
  }

  .dream-ar-narrow,
  .dream-ar-wide {
    aspect-ratio: auto;
    min-height: 200px;
  }
}
