/* слайдер */
.modal-images.show {
    display: flex;
}

.modal-content-info {
    display: flex;
    gap: 24px;
    flex: 1;
}

.modal-images .modal-content {
    padding: 48px 20px;
}

.modal-images-content-thumbnails {
    width: 283px;
    display: flex;
    flex-direction: column;

    gap: 24px;
}

.modal-images-content-thumbnails-mini {
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    overflow-y: auto;
}

.modal-images-content-thumbnails-mini::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.modal-images-body-thumbnail {
    width: 100%;
    height: 150px;
    opacity: 50%;

    cursor: pointer;
}

.modal-images-body-thumbnail.d3 {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-foreground-opacity);
}

.modal-images-body-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.modal-images-body-thumbnail.d3 img {
    width: 49.69px;
    height: 49.92px;

    object-fit: contain;
}

.modal-images-body-thumbnail.active {
    opacity: 100%;
}

.modal-images-body-thumbnail.active.d3 {
    border: 1px solid var(--color-foreground-opacity);
}

.modal-images-content-main {
    flex: 1;
    position: relative;
}

.modal-images-content-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-images-content-main .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 60px;
    border-radius: 9999px;
    background-color: var(--color-foreground-primary);

    position: absolute;
    top: calc(100% / 2 - 60px / 2);

    cursor: pointer;
}

.modal-images-content-main .arrow.next {
    right: 32px;
}

.modal-images-content-main .arrow.prev {
    transform: rotate(-180deg);
    left: 32px;
}

.modal-images-content-main .arrow div {
    width: 31px;
    height: 15px;
    background-image: url(/static/img/general/arrow-right-light-icon.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

.modal-images-content-main .arrow.dis {
    opacity: 50%;
}

/* Адаптация на маленькие экраны (< 1920)*/
/* 1440 */
@media screen and (max-width: 1575px) {
    .modal-images .modal-content {
        padding: 96px 20px;
    }

    .modal-images-content-thumbnails {
        width: 233px;
    }

    .modal-images-body-thumbnail {
        height: 130px;
    }

    .modal-images-body-thumbnail.d3 img {
        width: 40.37px;
        height: 40.56px;
    }
}

/* 1280 */
@media screen and (max-width: 1280px) {
    .modal-images .modal-content {
        padding: 72px 20px;
    }

    .modal-images-content-thumbnails {
        width: 166px;
    }

    .modal-images-body-thumbnail {
        height: 100px;
    }

    .modal-images-body-thumbnail.d3 img {
        width: 31.2px;
        height: 31.2px;
    }

    .modal-images-content-main .arrow {
        width: 64px;
        height: 48px;

        top: calc(100% / 2 - 48px / 2);
    }

    .modal-images-content-main .arrow.next {
        right: 24px;
    }

    .modal-images-content-main .arrow.prev {
        left: 24px;
    }
}

/* 768 */
@media screen and (max-width: 1200px) {
    .modal-content-info {
        flex-direction: column-reverse;
        gap: 32px;
        width: 100%;
        height: 100%;
    }

    .modal-images-content-main {
        max-height: calc(100% - 122px - 32px);
    }

    .modal-images-content-thumbnails {
        width: 100%;
        height: 122px;
        flex-direction: row;

        gap: 8px;
    }

    .modal-images-content-thumbnails-mini {
        flex-direction: row;
        gap: 8px;
        width: 100%;
        overflow-y: hidden;
        overflow-x: auto;
    }

    .modal-images-body-thumbnail {
        width: 165.62px;
        height: 100%;
        flex-shrink: 0;
    }

    .modal-images-content-main .arrow {
        display: none;
    }
}

/* 375 */
@media screen and (max-width: 725px) {
    .modal-content-info {
        gap: 16px;
    }

    .modal-images .modal-content {
        padding: 12px;
    }

    .modal-content-info {
        max-height: calc(100% - 24px - 66px);
    }

    .modal-images-content-main {
        max-height: calc(100% - 80px - 16px);
    }

    .modal-images-content-thumbnails {
        height: 80px;
    }

    .modal-images-body-thumbnail {
        width: 132.5px;
    }

    .modal-images-body-thumbnail.d3 img {
        width: 24.96px;
        height: 24.96px;
    }
}