/*CSS document*/

div.container {
    max-width: 80em;
    margin: 0 auto;
}
header {
    border-bottom: 3px solid #274C77;
    margin-bottom: 1em;
}
body {
    
    background-color: #fffefb;
    font-family: "interstate", sans-serif;
    font-weight: 400;
    font-style: normal;
}
section {
    padding-bottom: 2em;
}
aside {
        margin: 0 auto 3em;
}


nav{
    font-family: "interstate", sans-serif;
    font-weight: 500;
    font-style: normal;
     color: #274C77;
    
}
nav li a {
    display: inline-block;
    padding-right: 1em;
}

a {
    text-decoration: none;
    color: #274C77;
}
a:hover { 
  color: #A3CEF1;
}



h1 {
    width: 12em;
}
h2 {font-family: "gitan-latin", sans-serif;
font-weight: 400;
font-size: 2em;
font-style: normal;
   color:#ba9061;
    width: 12em;
 
}
h3 {
font-family: "interstate", sans-serif;
font-weight: 500;
font-style: normal;
    color: #000000;
    }
h4 {
    font-family: "interstate", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: #000000;
    
}
h5 {
    font-family: "interstate", sans-serif;
    font-weight: 400;
    font-style: italic;
}
h6 {
    font-family: "interstate", sans-serif;
    font-weight: 400;
    font-size: 1em;
    font-style: italic;
    color:#ba9061;
   
}
.figgy {
    
     font-family: "interstate", sans-serif;
    font-weight: 300;
    font-style: italic;
    color:#ba9061;
}




footer {
font-family: "interstate", sans-serif;
    font-weight: 350;
    font-style: normal;
    background-color: #274C77;
    padding: 1em;
    }
footer ul li a {
    color: #fffefb;
}
footer ul li{
    list-style-type: none;
}
footer ul {
    padding: 0;
}

.white_text{
    color: #fffefb;
}



figure {
    margin: 0;
}

img {
    width: 100%;
    padding: 2em, 0em;
}




ul {
    list-style-type: none;
    padding: 0;
}

  main.gallery {
    position: relative;
    overflow: hidden;
    padding-bottom: calc(72% + 3em);}    
    figure.gallery{
    margin: 0;
    width: calc(100%-2em);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
    .pnav{
    display: grid;
    grid-template-columns:repeat(8, 1fr);
    grid-gap: 0.2em;
    margin-bottom: 1em;
    }


input:nth-of-type(1):checked ~ main figure:nth-of-type(1),
input:nth-of-type(2):checked ~ main figure:nth-of-type(2),
input:nth-of-type(3):checked ~ main figure:nth-of-type(3),
input:nth-of-type(4):checked ~ main figure:nth-of-type(4),
input:nth-of-type(5):checked ~ main figure:nth-of-type(5),
input:nth-of-type(6):checked ~ main figure:nth-of-type(6),
input:nth-of-type(7):checked ~ main figure:nth-of-type(7),
input:nth-of-type(8):checked ~ main figure:nth-of-type(8){
    opacity: 1;
}

    input.gallery {
    display:none;
    }

@media screen and (min-width: 60em){
    
    div.container {
        display: grid;
        grid-template-columns: 4fr 0.8fr;
        grid-column-gap: 1em;
        
    }
     div.about {
       max-width: 60em;
       margin:auto;
    }
   div.culture {
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-column-gap: 1em;
       max-width: 60em;
       margin:auto;
    }
    main.story {
        display:block;
        margin:auto;
    }
    div.coast{
        display: grid;
        grid-template-columns: 4fr 0.8fr;
        grid-column-gap: 1em;
        max-width: 60em;
       margin:auto;
    }
    div.lifestyle {
        display: grid;
        grid-template-columns: 4fr 0.8fr;
        grid-column-gap: 1em;
        max-width: 60em;
       margin:auto;
    }   
     div.gallery {
       max-width: 60em;
       margin:auto;
         
    }
    div.newsletter {
        max-width: 60em;
       margin:auto;
    }

    
    nav ul li {
    display: inline-block;}
   
    header{
        grid-column: 1/3;
    }
    
    main {
        grid-column: 1/2;
        display: grid;
        grid-template-columns: 1.5fr 3fr;
        margin: 0;
        grid-column-gap: 1em;
        overflow: none;
    
    }
    
    main.newsletter {
        grid-template-columns: none;
        margin: auto;
    }
   
    section.mainstory{
        grid-column: 2/3;
        grid-row: 1/3;
    }
   section.secondary {
        grid-column: 1/2;
        
    }  

    aside {
        grid-column: 2/3;
        display: block;
    }
    footer {
        grid-column: 1/3;
    }