/* Generic Fancyapps carousel gallery */
.tdb-gallery-carousel {
  --f-carousel-gap: 0.75rem;
  --f-carousel-slide-width: calc((100% - 2.25rem) / 4);
/*  flex-direction: row; */
}

/* Slide thumbnail */
.tdb-gallery-carousel .f-carousel__slide {
  cursor: pointer;
  border-radius: var(--bs-border-radius-lg, .5rem);
  overflow: hidden;
  background: var(--bs-light-subtle, #f8f9fa);
  aspect-ratio: 4 / 3;
}

/* Works for landscape and portrait sources */
.tdb-gallery-carousel .f-carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .2s ease, filter .2s ease;
}

.f-carousel {
  --f-arrow-pos: 10px;

  --f-arrow-width: 2rem;
  --f-arrow-height: 2rem;

  --f-arrow-svg-width: 1rem;
  --f-arrow-svg-height: 1rem;
  --f-arrow-svg-stroke-width: 2.5;

  --f-arrow-color: var(--bs-dark);
  --f-arrow-shadow: 0 6px 12px -2px rgb(50 50 93 / 25%), 0 3px 7px -3px rgb(0 0
          0 / 30%);

  --f-arrow-border-radius: 50%;
  --f-arrow-bg: rgba(255, 255, 255, 0.5);
  --f-arrow-hover-bg: #f9f9f9;
  --f-arrow-active-bg: #f0f0f0;
}

.tdb-gallery-carousel .f-carousel__slide:hover img,
.tdb-gallery-carousel .f-carousel__slide:focus-visible img {
  transform: scale(1.03);
}

.tdb-gallery-carousel .f-carousel__slide:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 3px;
}

/* 3 visible thumbnails */
@media (max-width: 991.98px) {
  .tdb-gallery-carousel {
    --f-carousel-slide-width: calc((100% - 1.5rem) / 3);
  }
}

/* 2 visible thumbnails */
@media (max-width: 575.98px) {
  .tdb-gallery-carousel {
    --f-carousel-slide-width: calc((100% - .75rem) / 2);
  }
}
