.introduction {
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(26px, 4vw, 58px);
}

.introduction > :first-child {
  padding-block-start: clamp(6px, 3vw, 44px);
}

.introduction .photo-collection {
  width: 100%;
  max-width: none;
}

.photo-collection .viewfinder-head {
  min-height: 32px;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 9px;
}

.photo-player {
  --aperture-inset: 4px;
  --echo-opacity: .36;
  position: relative;
  isolation: isolate;
  min-width: 0;
}

:root[data-theme="light"] .photo-player {
  --echo-opacity: .28;
}

.photo-ambient {
  position: absolute;
  z-index: -1;
  inset: -30px calc(-1 * min(4vw, 34px));
  overflow: clip;
  pointer-events: none;
  opacity: var(--echo-opacity);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent),
    linear-gradient(0deg, transparent, black 8%, black 92%, transparent);
  mask-composite: intersect;
  transition: opacity 380ms ease;
}

.photo-echo {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  filter: blur(33px) saturate(1.22) brightness(1.18);
  opacity: 0;
  transition: opacity 620ms ease;
}

.photo-echo.on {
  opacity: 1;
}

.photo-player:has(.wall:not(.lit), .is-flipped) .photo-ambient {
  opacity: 0;
}

.photo-player .viewfinder-flip {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.photo-collection .photo-player .wall,
.photo-collection .photo-player .contact-sheet {
  height: 100%;
  border: 1px solid #565047;
  border-radius: 7px 7px 0 0;
}

.photo-collection .photo-player .wall {
  width: 100%;
  background: #171714;
  box-shadow: 0 15px 30px -24px #080807a6;
}

.photo-collection .photo-player .wall:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

.photo-collection .photo-player .wall::after {
  display: none;
}

.photo-collection .photo-player .window,
.photo-collection .photo-player .kaleidoscope-canvas {
  inset: var(--aperture-inset);
  border-radius: 3px;
}

.photo-player .kaleidoscope-canvas {
  width: calc(100% - 2 * var(--aperture-inset));
  height: calc(100% - 2 * var(--aperture-inset));
}

.photo-player .wall:not(.lit) .kaleidoscope-canvas {
  display: none;
}

.photo-collection .photo-player .frame {
  transition: opacity 200ms ease;
}

.photo-collection .photo-player .wall.lit .frame.on .photo {
  animation: none;
}

.photo-collection .photo-player .photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.photo-collection .photo-player .pj-off-note {
  color: #b5a898;
  font: 10px/1.5 var(--font-mono);
}

.photo-collection .photo-player .projector-deck {
  padding: 12px 14px 7px;
  background: #2b2a24;
  border-color: #565047;
}

.photo-collection .photo-player .deck-group {
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 16px);
}

.photo-caption-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #565047;
  border-top: 0;
  background: #171714;
}

.photo-controls-toggle {
  flex: none;
  min-height: 36px;
  padding: 4px 0 4px 8px;
  border: 0;
  background: transparent;
  color: #c7c9c4;
  font: 400 10px/1.5 var(--font-mono);
  cursor: pointer;
  white-space: nowrap;
}

.photo-controls-toggle:hover,
.photo-controls-toggle:focus-visible {
  color: #f4f1eb;
}

.photo-controls-toggle:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 2px;
}

.controls-collapsed .photo-caption-bar {
  border-radius: 0 0 7px 7px;
}

.photo-tray-wheel {
  position: relative;
  width: clamp(44px, 5vw, 64px);
  aspect-ratio: 1;
  flex: none;
  border: 3px solid #161b1f;
  border-radius: 50%;
  box-shadow: 0 2px 5px #0009, inset 0 1px #ffffff20;
  background: #22272a;
}

.photo-tray-wheel::before {
  position: absolute;
  z-index: 1;
  top: -5px;
  left: calc(50% - 4px);
  width: 8px;
  height: 6px;
  background: var(--sun);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
}

.photo-tray-wheel i {
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: repeating-conic-gradient(#c3c8bf 0deg 5deg, #151b1d 5deg 15deg);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
}

.photo-tray-wheel::after {
  position: absolute;
  inset: 25%;
  border: 1px solid #8a9285;
  border-radius: 50%;
  background: #1b2223;
  box-shadow: 0 0 0 4px #232a27;
  content: "";
}

:root:not([data-season="autumn"]) .photo-caption-bar {
  border-color: #343c44;
  background: #0b0d10;
}

:root:not([data-season="autumn"]) .photo-collection .photo-player .pj-label {
  background: linear-gradient(#86aebd, #5e8597);
  color: #f4f8fa;
}

.photo-readout {
  display: flex;
  align-items: baseline;
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
}

.photo-collection .photo-player .pj-label {
  flex: 0 1 auto;
  max-width: none;
  padding: 6px 9px;
  background: linear-gradient(#cf8957, #b06d40);
  color: #faf3ea;
  font: 500 10px/1.4 var(--font-mono);
  letter-spacing: .055em;
  transform: rotate(-.4deg);
  text-transform: uppercase;
  text-shadow: 0 1px #0003;
  box-shadow: 0 2px 4px #0003;
}

.photo-collection .photo-player .wall-no {
  margin-inline: 0 auto;
  color: #b7aa97;
  white-space: nowrap;
  text-shadow: none;
}

.photo-lamp {
  display: flex;
  align-items: center;
  gap: 7px;
}

.photo-collection .photo-player .pj-key,
.photo-collection .photo-player .projector-deck .power,
.photo-player .pj-switch {
  min-width: 34px;
  min-height: 36px;
}

.photo-player .pj-switch {
  color: #c2b5a2;
}

.photo-player .dwell {
  position: absolute;
  inset-inline: 12px;
  bottom: 0;
  height: 1px;
  margin: 0;
}

.photo-player .dwell i {
  background: #c69e76;
  box-shadow: none;
}

.photo-player .viewfinder-tools {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0 clamp(10px, 3vw, 24px);
  margin: 9px 0 0;
  padding: 5px 0 0;
  border: 0;
  border-top: 1px solid #ffffff12;
}

.photo-thumbnail-strip {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 12px 0 0;
  padding: 5px 4px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #82908c transparent;
}

.photo-thumbnail-strip li { flex: none; }

.photo-thumbnail-strip .mount {
  display: block;
  width: 48px;
  height: 44px;
  padding: 0;
  border-radius: 2px;
  opacity: .72;
}

.photo-thumbnail-strip .mount .win,
.photo-thumbnail-strip .mount.port .win {
  inset: 5px;
}

.photo-thumbnail-strip .mount img { object-fit: contain; }
.photo-thumbnail-strip .mount .no { display: none; }
.photo-thumbnail-strip .mount[aria-current="true"] { transform: none; opacity: 1; }

.photo-player .viewfinder-tools button {
  min-height: 33px;
  padding-inline: 0;
  color: #c7bba9;
}

.photo-player .viewfinder-tools button:hover,
.photo-player .viewfinder-tools button[aria-expanded="true"],
.photo-player .viewfinder-tools button[aria-pressed="true"] {
  color: #f3d5af;
}

.photo-player .frame-notes {
  padding: 12px 0;
  border-top: 1px solid #48473d;
}

.photo-player .contact-sheet #closeSheet {
  color: #ded1be;
}

@media (max-width: 720px) {
  .introduction {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .introduction > :first-child {
    padding-block-start: 0;
  }
}

@media (max-width: 480px) {
  .photo-collection .photo-player .projector-deck {
    padding-inline: 8px;
  }

  .photo-collection .photo-player .deck-group {
    flex-wrap: wrap;
    gap: 4px 10px;
  }

  .photo-caption-bar {
    flex-wrap: wrap;
    gap: 0 10px;
    padding: 8px 10px 4px;
  }

  .photo-readout {
    flex: 1 1 100%;
    gap: 10px;
  }

  .photo-controls-toggle {
    margin-inline-start: auto;
  }

  .photo-collection .photo-player .wall-no {
    margin-inline: auto 0;
  }

  .photo-player .viewfinder-tools {
    column-gap: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-ambient,
  .photo-echo,
  .photo-player .pj-switch .knob,
  .photo-tray-wheel i {
    transition: none;
  }
}
