
/* ====== Image Gallery Page ====== */

.gallery-container {
  max-width: 1920px;
  margin: 100px auto;
  padding: 0 20px;
  text-align: center;
}
.gallery-title {
  font-family: 'tariqafont', serif;
  font-size: 50px;
  color: #064632;
  text-align: center;
  margin-bottom: 10px;
}
.image-grid {
  padding-top:20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 20px;
}

.image-card {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.image-card img:hover {
  transform: scale(1.05);
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  z-index: 10000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow:auto;
}

.lightbox-overlay.show {
  visibility: visible;
  opacity: 1;
}

.lightbox-overlay img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
}
.lightbox-content {
  position: relative;
  max-width: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: auto;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
}
.lightbox-close {
  position: absolute;
  top: 10px;
  left: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 50px;
  cursor: pointer;
  z-index: 10001;
  padding: 10px;
  transition: transform 0.2s ease;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.2);
}

.lightbox-nav.left {
  left: 10px;
}

.lightbox-nav.right {
  right: 10px;
}
.lightbox-caption {
  width: 100%;
  margin-top: -60px;
  padding: 20px 15px 10px;
  font-size: 18px;
  text-align: center;
  font-family: 'tariqafont', serif;
  color: white;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}




/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {

	.gallery-container {
    padding: 0 10px;
    margin-top: 120px;
  }

  .gallery-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .image-grid {
    grid-template-columns: 1fr; /* One column on small screens */
    gap: 15px;
  }

  .image-card {
    aspect-ratio: 4 / 3;
  }

  .lightbox-close {
    font-size: 30px;
    top: 10px;
    left: 15px;
  }

  .lightbox-overlay img {
    max-width: 95%;
    max-height: 80%;
  }
  .video-gallery-container{
	  padding:0 5px;
  }
}  