#gallery-mosaic {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.gallery-images {
  background-color: #fdf6ee;
  padding: clamp(0.35rem, 1vw, 0.6rem) clamp(1rem, 3vw, 2rem)
    clamp(1.25rem, 3vw, 2rem);
  overflow-x: clip;
  box-sizing: border-box;
}

.illuminate-page #gallery-images-section {
  margin-bottom: 0;
}

.illuminate-page #footer-section {
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
}

.illuminate-page .site-footer-wrap {
  margin-top: 0;
  transform: translate3d(0, 0, 0);
}

.gallery-images__inner {
  max-width: min(920px, 94vw);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Pattern: row1 wide+narrow | row2 three equal | row3 narrow+wide | row4 wide+narrow */
.gallery-images__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(6px, 0.85vw, 10px);
  width: 100%;
}

.gallery-images__cell {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}

.gallery-images__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.gallery-images__cell--wide {
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}

.gallery-images__cell--narrow {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
}

.gallery-images__cell--third {
  grid-column: span 2;
  aspect-ratio: 5 / 4;
}

@media (max-width: 1024px) {
  .gallery-images__inner {
    max-width: min(820px, 94vw);
  }

  .gallery-images__cell--wide {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 768px) {
  .gallery-images {
    padding-left: clamp(0.85rem, 4vw, 1.25rem);
    padding-right: clamp(0.85rem, 4vw, 1.25rem);
    padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
  }

  .gallery-images__inner {
    max-width: min(640px, 96vw);
  }

  .gallery-images__grid {
    gap: clamp(5px, 1.2vw, 8px);
  }
}

@media (max-width: 480px) {
  .gallery-images__inner {
    max-width: min(400px, 96vw);
  }

  .gallery-images__grid {
    gap: 5px;
  }

  .gallery-images__cell--wide {
    aspect-ratio: 16 / 10;
  }

  .gallery-images__cell--narrow {
    aspect-ratio: 4 / 5;
  }

  .gallery-images__cell--third {
    aspect-ratio: 1 / 1;
  }
}
