/* Modal styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    /* On top of other elements */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Semi-transparent background */
    backdrop-filter: blur(10px);
    /* Blurry background */
    text-align: center;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: grab;
    /* Change cursor to grab for dragging */
}

    .modal-content:active {
        cursor: grabbing;
        /* Change cursor to grabbing while dragging */
    }

    .modal-content:hover {
        transform: scale(1.05);
        /* Zoom effect on hover */
    }

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

/* Ensure the image has smooth transitions when dragging and zooming */
.modal-content {
    transition: transform 0.2s ease;
    /* Smooth zoom and drag */
}
