/* =========================
   SCENE 13
========================= */

.scene-13 {
  position: absolute;
  inset: 0;

  opacity: 0;
  transition: opacity .5s ease;
}

.scene13-content {
  position: absolute;
  inset: 0;
}


/* =========================
   FIXED TEXT POSITION
========================= */

.scene13-text {
  position: absolute;

  top: 26%;
  left: 50%;

  width: min(48rem, 72vw);
  min-height: calc(5 * 1.65rem);

  transform: translateX(-50%);
}

.type-text-scene13 {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  min-height: calc(5 * 1.65rem);

  text-align: left;
  white-space: normal;
}


/* =========================
   INDIVIDUAL CENTRED LINES
========================= */

.scene13-typed-line {
  position: relative;

  /*
    Both the invisible final line and visible typing
    occupy the same grid cell.
  */
  display: grid;
  grid-template-areas: "line";

  width: max-content;
  min-height: 1.65rem;

  margin-inline: auto;

  line-height: 1.65rem;
  white-space: nowrap;
}

.scene13-line-sizer {
  grid-area: line;

  visibility: hidden;
  pointer-events: none;

  white-space: nowrap;
}

.scene13-line-visible {
  grid-area: line;

  display: inline-flex;
  align-items: baseline;
  justify-self: start;

  white-space: nowrap;
}

.scene13-typed-copy {
  display: inline;
}


/* =========================
   REAL CURSOR
========================= */

.scene13-real-cursor {
  display: inline-block;

  margin-left: .08em;

  animation: blink .85s steps(1) infinite;
}


/*
  Completely disable the global pseudo cursor.
  This removes the duplicate cursor.
*/

.type-text-scene13::after,
.type-text-scene13.is-typing::after,
.type-text-scene13.cursor-end::after {
  content: none !important;
  display: none !important;
}


/* =========================
   IMAGE CAROUSEL
========================= */

.scene13-carousel {
  position: absolute;

  left: 50%;
  top: 47%;

  width: 10.9375rem;

  aspect-ratio: 1;
  overflow: hidden;

  transform: translateX(-50%);
}

.scene13-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1.2s ease;
}

.scene13-image.active {
  opacity: 1;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 56.25rem) {
  .scene13-text {
    top: 24%;
    width: 82vw;
  }

  .scene13-carousel {
    width: 9rem;
    top: 48%;
  }
}