/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in;
    padding: 20px;
}

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

.modal-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    object-fit: contain;
    animation: zoomIn 0.3s ease-in;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #dc3545;
}

/* Image Gallery Item Hover Effect */
.image-gallery-item {
    transition: all 0.3s ease;
}

.image-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.image-gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-img {
    transition: transform 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-image {
        width: 90vw;
        height: 90vw;
        padding: 15px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}
