/*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;
}

img.logo-light {
    margin-top: 1em;
    padding: 0;
}

header img{
    margin-top: 1em;
    width: 12em;
    height: auto;
}


h1 {
	width: 8em;
    margin-bottom: 1.5em;
}

body{
    background-color: rgb(245, 240, 240);
}

div.container, div.home-container, div.gallery-container{
    position: relative;
    min-height: 100vh;
    max-width: 40em;
    margin: auto;
}


nav ul {
    list-style: none;
}

nav ul li a{
    color: rgb(193, 117, 40);
    font-weight: bold;
    font-family: "proxima-nova", sans-serif;
    font-size: 1.25em;
    margin-right: 0.75em;  
}

nav ul li a:hover{
	color: rgb(157, 39, 107);
}

h2 {
	font-weight: bold;
    font-size: 2.5em;
    font-family: "roca", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: rgb(157, 39, 107);
    
}

h3 {
    font-size: 1.5em;
    font-family: "roca", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: rgb(157, 39, 107);
    margin-bottom: 0.5em;
    
}

a{
    text-decoration: none;
}

section.secondarystory h2 {
	font-weight: bold;
    font-size: 1.5em;
    font-family: "roca", sans-serif;
    font-style: normal;
    color: rgb(157, 39, 107);  
}

figure {
    padding-top: 0.5em;
    padding-bottom: 0.25em;
}

p {
	
    color: #000000; 
    line-height: 1.25em;
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-style: normal;
    /* padding-bottom: 1.5em; */
    
}

section.tertiarystory h2 {
    font-size: 1.25em;
    font-family: "roca", sans-serif;
    font-weight: bold;
    font-style: normal;
    color: rgb(157, 39, 107);
    padding-top: 0.5em;

}

section.tertiarystory {
    border-top: 0.1em solid rgb(193, 117, 40);
    margin-bottom: 0.5em;
}


aside {
    background-color: rgb(229, 212, 153);
}


footer {
    background-color:rgb(193, 117, 40);
}

footer p {
    color: #fafafa;
    padding: auto;
    padding: .75rem;
}

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;
}

section.gallery img {
    width: 100%;
}

section.gallery figure {
    margin: auto;
    height: calc(100% - 2em);
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
    padding-top: 0;
}

section.gallery figcaption {
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 1.25em;
    color: 000000;
    padding: .5rem 0 1em;
}


figcaption {
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-style: italic;
    color: rgb(113, 113, 113);
    padding: .5rem 0 1em;
}
div.home-container aside {
    background: none;
    padding: 0;
    margin-top: 0.5em;
}

div.container aside {
    margin-top: 0;
}

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

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

form section.personal-info li {
    display: grid;
}

form li {
    margin: 0.75em 0;
}

input::placeholder {
    color: #000000; 
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-size: 1.2em;
    font-style: normal;

}

.form {
    display: block;
    background-color: rgb(246, 244, 238);
    padding: 1em .1em; 
    width: 25em; 
    margin-bottom: 1.25em; 
    border: 1px solid rgb(51,29,12);
}


button {
    font-family: Roca, sans-serif;
    font-style: bold;
    color: #FAF4EF;
    font-size: 1em;
    background-color:rgb(157, 39, 107);
    width: 7em;
    height: 3em;
    border-style: none;
    margin: 0.75em 0;
    transition-duration: 0.2s;
    border-radius: 2px;
}

section.subscription {
    min-width: 25em;
    color: #000000; 
    font-family: "proxima-nova", sans-serif;
    font-weight: 200;
    font-size: 1em;
    font-style: normal;
}


nav.photos {
    display: grid;
    grid-template-columns: auto;
    grid-gap: 0.2em;
}

nav.photos label {
    height: 30%;
    width: 60%;
}


main {
    position: relative;
    overflow: hidden;
}

div.gallery-container input {
    display: none;
}



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

    nav ul li {
        display: inline;
        margin-right: 0.75rem;
    }
	div.container{
		max-width: 40em;
	}

    main p {
        margin: 0 0 1rem 0;
    }
}




@media only screen and (min-width: 60em) {
    div.home-container {
        max-width: 70em;
        padding: 0 1em;
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-gap: 1em;
    }

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

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

    main{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    section.mainstory a figure{
        flex: 1 0 12em;
        display: flex;
    }

    section.mainstory a figure img{
        object-fit: cover;
    }

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

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

    section.secondarystory{
        display: flex;
    }

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

    section.secondarystory a figure{
        flex: 1 0 12em;
        display: flex;
    }

    section.secondarystory a figure img{
        object-fit: cover;
    }

    section.secondarystory a h2{
        flex: 0 0 1em;
        font-family: "roca", sans-serif;
        font-weight: bold;
        font-style: normal;
    }

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

@media screen and (prefers-color-scheme: dark) {
    nav ul li a{
        color: rgb(251, 251, 251);
    }

    p, section.subscription {
        color: #ffffff; 
    }


    aside {
        background-color:  rgb(0, 0, 0);
    }

    body{
        background-color: rgb(0, 0, 0);
    }
    
    section.tertiarystory h2, section.secondarystory h2, h2 {
        color: rgb(239, 116, 188);
    }
    figcaption {
        color: rgb(113, 113, 113);
    }

}

