/*CSS document*/

body {
    color: #111111;
}

figcaption {
    font-family: "owners-wide", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.75em;
}

div.container {
    max-width: 80em;
    margin: 0 auto;
    padding-left: 1.5em;
    padding-right: 1.5em;
}

figure {
    margin: 0; 
}

img {
    width: 100%;
    overflow: clip;
}

ul {
    list-style-type: none;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0px;
}

h1 {
    width:20%
}

h2 {
    font-family: "operetta-12", serif;
    font-weight: 700;
    font-style: normal;   
}

h3 {
    font-family: "operetta-18", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
}
.navbar { 
  width: 100%;
  overflow: auto;
}

section.mainstory p{
    width: 70%;
}

p.story{
    width: 70%;
}

article img{
    width: 70%;
}

.navbar a {
    color: #E26A5C;
    text-decoration: none;
    font-size: 1em;
    font-family: "owners", sans-serif;
    font-weight: 500;
    font-style: normal;
    display: block;
}

.navbar li a{
    display: inline;
}

p {
    font-family: "owners-wide", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 0.87em;
}

footer { 
    color: #E26A5C;
    border-top: 2px solid #E26A5C;
    border-width: 100%
    margin: 0.3em;
    text-decoration: none;
    font-size: 0.9em;
    font-family: "owners", sans-serif;
    font-weight: 500;
    font-style: normal;
}

a {
    text-decoration: none;
    color: #111111;
}

li{
    display: inline-block;
}

section{
    max-width: 40em;
    margin: 0 auto 3em;
}

aside{
    border-radius: 1em;
    background-color: #f2c36b;
    height: fit-content;
    padding: 1em 1.2em 1.2em;
}

.crop {
    height: 25em;
    width: 20em;
    overflow: hidden;
   }
   .crop img {
    height: auto;
    width: 1em;
   }

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

    main{
        grid-column:1/2;   
        display: grid;
        grid-template-columns: repeat (3,1fr);
        grid-gap: 0 1em;
    }
    section.mainstory{
        grid-column: 2/4;
        grid-row: 1/3;
        display: flex;
        flex-direction: column;
    }

    section.mainstory figure {
        flex: 1 0 18em;
    }

    section.mainstory figure div{
        flex: 1 0 18em;
        background-image: url(willis.jpeg);
        background-repeat: no-repeat;
        background-size: cover;
    }

   section.mainstory figure div img{
    height: 100%;
    opacity: 0;
   }

    section.mainstory h3{
        flex: 0 0 auto;
        margin: 0;
    }

    section.mainstory p{
        flex: 0 0 auto;
        margin: 0;
    }

    aside{
        grid-column: 2/3;
    }

    article{
    grid-column:1/2;   
    display: grid;
    }
}


div.gallery img {
max-width: 30em;
}

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-size: 1em;
    font-family: "owners", sans-serif;
    font-weight: 500;
}

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),
input:nth-of-type(9):checked ~ main figure:nth-of-type(9){
    opacity: 1;
}

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


div.gallery input {
    display: none;
}
