/* ====================================
   Carousel Layout & Slide Structure
==================================== */

body {
  overflow-x: hidden;
}
.entry-content {overflow-x: hidden;}

.artist-carousel {
  position: relative;
}

.artist-carousel .swiper-container {
  overflow: visible;
}

.artist-carousel .swiper-wrapper {
  align-items: stretch;
}

.artist-carousel .swiper-slide {
  position: relative;
  flex-shrink: 0;
  width: clamp(300px, 90vw, 770px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.artist-carousel .carousel-text-container {
    max-width: 100%;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.artist-carousel .carousel-text-container h4 {
  text-transform: uppercase;
  margin-top: 0px;
  margin-bottom: 18px;
}
.artist-carousel .carousel-text-container p {
  margin-top: 0px;
}

/* Slide Inner Wrapper */
.artist-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ====================================
   Image
==================================== */
.artist-slide img {
  width: 100%;
  height: clamp(12.313rem, 2.471rem + 40.374vw, 40.625rem);
  object-fit: cover ;
}
.artist-slide figure {
  position: relative;
  margin-bottom: 0px;
  max-width: 100%;
}
.artist-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 5px 2.5%;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 0.9em;
  width: 95%;
  max-width: 100%;
}
.artist-slide figcaption {
    position: relative;
    background: none;
    font-size: var(--wp--preset--font-size--body-small);
    font-family: var(--wp--preset--font-family--aktiv-grotesk);
    color: var(--wp--preset--color--primary-text);
    padding: 8px 0;
    max-width: 700px;
}
.artist-slide .carousel-text > * {
margin-top: 0;
margin-bottom: 0;
}
.artist-slide img.carousel-just-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: none;
}

/* ====================================
   Navigation Controls
==================================== */

.swiper-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-block-start: 2rem !important;
  gap: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Arrows */
.swiper-button-next,
.swiper-button-prev {
  color: var(--wp--preset--color--secondary);
  font-size: 24px;
  width: auto;
  height: auto;
  position: static;
  margin: 0;
  cursor: pointer;
}

.white .swiper-button-next,
.white .swiper-button-prev {
  color: #fff;
}

/* Override Swiper’s default icons if needed */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px;
}

/* Dots */
.swiper-pagination {
  display: flex;
  gap: 0.5rem;
position: inherit;
width: auto !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--wp--preset--color--secondary);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--wp--preset--color--secondary);
  border-radius: 10px;
  width: 32px;
}

.white .swiper-pagination-bullet {
  border: 2px solid #fff;
}
.white .swiper-pagination-bullet-active {
  background: #fff;
  border-radius: 10px;
  width: 32px;
}


/* ====================================
   Responsive
==================================== */
@media screen and (max-width: 768px) {
  .artist-carousel .swiper-slide {
    max-width: 90%;
    margin: 0 auto;
  }
}


/** 
 * Stretch styles
  * These styles ensure that the carousel items/text stretch to fill the available space
 */
.artist-carousel .swiper-wrapper {
  display: flex;
  align-items: stretch;
}
.artist-carousel .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}
.artist-carousel .swiper-wrapper .swiper-slide .artist-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  flex-grow: 1;
}
.artist-carousel .swiper-wrapper .swiper-slide .artist-slide figure {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.artist-carousel .swiper-wrapper .swiper-slide .artist-slide figure .carousel-text-container {
  flex-grow: 1;
}
/** end stretch styles **/