*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 1.25rem;
  color: #fff;
}

.container {
  width: min(90%, 1170px);
  margin: 0 auto;
}


.gallery {
  margin-bottom: 120px;

  h2 {
    font-family: "Delius Unicase", cursive;
    font-weight: 400;
    font-size: 2.25rem;
    color: #000;
    letter-spacing: 5%;
    text-align: center;
    margin: 120px 0 80px 0;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 370px;
}

.btn {
  border: none;
  width: 40px;
  height: 40px;
  background-color: rgba(224, 224, 224, 50%);
  border-radius: 8px;
  visibility: hidden;
  cursor: pointer;

  img {
    width: 20px;
  }
}

.btn-heart {
  position: absolute;
  top: 20px;
  left: 20px;
}

.btn-download {
  position: absolute;
  top: 20px;
  right: 20px;
}

.item:hover .btn {
  visibility: visible;
}

.btn:hover{
  background-color: #E0E0E0;
  transition: all .8 ease;
}

.item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;

  background: linear-gradient(0deg,
      rgba(36, 31, 36, 1),
      rgba(91, 91, 91, 0.34),
      rgba(187, 186, 192, 0.26));

  transition: height 0.6s ease;
}

.item img:hover {
  scale: 1.2;
  transition: all .6s ease;

}

.item:hover::before {
  height: 63px;
}

.tall-span {
  height: 770px;
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

.info {
  position: absolute;
  bottom: 10px;
  left: 6px;
  right: 0;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 1.25rem;

  span {
    position: absolute;
    right: 20px;
    color: #E0E0E0;
  }
}