
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Prevents cutting off content */
    box-sizing: border-box;
}

.overlay-content {
    background: #f4cb96; /* Light Background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 50vh; /* Ensures it stays contained */
    overflow: auto; /* Allows scrolling if needed */
}


#overlay-img {
    width: 500px; /* Fixed width */
    height: auto; /* Adjust height automatically */
    max-height: 70vh; /* Ensures space for text */
    display: block;
    border-radius: 10px;
}


.overlay-content p {
    margin-top: 7px;
    font-size: 18px;
    color: #992203; /* Dark Text Color */
    font-weight: bold;
    text-align: center;
}

.overlay-content a {
    color: #992203;
    text-decoration: none;
    font-weight: bold;
}

.overlay-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    .overlay-content img {
        height: auto; /*  overflow on small screens */
        max-height: 400px; /*  for smaller screens */
    }
}
