*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    background:#f4f4f4;
}

body{
    background:#f4f4f4;
    color:#5f5f5f;
    font-family:"Courier Prime", monospace;
}

a{
    text-decoration:none;
    color:inherit;
}

/* ---------------- */
/* Header */
/* ---------------- */

header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    position: sticky;
    top: 0;
    padding:36px 50px 52px;
}

.logo{
    font-family:"Bebas Neue", sans-serif;
    font-size:72px;
    font-weight: 600;
    color:#303030;
    letter-spacing:-.01em;
}

nav{
    display:flex;
    gap:42px;
    font-size:18px;
    margin-top:10px;
}

nav a{
    transition:.25s;
}

nav a:hover{
    opacity:.45;
}

/* ---------------- */
/* Gallery */
/* ---------------- */

.gallery{

    column-count:2;
    column-gap:40px;
    padding:0 38px 40px;
    max-width:1400px;
    margin:auto;

}

.gallery img{

    width:100%;
    display:block;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom:40px;
    break-inside:avoid;
}

.gallery div.desc{
    display: none;
}

/* ---------------- */
/* Contact */
/* ---------------- */

.contact{

    width:100%;
    max-width:820px;
    margin:60px auto 0;
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.portrait{
    border:1px solid #d8d8d8;
    padding:6px;
}

.portrait img{
    display:block;
    width:230px;
}

.bio{
    max-width:460px;
    font-size:16px;
    line-height:1.55;
}

.bio p{
    margin-bottom:22px;
}

footer{
    text-align:center;
    margin-top:220px;
    margin-bottom:80px;
    font-size:14px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  max-height: 90%;
  max-width: 90%;
  border-radius: 10px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  font-size: 25px;
  padding: 15px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0.1)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}



/* ---------------- */
/* Mobile */
/* ---------------- */

@media (max-width:900px){

    header{
        flex-direction:column;
        gap:24px;
    }

    .logo{
        font-size:42px;
    }

    nav{
        gap:24px;
    }

    .gallery{
        column-count:1;
    }

    .contact{
        flex-direction:column;
        padding:0 24px;
    }

    .portrait img{
        width:100%;
    }
}