.gallery-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.gallery-slides {
    overflow: visible;
}

.gallery-slides .slick-track {
    display: flex;
    align-items: stretch;
}

.gallery-slides .slick-slide {
    height: auto;
    display: flex;
    transition: opacity 0.3s ease;
}

.gallery-slides .slick-slide:not(.slick-current) {
    opacity: 0.5;
}

.gallery-card {
    width: 1033px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
    flex-shrink: 0;
}

.gallery-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Styles */
.gallery-slider-nav {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1033px;
    height: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 20;
}

.gallery-slider-nav .slick-arrow {
    width: 50px;
    height: 50px;
    padding: 0;
    background-color: white;
    border: none;
    border-radius: 50%;
    background-image: url("award-arrow.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    pointer-events: auto;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-slider-nav .slick-arrow.slick-disabled {
    opacity: 0.5;
}

.gallery-slider-nav .prev {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
}

.gallery-slider-nav .next {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .gallery-card {
        width: 90vw;
    }

    .gallery-slider-nav {
        width: 90vw;
    }
}

@media (max-width: 768px) {
    .gallery-slider-nav .slick-arrow {
        width: 40px;
        height: 40px;
        background-size: 16px;
    }

    .gallery-slider-nav .prev {
        left: -20px;
    }

    .gallery-slider-nav .next {
        right: -20px;
    }
}

/* ==========================================================================
   Contained Slideshow layout — single image with dots, no arrows.
   Selected via the "Layout Style" ACF field.
   ========================================================================== */

.gallery-slider--contained-slideshow {
    width: auto;
    margin-left: 0;
    overflow: visible;
}

.gallery-slider--contained-slideshow .gallery-card {
    width: 100%;
    margin: 0;
    border-radius: 0;
}

/* No side previews to dim in this layout */
.gallery-slider--contained-slideshow
    .gallery-slides
    .slick-slide:not(.slick-current) {
    opacity: 1;
}

.gallery-slider--contained-slideshow .gallery-card img {
    width: 100%;
    aspect-ratio: 564 / 355;
    object-fit: cover;
}

.gallery-slider--contained-slideshow .gallery-slider-dots {
    margin-top: 60px;
}

.gallery-slider--contained-slideshow .gallery-slider-dots .slick-dots {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 51px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gallery-slider--contained-slideshow .gallery-slider-dots .slick-dots li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin: 0;
}

.gallery-slider--contained-slideshow
    .gallery-slider-dots
    .slick-dots
    li
    button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.gallery-slider--contained-slideshow
    .gallery-slider-dots
    .slick-dots
    li
    button:before {
    content: "";
    display: block;
    /* slick-theme pins this pseudo element to the top-left with position:absolute */
    position: static;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--dark-blue);
    opacity: 0.25;
}

.gallery-slider--contained-slideshow
    .gallery-slider-dots
    .slick-dots
    li.slick-active
    button:before {
    opacity: 1;
}
