/* Imagebox container (hidden by default) */
#imagebox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease; /* Add fade-in effect for background */
    transition: transform 0.4s ease; /* Smooth transition for zoom */
    cursor: zoom-in; /* Change cursor to indicate zoom */
}

#imagebox-img {
    max-width: 90%;
    max-height: 80%;
    animation: zoomIn 0.2s ease forwards;
    object-fit: contain; /* Maintain aspect ratio */
}

#imagebox-img.zoomed {
    cursor: zoom-out; /* Change cursor to indicate zoom-out */
    width: 100%;
}

#close {
    position: absolute;
    top: 10px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

img[loading="lazy"] {
  cursor: zoom-in;
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8); /* Start slightly smaller */
        opacity: 0;
    }
    100% {
        transform: scale(1); /* Full size */
        opacity: 1;
    }
}

/* Keyframe for fade-in effect on the background */
@keyframes fadeIn {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }
    100% {
        background-color: rgba(0, 0, 0, 0.8);
    }
}
