/* Carousel wrapper styles */
.pw-carousel {
    position: relative;
}

.pw-carousel-wrapper {
    position: relative;
}

/* Embla viewport - no padding needed, peek happens naturally with containScroll: false */
.pw-carousel-swiper {
    overflow: hidden;
    box-sizing: border-box;
}

/* Embla container - flex layout for slides */
.swiper-wrapper {
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    transition-timing-function: ease-in-out;
    margin-left: calc(var(--gap, 20px) * -1);
}

/* Individual slides */
.swiper-slide {
    height: auto;
    min-width: 0;
    padding-left: var(--gap, 20px);
}

/* Responsive slide widths - override editor-set widths */
/* Mobile: all slides full width */
@media (max-width: 767px) {
    .swiper-slide {
        width: 90% !important;
        flex: 0 0 90%;
    }
}

/* Tablet: 25% slides become 30%, others proportional */
@media (min-width: 768px) and (max-width: 1023px) {
    .swiper-slide[style*="width: 25%"],
    .swiper-slide[style*="width:25%"] {
        width: 30% !important;
        flex: 0 0 30%;
    }

    /* Optional: adjust other widths proportionally */
    .swiper-slide[style*="width: 33.33%"],
    .swiper-slide[style*="width:33.33%"] {
        width: 40% !important;
        flex: 0 0 40%;
    }

    .swiper-slide[style*="width: 50%"],
    .swiper-slide[style*="width:50%"] {
        width: 60% !important;
        flex: 0 0 60%;
    }
}

/* Navigation container */
.pw-carousel-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Navigation arrows */
.pw-carousel-arrow {
    border: 0;
    background: transparent;
    padding: 0.5rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.pw-carousel-arrow:hover {
    opacity: 0.7;
}

.pw-carousel-arrow:disabled,
.pw-carousel-arrow.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pw-carousel-arrow img {
    max-width: 48px;
    max-height: 48px;
}

.pw-carousel-arrow span {
    font-size: 1.5rem;
    line-height: 1;
}