/* Gallery Zoom Functionality Styles */

/* Zoom button in gallery */
.gallery-zoom-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
}

.gallery-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Fullscreen zoom modal */
.gallery-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.zoom-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Zoom image */
#zoomImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Zoom close button */
.zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Zoom navigation */
.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.zoom-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.zoom-prev {
    left: 20px;
}

.zoom-next {
    right: 20px;
}

/* Zoom controls */
.zoom-controls {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 10px;
    z-index: 10;
}

.zoom-control {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .gallery-zoom-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
    
    .zoom-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
    
    .zoom-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .zoom-prev {
        left: 10px;
    }
    
    .zoom-next {
        right: 10px;
    }
    
    .zoom-controls {
        bottom: 20px;
        padding: 8px;
        gap: 8px;
    }
    
    .zoom-control {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Touch gestures for mobile */
@media (pointer: coarse) {
    #zoomImage {
        touch-action: none;
    }
}

/* Keyboard hints */
.zoom-container::after {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-zoom-modal.active .zoom-container::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .zoom-container::after {
        content: 'Double-tap to zoom • Pinch to zoom • Drag to pan';
        bottom: 70px;
        font-size: 11px;
        padding: 0 20px;
        text-align: center;
    }
}