/* Remove the stray highlight inside the camera screen cutout. */
.camera-world-visual .camera-frame {
  clip-path: polygon(
    evenodd,
    58.4% 0, 100% 0, 100% 100%, 0 100%, 0 0, 58.4% 0,
    58.4% 29.19%, 60.416% 29.19%, 60.416% 31.05%, 58.4% 31.05%, 58.4% 29.19%
  );
}

/* Preserve each complete photograph inside the existing camera screen. */
.camera-photo-screen .camera-gallery-track {
  align-items: start;
}

.camera-world-visual .camera-photo-tile {
  display: block;
  flex: 0 0 auto;
  padding: 0;
  background: #fff9fb;
  border-radius: clamp(3px, 0.45vw, 7px);
  box-shadow: none;
}

.camera-photo-tile::before,
.camera-photo-tile::after {
  display: none;
}

.camera-photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.camera-world-decoration,
.camera-world-lane {
  display: contents;
}

@media (max-width: 760px) {
  /* Clip only the decoration, so the camera's sticky ancestors never clip scrolling. */
  .camera-world-section {
    min-height: 0;
    overflow: visible !important;
    overflow-anchor: none;
  }

  .camera-world-shell {
    position: relative;
    top: auto;
    min-height: 0;
    gap: clamp(1.25rem, 5vw, 2.5rem);
  }

  .camera-world-decoration {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .camera-world-lane {
    display: block;
  }

  .camera-world-visual {
    width: min(100%, 95svh);
    margin-inline: auto;
    overflow: clip;
  }

  .camera-world-visual .camera-stage {
    width: 120%;
    margin-inline: -10%;
    transform: none;
  }

  /* The photo columns are the moving layers. */
  .camera-world-visual .camera-photo-tile {
    transform: none;
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .camera-world-lane {
    min-height: clamp(29rem, calc(100svh - 2rem), 50rem);
  }

  .camera-world-visual {
    position: sticky;
    top: max(5.5rem, calc(50svh - 29vw));
  }

  .camera-world-visual .camera-photo-screen {
    overflow: clip;
  }
}

@media (prefers-reduced-motion: reduce) {
  .camera-photo-screen {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
