.main-top {
  height: 100%;
}

.header {
  background: #393939a6;
}

.collection-section {
  margin-top: 5rem;
}

.collection-section h4 {
  color: #7f7a66;
  font-size: 1.688rem;
  line-height: 30px;
  font-weight: 400;
}

.collection-section h2 {
  color: #231f20;
  font-size: 3.563rem;
  line-height: 70px;
  font-weight: 400;
}

/* Gallery container */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  /* aspect-ratio: 1 / 1; */
}

.gallery-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgb(0 0 0 / 37%), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 1;
}
.gallery-item:hover::before {
  height: 100%;
  background: linear-gradient(to top, rgb(0 0 0 / 46%), rgba(0, 0, 0, 0));
}
.gallery-item:hover img {
  scale: 1.1;
  transition: scale 1s ease-in-out;
}

.gallery-item img {
  width: 100%;
  /* height: 100%; */
  height: 50vh;
  object-fit: cover;
  display: block;
}

.collection-title {
position: absolute;
    bottom: 0px;
    text-align: center;
    padding: 15px;
    color: #f5f2e9;
    font-size: 1.5rem;
    width: 100%;
    z-index: 4;
}

.view-btn {
  width: 16rem !important;
}

/* Responsive design for medium screens */
@media (max-width: 900px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: auto; /* Allow large images to adjust in row */
  }

  .icons {
    color: #231f20;
  }
}

/* Responsive design for smaller screens */

@media (max-width: 992px) {
  .collection-section {
    margin-top: 6rem;
  }
}
@media (max-width: 600px) {
  .view-btn {
    width: 13rem !important;
  }
  .header {
    background: #f5f2e9;
  }
  .gallery-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item img {
    height: 30vh;
    aspect-ratio: auto; /* Allow images to fit within their containers */
  }

  .collection-section h4 {
    font-size: 1.2rem;
    line-height: 20px;
    text-align: center;
  }

  .collection-section {
    margin-top: 5rem;
  }
  .collection-title {
    opacity: 1;
    font-size: 1.2rem;
    padding: 10px;
  }
}
