.image-slider-section {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
}

body.has-image-lightbox {
    overflow: hidden;
}

.image-slider-section .glide {
    background-color: transparent;
}

.image-slider {
    position: relative;
}

.image-slider__heading {
    margin-bottom: 1rem;
    text-align: left;
}

.image-slider__heading--spaced {
    margin-bottom: 2rem;
}

.image-slider__heading span {
    display: block;
}

.image-slider__content {
    max-width: 44rem;
    margin: 0 0 2rem;
    text-align: left;
}

.image-slider__slide {
    padding: 0 0 1rem;
}

.image-slider__figure {
    margin: 0;
}

.image-slider__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 0;
}

.image-slider__image--grid {
    transition: transform 0.25s ease;
}

.image-slider__caption {
    margin-top: 0.75rem;
    color: rgba(0, 0, 0, 0.75);
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

.image-slider__bullets {
    padding-bottom: 0;
}

.image-slider__arrows .glide__arrow--left {
    left: 1rem;
}

.image-slider__arrows .glide__arrow--right {
    right: 1rem;
}

.image-slider__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.image-slider__grid-item {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.image-slider__grid-item:hover .image-slider__image--grid {
    transform: scale(1.02);
}

.image-slider__lightbox[hidden] {
    display: none;
}

.image-slider__lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.image-slider__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.image-slider__lightbox-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1rem;
}

.image-slider__lightbox-figure {
    margin: 0;
    max-width: min(92vw, 1600px);
    max-height: 92vh;
}

.image-slider__lightbox-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(92vh - 4rem);
    height: auto;
    margin: 0 auto;
}

.image-slider__lightbox-caption {
    margin-top: 0.75rem;
    color: var(--aok-white);
    text-align: center;
}

.image-slider__lightbox-close,
.image-slider__lightbox-arrow {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 50%;
    background: var(--aok-white);
    color: var(--aok-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.image-slider__lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    line-height: 1;
}

.image-slider__lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
}

.image-slider__lightbox-arrow--prev {
    left: 1rem;
}

.image-slider__lightbox-arrow--next {
    right: 1rem;
}

@media (min-width: 768px) {
    .image-slider__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 979px) {
    .image-slider-section {
        padding: 4rem 0;
    }

    .image-slider__heading--spaced {
        margin-bottom: 3rem;
    }

    .image-slider__content {
        margin-bottom: 3rem;
    }

    .image-slider__slide {
        padding-bottom: 1.5rem;
    }

    .image-slider__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .image-slider__lightbox-dialog {
        padding: 2rem 5rem;
    }

    .image-slider__lightbox-arrow--prev {
        left: 2rem;
    }

    .image-slider__lightbox-arrow--next {
        right: 2rem;
    }
}

@media (min-width: 1440px) {
    .image-slider-section {
        padding: 6rem 0;
    }
}
