﻿.gallery .image-container {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--Default-200, #EEE);
    background: var(--Neutral-White, #FFF);
}

    .gallery .image-container .image-content {
        height: 384px;
        height: 384px;
        position: relative;
        overflow: hidden;
    }

        .gallery .image-container .image-content img {
            object-fit: contain;
            width: 100%;
            height: 100%;
        }

    .gallery .image-container:hover {
        border: 1px solid var(--Secondary-500, #918150);
    }

    .gallery .image-container .photo-title {
        color: var(--Text-Light-Primary, #171717);
        text-align: center;
        font-family: Outfit;
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
        line-height: 24px;
        min-height: 48px;
    }

#imageModal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255,255,255,0.9);
    overflow: hidden;
}

    #imageModal .modal-content-box {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        margin-top: 80px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 20px;
        flex-wrap: wrap;
    }

    #imageModal .image-container {
        width: calc(100% - 210px)
    }

    #imageModal .modal-right {
        width: 180px;
        max-height: 90vh;
        overflow-y: auto;
    }

    #imageModal .image-container .image-content .btn-left {
        width: 32px;
        background: black;
        height: 32px;
        position: absolute;
        left: 16px;
        top: 50%;
        cursor:pointer;
    }
    #imageModal .image-container .image-content .btn-right {
        width: 32px;
        background: black;
        height: 32px;
        position: absolute;
        top: 50%;
        right: 220px;
        cursor: pointer;
    }

        #imageModal .image-container .image-content .modal-image {
            width: 100%;
            max-height: 80vh;
            object-fit: contain;
            padding-top: 48px;
            padding-left: 32px;
            padding-right: 32px;
        }

    #imageModal .modal-thumbnails {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #imageModal .modal-thumbnail {
        width: 100%;
        height: 144px;
        object-fit: contain;
        cursor: pointer;
        border: 2px solid transparent;
        transition: transform 0.2s;
        box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
        background: var(--Neutral-White, #FFF);
        padding: 8px;
    }

    #imageModal .close {
        position: absolute;
        text-align: center;
        color: white;
        top: 16px;
        height: 32px;
        width: 32px;
        right: 16px;
        font-weight: bold;
        cursor: pointer;
        z-index: 10000;
    }

        #imageModal .close img {
            width: 24px;
            height: 24px;
        }

        @media(max-width:768px)
        {
            #imageModal .modal-thumbnail:hover {
                border-color: var(--Primary-500, #918150);
            }

            #imageModal .modal-thumbnail.active {
                border-color: var(--Primary-500, #171717);
            }
        }