* {
  text-decoration: none;
  color: white;
  font-family: sans-serif;
  font-size: 1.5rem;
}

body {
  margin: 0;
  padding: 32px;
  background-color: #262627;

}

.grid {
  display: grid;
  grid-template-columns: 1fr;

}

@media (min-width: 992px) {
  .grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.grid-item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 32px;
  gap: 32px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.grid-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid #ffffff26;
  cursor: pointer;
}

.thumbs img {
  transition: transform 0.3s ease;
}

.grid-item:hover .thumbs img {
  transform: scale(1.04);
}


.grid.blurred {
  filter: blur(6px) brightness(0.4);
}

.grid-item>a {
  margin-bottom: 32px;
}

/* ----------OVERLAY----------------------------------------------------- */

.overlay.hidden {
  display: none;
}

.overlay-label {
  color: #aaa;
  font-size: 1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.overlay-content img {
  width: 600px;
  height: 600px;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  padding: 64px 64px 128px 64px;
  gap: 64px;
  transform: scale(0.85);
  animation: zoomIn 0.3s ease forwards;
  /* scale: 1.5; */
}

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
  flex-direction: column;
  justify-content: center;
}


/* ----------MEDIA QUERY------------------------------------------------- */

@media (min-width: 990px) {
  .overlay-label {
    font-size: 0.75rem;
  }

  .overlay-content img {
    width: 400px;
    height: 400px;
  }

  .overlay-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .overlay-content {
    flex-direction: row;
  }

  .overlay {
    flex-direction: row;
  }
}

/* ----------ANIMATION--------------------------------------------------- */





@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}