.projects-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .5rem;
}

.project-title {
  display: none;
}

.gall_project {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gall_project.visible {
  opacity: 1;
}

.gall_project img {
  width: 100%;
  height: calc(100vw * 0.7);
  object-fit: cover;
  display: block;
}

@media screen and (min-width: 820px) {
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .projects-grid a {
    position: relative;
    display: block;
  }

  .project-title {
    display: block;
    position: absolute;
    background-color: rgba(252, 252, 252, 0.6);
    top: 0;
    left: 0;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: .5rem;
    opacity: 0;
    transition: .5s ease-in-out;
    padding: 1rem;
  }

  .projects-grid a:hover .project-title,
  .projects-grid a:focus-visible .project-title {
    opacity: 1;
    color: var(--c-black);
  }

  .projects-grid a:hover .f-l,
  .projects-grid a:hover .f-s {
    color: var(--c-black);
  }

  .gall_project img {
    height: calc(50vw * 0.7);
  }
}

@media screen and (min-width: 1800px) {
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gall_project img {
    height: calc(33vw * 0.7);
  }
}