/* ===========================
   gallery.css
   Social Media Style Gallery
   =========================== */

/* Hero Section for Gallery */
.gallery-hero {
  background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 50%, #1a56db18 100%);
  padding: 140px 40px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Big decorative emoji watermark */
.gallery-hero::before {
  content: '📸';
  position: absolute;
  right: 6%;
  top: 15%;
  font-size: 200px;
  opacity: 0.05;
  pointer-events: none;
  filter: grayscale(1);
}

/* Curved bottom edge like other pages */
.gallery-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #f5f7fa;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.gallery-hero .ptag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f8c640;
  margin-bottom: 16px;
  padding: 8px 20px;
  background: rgba(248,198,64,0.12);
  border-radius: 50px;
  border: 1px solid rgba(248,198,64,0.2);
  position: relative;
  z-index: 1;
}

.gallery-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.gallery-hero h1 em {
  font-style: italic;
  color: #f8c640;
}

.gallery-hero p {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

/* Gallery Wrap */
.gallery-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

/* Gallery Grid - Single Column for Social Feed Look */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Gallery Item - Post Style */
.gallery-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* Image Container */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

/* Caption - Like Social Media Post */
.gallery-caption {
  padding: 20px;
  background: white;
  border-top: 1px solid #f1f5f9;
}

.gallery-caption::before {
  content: '📸';
  font-size: 18px;
  margin-right: 10px;
}

.gallery-caption-text {
  font-size: 15px;
  color: #374151;
  line-height: 1.6;
  margin: 8px 0 0 0;
}

/* Action Bar (Like, Comment, Share icons) - REMOVED as per request */

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  font-size: 32px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lb-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lb-arrow:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-50%) scale(1.1);
}

.lb-prev {
  left: 20px;
}

.lb-next {
  right: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 110px 20px 70px;
  }

  .gallery-wrap {
    padding: 40px 15px 80px;
  }

  .gallery-grid {
    gap: 30px;
  }

  .gallery-item img {
    aspect-ratio: 1/1;
  }

  .gallery-caption {
    padding: 16px;
  }

  .lb-close,
  .lb-arrow {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .gallery-hero h1 {
    font-size: 28px;
  }

  .lightbox img {
    max-width: 95%;
  }
}