/*CSS document*/

html, body, div, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit;}

img {
    width: 100%;
    display: block;
}

div.container, div.home-container {
    margin: auto;
    position: relative;
    max-width: 52em;
}

div.photogallery {
    max-width: 60em;
    grid-column: 1/3;
    margin: 0 auto;
}

div.photogallery figure{
    margin: 0;
    width: calc(100%-2em);
    position: absolute;
    transition: left 0.5s, opacity .5s;
    opacity: 0;
}

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

div.photogallery nav.gallery1 {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-gap: .2em;
margin-bottom: 4em;
}

div.photogallery nav.gallery2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: .2em;
    margin-bottom: 4em;
}

div.photogallery div.gallery{
    position: relative;
    overflow: hidden;
    padding-bottom: calc(67% + .5em);
}

div.photogallery figcaption {
    font-family: "avenir-lt-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    margin: 1em 0;
    color: #888;
    text-align: center;
}

div.photogallery img{
    width: 100%;
}

main.photogallery {
    grid-column: 1/3;
}

 div.photogallery input{
    display: none;
} 

div.photogallery h2 {
    font-size: 2em;
    padding: 2rem 0 1rem 0;
}

p.credits {
    font-weight: bold;
    margin: 0 .5rem;
    font-family: "alternate-gothic-no-3-d", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    color: rgb(77, 82, 84);
}

p.quote {
    color: rgb(3, 95, 193);
    padding-bottom: 1rem;
    line-height: 1.3em;
    font-family: "avenir-lt-pro", sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.5em;
    max-width: 17em;
}

section.personal-info ul li input[type="text"],
section ul li input[type="email"],
section ul li input[type="tel"],
section ul li select {
	flex: 4 0 24em;
	box-sizing: border-box;
}

div.newsletter{
    grid-column: 1/3;
}


div.newsletter li{
    color: rgb(34 34 34);
    font-family: "avenir-lt-pro", sans-serif;
    line-height: 1.5em;
    padding-bottom: .5em;
}

.newsletter-type{
    font-weight: bold;
    font-size: 1.5em;
    font-style: normal;
    color: rgb(3, 95, 193);
    padding: 1em 0 .5em 0;
}

.newsletter-title{
    font-weight: bold;
    font-size: 2.3em;
    font-style: normal;
    color: rgb(3, 95, 193);
    padding: .5em 0 .5em 0;
}

section.personal-info ul li{
	display: flex;
	flex-wrap: wrap;
}

section.personal-info ul li label{
	flex: 0 0 10em;
}

textarea {
	box-sizing: border-box;
	display: block;
	width: 90%;
	height: 6em;
	background: #fcfcfc;
	border: 1px solid #e8e8e8;
	}

button {
	background-color: rgb(250, 250, 250);
    color: rgb(3, 95, 193);
	border-radius: .4em;
    margin: .5em 0 1.5em 0;
}

header {
    padding: 2rem 1rem;
}

nav {
    padding: 1rem 0 0 0;
    font-family: "alternate-gothic-no-3-d", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
}

h1 {
    width: 7rem;
}

h2 {
    font-weight: bold;
    margin: 0 .5rem;
    font-family: "alternate-gothic-no-3-d", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    color: rgb(77, 82, 84);
}

a {
    text-decoration: none;
}

ul li {
    list-style-type: none;
}

section.main h2{
    padding-top: .7rem;
    font-size: 3.5em;
}

section.secondary h2 {
    padding-top: .7rem;
    font-size: 1.8em;
}

section.tertiary h2 {
    border-top: 1px solid rgb(84, 119, 157);
    padding-top: .7em;
    font-size: 1.7em;
}

li a {
    color: rgb(3, 95, 193);
}

li {
    line-height: 1.2em;
}


p {
    color: rgb(34 34 34);
    padding-bottom: 2rem;
    line-height: 1.3em;
    margin: 0 .5rem;
    font-family: "avenir-lt-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

figcaption {
    color: rgb(67, 67, 67);
    font-style: italic;
    font-family: sans-serif;
    font-size: 1.2em;
    padding: .5em 0 1.7em 0;
    margin: 0 .5rem;
}

aside {
    background-color: rgb(170, 165, 158);
    padding: 1rem .7rem;
}

aside h2, aside p {
    color: rgb(67, 67, 67);
}

article h2 {
    font-size: 2.4em;
    padding: 2rem 0 1rem 0;
}

footer {
    background-color: rgb(3, 95, 193);
}

footer p {
    color: rgb(250, 250, 250);
    padding: 1rem 0 1rem 0
}

@media only screen and (min-width: 40em) {
    nav ul li {
        display: inline;
        margin-right: 1.5rem;
    }}

@media only screen and (min-width: 60em) {

    div.home-container {
        max-width: 80em;
        padding: 0 1em;
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-gap: 1em;
    }
    
    div.container {
        max-width: 60em;
        padding: 0 1em;
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-gap: 1em;
    } 

    header, footer {
        grid-column: 1/3;
    }

    div.home-container main {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 1em;
    }

    div.home-container aside {
        background: none;
        padding: 0;
        margin: 0;
    }

    div.container aside {
        margin: 0;
    }

    section.main {
        grid-column: 2/4;
        grid-row: 1/3;
        display: flex;
    }

    section.main a {
        display: flex;
        flex-direction: column;
        flex: 1 0 12em;
    }

    section.main a figure {
        flex: 1 0 12em;
        background: #ff0;
        border: 2px;

        display: flex;
    }

    section.main a figure img {
        object-fit: cover;
        border: 2px;
    }

    section.main a h2 {
        flex: 0 0 1em;
    }

    section.main a p {
        flex: 0 0 4em;
    }

    section.secondary {
        display: flex;
    }

    section.secondary a {
        display: flex;
        flex-direction: column;
        flex: 1 0 12em;
    }

    section.secondary a figure {
        flex: 1 0 12em;
        background: #ff0;
        border: 2px;

        display: flex;
    }

    section.secondary a figure img {
        object-fit: cover;
        border: 2px;
    }

    section.secondary a h2 {
        flex: 0 0 1em;
    }

    section.secondary a p {
        flex: 0 0 4em;
    }
}

@media screen and (prefers-color-scheme: dark) {
    body {
        background-color: rgb(56, 54, 51);
    }

    p {
        color: rgb(216, 216, 216);

    }
    
    h2 {
        color: rgb(216, 216, 216);
    }
    
    aside {
        background-color: rgb(16, 11, 8)
    }
    
    aside h2, aside p {
        color: rgb(216, 216, 216);
    }

    h1 {  
        background-image: url("NOISE-logo-dark-mode.svg");  
        background-repeat: no-repeat;  
        background-size: contain;  
        }  

    h1 img {  
        opacity: 0;  
        }  

    li a {
        color: rgb(37, 159, 237);
    }    

    figcaption {
        color: rgb(216, 216, 216);
    }

    p.credits {
        color:rgb(216, 216, 216)
    }

    p.quote {
        color:rgb(37, 159, 237)
    }

    div.newsletter li{
        color:rgb(216, 216, 216)
    }
    
    .newsletter-type, .newsletter-title{
        color: rgb(37, 159, 237);
    }

}
