header#masthead {
    width: 100%;
    margin-bottom: calc((var(--std-margin) * 2));

    #header-wrapper {
        background-size: cover;
        background-position: 50% 0px;
        background-repeat: no-repeat;
		background-color: var(--black);
        position: relative;
        display: grid;
        overflow: hidden;

        > * {
            grid-area: 1 / 1;
          }
    
        > img {
            object-fit: cover;
            object-position: center center;
            width: 100%;
            height: 100%;
            aspect-ratio: auto;
            position: relative;
            top:0px;
        }
    
        > video {
            object-fit: cover;
            object-position: center center;
            width: 100%;
            height: 100%;
            aspect-ratio: auto;
            position: relative;
            top: 0;
        }

    }

    #header-wrapper {
        position: relative;
        overflow:visible;
    }
    

    #header-inner {
        z-index: 100;
        margin: 0 auto 0 auto;
        width: 100%;
        max-width: var(--content-width-wide);
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    #header-top {
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: var(--content-width-wide);
        position: relative;
        display: flex;
        flex-direction: row;
        padding: 0 20px 0 20px;
		z-index:2;
    }

    #header-mid {
        margin: auto auto auto auto;
        width: 100%;
        max-width: var(--content-width);
        padding: 0 20px calc(3 * var(--std-margin)) 20px;
        position: relative;

        h1 {
            font-size: 3rem;
            font-family: "ivypresto-headline",serif;
            color: white;
            line-height: 1.1;
            margin: 0 0 40px 0;
            font-weight: normal;
        }


        P {
            font-size: 3rem;
            font-family: "ivypresto-headline",serif;
            color: white;
            line-height: 1.1;
            margin: 0 0 40px 0;
            font-weight: normal;
        }

        .single-development & h1 {
            font-weight: 300;
        }

        .single-development & p {
            font-weight: 300;
        }
    }

    

    #header-footer {
        z-index: 10;
        position: relative;
        margin: 0;
        width: 100%;
        max-width: var(--content-width-wide);
        
        
        a.link {
            background-color: var(--deep-purple);
            font-size: 0.875rem;
            line-height: 1;
            color: white;
            text-transform: uppercase;
            font-weight: 700;
            padding: 14px 30px 12px 30px;
            text-decoration: none;
            transition: all 0.5s;
            display: block;
            width: fit-content;

            &:focus, &:hover, &:active {
                background-color: var(--deep-purple);
            }
        }

        *:last-child {
            margin-bottom: 0;
        }

        P {
            font-family: "ivypresto-headline",serif;
            font-size: 1.25rem;
        }

        #header-footer-inner {
            padding: 40px 20px 40px 20px;
            background-color: var(--aqua);
        }
    }

    .buttons {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;

        .home & a:last-child {
            background-color: white;
    
            &:focus, &:hover, &:active {
                background-color: white;
            }
        }
    }

    .site-branding {
        width: 200px;
        height: 200px;
        position:relative;
        top:0px;
        left:0px;
        background: url(../images/mp-logo.svg) no-repeat;
        background-size: contain;
        flex: 0 0 auto;

        h1, p {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            text-indent: -9999px;
            overflow: hidden;
            white-space: nowrap;

        }

        
        a {
            text-indent: -9999px;
            overflow: hidden;
            white-space: nowrap;
            display: block;
            width: 100%;
            height: 100%;
            position: absolute;
            top:0px;
            left:0px;
        }
    }

    #site-navigation {
        position: absolute;
        top: 0px;
        left: 0;
        transition: background-color .5s;
        z-index: 100;
        
        &.toggled {
            background-color: var(--deep-purple);
        }

        .menu-toggle {
            height: 80px;
            width: 42px;
            background-color: transparent;
            padding: 0;
            margin: 0 0 0 auto;
            border: none;
            position: relative;
            right: 20px;
            color: transparent;

            &:before {
                font-size: 3rem;
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
                -webkit-font-smoothing: antialiased;
                content: '\f0c9';
                color: white;
                position: absolute;
                top:0px;
                left:0px;
            }
        }

        &.toggled {
            .menu-toggle {
                &:before {
                    content: '\f00d';
                }
            }

            ul {
                display: block;
            }
        }

        ul{
            font-size: 0.8125rem;
            font-weight: 700;
            text-transform: uppercase;
            justify-content: start;
            padding: 0 0px 20px 0;
            display: none;

            &.toggled {
                display: block;
            }

            li {
                margin: 0 0px 20px 0;
                text-align: center;
                display: block;



                &:first-child > a:after  {
                    content: "";
                    display: inline-block;
                    border-bottom: 2px solid var(--aqua);
                    border-right: 2px solid var(--aqua);
                    height: 8px;
                    width: 8px;
                    rotate: 45deg;
                    position: relative;
                    bottom: 3px;
                    margin-left: 5px;
                }

                ul {
                    opacity: 0;
                    padding: 20px 0 0 0;
                    display: block;

    

                    li {
                        text-align: center;
                        display: block;
                        &:first-child > a:after  {
                            content: "";
                            display: none;
                            
                        }
                    }
                }

                &.focus, &:hover {
                    ul {
                        position: relative;
                        float: none;
                        left:0;
                        display: block;
                        box-shadow: none;
                        opacity: 1;

                        li {
                            text-align: right;

                            a {
                                color: var(--aqua);
                                line-height: 1.5;
                                margin: 0 auto 0 auto;
                                text-align: center;
                    
                                &:hover, &:focus, &:active {
                                    color: var(--aqua-dark);
                                }
                    
                            }
                        }
                    }

                }
            }

        }

        a {
            color: var(--aqua);
            line-height: 1.5;
            white-space: nowrap;

            &:hover, &:focus, &:active {
                color: var(--aqua-dark);
            }

        }

        li.current_page_item, li.current-menu-parent {
            a {
                color: white;

                &:hover, &:focus, &:active {
                    color: white;
                }
            }
            &:first-child > a:after  {
                border-bottom: 2px solid white;
                border-right: 2px solid white;
            }
            li a {
                color: var(--black);
                width: fit-content;

                &:hover, &:focus, &:active {
                    color: var(--black);
                }
    
            }
        }

        ul {
            transition: opacity .5s !important;
        }



    }

    .soc-med {

        width: 65px;
        height: 100px;
        background-color: white;
        display: none;
        flex-direction: column;
        justify-content: center;
        gap:15px;
        align-items: center;
        z-index: 105;
        position: absolute;
        bottom:0;
        right:0;

        padding: 0px 0px 0px 0px;
        margin: 0;
         li {
            padding: 0;
            margin: 0;
            list-style: none;
            width: 1rem;
            height: 1rem;

            a {
                width: 100%;
                height: 100%;
                background: center/contain no-repeat;
                display: block;
                text-indent: -9999px;
                white-space: nowrap;
                overflow: hidden;
            }

            &.li a {
                background-image: url(../images/li.svg);
            }
            &.fb a {
                background-image: url(../images/fb.svg);
            }
            &.ig a {
                background-image: url(../images/ig.svg);
            }
            &.x a {
                background-image: url(../images/x.svg);
            }
         }
    }

    @media screen and (min-width: 900px) {
        #header-mid {
    
            h1 {
                font-size: 3.75rem;
            }
    
    
            P {
                font-size: 3.75rem;
            }
        }

    }


    @media screen and (min-width: 1300px) {
        margin-bottom: calc((var(--std-margin) * 4));

        #header-wrapper {
            > img {
                object-fit: cover;
                object-position: center center;
                width: 100%;
                height: 100%;
                aspect-ratio: 12/5;
            }
    
            > video {
                object-fit: cover;
                object-position: center center;
                width: 100%;
                height: 100%;
                aspect-ratio: 12/5;
            }
        }


        #header-footer {
            margin: calc(1.5 * (-1 * var(--std-margin))) auto 0 auto;
            padding: 0 20px 0 20px;
            padding-right: calc(14 * var(--std-margin));

            #header-footer-inner {
                padding: 60px 80px 60px 80px;
            }
        }

        .site-branding {
            width: 300px;
            height: 300px;
        }

        #site-navigation {
            position: relative;
            top:50px;
            margin-left: 40px;

            &.toggled {
                background-color: transparent;
            }

            ul {
                margin: 0 0 0 0;
                padding: 0;
                display: flex;
    
                li {
                    margin: 0 20px 0 0;

                    &:last-child {
                        margin-right: 0;
                    }

                    &.focus, &:hover {
                        text-align: left;
    
                        ul {
                            background-color: var(--aqua);
                            display: block;
                            width: fit-content;
                            padding: 10px 10px 10px 10px;
                            position: absolute;
                            float: left;
                            left: 0;
                            li {
                                display: block;
                                padding: 0 0 5px 0;
                                text-align: left;
            
                                &:last-child {
                                    padding: 0;
                                }
                                a {
                                    color: var(--black);
                                    width: fit-content;
                                    display: inline;
                        
                                    &:hover, &:focus, &:active {
                                        color: #555;
                                    }
                        
                                }
                            }
                        }
                    }
                }




            }
        }

        .soc-med {
            display: flex;
        }
    }




    @media screen and (min-width: 1500px) {

        #header-footer {
            margin: calc(3 * (-1 * var(--std-margin))) auto 0 auto;
        }
    }
}