:root {
  color-scheme: dark;
  --background: #080808;
  --foreground: #f5f3ed;
  --line: #2b2b28;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
}

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.top-banner {
  min-height: 80px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #0b0b0a;
}

.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.arrow-picker {
  display: flex;
  align-items: center;
  gap: 9px;
}

.arrow-picker-label {
  margin-right: 7px;
  color: #a7a59e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.arrow-option,
.lightbox-arrow {
  display: grid;
  place-items: center;
  padding: 0;
}

.arrow-option {
  width: 38px;
  height: 38px;
  border: 1px solid #4c4b46;
  border-radius: 50%;
  background: transparent;
  color: #f5f3ed;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.arrow-option:hover,
.arrow-option:focus-visible,
.arrow-option.is-active {
  border-color: #f5f3ed;
  background: #181816;
  outline: none;
}

.arrow-option.is-active {
  transform: scale(1.08);
}

.arrow-option svg,
.lightbox-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow-fill {
  fill: currentColor;
  stroke: none;
}

main {
  width: max-content;
  max-width: none;
  margin: 0 auto;
  padding: 48px 0;
}

.mood-layout {
  display: grid;
  grid-template-columns: 854px 805.3335px;
  align-items: start;
  gap: 16px;
}

.season-panel,
.autumn-panel {
  min-width: 0;
}

h1 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.055em;
  text-transform: lowercase;
}

.season-viewer {
  position: relative;
  width: 854px;
  height: 480px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}

.season-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 0 0 0);
  user-select: none;
  pointer-events: none;
}

.season-layer.is-current {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.season-layer.is-next {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  clip-path: inset(0 100% 0 0);
}

.season-wipe-line {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  opacity: 0;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 18px rgba(255, 255, 255, .72), 0 0 2px rgba(0, 0, 0, .75);
  pointer-events: none;
}

.season-name {
  position: absolute;
  z-index: 4;
  left: 16px;
  bottom: 14px;
  padding: 7px 10px 6px;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.season-next {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  transform: translateX(-50%);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.season-next:hover,
.season-next:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .16);
  outline: none;
  transform: translateX(-50%) scale(1.06);
}

.season-next:disabled {
  cursor: default;
  opacity: .55;
}

.season-next svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 154.6667px);
  gap: 8px;
}

.image-grid a {
  display: block;
  width: 154.6667px;
  height: 154.6667px;
  border: 1px solid var(--line);
  background: #111;
  position: relative;
  z-index: 0;
  transition: transform .18s ease, border-color .18s ease;
  transform-origin: center;
}

.image-grid a:hover,
.image-grid a:focus-visible {
  border-color: var(--foreground);
  outline: none;
  z-index: 1;
  transform: scale(1.25);
}

.image-grid img {
  display: block;
  width: 154.6667px;
  height: 154.6667px;
  object-fit: cover;
}

.lightbox {
  --viewer-width: 1280px;
  --viewer-height: 720px;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 40px 96px;
  background: rgba(0, 0, 0, .9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-stage {
  position: relative;
  width: min(
    var(--viewer-width),
    calc(100vw - 192px),
    calc(177.7778vh - 142.2222px)
  );
  aspect-ratio: 16 / 9;
  max-height: var(--viewer-height);
  background: transparent;
}

.lightbox-figure {
  margin: 0;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45);
  pointer-events: auto;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.lightbox-arrow svg {
  width: 28px;
  height: 28px;
  transform-origin: center;
}

.lightbox-previous svg {
  transform: rotate(180deg);
  animation: arrow-cue-left 2.8s ease-in-out infinite;
}

.lightbox-next svg {
  animation: arrow-cue-right 2.8s ease-in-out infinite;
}

.lightbox-arrow.is-clicked {
  animation: arrow-click .22s ease-out;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .14);
  outline: none;
}

.lightbox-previous {
  left: -76px;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -76px;
  transform: translateY(-50%);
}

body.lightbox-open {
  overflow: hidden;
}

@keyframes arrow-cue-left {
  0%, 72%, 100% { transform: rotate(180deg) translateX(0); }
  82% { transform: rotate(180deg) translateX(-4px); }
  91% { transform: rotate(180deg) translateX(0); }
}

@keyframes arrow-cue-right {
  0%, 72%, 100% { transform: translateX(0); }
  82% { transform: translateX(4px); }
  91% { transform: translateX(0); }
}

@keyframes arrow-click {
  0% { transform: translateY(-50%) scale(1); }
  45% { transform: translateY(-50%) scale(.82); background: rgba(255, 255, 255, .22); }
  100% { transform: translateY(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-arrow svg,
  .lightbox-arrow.is-clicked {
    animation: none;
  }

}

@media (max-width: 580px) {
  .top-banner {
    padding-inline: 16px;
  }

  .arrow-picker-label {
    display: none;
  }

  .arrow-picker {
    gap: 6px;
  }

  .arrow-option {
    width: 34px;
    height: 34px;
  }

}

@media (max-width: 440px) {
  main {
    max-width: none;
    padding: 32px 0;
    padding-inline: 16px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-stage {
    width: min(calc(100vw - 32px), calc(177.7778vh - 56.8889px));
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox-previous { left: 10px; }
  .lightbox-next { right: 10px; }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .arrow-option {
    width: 30px;
    height: 30px;
  }

  .arrow-option svg {
    width: 19px;
    height: 19px;
  }
}
