.timeline-home { position: absolute; inset: 0; }

.month-grid {
  position: absolute;
  inset: 0;
}

.month-folder {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 13.6243%;
  height: 20.9776%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.month-folder img { display: block; width: 100%; height: 100%; }

.month-selection {
  position: absolute;
  z-index: 3;
  width: 14.3519%;
  height: 22.8106%;
  opacity: 0;
  pointer-events: none;
}

.month-selection.is-visible { opacity: 1; }

.year-list,
.month-list {
  position: absolute;
  z-index: 20;
  right: 21px;
  display: grid;
  gap: 4px;
  transform: translateY(-50%);
  text-align: right;
}

.year-list { top: 51%; }
.month-list { top: 54%; }

.side-choice {
  position: relative;
  min-width: 64px;
  padding: 0 12px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.side-choice.is-active { color: var(--black); }
.side-choice.is-active::after {
  position: absolute;
  top: 50%;
  right: -21px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 11px solid var(--black);
  transform: translateY(-50%);
  content: "";
}

.timeline-stream {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.timeline-stream.is-dragging { cursor: grabbing; }
.stream-track { position: absolute; inset: 0; z-index: 0; will-change: transform; }

.stream-card {
  position: absolute;
  top: 40.1222%;
  left: 41.4021%;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  border: 2px solid #fff;
  outline: 0;
  background: var(--gray);
  transform-origin: center;
  cursor: inherit;

}

.stream-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 326px;
  max-height: 240px;
  pointer-events: none;
}
.stream-card:hover,
.stream-card:focus-visible { border-color: var(--blue); }

.stream-handle {
  position: absolute;
  display: none;
  width: 10px;
  height: 10px;
  border: 2px solid var(--blue);
  background: #fff;
  pointer-events: none;
}
.stream-card:hover .stream-handle,
.stream-card:focus-visible .stream-handle { display: block; }
.stream-handle.tl { top: -6px; left: -6px; }
.stream-handle.tr { top: -6px; right: -6px; }
.stream-handle.bl { bottom: -6px; left: -6px; }
.stream-handle.br { bottom: -6px; right: -6px; }

.day-label {
  position: absolute;
  left: 41.4021%;
  top: 35.0305%;
  z-index: 800;
  padding-left: 7px;
  border-left: 1px solid #aaa;
  font-size: 17px;
  font-weight: 700;
  pointer-events: none;
}

.stream-empty { position: absolute; top: 45%; width: 100%; text-align: center; color: var(--muted); }
