body {
  font-family: Work Sans;
  font-size: 16px;
  margin-bottom: 200px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;

  padding: 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 24px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
}

a {
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

a:hover {
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}

.photos {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 10px;
  padding-right: 10px;

  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
}

.photo {
  width: 320px;
  margin: 40px;

  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: rgba(255, 255, 255, 0.6);
  opacity: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
}

.overlay:hover {
  opacity: 1;
}

.overlay h2 {
  max-width: 200px;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.7);
  padding-bottom: 4px;
}

.overlay h3 {
  max-width: 200px;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.7);
}

.intro {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  margin: 140px 40px 0px 40px;
  max-width: 420px;
}

.intro p {
  margin-bottom: 20px;
}

.about-page-title:hover {
  border-bottom: none;
}

@media (max-width: 540px) {
  .overlay {
    position: relative;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0);
    padding: 10px 0 0 0;
  }

  .overlay h2 {
    max-width: 320px;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: -1px;
  }

  .overlay h3 {
    max-width: 320px;

    font-size: 12px;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.7);
  }

  .photo {
    margin-bottom: -10px;
  }

  header {
    background-color: #fff;
    padding: 28px 40px 16px 40px;
  }
}
