.dlm-gallery-slider {
    width: 100%;
    outline: none;
}

.dlm-gallery-slider__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.dlm-gallery-slider__track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform .5s ease;
    will-change: transform;
}

.dlm-gallery-slider__slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none;
}

.dlm-gallery-slider__slide.is-active {
    pointer-events: auto;
}

.dlm-gallery-slider__image-button {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.dlm-gallery-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dlm-gallery-slider__dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 6px 8px;
}

.dlm-gallery-slider__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .58);
    cursor: pointer;
    transition: width .22s ease, background-color .22s ease, opacity .22s ease;
}

.dlm-gallery-slider__dot.is-active {
    width: 26px;
    background: #fff;
}

.dlm-gallery-slider__dot:focus-visible,
.dlm-gallery-slider__image-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.dlm-gallery-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, .9);
}

.dlm-gallery-lightbox.is-open {
    display: flex;
}

.dlm-gallery-lightbox__image {
    display: block;
    max-width: min(94vw, 1800px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dlm-gallery-lightbox__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

body.dlm-gallery-lightbox-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .dlm-gallery-slider__track,
    .dlm-gallery-slider__dot {
        transition: none;
    }
}
