/* Full-screen overlay to dim the background */
.popup-overlay {
    display: none; /* Initially hide the popup */
    position: fixed; /* Stays in place even when scrolling */
    z-index: 1000; /* Ensures it's on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    overflow: auto; /* Enable scrolling if content is too long */
}

/* The box containing the image and text */
.popup-content {
    background-color: #fefefe;
    margin: 1% auto; /* 15% from the top and centered horizontally */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be adjusted */
    max-width: 500px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    text-align: center;
}

/* Styling for the actual image inside the popup */
.popup-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 4px;
}

/* The Close Button (x) */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
}