.collection-page {
  min-height: calc(100vh - 7.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #fff;
}

.collection-container {
  width: min(calc(100% - 3rem), 88rem);
  margin-inline: auto;
}

.collection-heading {
  margin: -1px -1px clamp(2rem, 3vw, 3rem);
  padding: clamp(1.25rem, 2.25vw, 2rem) 1rem;
  color: var(--paper);
  background: var(--anthracite);
  border: 1px solid transparent;
  text-align: center;
}

.collection-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 4vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
}

.collection-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.16fr);
  grid-template-areas:
    "swatches scarf scarf look look"
    "dress zebra brown look look"
    "logo logo fabric runway-floral runway-ochre";
  gap: clamp(0.75rem, 1.7vw, 1.5rem);
  aspect-ratio: 1.28;
}

.collection-tile {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.collection-tile > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.collection-swatches { grid-area: swatches; }
.collection-scarf { grid-area: scarf; }
.collection-look { grid-area: look; }
.collection-dress { grid-area: dress; }
.collection-zebra { grid-area: zebra; }
.collection-brown { grid-area: brown; }
.collection-logo { grid-area: logo; }
.collection-fabric { grid-area: fabric; }
.collection-runway-floral { grid-area: runway-floral; }
.collection-runway-ochre { grid-area: runway-ochre; }

.collection-swatches > img,
.collection-look > img,
.collection-dress > img,
.collection-runway-floral > img,
.collection-runway-ochre > img {
  object-fit: contain;
}

.collection-logo {
  display: grid;
  place-items: center;
}

.collection-logo > img {
  width: min(96%, 34rem);
  height: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.86;
}

@media (max-width: 900px) {
  .collection-page {
    min-height: calc(100vh - 5.8rem);
  }

  .collection-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "swatches look"
      "scarf scarf"
      "dress zebra"
      "brown fabric"
      "logo logo"
      "runway-floral runway-ochre";
    aspect-ratio: auto;
    align-items: stretch;
  }

  .collection-swatches,
  .collection-look {
    aspect-ratio: 4 / 5;
  }

  .collection-scarf {
    aspect-ratio: 1508 / 957;
  }

  .collection-dress,
  .collection-zebra {
    aspect-ratio: 4 / 5;
  }

  .collection-brown,
  .collection-fabric {
    aspect-ratio: 3 / 4;
  }

  .collection-logo {
    min-height: 10rem;
    padding-block: 1.5rem;
  }

  .collection-logo > img {
    width: min(86%, 31rem);
  }

  .collection-runway-floral,
  .collection-runway-ochre {
    aspect-ratio: 4 / 7;
  }
}

@media (max-width: 620px) {
  .collection-page {
    padding-bottom: 1.5rem;
  }

  .collection-container {
    width: calc(100% - 2rem);
  }

  .collection-heading {
    margin-bottom: 1.8rem;
    padding-block: 1.25rem;
  }

  .collection-heading h1 {
    font-size: clamp(2.55rem, 10vw, 3.35rem);
  }

  .collection-gallery {
    gap: 0.75rem;
  }

  .collection-logo {
    min-height: 8rem;
  }
}
