/*CSS document*/

body {
background-color: #EDE7D4;
}

div.container {
    max-width: 60em;
    margin: auto;
}

figure {
    margin: 0;
}

img {
    width: 100%;
    

}

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

h1 {
    width: 20%;
}

h2{

    font-family: Anisette Std;
    font-style: Bold;
    font-weight: 700;
    color: rgb(61,107,156);
    text-decoration: none;
}
h3{
    font-family: Anisette Std;
    font-style: Bold;
    font-weight: 600;
    color: rgb(61,107,156);
    text-decoration: none;
    margin-top:0.6em;
    margin-bottom: 0.5rem;
    font-size: 1.5em;
}

nav ul li {
    overflow: auto;
    list-style-type: none;
    color: rgb(50,114,156);
    font-family: Anisette Std;
    font-weight: 600;
    font-style: Bold;
    font-size: 1.2em;
}
nav ul li a {
    color: rgb(65, 64, 64);
    text-decoration: none;
}
nav ul li a:hover {
    color: rgb(61,107,156);
}

p{
   font-family: Termina;
   font-style: normal;
   font-weight: 150;
   font-size: 1em; 
   margin-top: 0.2rem;
   padding-bottom: 1rem;
}

a {
    color: rgb(0,0,0);
    text-decoration: none;
}

figcaption{
   font-family: Termina;
   font-style: italic;
   font-weight: 300;
   font-size: 1em; 
   margin-bottom: 3em;
}

@media screen and (min-width: 60em){
    div.container{
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-gap: 0 1em;
    }
     nav ul li {
    overflow: auto;
    display: inline; 
    list-style-type: none;
    color: rgb(50,114,156);
    font-family: Anisette Std;
    font-weight: 600;
    font-style: Bold;
    font-size: 1.5em;
    margin: 0 1em 0 0; 
}
    header {
        grid-column: 1/3;
    }
    main{
        grid-column: 1/3;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        grid-gap: 0 1em;
    }
    section.main{
        grid-column: 2/4;
        grid-row: 1/3;
        display: flex;
        flex-direction: column;
    }
    section.main figure{
        flex: 1 0 18;
        display: flex;
        flex-direction: column;
    }
    
    scection.main figure div{
        flex: 1 0 18em;
    }
    section.main figure div img{
        height: 100%;
    }
    
    section.main figure figcaption {
        flex: 0 0 3em;
    }
    
    section.main h3{
        flex:0 0 auto;
        margin-top:0.6em;
        margin-bottom: 0.5rem;
    }
    section.main p{
        flex: 0 0 auto;
        margin: 0;
    }
    section.second figure{
        flex: 1 0 18em;
        display: flex;
        flex-direction: row;
    }
    
     aside{
        grid-column: 2/3;
    }

h1{
    margin-bottom: 0;
}
    
}
div.gallery img {
	width: 100%;
}

header{
    padding: 0.3em;
}
nav.gallery{
    margin-top: 2em;
}
div.gallery {
    max-width: 60em;
    margin: auto;
}


div.gallery main {
    position: relative;
    overflow: hidden;
    padding-bottom: calc(68% + 3em);
}

div.gallery figure {
    margin: 0;
    width: calc(100%-2em);
    position: absolute;
    opacity: 0;
    transition: .5s ease-in-out;
}

div.gallery figcaption {
    margin: 1.5em 0;
    font-family: Termina;
    font-weight: 300;
    font-style: italic;    
    font-size: 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;
}

div.gallery nav {
    display: flex;
    grid-template-columns: repeat (3,1fr);
    grid-gap: 0.2em;
}


div.gallery input {
    display: none;
}

div.newsletter{
    max-width: 60em;
    margin: auto;
}
.newsletter h3 {
    color: #1e1e1e;
}


header {
    margin-bottom: 4em;
}

section.personal-info {
	padding-bottom: 2em;
}

section.personal-info ul li {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 1em;
    
}

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

section.personal-info ul li label {
    flex:  0 5em;
    font-family: Termina;
    font-weight: 300;
    font-size: 1em;
}

section.preferences p {
    padding-bottom: 0;
}

.left-li {
    list-style: none;
    padding-left: 0;  
}

textarea {
    box-sizing: border-box;
    display: flex;
    width: 55%;
    padding-bottom: 2em;
    font-family: Termina;
    
}

button {
    margin-top: 2em;
}

.subscribe h2 {
    padding-bottom: 1em;
}

footer{
    font-family: Termina; 
    color: rgb(61,107,156);
    display: grid;
    margin-top: 3em;
    grid-column: 1/3;
}
