.gallery-section {
  padding: 16px 20px;
  background-color: #ffffff;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  text-align: center;
}

.gallery-container {
  max-width: 1080px;
  width: 80%;
  margin: 0 auto;
}

.gallery-title {
  font-size: 36px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 10px;

  line-height: 1.2em;
  text-align: center;
}

.gallery-section .heading-line {
  background-image: linear-gradient(180deg, #7cda24 0%, #0b4418 100%);
  height: 10px;
  width: 23%;
  margin: 25px auto 40px auto;
  border-radius: 2px;
}

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

.gallery-item {
  overflow: hidden;
  cursor: pointer;
  /* aspect-ratio: 3 / 4; */
}

.gallery-item img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0);
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    background-color 0.4s ease,
    opacity 0.4s ease,
    visibility 0.4s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.88);
}

.lightbox-wrapper {
  position: relative;
  display: inline-block;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-active-img {
  display: block;
  max-width: 90vw;
  max-height: 77vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: scale(0.8);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}

.lightbox-overlay.active .lightbox-active-img {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 12px;
  font-size: 49px;
      font-weight: bold;
  color: #6e6d6d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100001;
  user-select: none;
  line-height: 1;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.3s ease 0.15s,
    transform 0.3s ease 0.15s,
    background-color 0.2s ease;
}

.lightbox-overlay.active .lightbox-close {
  opacity: 1;
  transform: scale(1);
}

.lightbox-close:hover{
  color: #e4e1e1;
}

@media (max-width: 768px) {
  .lightbox-wrapper {
    max-width: 95vw;
    max-height: 90vh;
  }

  .lightbox-active-img {
    max-width: 95vw;
    max-height: 74vh;
  }


}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 23px;
  }
  .gallery-title {
    font-size: 23px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
