/* Image Zoom Modal Styles */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.zoom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.zoom-modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    width: 95vw;
    height: 95vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-modal-image {
    display: block;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: grab;
    max-width: 100%;
    max-height: 100%;
}

.zoom-modal-image:active {
    cursor: grabbing;
}

.zoom-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    z-index: 10001;
}

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

.zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(8px);
}

.zoom-control-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

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

.zoom-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(8px);
}

/* Zoomable image container styles */
.zoomable-image-container {
    position: relative;
    display: inline-block;
    margin: 8px 0;
}

.zoomable-image {
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.zoomable-image:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .zoom-modal-content {
        max-width: 98%;
        max-height: 98%;
        width: 98vw;
        height: 98vh;
    }
    
    .zoom-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .zoom-controls {
        bottom: 15px;
        padding: 6px 12px;
    }
    
    .zoom-control-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .zoom-info {
        top: 10px;
        left: 10px;
        font-size: 11px;
        padding: 6px 10px;
    }
}
