/* Approved mobile lookbook: four photos, without captions or carousel controls. */
.home-mosaic { display: none; }

@media (max-width: 900px) {
  /* Reserve the photo layout while catalog data loads, without flashing the old intro. */
  .hero.home-mosaic-entry {
    height: auto !important;
    min-height: calc(122vw + 3px) !important;
    background: #fff !important;
  }
  .hero.home-mosaic-entry > img,
  .hero.home-mosaic-entry .hero-copy,
  .hero.home-mosaic-entry .hero-shade { display: none !important; }
  .hero.home-mosaic-unavailable { display: none !important; }

  /* Saved design settings use !important; keep this layout self-contained. */
  .hero.has-home-mosaic {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    overflow: hidden;
  }

  .hero.has-home-mosaic > img,
  .hero.has-home-mosaic .hero-copy,
  .hero.has-home-mosaic .hero-shade { display: none !important; }

  .hero.has-home-mosaic > .home-mosaic:not([hidden]) {
    display: grid;
    gap: 3px;
    width: 100%;
    direction: ltr;
  }

  .hero.has-home-mosaic .home-mosaic-row {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    gap: 3px;
    height: 61vw;
    min-height: 0;
  }

  .hero.has-home-mosaic .home-mosaic-row:last-child {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  }

  .hero.has-home-mosaic .home-mosaic-photo {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .hero.has-home-mosaic .home-mosaic-photo > picture { display: block; width: 100%; height: 100%; }
  .hero.has-home-mosaic .home-mosaic-photo > img,
  .hero.has-home-mosaic .home-mosaic-photo > picture > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 40%;
  }

  .hero.has-home-mosaic .home-mosaic-row:last-child .home-mosaic-photo:last-child > img,
  .hero.has-home-mosaic .home-mosaic-row:last-child .home-mosaic-photo:last-child > picture > img {
    object-position: center 47%;
  }

  .hero.has-home-mosaic .home-mosaic-photo:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -5px;
  }

  .hero.has-home-mosaic .home-mosaic-photo:focus-visible::after {
    content: '';
    position: absolute;
    inset: 2px;
    border: 1px solid #171717;
    pointer-events: none;
  }

  .hero.has-home-mosaic + .collection { padding-top: 18px !important; }

  /* Keep the collection heading available to assistive technology. */
  .hero.has-home-mosaic + .collection > .collection-intro {
    position: absolute !important;
    width: 1px !important;
    min-width: 0 !important;
    max-width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    max-height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}
