@import url('../../Default/Css/Default.css');

/* ############################################################################
   ## 
   ##  TwoCols1
   ##
   ############################################################################ 
    
   | Header                               |
   |______________________________________|
   | SubHeader                            |
   |______________________________________|
   | PageTop                              | (TrailNav, PageFunctions)
   |______________________________________|
   |          |                           |
   | Tertiary | Primary                   |
   |          |                           |
   |          |___________________________|
   |          | Secondary                 |
   |__________|___________________________|
   | PageBottom                           | (PageFunctions)
   |______________________________________|
   | Footer                               |
   |                                      |
   
    <TemplateWrapper>
        <Template>
            <AccessibilityToolbar />
            <Header />
            <SubHeader />
            <PageTop>
                <TrailNav />
                <PageFunctionsTop />
            </PageTop>
            <Content>
                <Page>
                    <PageContent>
                        <Primary />
                        <Secondary />
                    </PageContent>
                </Page>
                <Tertiary />
            </Content>
            <PageBottom>
                <PageFunctionsBottom />
            </PageBottom>
            <Footer />
        </Template>
    </TemplateWrapper>
*/

/* ############################################################################
   ## 
   ##  Custom Design Options
   ##  ADD/CHANGE RULES HERE (colors, styling, etc.)
   ##
   ##  - Note that some rules are overridden by fixed design elements below.
   ##  - Change column and page widths and other options in Variables.css.
   ##
   ######################################################################### */

#Page {
    order: -1;
}

    #PageTop {
        display: flex;
    }

    #PageContent {
    }
    
        #Primary {
        }

            #Primary #PrimaryContent {
            }

            #SubHeader {
                margin-bottom: 24px;
            }
            
                #SubHeader .page-intro {
                    z-index: 10;
                    padding-left: 0;
                    padding-right: 0;
                }
            
                    #SubHeader .page-intro .text {
                        padding: 60px 0 0 0;
                    }
            
                        #SubHeader .page-intro .text h1.page-title {
                            color: var(--site-color-white);
                            margin: 0;
                        }

                        #SubHeader .page-intro .text #PageSummaryIntro {
                            margin-bottom: 0.5em;
                        }
            
                #SubHeader .HeaderImage:has(img) {
                    position: relative;
                    display: flex;
                    align-items: center;
                    width: 100%;
                    max-width: 100%;
                    max-height: 530px;
                    overflow: hidden;
                }
            
                #SubHeader .HeaderImage:has(img):after {
                    content: '';
                    position: absolute;
                    left: 0;
                    display: inline-block;
                    width: 100%;
                    height: 100%;
                    background-color: rgba(0,0,0,0.35);
                }
            
                    #SubHeader .HeaderImage img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }

        #Secondary {
        }

            #Secondary #SecondaryContent {
              /*  box-sizing: border-box;
                width: calc(calc(100% + var(--site-page-tertiary-col-width)) + var(--site-page-col-gutter));
                margin-left: calc(calc(var(--site-page-tertiary-col-width) + var(--site-page-col-gutter)) * -1);
                padding: var(--site-padding-thick);
                background: var(--site-color-ui-lighter);*/
            }

    #PageBottom {
    }

@media screen and (max-width: 1600px) {
    .page-intro ~ .section > .content > :first-child {
        margin-top: -411px !important;
    }

    #SubHeader .HeaderImage:has(img) { 
        height: 490px;
        max-height: 490px;
    }

        #SubHeader .HeaderImage img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
}

@media screen and (max-width: 1200px) {

    /* Place custom responsive rules here. */

}

@media screen and (max-width: 600px) { 
    #SubHeader .HeaderImage:has(img) { 
        height: 430px;
        max-height: 430px;
    }
}

/* ############################################################################
   ## 
   ##  Fixed Design Elements
   ## 
   ##  DON'T CHANGE unless you want to re-test templates in all browsers.
   ## 
   ##  - Modify column widths in Variables.css. 
   ##  - Modify colors and styling in the section above.
   ##  - If you do make changes BE SURE to align all changes across
   ##    OneCol1.css, TwoCols1.css, TwoCols2.css, ThreeCols1.css and templates 
   ##    based on these: they were all tested together as a single collection.
   ##
   ######################################################################### */

#PageContainer {
    /* --content-area-width and --content-area-padding are needed for calculating elements that use .width-screen to sit outside the boundaries of the fixed page width, and they need to be adjusted to 100% at the fixed page width's break point.. */
    --content-area-width: var(--site-page-maxwidth-mid);
    --content-area-padding: var(--site-page-padding-horizontal);
}

#SubHeader {
}

#PageTop {
    display: none;
    padding: var(--site-padding-thin) 0;
}

#SubHeader #PageTop {
    display: block;
    margin: 0;
    padding-top: 0;
    padding-left: 0;
}

#Content {
    position: relative;
    display: flex;
    gap: var(--site-page-col-gutter);
    box-sizing: border-box;
    width: 100%;
    max-width: var(--content-area-width);
    margin-left: auto;
    margin-right: auto;
}

    #Page {
        position: relative;
        box-sizing: border-box;
        width: calc(100% - var(--site-page-tertiary-col-width));
    }
    
        #PageContent {
            position: relative;
            box-sizing: border-box;
            width: 100%;
        }
        
            #Primary {
            }
            
            #Secondary {
            }

    #Tertiary {
        position: relative;
        box-sizing: border-box;
        margin-top: var(--site-page-tertiary-col-margin-top);
        margin-bottom: var(--site-box-margin-bottom);
        width: var(--site-page-tertiary-col-width);
    }
    
    #PageBottom {
        /* Use this if #PageBottom is inside #PageContent but not it will overlap #Tertiary if #PageContent is shorter than it. */
        /*
        width: calc(calc(100% + var(--site-page-tertiary-col-width)) + var(--site-page-col-gutter));
        margin-left: calc(calc(var(--site-page-tertiary-col-width) + var(--site-page-col-gutter)) * -1);
        */
    }

@media screen and (max-width: 1600px) {
    /* This breakpoint matches #Content width, not --site-breakpoint-large. */

    #Content {
        --content-area-width: 100%;
        --content-area-padding: var(--site-padding);
        padding-left: var(--content-area-padding);
        padding-right: var(--content-area-padding);
    }

    #SubHeader .page-intro {
        padding-left: var(--site-page-padding-horizontal);
        padding-right: var(--site-page-padding-horizontal);
    }

    #PageTop {
        padding: var(--site-padding-thin) 0 var(--site-padding-thin) var(--site-padding);
    }

}

@media screen and (max-width: 1200px) {
    
    #Content {
        display: block;
    }
   
       #Page {
           width: 100%;
       }

    #Secondary #SecondaryContent {
        width: 100%;
    }

    #Tertiary {
        display: none;
        /* But if it was displayed... */
        margin-top: 0;
        width: 100%;
        order: initial;
    }

    #PageBottom {
        width: 100%;
        margin-left: auto;
    }

}

@media screen and (max-width: 600px) {

    #Content {
        padding-left: var(--site-padding-thinner);
        padding-right: var(--site-padding-thinner);
    }

    #SubHeader {
        margin-bottom: var(--site-margin);
    }

    #PageTop {
        display: block;
    }

    #SubHeader #PageTop {
        display: none;
    }

    #SubHeader .page-intro .text #PageSummaryIntro {
        display: none;
    }

}

/*
    Full width template
*/

body.template-full-width #Content {
    --content-area-width: 100%;
}