/* ========================================
   Image Modal Styles
   ======================================== */

/* Meeting Info Image Container */
.meeting-info-image {
    text-align: center;
    margin: 20px auto;
}

/* Small Thumbnail Image */
.meeting-info-image img {
    cursor: pointer;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Hover Effect for Thumbnail */
.meeting-info-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Overlay */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease-in-out;
}

/* Modal Content - Enlarged Image */
.image-modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    animation: zoomIn 0.3s ease-in-out;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.modal-close:hover,
.modal-close:focus {
    color: #ff4444;
    text-decoration: none;
}

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

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

/* Responsive Design */
@media screen and (max-width: 768px) {
    .meeting-info-image img {
        max-width: 250px;
    }
    
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 32px;
    }
    
    .image-modal img {
        max-width: 95%;
        max-height: 95%;
    }
}

@media screen and (max-width: 480px) {
    .meeting-info-image img {
        max-width: 200px;
    }
    
    .modal-close {
        top: 5px;
        right: 15px;
        font-size: 28px;
    }
}
