/* Six equal entrances, with enough room for every collection on wider screens. */
body[data-view="home"] { padding-bottom: 0; }
body[data-view="home"] .door:after {
  background: linear-gradient(transparent 50%, #0001 65%, #000a 100%);
}
.door-2 > img { object-position: 54% 10%; }
/* Lift the SIFF artwork gently near square proportions, fading back to
   top alignment for tall or wide cards. Use the card, not browser width. */
.door-5 { container-type: size; }
.door-5 > img {
  object-position: 50% 0%;
  object-position: 50% clamp(-10cqw, max(calc(100cqh - 125cqw), calc(80cqw - 100cqh)), 0px);
}

/* Keep the face above the caption on wide, shallow SIFF cards only. */
@container (min-aspect-ratio: 3 / 2) {
  .door-5 > img {
    object-position: 50% clamp(-35cqw, calc(120cqh - 80cqw), 0px);
  }
}

@media (min-width: 701px) {
  body[data-view="home"] #app { display: block; min-height: 0; }
  :root body[data-view="home"] .doors-main { display: block; padding: 0 32px 24px; }
  body[data-view="home"] .doors-main .door-panels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: calc(100svh - 136px);
    min-height: 420px;
    max-height: none;
  }
  body[data-view="home"] .door { grid-column: auto; height: auto; min-height: 0; }
  body[data-view="home"] .door-bottom { left: 20px; right: 20px; bottom: 20px; padding-right: 0; }
  html body[data-view="home"] .door-bottom > span { font-size: 11px; }
  body[data-view="home"] .door-bottom h2 {
    font-size: clamp(23px, 2.1vw, 32px);
    line-height: 1.08;
    letter-spacing: -.5px;
    margin: 8px 0 0;
    max-width: none;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  :root body[data-view="home"] .doors-main { padding-left: 20px; padding-right: 20px; }
  body[data-view="home"] .doors-main .door-panels { height: calc(100svh - 124px); }
  body[data-view="home"] .door-bottom { left: 14px; right: 14px; bottom: 16px; }
  body[data-view="home"] .door-bottom h2 { font-size: 25px; }
}

@media (max-width: 700px) {
  body[data-view="home"] { padding-bottom: 18px; }
}

@media (min-width: 2560px) {
  body[data-view="home"] .doors-main .door-panels {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }
  body[data-view="home"] .door-bottom { left: 18px; right: 18px; padding-right: 0; }
  body[data-view="home"] .door-bottom h2 { font-size: clamp(24px, 1.5vw, 32px); }
}
