/* Root carousel container:
        - Fills its parent
        - Parent decides aspect/height
        */
.pl-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Track of slides */
.pl-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

/* Each slide: full size of carousel */
.pl-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Images fill slide */
.pl-carousel__slide img {
    display: block;
    /* visibility: hidden; */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrows */
.pl-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    user-select: none;
    opacity: 0;
}

.pl-carousel:hover .pl-carousel__arrow {
    opacity: 1;
}


.pl-carousel__arrow--prev {
    left: 0.5rem;
}

.pl-carousel__arrow--next {
    right: 0.5rem;
}

.pl-carousel__arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Dots */
.pl-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
}

.pl-carousel__dots button {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
}

.pl-carousel__dots button.is-active {
    background: rgba(255, 255, 255, 0.95);
}

/* Optional: hide arrows on very small screens if desired */
/*
        @media (max-width: 480px) {
        .pl-carousel__arrow {
            display: none;
        }
        }
        */