/* ===================================================================
   PRAMUKH BUSINESS - GALLERY PAGE STYLESHEET
   File: css/gallery.css
   Company: Pramukh Easy Sale Marketing LLP
   =================================================================== */

/* --- Gallery Hero Banner --- */
.gallery-hero-section {
  position: relative;
  background: url('../images/seminar-event.jpg') no-repeat center center / cover;
  color: var(--text-white);
  padding: 100px 0 110px 0;
  overflow: hidden;
}

.gallery-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 46, 92, 0.94) 0%,
    rgba(10, 46, 92, 0.88) 55%,
    rgba(16, 69, 140, 0.80) 100%
  );
  z-index: 1;
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-nav a {
  color: var(--accent-orange);
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--accent-orange-light);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.gallery-hero-title {
  font-family: var(--font-heading);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.gallery-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* --- Filter Bar --- */
.gallery-filter-section {
  background: #FFFFFF;
  padding: 40px 0 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.gallery-filter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--primary-navy);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.gallery-filter-btn:hover {
  background: rgba(245, 130, 32, 0.12);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
  border-color: transparent;
  color: #FFFFFF;
  box-shadow: 0 4px 15px var(--accent-orange-glow);
  transform: translateY(-2px);
}

.gallery-filter-btn .filter-count {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
}

.gallery-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* --- Gallery Grid Section --- */
.gallery-grid-section {
  padding: 70px 0 100px 0;
  background: var(--bg-card-subtle);
}

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

.gallery-item {
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 130, 32, 0.4);
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: var(--navy-dark);
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-item:hover .gallery-thumb-wrap img {
  transform: scale(1.08);
}

/* Hover Overlay */
.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 46, 92, 0.2) 0%,
    rgba(10, 46, 92, 0.85) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-zoom-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform var(--transition-fast);
}

.gallery-item:hover .gallery-zoom-icon {
  transform: scale(1);
}

/* Category Tag on Thumb */
.gallery-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 46, 92, 0.88);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

/* Card Content / Caption */
.gallery-caption {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-caption-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
  line-height: 1.4;
}

.gallery-caption-desc {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

.gallery-item.hide {
  display: none !important;
}

/* --- Highlight Stats Strip --- */
.gallery-highlights-strip {
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 70px 0;
  border-top: 4px solid var(--accent-orange);
}

.gallery-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.gallery-stat-item {
  padding: 15px;
}

.gallery-stat-icon {
  font-size: 2.2rem;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.gallery-stat-num {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.gallery-stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 31, 64, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content-box {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: #0A2E5C;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(245, 130, 32, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-content-box {
  transform: scale(1);
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: #061F40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.lightbox-details {
  padding: 24px 30px;
  background: #0A2E5C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.lightbox-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.lightbox-info p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: var(--accent-red);
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 46, 92, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.lightbox-nav-btn:hover {
  background: var(--accent-orange);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

/* --- Responsive Rules for Gallery --- */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-hero-title {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .lightbox-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .lightbox-img-wrap {
    max-height: 350px;
  }
}
