/* === Carousel component === */

.swiper-slide:has(.video--gif),
.swiper-slide:has(.img--contain) {
  padding: 24px;
}

.swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.swiper .swiper-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.swiper .swiper-slide img.img--contain {
  object-fit: contain;
}

/* Arrows */

.swiper .arrow {
  width: 40px;
  height: 40px;
  background-color: var(--brown);
  position: absolute;
  bottom: 0;
  outline: none;
  z-index: 100;
  cursor: pointer;
}

.swiper .arrow:focus {
  outline: none;
  background-color: var(--blue);
}

.swiper .arrow img {
  width: 100%;
  height: 100%;
}

.swiper .arrow--prev {
  left: 0;
}

.swiper .arrow--next {
  right: 0;
}

/* Video controls */

.video__button {
  width: 40px;
  height: 40px;
  background-color: var(--brown);
  position: absolute;
  z-index: 100;
  cursor: pointer;
}

.video__button img {
  width: 100%;
  height: 100%;
  position: absolute;
  pointer-events: none;
}

.video__button.button--sound {
  top: 0;
  left: 0;
}

.button--sound .sound-on {
  visibility: visible;
  opacity: 1;
}

.video--sound-off .button--sound .sound-on {
  visibility: hidden;
  opacity: 0;
}

.button--sound .sound-off {
  visibility: hidden;
  opacity: 0;
}

.video--sound-off .button--sound .sound-off {
  visibility: visible;
  opacity: 1;
}

.video__button.button--play {
  top: calc(50% - 20px);
  left: calc(50% - 20px);
  pointer-events: none;
  transition: .2s;
  opacity: 1;
  visibility: visible;
}

.video--playing .video__button.button--play {
  opacity: 0;
  visibility: hidden;
}