body {
  margin: 4rem 1rem 6rem;
  font-family: 'Inter', sans-serif;
}

#screenshots {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  text-align: center;
}

h1 {
  margin-bottom: 0.5rem;
}

h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: normal;
}

ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2rem;
  padding: 0;
  text-align: center;
}

li {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(25% - 6rem/4);
}

a {
  color: #000;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.sort {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  color: rgba(0, 0, 0, 0.8);
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s background-color;
}

.sort:hover,
.sort:active {
  background-color: rgba(0, 0, 0, 0.15);
}

.sort .fa-sort {
  margin-left: 0.5rem;
  color: rgba(0, 0, 0, 0.2);
}

.sort.asc .fa-sort::before {
  content: "\f0de";
  color: rgba(0, 0, 0, 0.8);
}

.sort.desc .fa-sort::before {
  content: "\f0dd";
  color: rgba(0, 0, 0, 0.8);
}

.search {
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 0.5rem;
  box-shadow: none;
  outline: none;
  font-size: 1rem;
  font-weight: bold;
}

.caption {
  height: 60px;
  padding: 1.5rem 1rem 0.5rem;
  background: rgb(115,175,252);
  background: linear-gradient(115deg, rgba(115,175,252,1) 0%, rgba(108,171,251,1) 50%, rgba(115,175,252,1) 100%);
  color: rgba(0, 0, 0, 0.8);
  overflow: visible;
  z-index: 10;
}

.course {
  font-weight: bold;
}

.image {
  overflow: hidden;
}

img {
  max-width: 100%;
  margin-top: -23%;
  margin-bottom: -5%;
}

@media (max-width: 800px) {
  li {
    width: calc(50% - 1rem);
  }
}

@media (max-width: 500px) {
  li {
    width: 100%;
  }
}
