/* Compact collection browsing; the full-size design preview is unchanged. */
.imfa-showcase .cin-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
}

.imfa-showcase .cin-design:nth-child(even) {
  padding-top: 0;
}

.imfa-showcase .cin-design-photo {
  aspect-ratio: 4 / 5;
}

/* A slimmer masthead, retaining the existing logo and controls. */
.cin-masthead > .cin-header {
  height: 130px;
}

.cin-masthead > .cin-header.has-scrolled {
  height: 116px;
}

.imfa-showcase .cin-collections {
  scroll-margin-top: calc(130px + var(--cin-ribbon-height));
}

@media (max-width: 1100px) {
  .imfa-showcase .cin-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .cin-masthead > .cin-header {
    height: 124px;
  }

  .cin-masthead > .cin-header.has-scrolled {
    height: 108px;
  }

  .imfa-showcase .cin-collections {
    scroll-margin-top: calc(124px + var(--cin-ribbon-height));
  }
}

@media (max-width: 760px) {
  .imfa-showcase .cin-gallery {
    gap: 32px 14px;
  }

  .cin-masthead > .cin-header {
    height: 100px;
  }

  .cin-masthead > .cin-header.has-scrolled {
    height: 88px;
  }

  .imfa-showcase .cin-collections {
    scroll-margin-top: calc(100px + var(--cin-ribbon-height));
  }
}
