/* ---- Grid --------------------------------------------------------------- */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;   /* rows centred as one block */
  padding: 0 40px;
}

.rows { width: 100%; display: flex; flex-direction: column; align-items: center; }
.row { width: 100%; }
.row + .row { margin-top: var(--gap); }

.strip {
  display: flex;
  align-items: center;
  gap: var(--gap);
  width: var(--strip-w, 100%);   /* JS constrains width so tiles rest at 4:3 */
  max-width: 100%;
  margin: 0 auto;
}

.tile {
  flex: 1 1 0;                   /* fill row; siblings compress when one expands */
  min-width: 0;
  height: var(--tile-h, 180px);
  overflow: hidden;
  position: relative;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.tile[disabled] { cursor: default; }

/* Invisible cells so a short last row keeps the same tile width as full rows */
.spacer { flex: 1 1 0; min-width: 0; pointer-events: none; }

.tile img,
.tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brand + title overlaid on the hovered tile */
.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.tile.active .tile-overlay,
.tile:focus-visible .tile-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.4);
}
.tile-brand {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.tile-title {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ---- Mobile: single stacked column -------------------------------------- */
@media (max-width: 768px) {
  .stage {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 80px 16px;
  }
  .rows { align-items: stretch; }
  .row + .row { margin-top: 6px; }
  .strip { flex-direction: column; gap: 6px; }
  .tile { width: 100%; height: auto; flex: none; }
  .spacer { display: none; }
  .tile img,
  .tile video { height: auto; object-fit: initial; }
  /* No hover on touch: JS marks the centred tile .active as you scroll. */
}
