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

.swiper .swiper-wrapper {
  padding-bottom: var(--swiper-wrapper-padding-bottom, 2rem);
}

.swiper .swiper-navigation .play-btn {
    border: inherit;
    background: inherit;
}

.swiper .swiper-navigation .play-btn.is-active::before {
    -webkit-mask: url("../assets/pause.svg") no-repeat 100% 100%;
    mask: url("../assets/pause.svg") no-repeat 100% 100%;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.swiper .swiper-navigation .play-btn::before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    -webkit-mask: url("../assets/play.svg") no-repeat 100% 100%;
    mask: url("../assets/play.svg") no-repeat 100% 100%;
    -webkit-mask-size: contain;
    mask-size: contain;
    background: #000;
}

.swiper .swiper-navigation .play-btn{
    display: flex;
    justify-self: center;
    margin-bottom: 7px;
}

.swiper-slide-duplicate {
  pointer-events: none;   
}

.swiper-slide-duplicate a,
.swiper-slide-duplicate button {
  outline: none;
}

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

.pswp__custom-caption {
  font-size: 16px;
  width: calc(100% - 32px);
  max-width: 400px;
  padding: 2px 8px;
  border-radius: 4px;
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  background: black;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 10px 20px;
  opacity: 0;
}
.pswp__custom-caption a {
  color: #000;
  text-decoration: underline;
}


/* Swiper Vertical */
.swiper.swiper-vertical {
  height: auto;
  margin-bottom: 1rem;
}

.swiper-vertical .swiper-slide {
  height: auto !important;
}

.swiper-vertical .swiper-wrapper {
  display: flex;
}

.swiper-vertical .swiper-wrapper {
  flex-direction: column;
}

@media (min-width: 1024px) {
  .swiper.swiper-vertical {
    max-height: 100%;
    overflow: hidden;
  }
}

/* Affichage description au survol */
.carousel-image {
  position: relative;
  display: inline-block;
}

/* description visible masquée par défaut */
.description {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.4;
  box-sizing: border-box;

  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* optionnel */
}

/* affichage au hover/focus */
.carousel-image:hover .description,
.carousel-image:focus-within .description {
  opacity: 1;
  pointer-events: auto;
}