/* Ensures the overlay covers the entire viewport */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Modal content style */
.modal-content {
    position: relative;
    width: 80%;
    max-width: 580px;
    height: 100%;
    max-height: 550px; /* Limits the height of the modal */
    margin: auto;
    padding: 10px 20px;
    background: #fff;
    outline: none;
    overflow-y: auto; /* Enables vertical scrolling if content overflows */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
   
}

.popup-content {
    /* padding: 10px 0; */
}

/* Container for image with spacing */
.popup-image-container {
    margin-bottom: 15px;
}

/* Styles for the image */
.popup-image {
    max-width: 100%;
    border-radius: 0px;
    width:100%;
    height:100%;
   
}

/* Title styling */
.popup-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height:1.2;
}

/* Description styling */
.popup-description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* Close button styling */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    /* font-size: 24px; */
    cursor: pointer;
    border-radius: 50%;
    /* width: 30px; */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1; 
   
}

@media screen and (min-width: 1400px) {
.modal-content{
    max-height: 600px;
}
}