.c-carousel {
  --scrollbar-track: #d9d9d9;
  --scrollbar-thumb: #161616;
}
@media (prefers-color-scheme: dark) {
  body:not([data-color-scheme*=light]) .c-carousel {
    --scrollbar-track: #161616;
    --scrollbar-thumb: #808080;
  }
}
.c-carousel body[data-color-scheme*=dark] {
  --scrollbar-track: #161616;
  --scrollbar-thumb: #808080;
}
.c-carousel--lightbox {
  background-color: var(--background-color-gray);
}
.c-carousel--lightbox img {
  margin-bottom: 0 !important;
}
.c-carousel--lightbox .c-carousel__arrow {
  background-color: rgba(13, 13, 13, 0.6);
  z-index: 99;
}
.c-carousel--lightbox .c-carousel__name {
  color: var(--body-color);
  text-decoration: none;
}
.c-carousel--lightbox .c-carousel__expanded picture {
  touch-action: none;
  z-index: 80;
}
.c-carousel--figcaption .c-carousel__item::after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 50%;
  background: var(--ui-gradient, linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, 0.3) 25.13%, rgba(13, 13, 13, 0.8) 100%));
}
.c-carousel__container {
  scroll-snap-type: x mandatory;
  overflow-x: auto;
}
.c-carousel__container {
  scrollbar-width: thin;
}
.c-carousel__container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.c-carousel__container::-webkit-scrollbar-track, .c-carousel__container::-webkit-scrollbar-thumb {
  -webkit-border-radius: 8px;
}
.c-carousel__container::-webkit-scrollbar-track {
  background: var(--background-color-light);
}
.c-carousel__container::-webkit-scrollbar-thumb {
  background: var(--theme-color-light);
}
.c-carousel__container::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color);
}
.c-carousel__item {
  scroll-snap-align: center;
  min-width: 80%;
}
@media screen and (min-width: 740px) {
  .c-carousel__item {
    min-width: 20%;
  }
}
.c-carousel__expanded {
  height: 100%;
}
.c-carousel__expanded a {
  z-index: 9;
}
.c-carousel__full-img {
  max-height: 90vh;
  opacity: 0;
  transition: opacity 0.5s linear;
  border-radius: 8px;
}
.c-carousel__icon-close {
  top: -12px;
  right: -12px;
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 1;
  background: #0d0d0d;
  z-index: 999;
}
.c-carousel__overlay {
  width: 0;
  height: 0;
  background-color: rgba(13, 13, 13, 0.8);
  z-index: 999;
}
.c-carousel__overlay:target {
  width: 100%;
  height: 100%;
}
.c-carousel__overlay:target img, .c-carousel__overlay:target .btn-close {
  opacity: 1;
}