/* ----------------------------- CSS Grid Style ------------------------- */
main {
    display: grid;
    grid-template-columns: 6fr 2fr;
    grid-template-rows: auto;
    grid-column-gap: 2rem;
    grid-row-gap: 1rem;
    grid-template-areas: 
        "header header"
        "article sidebar";
}

main header {
    grid-area: header;
}

main article {
    grid-area: article;
}

main section:not(.summaryList):not(.summary), main aside {
    grid-area: sidebar;
}

section.sideBar section {
    display: block;
    margin-bottom: 0.5rem;
}


/* ----------------------------- Article styles ---------------------------- */
header.article-header {
    position: relative;
    width: 100%;
}

article a {
    text-decoration: dotted;
    color: #707070;
}

article a:hover {
    text-decoration: underline;
}

header.article-header img {
    width: 115%;
    margin-left: -6%;
    margin-right: -6%;
    padding: 0;
}

header.article-header div#titleWrapper  {
    position: absolute;
    z-index: 10;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: #000000;
}

.topLeft {
    top: 1rem;
    left: 1rem;
}

.topRight {
    top: 1rem;
    right: 1rem;
}

.bottomRight {
    bottom: 0.5rem;
    right: 0;
}

.bottomLeft {
    bottom: 0.5rem;
    left: 0;
}

h1.title {
    display: none;
}

h4.subtitle {
    display: none;
}

header.article-header div#titleWrapper h1, header.article-header div#titleWrapper h2 {
    position: relative;
    z-index: 11;
    padding-top: 1rem;
    text-align: center;
    font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', Arial, Helvetica, sans-serif;
    font-size: 3rem;
    margin: 0;
}

div#titleWrapper h1.wide {
    font-size: 2.5rem !important;
}

div#titleWrapper h1.tooWide {
    font-size: 2.0rem !important;
    line-height: 2.0rem !important;
}


header.article-header div#titleWrapper h2 {
    margin: 0;
    font-size: 1.5rem;
    text-align: left;
}

header.article-header div#titleWrapper.topRight h2, header.article-header div#titleWrapper.bottomRight h2 {
    text-align: right;
}

article {
    margin-left: 10rem;
}

article h1, article h2, article h3 {
    font-family: Helvetica, Arial, 'Trebuchet MS', 'geneva', sans-serif;
    color: #b7410e;
    margin-bottom: 0.5rem;
    text-align: left;
}

article h1 {
    font-size: 2rem;
}

article h2 {
    font-size: 1.3rem;
}

article h1 + p, article h2 + p, article h3 + p {
    margin-top: 0;
}


blockquote {
    background: #9f9f9f;
    border: 1px solid #b7410e;
    width: 90%;
    margin: 0;
    padding-left: 2rem;
    padding-right: 2rem;
}

blockquote .attrib {
    text-align: right;
    font-weight: bold;
}

table {
    border: 1px solid #6b2000;
    border-collapse: collapse;
}

td.label {
    background-color: #6b2000;
    color: #ffffff;   
    padding: 0.2rem;
    font-family: Helvetica, Arial, 'Trebuchet MS', 'geneva', sans-serif;
}

td.data {
    color: #6b2000;
    padding: 0.2rem;
    border-bottom: 1px solid #6b2000;
    border-right: 1px solid  #6b2000;
}

td.data a {
    text-decoration : none;
    color: #000000;
}


td.data a:hover {
    text-decoration : underline;
}


#lightBox {
    display: none;
    position: absolute;
    text-align: center;
    width: 105%;
    left: -2.5rem;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #b7410e;
    border-radius: 5px;
    z-index: 4;
}

#lightImg {
    position: relative;
    max-width: 100%;
}

#lightBox p {
    font-size: 1rem;
    color: #b7410e;  
    font-family: Helvetica, Verdana, Tahoma, Arial, sans-serif;
    padding-top: 0.5rem;
}

/* ----------------------------- Aside styles ---------------------------- */

aside.bottom {
    display: none;
}

aside {
    background: #efc88b;
    border: 1px solid #b7410e;
    border-radius: 5px;
    padding: 1rem;
    padding-top: 0;
    margin-bottom: 0.5rem;
}

aside h1 {
    font-family: Helvetica, Tahoma, 'Geneva', 'Trebuchet MS', Arial, Verdana, sans-serif;
    font-size: 1.2rem;
    line-height: 1.4rem;
    color: #b7410e;
}

aside p, aside a {
    font-family: Helvetica, Tahoma, 'Geneva', 'Trebuchet MS', Arial, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.1rem;
}

aside nav a {
    font-family: Helvetica, Tahoma, 'Geneva', 'Trebuchet MS', Arial, Verdana, sans-serif;
    font-size: 1rem;
    text-decoration:  none;
    line-height: 1.2rem;
    display: block;
    margin-left: 2rem;
}

/* ----------------------------- Sidebar nav styles ---------------------------- */


section.sideBar > section > nav {
    background: #9f9f9f;
    border: 1px solid #b7410e;
    border-radius: 5px;
    padding: 1rem;
}

section.sideBar h1 {
    font-family: Helvetica, Tahoma, 'Geneva', 'Trebuchet MS', Arial, Verdana, sans-serif;
    font-size: 1.5rem;
    line-height: 1.3rem;
    background: #6b2000;
    color: #acacac;
    text-align: center;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-top: 0;
    padding: 0.4rem;
}

section.sideBar h2 {
    font-family: Helvetica, Tahoma, 'Geneva', 'Trebuchet MS', Arial, Verdana, sans-serif;
    font-size: 1.2rem;
    line-height: 1.3rem;
    color: #6b2000;
    margin: 0;
    margin-top: 1rem;
}

section.sideBar h3 {
    font-size: 1.0rem;
    line-height: 1.1rem;
    color: #6b2000;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

section.sideBar a {
    font-family: Helvetica, Tahoma, 'Geneva', 'Trebuchet MS', Arial, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.5rem;
    color: #000000;
    margin: 0;
    text-decoration: none;
    display: block;
}


section.sideBar a:hover {
    text-decoration: underline;
}

/* ------------------------------------ Parallax -------------------------------------------- */
.lax {
    height: 75vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50% 15% 0 15%;
}

.laxw {
    background-size: contain;
    object-fit: contain;
}

.lax p {
    color: #6b2000;
    font-size: 1.2rem;
    line-height: 1.8rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba( 238, 229, 233, 0.55);
    padding: 0.5rem 1rem 0.5rem 1rem
}


/* ---------------------------------- Responsiveness ---------------------------------------- */
@media only screen and (max-width: 1200px )
{
    main {
        grid-template-columns: 5fr 2fr;
    }

    article {
        margin-left: 5rem;
    }
}


@media only screen and (max-width: 1024px )
{
    main {
        display: block;
    }


    
    .header-short {
        font-size: 1rem;
    }  

    article {
        margin-left: 0;
    }

    section.sideBar nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: auto;
        grid-column-gap: 1rem;
        grid-row-gap: 0.5rem;
    }

    section.sideBar nav h1 {
        grid-column: span 4;
    }
}

@media only screen and (max-width: 740px )
{
    header.article-header img {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    header.article-header div#titleWrapper h1  {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 1.5rem;
        margin: 0;
    }

    header.article-header div#titleWrapper h2 {
        display: none;
    }

    aside.right {
        display: none;
    }
    
    aside.bottom {
        display: block;
        width: 90%;
    }

    section.sideBar {
        display: none;
    }

    .lax {
        height: unset;
        background-attachment: fixed;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        padding: 15% 5% 0% 5%;
    }

    .laxw {
        background-size: cover;
        object-fit: cover;
    }

    .lax p {
        color: #461602;
        font-size: 1rem;
        line-height: 1.1rem;
        padding: 0.5rem 1rem 0.5rem 1rem;
        margin: 0;
    }
    
}