/* General Styles */
body {
    font-family: 'Playfair Display', serif;
    background-color: #f9f7f1;
    color: #333;
    margin: 0;
    padding: 20px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f7f1;
    border: 2px solid #e1ded3;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background-color: #f9f7f1;
    position: relative;
}

header .logo img {
    width: auto;
    height: auto;
    display: block;
    margin-bottom: -40px;
}

header .logo-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

header .logo-wrapper::before,
header .logo-wrapper::after {
    content: '';
    position: absolute;
    height: 2px;
    background-color: #e1ded3;
    top: 50%;
}

header .logo-wrapper::before {
    left: 50px;
    width: calc(50% - 200px);
}

header .logo-wrapper::after {
    right: 50px;
    width: calc(50% - 200px);
}

header .separator {
    width: calc(100% - 100px);
    height: 2px;
    background-color: #e1ded3;
    margin-top: 40px;
}

#gallery + .separator {
    width: calc(100% - 100px);
    height: 2px;
    background-color: #e1ded3;
    margin-top: 20px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 30px 0 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #6a4e35;
    font-weight: 700;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6a4e35;
}

nav ul li a.active,
nav ul li a.active::after {
    color: #6a4e35;
    width: 100%;
}

nav ul li a:hover {
    color: #9e7f54;
}

nav ul li a:hover::after {
    background-color: #9e7f54;
    width: 100%;
}

/* Gallery */
#gallery {
    padding: 20px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    filter: brightness(1.07);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    cursor: pointer;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    background-color: transparent;
    max-width: 80%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: default;
}

#modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border: none;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    background: transparent;
    border: none;
    z-index: 10;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Footer */
.separator-gallery-footer {
    width: 100%;
    max-width: calc(1200px - 40px);
    height: 2px;
    background-color: #e1ded3;
    margin: 20px auto;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #f9f7f1;
    margin-top: 40px;
}

footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

footer ul li {
    display: inline-block;
}

footer ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #9e7f54;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .logo-wrapper {
        margin-bottom: 20px;
    }

    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    nav ul li {
        margin: 10px 0;
    }

    .modal-content {
        max-width: 90%;
        padding: 10px;
    }

    #modal-image {
        max-height: 70vh;
    }

    .prev, .next {
        font-size: 30px;
        padding: 8px 16px;
    }

    header .logo img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    header .logo img {
        max-width: 200px;
    }
}

/* About Page Specific Styles */
#about {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px 0;
}

.about-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 500px;
    height: auto;
    margin-right: 40px;
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-text {
    flex: 1;
    max-width: 700px;
    overflow-y: auto;
    height: 660px;
    padding-left: 20px;
    list-style-type: none;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    margin-top: 20px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
}

/* About Page Mobile Layout */
@media (max-width: 768px) {
    #about {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    .about-image {
        display: none;
    }

    .about-text {
        order: 1;
        width: 100%;
        padding: 20px;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Start of Contact Page Styles */
#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px 20px 20px;
    width: 100%;
    box-sizing: border-box;  /* Ensures padding doesn't affect the centering */
}

.contact-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;  /* This will ensure it centers horizontally */
    padding: 0 10px; /* Slight padding to ensure no tight edges */
    box-sizing: border-box;  /* Ensure padding doesn’t affect width */
}

#contact h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;  /* Added this to center the title */
}

#contact p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align: center;  /* This should already be centering the paragraph */
    margin-left: auto;
    margin-right: auto;
}

#contact a {
    color: #555;
    text-decoration: none;
}

#contact a:hover {
    color: #9e7f54;
}

#contact p:last-child {
    margin-bottom: 0;
}

/* End of Contact Page Styles */

