:root {
    --primary-gold: #e3c874;
    --light-grey: #ececec;
    --dark-red: #2b0404;
    --shadow-gold: 0 0 15px var(--primary-gold);
    --border-style: solid;
}

body {
    margin: 0;
    background-color: var(--dark-red);
    /* Ensure solid background is set */
    text-align: left;
    font-family: Georgia, serif;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-bg-container {
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    /* Change back to scroll since container is fixed height/area */
    width: 100%;
}

body,
a {
    text-decoration: none;
    color: var(--light-grey);
    background-color: var(--dark-red);
}

.upheader {
    height: 100px;
    background-image: url(images/bannerup.png);
    border-style: var(--border-style);
    border-color: var(--primary-gold);
    border-left: 0;
    border-bottom: 0;
    border-right: 0;
    background-position: bottom;
    background-size: cover;
}

header {
    background-image: url(images/banner.png);
    height: 145px;
    margin: 0;
    box-shadow: var(--shadow-gold);
    text-align: left;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 10;
    /* Increased z-index to ensure it stays above curtains */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}

.logo {
    flex-shrink: 0;
    height: 250px;
    width: 250px;
    z-index: 20;
    box-shadow: var(--shadow-gold);
    border-radius: 50%;
}

.logo-link {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    vertical-align: middle;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 1;
}

.headername {
    color: var(--primary-gold);
    font-size: 3em;
    margin: 0;
    display: none;
}

/* Hamburger Menu Logic */
#menu-toggle {
    display: none;
}

.hamburger-label {
    display: none;
    cursor: pointer;
    z-index: 100;
    padding: 10px;
}

.hamburger-bars {
    width: 30px;
    height: 3px;
    background: var(--primary-gold);
    display: block;
    position: relative;
    transition: background 0.3s;
}

.hamburger-bars::before,
.hamburger-bars::after {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--primary-gold);
    display: block;
    position: absolute;
    transition: transform 0.3s;
}

.hamburger-bars::before {
    top: -10px;
}

.hamburger-bars::after {
    bottom: -10px;
}

#menu-toggle:checked+.hamburger-label .hamburger-bars {
    background: transparent;
}

#menu-toggle:checked+.hamburger-label {
    position: fixed;
    right: 30px;
    top: 30px;
}

#menu-toggle:checked+.hamburger-label .hamburger-bars::before,
#menu-toggle:checked+.hamburger-label .hamburger-bars::after {
    background: var(--dark-red);
}

#menu-toggle:checked+.hamburger-label .hamburger-bars::before {
    transform: rotate(45deg) translate(7px, 7px);
}

#menu-toggle:checked+.hamburger-label .hamburger-bars::after {
    transform: rotate(-45deg) translate(7px, -7px);
}

.links {
    margin-top: 10px;
}

.nav {
    display: inline-block;
    color: var(--dark-red);
    margin: 0 20px 0 20px;
    padding: 5px;
    font-size: 1.5em;
    font-weight: 900;
    border-radius: 15px;
    border-style: ridge;
    border-color: var(--primary-gold);
    box-shadow: 2px 2px 10px var(--primary-gold);
    background-image: url(images/contentbg.jpg);
    background-size: cover;
    transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

.nav:hover {
    transform: translateY(-3px);
    box-shadow: 2px 5px 10px var(--primary-gold);
}

.lowheader {
    height: 100px;
    background-image: url(images/bannerlow.png);
    border-style: var(--border-style);
    border-color: var(--primary-gold);
    border-left: 0;
    border-top: 0;
    border-right: 0;
    position: relative;
}



.content {
    background-image: url(images/contentbg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    margin: 30px;
    padding: 30px;
    max-width: 1000px;
    color: var(--dark-red);
    border-radius: 19px;
    box-shadow: 0 0 30px var(--primary-gold);
    z-index: 1;
    text-align: left;
    position: relative;
}

.container {
    text-align: center;
}

.foto {
    margin: 10px;
    height: 400px;
    width: auto;
    border-radius: 19px;
    border: 2px solid var(--light-grey);
    box-shadow: 0 0 30px var(--light-grey);
    float: left;
}

.text {
    font-size: 1.4em;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid var(--primary-gold);
    background: var(--dark-red);
    color: var(--primary-gold) !important;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-size: 1em;
}

.social-btn svg {
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-gold);
    background: #4a0707;
}

@media screen and (max-width: 600px) {
    .social-buttons {
        justify-content: center;
    }
}

.main-headline {
    color: var(--primary-gold);
    text-align: center;
    font-size: 2.8em;
    margin: 60px 0 40px 0;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title {
    color: var(--dark-red);
    border-bottom: 2px solid var(--primary-gold);
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

footer {
    background-image: url(images/bar.png);
    height: 100px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    border-style: var(--border-style);
    border-color: var(--primary-gold);
    border-left: 0;
    border-right: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.1em;
}


.comments-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background-image: url(images/contentbg.jpg);
    background-size: cover;
    border-radius: 19px;
    box-shadow: 0 0 30px var(--primary-gold);
    color: var(--dark-red);
    box-sizing: border-box;
}

.comments-section .section-title {
    color: var(--dark-red);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-gold);
}

.comments-list {
    margin-bottom: 50px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--dark-red);
    margin-bottom: 20px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 5px;
}

.comment-author {
    color: var(--dark-red);
    font-weight: bold;
    font-size: 1.1em;
}

.comment-date {
    font-size: 0.85em;
    color: #444;
}

.comment-text {
    line-height: 1.6;
    font-size: 1.1em;
}

.no-comments {
    text-align: center;
    font-style: italic;
    color: var(--dark-red);
    margin-bottom: 40px;
}

.comment-form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--primary-gold);
}

.comment-form-container h3 {
    color: var(--primary-gold);
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #1a0202;
    color: var(--light-grey);
    font-family: inherit;
    box-sizing: border-box;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary-gold);
    color: var(--dark-red);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.submit-btn:hover {
    background: #f1db99;
    transform: translateY(-2px);
}

.form-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.form-message.success {
    background: rgba(0, 128, 0, 0.2);
    border: 1px solid green;
    color: #4cd137;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid red;
    color: #ff4757;
}

.blog-post {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px ridge var(--dark-red);
    text-align: left;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-title {
    color: var(--dark-red);
    font-size: 2em;
    margin-bottom: 5px;
}

.post-date {
    color: #666;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    background: var(--dark-red);
    color: var(--primary-gold);
    padding: 8px 15px;
    border-radius: 10px;
    border: 2px solid var(--primary-gold);
    font-weight: bold;
    text-decoration: none;
    transition: transform 150ms ease-in-out, box-shadow 150ms ease-in-out, background 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 2px 4px 8px var(--primary-gold);
}

.post-image {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.event-list {
    margin-top: 30px;
}

.event-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    border-left: 5px solid var(--primary-gold);
    text-align: left;
    transition: background 0.3s;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.event-date {
    background: var(--primary-gold);
    color: var(--dark-red);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
    margin-right: 20px;
    font-size: 0.9em;
    line-height: 1.3;
}

.event-details {
    flex-grow: 1;
}

.event-details h4 {
    margin: 0;
    color: var(--dark-red);
    font-size: 1.2em;
}

.event-location {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
}

.calendar-subtitle {
    color: var(--dark-red);
    border-bottom: 1px solid var(--primary-gold);
    display: inline-block;
    margin: 30px 0 15px 0;
    font-size: 1.5em;
    text-align: left;
    width: auto;
}

@media screen and (max-width: 600px) {
    .event-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-date {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
    }
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-preview {
    background-image: url(images/contentbg.jpg);
    background-size: cover;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-preview:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--primary-gold);
}

.section-preview h3 {
    color: var(--dark-red);
    margin-top: 0;
    font-size: 1.8em;
    border-bottom: 1px solid var(--primary-gold);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.section-preview p {
    color: var(--dark-red);
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.preview-link {
    display: inline-block;
    background: var(--dark-red);
    color: var(--primary-gold);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.preview-link:hover {
    background: #4a0707;
}

.single-preview-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 0 20px;
}

@media screen and (max-width: 1730px) {
    header {
        padding: 0 20px;
    }

    .nav {
        margin: 0 10px;
        font-size: 1.5em;
    }

    .headername {
        font-size: 2.5em;
    }

    .logo {
        height: 200px;
        width: 200px;
    }
}

@media screen and (max-width: 1355px) {
    header {
        justify-content: space-between;
        height: 100px;
        flex-direction: row;
        padding: 0 20px;
    }

    .hamburger-label {
        display: block;
    }

    .header-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: url(images/contentbg.jpg);
        background-size: cover;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        padding: 80px 20px;
        transition: right 0.3s ease-in-out;
        z-index: 90;
        align-items: center;
    }

    #menu-toggle:checked~.header-content {
        right: 0;
    }

    .headername {
        font-size: 1.8em;
        margin-bottom: 30px;
        text-align: center;
        color: var(--dark-red);
    }

    .links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        font-size: 1.2em;
        margin: 0;
    }

    .logo {
        height: 180px;
        width: 180px;
    }

    .lowheader {
        height: 60px;
    }

    .upheader {
        height: 60px;
    }


}

@media screen and (max-width: 796px) {
    .foto {
        height: 200px;
        float: left;
        margin: 0 5px 0 0;
    }

    .content {
        margin: 15px;
        padding: 20px;
    }

    .text {
        font-size: 1.2em;
    }
}

/* Gallery Showcase Styles */
.gallery-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 10px;
    gap: 30px;
}

.gallery-post {
    width: 100%;
    max-width: 413px;
    height: 550px;
    background-image: url(images/contentbg.jpg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-gold);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--primary-gold);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-post:hover {
    transform: scale(1.02);
}

.gallery-image {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--primary-gold);
}

.gallery-description {
    padding: 15px;
    text-align: left;
    color: var(--dark-red);
    flex-shrink: 0;
}

.gallery-description p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.3;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border: 3px solid var(--primary-gold);
    box-shadow: 0 0 30px rgba(227, 200, 116, 0.5);
    border-radius: 5px;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--primary-gold);
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.close-lightbox:hover {
    color: var(--light-grey);
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .close-lightbox {
        top: 20px;
        right: 30px;
        font-size: 50px;
    }
}