/* General Styles */
body {
    font-family: 'Lora', serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Styles for hidden thumbnails */
.hidden {
    display: none;
}

header {
    background-image: linear-gradient(to right, #ff7e5f, #feb47b);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 2px;
}

.header-content p {
    margin: 10px 5px;
    font-size: 1.2em;
    font-style: italic;
}

nav {
    background-color: #333;
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-family: 'Lora', serif;
    font-size: 1.1em;
    letter-spacing: 1px;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #feb47b;
}

section {
    padding: 50px 20px;
    text-align: center;
    font-family: 'Lora', serif;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.6em;
    color: #555;
}

/* Gallery Styles */
.gallery-section {
    background-color: #eee;
    padding: 60px 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.thumbnail {
    margin: 10px;
    border: 5px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 300px; /* Fixed width for the thumbnail container */
    height: 300px; /* Fixed height for the thumbnail container */
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container, cropping as necessary */
    object-position: center; /* Centers the image within the container */
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.thumbnail img:hover {
    transform: scale(1.1);
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    font-family: 'Lora', serif;
}

#contact label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact input, #contact textarea {
    width: 90%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    background-color: #f9f9f9;
}

#contact button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-family: 'Lora', serif;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #feb47b;
}

.flashes {
    list-style-type: none;
    padding: 0;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
}

.flashes li {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.flashes .success {
    background-color: #4CAF50;
    color: white;
}

.flashes .danger {
    background-color: #f44336;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%; /* Ensure the image doesn't exceed 90% of the viewport width */
    max-height: 80vh; /* Ensure the image doesn't exceed 80% of the viewport height */
    border: 5px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: contain; /* Maintain the aspect ratio while fitting the image within the container */
}

.modal-content img {
    width: 100%;
    height: auto; /* Ensure the image retains its aspect ratio */
}

#caption {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-family: 'Lora', serif;
    font-size: 1.2em;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
    }

    .header-content p {
        font-size: 1em;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 1.2em;
    }

    section {
        padding: 30px 10px;
    }

    #about p {
        font-size: 1em;
    }

    .gallery {
        display: block;
    }

    .thumbnail {
        margin: 10px auto;
        width: 80%;
        max-width: 300px;
    }

    #contact form {
        max-width: 90%;
    }

    #contact button {
        width: 100%;
        font-size: 1.1em;
    }
}

@media only screen and (max-width: 480px) {
    .header-content h1 {
        font-size: 1.5em;
    }

    .header-content p {
        font-size: 0.9em;
    }

    nav ul li {
        margin: 5px 0;
    }

    section {
        padding: 20px 10px;
    }

    .gallery {
        display: block;
    }

    .thumbnail {
        margin: 10px auto;
        width: 90%;
        max-width: 250px;
    }

    #contact form {
        max-width: 95%;
    }

    #contact button {
        width: 100%;
        font-size: 1em;
    }
}
