/* Dynamic Gallery Styles */
/* These styles help maintain the original gallery design while enabling dynamic loading */

/* Gallery slide styling with aspect ratio control */
.gallery-item .gallery-img {
    aspect-ratio: 16/10; /* Control slide proportions - can be changed to 4/3, 3/2, etc. */
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.gallery-item .gallery-img img,
.gallery-item .gallery-img picture,
.gallery-item .gallery-img picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom pagination styling */
#custom-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 22px;
    font-weight: 500;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#custom-pagination .current {
    font-weight: 700;
}

#custom-pagination .divider {
    margin: 0 5px;
}

/* Override Slick arrow positioning to place them on either side of the counter */
.gallery-slider .slick-arrow.slick-next {
    right: calc(50% - 140px);
}

.gallery-slider .slick-arrow.slick-prev {
    left: calc(50% - 140px);
}

@media (max-width: 767px) {
    .gallery-slider .slick-arrow.slick-next {
        right: calc(50% - 100px);
    }

    .gallery-slider .slick-arrow.slick-prev {
        left: calc(50% - 100px);
    }
}
