/**
 * Case Study Gallery component.
 */

.c--cs-gallery {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.cs-gallery__cell {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 15rem;
  scroll-snap-align: start;
}

.cs-gallery__item {
  display: block;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  border-radius: 0.25rem;
  cursor: zoom-in;
}

.cs-gallery__item img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 1rem;
}

.cs-gallery__item:hover img {
  transform: scale(1.03);
}

@media (max-width: 47.9375rem) {
  .cs-gallery__cell {
    flex-basis: 80%;
  }
}

/* No caption / filename in the lightbox. */
.lg-outer .lg-sub-html {
  display: none;
}
