header#masthead {
    background: linear-gradient(180deg, rgba(49, 48, 48, 0.56) 40.61814692982456%, rgba(147, 145, 143, 0) 100%);
    background-size: 100% 200%;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    max-height: 300px;
    position: absolute;
    overflow: hidden;
    width: 100%;
    z-index: 999;
}

button.menu-open-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.5rem;
    color: #ffffff;
    height: 50px;
    cursor: pointer;
    font-family: 'Goudy Old Style';
}

button.menu-open-btn svg {
    width: 60px;
    height: 60px;
    fill: #ffffff;
}

.site-branding {
    text-align: center;
}

.quote-btn {
    text-align: right;
}

#primary-menu {
    position: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) ), url("/wp-content/uploads/2025/03/photo-1672361720452-02fd251c69dc-scaled.webp");
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 999999;
    display: flex;
    
    /* Hide initially */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    
    /* Transition properties */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#primary-menu.menu-opened {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}


#primary-menu > ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    padding: 0;
}
#primary-menu ul{
    list-style: none;
}
#primary-menu ul li a{
    color: #ffffff;
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    font-size: 3rem;
    transition: transform 0.3s ease-in-out;
    font-family: 'Goudy Old Style';
}
#primary-menu ul li a:hover{
    transform: scale(1.1);
}

.menu-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-close-btn span {
    font-size: 32px;
    font-family: 'Goudy Old Style';
}

.quote-btn a {
    font-size: 1.5rem;
    color: #ffffff;
    font-family: 'Goudy Old Style';
}

header#masthead a.custom-logo-link {
    display: inline-block;
	padding-top: 15px;
    padding-bottom: 10px;
}
@media (max-width: 991px) {
    header#masthead img.custom-logo {
        max-height: 180px;
        width: auto;
    }
}

@media (max-width: 768px) {
    button.menu-open-btn {
        font-size: 1.8rem;
    }
    button.menu-open-btn svg {
        width: 45px;
        height: 45px;
    }
    header#masthead img.custom-logo {
        max-height: 180px;
        width: auto;
    }
    header#masthead .quote-btn{
        display: none;
    }
    header#masthead .grid-middle {
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    #primary-menu ul li a{
        font-size: 2.5rem;
        padding: 8px;
    }
    button.menu-open-btn{
        float: right;
    }
}
  