/* ------------------------ Projects ------------------------ */

.projects {
  background-color: var(--main-color);
  color: var(--bright-text);
  padding: 2vh 0;
}

.projects h1 {
  text-align: center;
  padding-bottom: 1em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2em;
  width: auto;
  margin: 0 10vw;
  justify-content: center;
  max-width: 1500px;
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (min-width: 1500px) {
  .projects-grid {
    margin: 0 auto;
  }
}

.project a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 0 0;
}

.hover-box {
  position: relative;
}

.hover-box:hover .hidden {
  display: flex;
}

.hidden {
  display: none;
  flex-direction: column;
  position: absolute;
  background-color: #000000b6;
  height: 100%;
  width: 100%;
  top: 0;
  align-items: center;
}

.hidden h2 {
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

.hidden p {
  padding: 0 10%;
  text-align: center;
}
