/* Image Zoom Modal Styles */
.img-zoom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.img-zoom-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: move;
}

.img-zoom-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1010;
}

.img-zoom-close:hover {
    color: #ff6600;
    transform: scale(1.2);
}

.img-zoom-controls {
    position: absolute;
    bottom: 40px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    z-index: 1010;
}

.img-zoom-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-zoom-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Style for zoomable images in update pages */
.zoomable-img {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zoomable-img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}

/* Animation for modal */
@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.img-zoom-modal {
    animation-name: fadeIn;
    animation-duration: 0.3s;
}

/* Caption styles for images */
.img-caption {
    text-align: center;
    font-family: 'Radiance', sans-serif;
    font-size: 14px;
    color: #ccc;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    display: inline-block;
}

/* Container for images */
#updatesSection img.img-files {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .img-zoom-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .img-zoom-controls {
        bottom: 30px;
    }

    .img-zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}