.singular.content .site-inner > .wrap {
    max-width: 100% !important;
}

.singular .site-inner .entry-header p {
    max-width: 1200px !important;
    text-align: right !important;
    margin-top: 0px !important;
}

/* Updated and new CSS styles */
body .entry-content .popup-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
z-index: 10000;
}

body .entry-content .popup-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: white;
border-radius: 8px;
display: flex;
flex-direction: column;
direction: rtl;
height: 80%;
max-height : 1000px;
width: 100%;
max-width: 1200px;
}

body .entry-content .popup-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;

}

body .entry-content .popup-body {
display: flex;
flex-direction: row-reverse;
  overflow-x: auto;
}
body .entry-content .left-section {
    width: 40%;
    margin-left: 20px;
    margin-bottom: 20px;
}
body .entry-content .left-section img {
    margin-top: 20px;
}
body .entry-content .popup-map {
height: 244px;
}

body .entry-content .popup-text {
width: 60%;
padding: 0 30px 30px;
}

body .entry-content .popup-text h2#popup-title {
font-size: 60px !important;
font-weight: 700 !important;
line-height: 1.2 !important;
margin-bottom: 20px;
}

body .entry-content .popup-text #popup-content {
font-size: 20px !important;
font-weight: 400 !important;
line-height: 1.5 !important;
color: #5F5F5F;
}

body .entry-content .close-popup {
cursor: pointer;
font-size: 24px;
color: #999;
}

body .entry-content .back-to-map {
cursor: pointer;
font-size: 16px;
font-weight: 500;
color: #003C71;
display: flex;
align-items: center;
}

body .entry-content .arrow-icon {
margin-left: 5px;
/* margin-top: 3px; */
}

/* CSS for the map info window */
.map-info-window {
    max-width: 691px;
    padding: 10px;
    text-align: right;
    font-family: Arial, sans-serif;
}

.info-window-title {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: bold;
}

.info-window-content {
    font-size: 20px !important;
    color: #555;
    margin-bottom: 30px;
}

.info-window-button {
    background-color: #10517b;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
}

.info-window-button:hover {
    background-color: #10517b;
}

.running-messages-wrap {
  display:none;
}

/* Media query for smaller screens (e.g., tablets, small laptops) */
@media (max-width: 1440px) {
    body .entry-content .popup-content {
        max-width: 1000px;
    }

    body .entry-content .popup-text h2#popup-title {
        font-size: 50px !important;
    }
}


/* Media query for even smaller screens (e.g., small tablets, mobile landscape) */
@media (max-width: 1024px) {
    body .entry-content .popup-content {
        max-width: 90%;
        padding: 20px;
    }

    body .entry-content .popup-text h2#popup-title {
        font-size: 40px !important;
    }
}

/* Media query for mobile screens (e.g., portrait phones) */
@media (max-width: 768px) {
    body .entry-content .popup-content {
        max-width: 90%;
        padding: 15px;
    }

    body .entry-content .popup-text h2#popup-title {
        font-size: 40px !important;
    }
}

/* Media query for extra small mobile screens */
@media (max-width: 480px) {
    body .entry-content .popup-content {
        max-width: 90%;
        padding: 10px;
    }

    body .entry-content .popup-text h2#popup-title {
        font-size: 30px !important;
    }

    body .entry-content .left-section {
        width: 100%;
    }

    body .entry-content .popup-text {
        width: 100%;
    }

    body .entry-content .popup-body {
        display: block;
    }

    body .entry-content .popup-map {
        height: 150px;
    }

    #popup .popup-content {
        height: auto !important;
        overflow: auto !important;
        max-height: 600px !important;
    }

    body .entry-content .popup-text #popup-content {
        font-size: 18px !important;
    }

    body .entry-content .left-section #popup-image {
        height :  200px !important;
        width: 100%;
        object-fit: cover;
    }
}