body {
    font-family: 'Roboto', sans-serif; 
}

.grid-title {
    text-align: center;
    font-size: 3.5em; 
    color: #004d40; 
    margin-top: 20px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2); 
    letter-spacing: 0.05em; 
    font-weight: 700; 
}

.grid-sub-title {
    text-align: center;
    margin: 20px 0;
    font-size: 1.8em; 
    color: #d62828;
    letter-spacing: 0.03em; 
    line-height: 1.3; 
    font-weight: normal; 
}

@media (max-width: 600px) {
    .grid-title {
        font-size: 2.5em;
    }
}


.grid-sub-title-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.grid-sub-title_el {
    flex: 1; 
    margin: 0 10px; 
    padding: 20px; 
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1); 
    border-radius: 5px; 
    background-color: #f4f4f4; 
    text-align: center;
    font-size: 1.4em;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
    font-weight: normal;
}

@media (max-width: 900px) {
    .grid-sub-title-container {
        flex-direction: column; 
    }

    .grid-sub-title_el {
        margin-bottom: 10px; 
    }
}


@media (max-width: 900px) {
    .grid-sub-title {
        font-size: 1.3em; 
    }
    .grid-sub-title_el {
        font-size: 1.2em; 
    }
}


#myModal {
    display: none; 
}

#imageGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-container {
    margin: 10px;
    overflow: hidden; 
    border-radius: 10px;
    flex: 0 0 calc(100% - 20px); 
    height: 0;
    padding-top: calc(100% - 20px); 
    position: relative; 
    box-sizing: border-box;
}

.image-container img {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    transition: transform 0.2s; 
    cursor: pointer;
}

/* Medium screens (2 images per row) */
@media (min-width: 600px) {
    .image-container {
        flex: 0 0 calc(50% - 20px);
        padding-top: calc(50% - 20px);
    }
}

/* Large screens (3 images per row) */
/*@media (min-width: 900px) {*/
/*    .image-container {*/
/*        flex: 0 0 calc(33.3333% - 20px);*/
/*        padding-top: calc(33.3333% - 20px);*/
/*    }*/
/*}*/

/* Extra large screens (4 images per row) */
@media (min-width: 1200px) {
    .image-container {
        flex: 0 0 calc(25% - 20px); 
        padding-top: calc(25% - 20px);
    }
}

.image-container:hover img {
    transform: translateY(-5px); 
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%; 
    max-width: 600px; 
    max-height: 80vh; 
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    background-color: rgba(0, 0, 0, 0.6); 
    background-color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex; 
}

.modal-content {
    width: 100%;
    max-height: 70vh; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: auto; 
}

.modal-content img {
    max-width: 100%; 
    max-height: 60vh;
    object-fit: contain; 
    border-radius: 10px;
}

.close {
    display: none; 
    position: absolute;
    top: 10px;
    right: 25px;
    color: #000;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

.modal.active .close {
    display: block;
}

#caption {
    text-align: center;
    color: #333;
    padding: 10px 0;
}

.site-footer {
    background-color: #f4f4f4;
    color: #333; 
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    font-size: 0.9em; 
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%; 
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 15px;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em; 
}

.footer-section p, .footer-section ul {
    color: #666;
}

.footer-section ul {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: flex-start;
    list-style-type: none;
    padding: 0;
    margin: 0; 
}

.footer-section ul li {
    margin-right: 10px; 
}

.footer-section ul li a {
    color: #333;
    background-color: #e7e7e7; 
    text-decoration: none;
    padding: 5px 10px; 
    border-radius: 15px; 
    transition: background-color 0.3s, color 0.3s;
    display: inline-block; 
    margin-bottom: 5px; 
    font-size: 0.85em; 
}

.footer-section ul li a:hover {
    background-color: #ff0000; 
    color: #fff; 
    text-decoration: none; 
}

@media (max-width: 1000px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-section h3 {
        font-size: 2em; 
    }
    .footer-section p, .footer-section ul, .footer-section ul li a {
        font-size: 1.4em; 
    }
}

.pdf-access-button-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}


.pdf-access-button {
    display: inline-block; 
    background-color: #004d40; 
    color: #ffffff;
    text-decoration: none; 
    padding: 10px 20px; 
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    font-family: 'Roboto', sans-serif; 
    margin-left: auto;
}


.pdf-access-button:hover {
    background-color: #00382e; 
}

@media (max-width: 850px) {
    .pdf-access-button-container {
        display: none; 
    }
}


.donate-button-container {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 1000;
}


.donate-button {
    display: inline-block;
    background-color: #004d40;
    color: #ffffff; 
    text-decoration: none; 
    padding: 10px 20px;
    border-radius: 5px; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    font-family: 'Roboto', sans-serif;
    margin-left: auto;
}


.donate-button:hover {
    background-color: #00382e;
}

@media (max-width: 850px) {
    .donate-button-container {
        display: none;
    }
}