.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.image {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.image img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

/* styles when the image is hoover */
.image:hover img {
  transform: scale(1.1);
  cursor: pointer;
}
/* little lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(126, 126, 126, 0.5);
  max-width: 70vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Image in the lightbox */
.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* Closing button */
.btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.765);
  background-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* Font Awesome icon's styles */
.btn-close i {
  color: #000;
  font-size: 20px;
}

.btn-close:hover i {
  color: #333;
}
