﻿ #overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#folderDialog {
    width: 600px;
    height: 500px;
    background-color: white;
    color: black;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #ff1616;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.modal {
    position: fixed;
    z-index: 2000; /* Higher than overlay */
    left: 0; top: 0;
    width: 100%; height: 100%;
}
.modal-content-wrapper {
    display: flex;            /* Enables flexbox */
    justify-content: center;  /* Centers horizontally */
    align-items: center;      /* Centers vertically */
    flex-direction: column;   /* Keeps caption below the image */
    height: 100vh;           /* Takes full screen height for centering */
    width: 100%;
}

.modal-content {
    max-width: 90%;          /* Prevents image from hitting screen edges */
    max-height: 80vh;        /* Limits height to leave room for caption */
    object-fit: contain;      /* Keeps the image's original shape */
    border: 5px solid white;  /* Optional: adds a nice border */
}


/* Zoom Animation */
    /*.zoom-anim {
        animation: zoomEffect 0.3s ease-out;
    }

    @keyframes zoomEffect {
        from { transform: scale(0.7); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }*/

    /* Keep Modal Centered */
    /*.modal-content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        width: 100%;
    }*/

    /*#img01 {
        max-width: 85%;
        max-height: 75vh;
        border: 5px solid white;
        transition: transform 0.3s ease; 
    }*/
