
/* ===== GENERAL PAGE ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-bottom: 90px;
    font-family: Arial, sans-serif;
    background-color: #f4f1ea;
    color: #243b55;
}

/* ===== HEADER ===== */

header {
    padding: 10px 20px;
    text-align: center;
    background: #f4f1ea;
}

h1 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: clamp(36px, 6vw, 80px);
    text-align: center;
    background-color: #4CAF50;
    color: white;
    border-radius: 20px;
    padding: 15px;
    margin: 10px 0;
}

h2 {
    font-size: clamp(20px, 3vw, 35px);
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
    color: black;
    margin: 10px 0;
}

/* ===== NAVIGATION ===== */

nav {
    text-align: center;
    background: #f4f1ea;
    padding: 10px 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 0;
    padding: 12px;
    list-style: none;
}

nav a {
    color: #243b55;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}

/* ===== MASONRY LAYOUT ===== */

.masonry {
    columns: 3;
    column-gap: 16px;
    margin: 20px;
}

/* ===== CARDS ===== */

.masonry > .one,
.masonry > .two {
    display: inline-flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;

    margin: 0 0 16px;
    padding: 18px;

    vertical-align: top;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;

    overflow-wrap: anywhere;
    border-radius: 20px;

    transition: filter 0.2s ease;
}

/* Dark green cards */

.masonry > .one {
    background-color: #608955;
}

/* Light green cards */

.masonry > .two {
    background-color: #c1dbba;
}

/* Card hover effects */

.masonry > .one:hover,
.masonry > .two:hover {
    filter: brightness(90%);
}

/* ===== CARD CONTENT ===== */

h3 {
    font-size: 30px;
    text-align: center;
    color: black;
    width: 100%;
    margin: 0 0 12px;
}

h4 {
    font-size: 21px;
    text-align: center;
    color: black;
    width: 100%;
    margin: 0 0 12px;
}

h5 {
    font-size: 18px;
    text-align: center;
    color: black;
}

p {
    font-size: 18px;
    line-height: 1.5;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.masonry img {
    display: block;
    width: 70%;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    align-self: center;
}

.masonry video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    align-self: center;
}

.masonry a {
    overflow-wrap: anywhere;
}

.footertext {
    font-size: 18px;
    line-height: 1.5;
    width: 100%;
    text-align: center;
}

.error {
    font-size: 18px;
    line-height: 1.5;
    width: 90%;
    text-align: center;
    color: red;
    font-weight: bold;
}

/* ===== PHOTO GALLERY ===== */

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 20px;
    margin-bottom: 100px;
}

.gallery {
    width: auto;
    min-height: 0;
    min-width: 0;
    background-color: transparent;
    margin: 0;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery img {
    width: 100%;
    height: 400px;
    display: block;
    margin: 0;
    border-radius: 20px;
    object-fit: cover;
}

.gallery:hover {
    filter: brightness(95%);
}

@media (max-width: 900px) {
    .masonry {
        columns: 2;
    }

    .gallery-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .masonry {
        columns: 1;
        margin: 12px;
    }

    .masonry > .one,
    .masonry > .two {
        margin-bottom: 12px;
        padding: 16px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .gallery img {
        height: auto;
        max-height: 400px;
    }

    nav ul {
        gap: 12px;
    }
}

/* ===== FIXED FOOTER ===== */

footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 0;
    z-index: 10;
}

footer p {
    font-size: 16px;
    padding: 4px 10px;
}