/* assets/css/modal_gallery.css */
.modal-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-gallery-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-gallery-overlay.active .modal-gallery-container {
    transform: scale(1);
}

.modal-gallery-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.modal-gallery-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    z-index: 10001;
}

.modal-gallery-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-gallery-caption {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 12px 20px;
    margin: 0 auto;
    width: fit-content;
    border-radius: 40px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    z-index: 10001;
}

.modal-gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.2s;
    z-index: 10001;
}

.modal-gallery-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.modal-gallery-prev {
    left: 30px;
}

.modal-gallery-next {
    right: 30px;
}

@media (max-width: 768px) {
    .modal-gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .modal-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .modal-gallery-prev {
        left: 10px;
    }
    
    .modal-gallery-next {
        right: 10px;
    }
    
    .modal-gallery-caption {
        font-size: 0.75rem;
        padding: 8px 16px;
        bottom: 10px;
    }
}