/*--------------------------------------------------------------
# Gallery Page
--------------------------------------------------------------*/
.gallery-page {
  position: relative;
  display: block;
  padding: 140px 0 130px;
}

.gallery-page .row {
  --bs-gutter-x: 10px;
}

.gallery-page .container {
  max-width: 1572px;
}

.gallery-page__single {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.gallery-page__img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  z-index: 1;
}

.gallery-page__img:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -2px;
  left: 0;
  right: 0;
  border-radius: 10px;
  background-color: rgba(var(--techguru-black-rgb), 0.85);
  opacity: 0;
  transform: translateY(50px);
  transition: background-color 0.7s ease;
  transition: all 0.7s ease;
  z-index: 2;
}

.gallery-page__single:hover .gallery-page__img:before {
  opacity: 1;
  transform: translateY(0px);
}

.gallery-page__img-box {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  z-index: 1;
}

.gallery-page__img img {
  width: 100%;
  border-radius: 8px;
}

.gallery-page__icon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  z-index: 2;
}

.gallery-page__icon a {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: var(--techguru-white);
  opacity: 0;
  transform: translateY(-50px);
  transition: background-color 0.7s ease;
  transition: all 0.7s ease;
  z-index: 2;
}

.gallery-page__single:hover .gallery-page__icon a {
  opacity: 1;
  transform: translateY(0px);
  transition-delay: 300ms;
}

.gallery-page__icon a:hover {
  color: var(--techguru-base);
}

.gallerySection {
  min-height: 100vh;
  background: #f8fafc;
  padding: 4rem 1rem;
}

.galleryContainer {
  max-width: 1200px;
  margin: 0 auto;
}

.galleryTitle {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #1e293b;
  position: relative;
}

.galleryTitle::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 4px;
}

.galleryGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .galleryGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .galleryGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.galleryCard {
  cursor: pointer;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galleryCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.galleryImage {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease;
}

.galleryCard:hover .galleryImage {
  transform: scale(1.1);
}

/* Lightbox */
.lightboxOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightboxContent {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightboxImage {
  border-radius: 8px;
  object-fit: contain;
}
@media (max-width: 640px) {
  .lightboxImage {
    width: 100%;
    height: auto;
  }
}

.lightboxCaption {
  margin-top: 10px;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

.closeBtn,
.navBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.closeBtn {
  top: 15px;
  right: 15px;
  transform: none;
}

.prevBtn {
  left: -50px;
}
.nextBtn {
  right: -50px;
}
