img[data-modal-slider-item] {
    display: none;
}

.modal-slider {
    background-color: rgba(0,0,0,.9);
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;

    & .modal-container {
        height: 100dvh;
        width: 100%;
        position: relative;
        padding: calc(33px + 20px) 60px 20px 60px;

        & .slider-container {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
    
            & .item {
                align-items: center;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                height: 100%;
                opacity: 0;
                position: absolute;
                width: 100%;
                
                & img {
                    height: 100%;
                }

                &.show {
                    opacity: 1;
                }

                &.height {
                    & img {
                        height: 100% !important;
                        width: auto;
                    }
                }

                &.width {
                    & img {
                        height: auto !important;
                        width: 100%;
                    }
                }
            }
        }
    
        & .btn-close {
            background-color: transparent;
            border: none;
            color: rgba(255,255,255,.4);
            font-size: var(--fze-title);
            line-height: 1;
            position: absolute;
            right: 10px;
            top: 5px;

            &:hover {
                color: var(--white-color);
            }
        }
    
        & .btn-prev,
        & .btn-next {
            background-color: transparent;
            border: none;
            color: rgba(255,255,255,.4);
            font-size: var(--fze-title);
            line-height: 1;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);

            &:hover {
                color: var(--white-color);
            }
        }
    
        & .btn-prev {
            left: 20px;
        }
    
        & .btn-next {
            right: 20px;
        }

        @media (max-width: 400px) {
            padding: calc(33px + 20px) 10px 20px 10px;

            & .btn-prev,
            & .btn-next {
                top: 5px;
            }

            & .btn-prev {
                left: calc(50% - 25px);
                transform: none;
            }
            
            & .btn-next {
                right: calc(50% - 25px);
                transform: none;
            }
        }
    }

    &.display {
        display: block;
    }

    &.show {
        opacity: 1;
    }
}