﻿.gallery2 {
    width: 100%;
}

    .gallery2 .gallery-container {
        width: 91%;
        height: 25rem;
        padding: 2rem 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        transition: all ease-in-out .3s;
    }

        .gallery2 .gallery-container img {
            width: auto;
            height: 90%;
            height: 100%;
            padding: 10px;
            user-drag: none;
            user-select: none;
            border-radius: 16px;
            -ms-user-select: none;
            -moz-user-select: none;
            -webkit-user-drag: none;
            -webkit-user-select: none;
            transition: all ease-in-out .3s;
        }

            .gallery2 .gallery-container img:hover {
                opacity: .8;
                cursor: pointer;
                box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
            }

.gallery2 .modal-content {
    border: none;
    max-height: 100%;
    width: fit-content;
    background: var(--header_bcolor1);
    background: linear-gradient(270deg,var(--header_bcolor1) 27%, var(--header_bcolor2) 65%);
}

.image-gallery-modal {
    min-height: 92vh;
    width: fit-content !important;
}

.modal-header {
    border: none;
}

.gallery2 .gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery2 .active-items {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

    .gallery2 .active-items::after {
        cursor: grabbing;
        cursor: -webkit-grabbing;
    }

    .gallery2 .active-items:hover {
        cursor: grabbing;
        cursor: -webkit-grabbing;
    }

#image-modal-id {
    transition: all ease-in-out .3s;
}

.gallery2 .progress-container {
    width: 100%;
    height: 5px;
    background: #ccc;
}

.gallery2 .progress-bar {
    width: 0%;
    height: 5px;
    background: var(--formButton_bcolor1);
}

.gallery2 .prev, .gallery2 .next {
    top: 50%;
    width: auto;
    color: white;
    padding: 16px;
    z-index: 1600;
    cursor: pointer;
    font-size: 48px;
    margin-top: -50px;
    user-select: none;
    font-weight: bold;
    position: absolute;
    transition: 0.6s ease;
    text-decoration: none;
    -webkit-user-select: none;
    border-radius: 0 3px 3px 0;
}

.gallery2 .next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

    .gallery2 .prev:hover, .gallery2 .next:hover {
        background-color: rgba(0, 0, 0, 0.8);
    }

.gallery2-mymodal {
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 10000;
    position: fixed;
    margin-top: -1px;
    align-items: center;
    justify-content: center;
    animation: zoom 0.7s ease-in-out;
    background-color: rgba(0, 0, 0, 0.733);
}

@keyframes zoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}


.gallery2-mymodal img {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    width: auto;
    height: auto;
    max-width: 87%;
    max-height: 85%;
    object-fit: cover;
    transition: all ease-in-out 1s;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: rotateZ(-25deg);
    }

    to {
        opacity: 1;
        transform: rotateZ(0deg);
    }
}

.gallery2-mymodal .closeBtn {
    top: 0;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    right: 0;
    color: #d3d3d3;
    margin: 0 40px;
    font-size: 4rem;
    cursor: pointer;
    position: absolute;
    fill: var(--form_fcolor);
    transform: rotateZ(45deg);
    transition: 0.2s ease-in-out;
}

    .gallery2-mymodal .closeBtn:hover {
        color: #fff;
    }

.gallery2-mymodal .nextBtn {
    top: 50%;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    right: 2.3rem;
    color: #d3d3d3;
    font-size: 3rem;
    cursor: pointer;
    position: absolute;
}

    .gallery2-mymodal .nextBtn > svg {
        width: 60px;
        height: 60px;
        fill: #d3d3d3;
        font-weight: bold;
    }

        .gallery2-mymodal .nextBtn > svg:hover {
            fill: #fff;
        }

.gallery2-mymodal .prevBtn {
    top: 50%;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    left: 2.3rem;
    color: #d3d3d3;
    cursor: pointer;
    font-size: 3rem;
    position: absolute;
}

    .gallery2-mymodal .prevBtn > svg {
        width: 60px;
        height: 60px;
        fill: #d3d3d3;
        font-weight: bold;
        transform: scale(-1);
    }

        .gallery2-mymodal .prevBtn > svg:hover {
            fill: #fff;
        }

.nextBtn-gallery {
    right: 0;
    width: 65px;
    z-index: 200;
    height: 25rem;
    cursor: pointer;
    font-size: 3rem;
    font-weight: bold;
    position: absolute;
    opacity : .7
}

    .nextBtn-gallery:hover {
       opacity : 1
    }

.prevBtn-gallery {
    left: 0;
    width: 65px;
    z-index: 200;
    height: 25rem;
    cursor: pointer;
    font-size: 3rem;
    font-weight: bold;
    position: absolute;
    transform: scaleX(-1);
    opacity :.7
}

    .prevBtn-gallery:hover {
       opacity : 1;
    }

@media (max-width : 780px) {
    .gallery2 .prevBtn-gallery, .gallery2 .nextBtn-gallery {
        top: auto;
        width: 53px;
        bottom: 9px;
        height: auto !important;
    }

    .gallery2 .nextBtn-gallery {
        right: 35%;
    }

    .gallery2 .prevBtn-gallery {
        left: auto;
        right: 55%;
    }

    .gallery2 .gallery-container {
        width: 100%;
        padding: 0 0 2.7rem 0;
    }

        .gallery2 .gallery-container img {
            object-fit: cover;
        }

    .gallery2-mymodal .nextBtn {
        top: auto;
        bottom: 2rem;
    }

    .gallery2-mymodal .prevBtn {
        top: auto;
        bottom: 2rem;
    }
}
