/* Your existing CSS (from your previous response) */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    font-weight: 300;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #f9f9f9;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

header img {
    margin-right: auto;
    margin-left: 20px;
    margin-right: 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav li {
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #1A2146;
    font-weight: 300;
    padding: 5px 5px;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(26, 33, 70, 0.1);
    color: #1A2146;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    z-index: 10;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    width: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    max-height: 700px;  /* Adjust the height as needed */
    overflow-y: auto;   /* Enable vertical scrolling if content exceeds max-height */}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: darkgray;
    border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

#hero {
    position: relative;
    background-image: url("images/knysna_lagoon.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 210px 0 150px 0;
    color: #1A2146;
    overflow: hidden;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
}


.button {
    display: inline-block;
    background-color: #1A2146;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 300;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #151a38;
}

.content-header {
    padding: 0px 0;
}

.content-header h2 {
    margin-bottom: 0px;
    font-weight: 300;
    font-size: 2em;
}

.content-indent {
    padding-left: 50px;
}

.content-indent h2 {
    margin-bottom: 0px;
    font-weight: 300;
    font-size: 2em;
}

.content-indent p {
    text-align: justify;
}

.content-section {
    padding: 100px 0;
    border-bottom: 1px solid #eee;
}

.content-section h2 {
    margin-bottom: 30px;
    font-weight: 300;
    font-size: 2em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.project-item h3 {
    margin-bottom: 15px;
    font-weight: 300;
}

.project-item p {
    text-align: justify;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
}

#image-modal {
    z-index: 10000;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.image-modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    max-width: 90%;
    max-height: 90vh;
    margin: 5% auto;
    position: relative;
    z-index: 10001;
    overflow: auto;
}

.image-modal-content img {
    max-width: 100%;
    max-height: calc(100% - 60px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
}

.image-close-button:hover,
.image-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

footer {
    background-color: #f9f9f9;
    text-align: center;
    padding: 30px 0;
}

/* Modal Styles */
.modal {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 95%;
    position: relative;
    z-index: 101;
    max-height: 90vh;
    overflow-y: auto;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 102;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#contact-form label {
    display: block;
    margin-bottom: 5px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
}

#contact-form input,
#contact-form textarea {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#contact-form textarea {
    height: 150px;
}

.g-recaptcha {
    margin-bottom: 15px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#contact-form input,
#contact-form textarea {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

.gauge-container {
    position: relative;
    display: inline-block;
    padding-left: 20px;
}

.gauge-label-left {
    color: #1A2146;
    position: absolute;
    left: 50px;
    top: 85%;
    font-size: 30px;
    font-weight: bold;
}

.gauge-label-right {
    color: #1A2146;
    position: absolute;
    right: 0px;
    top: 85%;
    font-size: 30px;
    font-weight: bold;
}

.gauge-value {
    color: #1A2146;
    position: absolute;
    top: 90%;
    left: 52.5%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.indented-list {
    list-style: none;
    padding-left: 30px;
    font-style: italic;
    color: #007bff;
}

.indented-list li::before {
    content: "➤";
    margin-right: 10px;
}

.highlighted-text {
    font-weight: bold;
    color: #ff6347;
    background-color: #f0f0f0;
    padding: 5px;
}

.text-with-image {
    overflow: hidden;
}

.float-image {
    margin-right: 15px;
    margin-bottom: 10px;
    margin-top: 7px;
    max-width: 200px;
    height: auto;
	vertical-align: middle;
}

.text-with-image p {
    text-align: justify;
}

/* --- Media Query for Mobile Devices --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    header img {
        margin-bottom: 10px;
        margin-left: 0;
    }

    nav {
        width: 100%;
        justify-content: flex-start;
    }

    nav ul {
        flex-direction: column;
        padding-left: 0;
    }

    nav li {
        margin: 0 0 10px 0;
        width: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        text-align: left;
    }
}

/* Modal Styles */
.modal {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 95%;
    position: relative;
    z-index: 101;
    max-height: 90vh;
    overflow-y: auto;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 102;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.statement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.statement-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

    .statement-item h3 {
        margin-bottom: 15px;
        font-weight: 300;
    }

    .statement-item p {
        text-align: justify;
    }

    .statement-item img {
        width: 100%;
        height: auto;
        display: block;
    }

#older-statements-modal .statement-item img {
    max-width: 100%; /* Ensures images do not exceed the width of their container */
    height: auto; /* Maintain aspect ratio */
    max-height: 300px; /* Set a maximum height for the images (adjust as needed) */
    object-fit: contain; /* Ensures images maintain their aspect ratio without being cropped */
    display: block; /* Make the image a block-level element */
    margin-left: 0; /* Align the image to the left */
    margin-right: auto; /* Ensures there's no space on the right */
}

#contact p.text-centred-on-image {
    align-items: center; /* Vertically center items */
}
