.view-latest-gallery-album-carousel {
  max-width: 1265px;
  margin: 0 auto clamp(36px, 5vw, 72px);
  padding: 0 22px clamp(16px, 3vw, 30px);
}

.cc26-latest-gallery-carousel-view {
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.view-latest-gallery-album-carousel .views-row,
.cc26-gallery-carousel-album {
  margin: 0;
}

.cc26-gallery-carousel {
  position: relative;
}

.cc26-gallery-carousel__viewport {
  overflow: visible;
}

.cc26-gallery-carousel__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc26-gallery-carousel__slide {
  min-width: 0;
  margin: 0;
  list-style: none;
}

.cc26-gallery-carousel__link {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  background: #e9f0f5;
  box-shadow: 0 12px 34px rgba(7, 26, 51, .1);
  transition: transform .28s ease, box-shadow .28s ease;
}

.cc26-gallery-carousel__link img {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  transition: transform .28s ease;
}

.cc26-gallery-carousel__link:hover,
.cc26-gallery-carousel__link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(7, 26, 51, .18);
}

.cc26-gallery-carousel__link:hover img {
  transform: scale(1.025);
}

.cc26-gallery-carousel__link:focus-visible,
.cc26-gallery-carousel__controls button:focus-visible {
  outline: 3px solid #ef6b9a;
  outline-offset: 4px;
}

.cc26-gallery-carousel__controls {
  display: none;
}

.cc26-gallery-carousel.is-enhanced .cc26-gallery-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 26, 51, .35) transparent;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
}

.cc26-gallery-carousel.is-enhanced .cc26-gallery-carousel__track {
  display: flex;
}

.cc26-gallery-carousel.is-enhanced .cc26-gallery-carousel__slide {
  flex: 0 0 calc((100% - 42px) / 4);
  scroll-snap-align: start;
}

.cc26-gallery-carousel.is-enhanced .cc26-gallery-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.cc26-gallery-carousel__controls button {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #071a33;
  color: #fff;
  box-shadow: 0 10px 26px rgba(7, 26, 51, .2);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

.cc26-gallery-carousel__controls button:hover {
  background: #d94f85;
}

.cc26-gallery-carousel__controls button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

@media (max-width: 900px) {
  .cc26-gallery-carousel__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cc26-gallery-carousel.is-enhanced .cc26-gallery-carousel__slide {
    flex-basis: calc((100% - 14px) / 2);
  }
}

@media (max-width: 600px) {
  .view-latest-gallery-album-carousel {
    padding-inline: 16px;
  }

  .cc26-gallery-carousel__track {
    grid-template-columns: 1fr;
  }

  .cc26-gallery-carousel.is-enhanced .cc26-gallery-carousel__slide {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc26-gallery-carousel__link,
  .cc26-gallery-carousel__link img {
    transition: none;
  }
}
