/* Swiper container constraints to prevent zoom/expansion issues */
.swiper {
    overflow: hidden !important;
    max-width: 100%;
    max-height: 100vh;
}

.swiper-wrapper {
    max-width: 100%;
    max-height: 100vh;
}

/* Disable zoom functionality */
.swiper-zoom-container {
    display: block !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

.swiper-slide{
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    overflow: hidden;
    .slider-content-wrapper{
        position: relative;
        overflow: hidden;
        max-width: 100%;
        max-height: 70vh;
        img{
            width: 100%;
            max-width: 100%;
            height: auto;
            max-height: 70vh;
            object-fit: cover;
            display: block;
            transform: none !important;
            transition: none !important;
        }
        .button-wrapper{
            position: absolute;
            width: calc(100% - 10rem);
            height: auto;
            left: 50%;
            transform: translateX(-50%);
            bottom: 20%;
            z-index: 10;
            text-align: center;
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: start;
            align-items: center;
        }

        .button-wrapper a {
            display: inline-block;
            text-decoration: none;
        }

        button{
            padding: 0.75rem 1.5rem;
            font-size: 1.25rem;
            background-color: #AAD8F4;
            color: var(--wp--preset--color--lrdv-dark);
            border-radius: 0.125rem;
            border: none;
            outline: none;
            cursor: pointer;
            transition: background-color 0.3s ease;
            white-space: nowrap;
            max-width: 100%;
            word-wrap: break-word;
            flex-shrink: 0;
        }

        button:hover {
            background-color: #9BC5E8;
        }

        button:focus {
            outline: 2px solid var(--wp--preset--color--lrdv-dark);
            outline-offset: 2px;
        }

        /* Responsive adjustments for multiple buttons */
        @media (max-width: 768px) {
            .button-wrapper {
                flex-direction: column;
                gap: 0.5rem;
            }
            
            button {
                font-size: 1rem;
                padding: 0.5rem 1rem;
            }
        }
    }
}


.scroll-to-bottom{
    left: 50%;
    bottom: 10%;
    position: absolute;
    z-index: 10;
    display: grid;
    place-content: center;
    display: none;
    button{
        border-radius: 9999px;
        padding: 0.75rem;
        border: none;
        background-color: #FEBC12;
    }
}


@media (min-width: 992px){
    .scroll-to-bottom{
        display: block;
    }
}

.pagination.swiper-pagination{ 
    bottom: 10%;
    width: fit-content;
    left: 5rem;
    .swiper-pagination-bullet{
        border: solid 0.125rem white;
        border-spacing: 0.125rem;
        background-color: transparent;
        opacity: 1;
        &.swiper-pagination-bullet-active{
            background-color: white;
        }
    }
}

/* Wide alignment styles */
.alignwide {
    max-width: var(--wp--style--global--wide-size, 1280px);
    margin-left: auto;
    margin-right: auto;
}

.alignwide .swiper {
    width: 100%;
}

.alignwide .swiper-slide .slider-content-wrapper img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}

/* Ensure pagination and controls work with wide alignment */
.alignwide .pagination.swiper-pagination {
    left: 2rem;
}

.alignwide .scroll-to-bottom {
    left: 50%;
    transform: translateX(-50%);
}