html {
    font-size: 16px;
}

body {
    margin: 1em auto;
    padding: 0 1em;
    max-width: 80ch;
    font-family: 'Ubuntu', sans-serif;
    color: #0c0c0c;
    font-size: 1.2rem;
    line-height: 1.7rem;
}

a { 
    color: #0074D9;
    text-decoration: none;
}

a:hover {
    color: #001f3f;
    text-decoration: underline;
    text-decoration-style: wavy;
}

a:visited {
    text-decoration: none;
}

.container {
    margin: 0 auto;
    padding: 0;
}

.nav {
    float: right;
}

img {
    width: 100%;
}

.gallery {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
}

.gallery li img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

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

li {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
  }
}
@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}
@media (max-width: 800px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
  }
}
