/* TITLE */
h1 {
  text-align: center;
}
#title {
  position: relative;
  text-align: center;
  color: var(--color-text);
  font-size: 3rem;
  font-family: "Anton", sans-serif;
}
#title::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-background);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
#title:hover::before {
  transform: scaleX(1);
}

/* GALLERY */
.gallery {
  display: flex;
  padding: 2px;
  transition: 0.3s;
}
.gallery:hover .gallery__image {
  filter: grayscale(1);
}
.gallery__column {
  display: flex;
  flex-direction: column;
  width: 25%;
  justify-content: space-between;
  margin: 2% 0;
}
.gallery__thumb {
  position: relative;
  margin: 1% 4%;
}
.gallery__thumb:hover .gallery__image {
  filter: grayscale(0);
}
.gallery__image {
  display: block;
  width: 100%;
  transition: 0.3s;
  object-fit: cover;
}
.format1 {
  height: 75vh;
}
.format2 {
  height: 125vh;
}
.cover {
  object-position: 30%;
}
/* .gallery__image:hover {
  transform: scale(1.1);
} */
.gallery__caption {
  position: absolute;
  bottom: 0;
  text-align: center;
  padding: 25px 0 15px;
  width: 100%;
  font-family: "Raleway", sans-serif;
  font-size: 1.5rem;
  color: white;
  opacity: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: 0.3s;
}
.gallery__thumb:hover .gallery__caption {
  opacity: 1;
}

/* RESPONSIVE */
/* TABLET */
@media screen and (max-width: 768px) and (min-width: 426px) {
  .gallery {
    flex-wrap: wrap;
  }
  .gallery__column {
    width: 50%;
    margin: auto;
  }
  .gallery__caption {
    width: 100%;
  }
  .format1 {
    height: 35vh;
  }
  .format2 {
    height: 75vh;
  }
}

/* MOBILE */
@media screen and (max-width: 425px) {
  .gallery {
    flex-wrap: wrap;
  }
  .gallery__column {
    width: 100%;
    margin: auto;
  }
  .gallery__caption {
    width: 100%;
  }
  .format1 {
    height: 35vh;
  }
  .format2 {
    height: 75vh;
  }
}
