﻿
#globalGalleryModal {
    padding-top: 1rem;
    overflow-y: auto;
}


    #globalGalleryModal .close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        z-index: 10001; 
    }

        #globalGalleryModal .close:hover,
        #globalGalleryModal .close:focus {
            color: #bbb;
            text-decoration: none;
            cursor: pointer;
        }


    #globalGalleryModal .modal-content {
        position: relative;
        margin: auto;
        padding: 0;
        width: 95%; 
        max-width: 1000px; 
    }

    #globalGalleryModal .my-slides {
        display: none; 
        width: 100%;
    }

        #globalGalleryModal .my-slides img {
            width: 100%;
            height: auto; 
            max-height: 75vh;
            object-fit: contain; 
            background-color: #000; 
            border-radius: 4px; 
        }

    #globalGalleryModal .my-slides--number {
        color: #f2f2f2;
        font-size: 12px;
        padding: 8px 12px;
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.5);
        border-radius: 0 0 4px 0;
    }


    #globalGalleryModal .prev,
    #globalGalleryModal .next {
        cursor: pointer;
        user-select: none; 
        -webkit-user-select: none;
        transition: 0.3s ease;
    }

    #globalGalleryModal .caption- {
        text-align: center;
        padding: 10px 20px;
        height: 50px; 
    }

    #globalGalleryModal #globalCaption {
        color: white;
        font-size: 1rem;
        line-height: 1.5;
    }

    #globalGalleryModal #globalThumbsContainer {
        display: flex;
        flex-wrap: nowrap; 
        overflow-x: auto; 
        overflow-y: hidden;
        padding: 10px 0;
        justify-content: center; 
        background: rgba(0,0,0,0.2); 
        -webkit-overflow-scrolling: touch;
    }

        #globalGalleryModal #globalThumbsContainer::-webkit-scrollbar {
            height: 8px;
        }

        #globalGalleryModal #globalThumbsContainer::-webkit-scrollbar-thumb {
            background: #555;
            border-radius: 4px;
        }

        #globalGalleryModal #globalThumbsContainer::-webkit-scrollbar-track {
            background: #333;
        }


        #globalGalleryModal #globalThumbsContainer .column {
            flex-shrink: 0; 
            width: 120px; 
            padding: 0 4px;
        }

        #globalGalleryModal #globalThumbsContainer .demo {
            width: 100%;
            height: 80px; 
            object-fit: cover; 
            opacity: 0.6;
            cursor: pointer;
            transition: opacity 0.3s ease;
            border-radius: 4px;
        }

            #globalGalleryModal #globalThumbsContainer .demo:hover {
                opacity: 1;
            }

            #globalGalleryModal #globalThumbsContainer .demo.active {
                opacity: 1;
                border: 2px solid #fff;
                box-sizing: border-box; 
            }


@media (max-width: 768px) {
    #globalGalleryModal {
        padding-top: 5vh;
    }

        #globalGalleryModal .modal-content {
            width: 100%;
            max-width: 100%;
        }

        #globalGalleryModal .close {
            top: 0px;
            right: 15px;
            font-size: 35px;
        }

        #globalGalleryModal .prev,
        #globalGalleryModal .next {
            font-size: 24px;
            padding: 10px 8px;
        }

        #globalGalleryModal .my-slides img {
            max-height: 65vh;
        }

        #globalGalleryModal #globalThumbsContainer .column {
            width: 100px;
        }

        #globalGalleryModal #globalThumbsContainer .demo {
            height: 70px;
        }
}
