.gforce-editor-slider {
    display: block;
    width: 100%;
    max-width: 1280px;
    position: relative;
    margin: 32px 0;
}

.gforce-editor-slider__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #111111;
    height: min(500px, 70vh);
    max-height: 500px;
}

.gforce-editor-slider__viewport .swiper-wrapper {
    height: 100%;
}

.gforce-editor-slider__slide {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gforce-editor-slider__zoom-trigger {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.gforce-editor-slider__image {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 auto;
    object-fit: cover !important;
    object-position: center;
}

.standalone-article__content .gforce-editor-slider__zoom-trigger {
    width: 100% !important;
}

.standalone-article__content .gforce-editor-slider__image {
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
}

.gforce-editor-slider__caption {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #5f5f5f;
    text-align: center;
}

.gforce-editor-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: #000;
    transform: translateY(-50%);
    cursor: pointer;
}

.gforce-editor-slider__nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 12px;
    background: url('../images/icons/curve-arrow-bottom-white.svg') center / contain no-repeat;
}

.gforce-editor-slider__nav--prev {
    left: 16px;
}

.gforce-editor-slider__nav--prev::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

.gforce-editor-slider__nav--next {
    right: 16px;
}

.gforce-editor-slider__nav--next::before {
    transform: translate(-50%, -50%) rotate(-90deg);
}

.gforce-editor-slider__pagination {
    margin-top: 16px;
    text-align: center;
}

.gforce-editor-slider__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #c9c9c9;
    opacity: 1;
}

.gforce-editor-slider__pagination .swiper-pagination-bullet-active {
    background: #fe5000;
}

.gforce-editor-slider__lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.gforce-editor-slider__lightbox[hidden] {
    display: none !important;
}

.gforce-editor-slider__lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.gforce-editor-slider__lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(1200px, calc(100vw - 64px));
    max-height: calc(100vh - 64px);
}

.gforce-editor-slider__lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 64px);
    width: auto;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.gforce-editor-slider__lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    color: #ffffff;
    background: rgba(17, 17, 17, 0.8);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
}

body.gforce-editor-slider-lightbox-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .gforce-editor-slider {
        margin: 24px 0;
    }

    .gforce-editor-slider__nav {
        width: 40px;
        height: 40px;
    }

    .gforce-editor-slider__nav--prev {
        left: 10px;
    }

    .gforce-editor-slider__nav--next {
        right: 10px;
    }

    .gforce-editor-slider__lightbox {
        padding: 16px;
    }

    .gforce-editor-slider__lightbox-dialog,
    .gforce-editor-slider__lightbox-image {
        max-height: calc(100vh - 32px);
    }
}
