@import url('https://fonts.googleapis.com/css2?family=Lato');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo&display=swap');


body{
    background-color: #fff;
	font-family: 'Lato', sans-serif, sans;
    margin: 0;
}
img{
    max-width: 100%;
}
header{
    padding: 0.5rem 3rem;
    color: #666;
}
header h1{
    font-family: 'Nanum Myeongjo', serif;
    font-weight: normal;
    text-align: right;
}
.grid{
    display: grid;
    gap: 20px; 
    margin: 0 20px; 
}
.grid img{
    object-fit: cover;
    height: 100%;
}
.container{
    max-width: 1200px; 
    margin: auto;
    background-color: #fff;
}
.maintext{
    padding: 3rem;
    line-height: 1.7;
    color: #555;
}
.maintext p{
    max-width: 800px;
    margin: auto;
}
.maintext h3{
    max-width: 800px;
    margin: 1rem auto;
}
footer{
    max-width: 1200px;
    margin: auto;
    color: #000;
}
footer a{
    color: #000;
    text-decoration: none;
    border-bottom: 1px dashed #fff;
    transition: 0.3s;
}
footer a:hover{
    border-bottom: 1px dashed #000;
    color: #fff;
}
footer div{
    padding: 3rem;
    line-height: 1.7;
}
.page{
    background-image: url('images/brigstocke.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: min(70vh,600px); 
}




@media only screen and ( min-width: 640px ) {
    @supports(display:grid) {
        .grid{
            grid-template-columns: repeat(3,1fr);
            height: minmax(25vw, 300px);
        }

    }
    footer, .container{
        width: 95%; 
    }
}

@media only screen and ( min-width: 1024px ) {
    .container{
        margin: 2rem  auto; 
    }
    img{
        box-shadow: 0 0 0.5rem rgba(0,0,0,0.4);
    }
    header h1{
        font-size: 50px;
}
    footer div{
        text-align: right; 
    }

}
@media only screen and ( min-width: 1025px )and ( max-height: 1200px ) {
    .page{
        background-size: cover;
        background-position: center center;
        height: min(70vh,600px); 
        background-attachment: fixed;
    }

}