/* Custom Styles for the Gallery Page */

.gallery-hero-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%), var(--hero-bg-gradient, #0f172a);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 85px 0 70px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.gallery-hero-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(194, 102, 10, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.gallery-hero-banner .section-tagline {
  display: inline-block;
  background: rgba(217, 119, 6, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
}

/* Toolbar & Filters */
.toolbar-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-surface, #ffffff);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color, #e2e8f0);
}

.filter-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag-btn {
  background: transparent;
  border: 1px solid var(--border-color, #e2e8f0);
  color: var(--text-muted, #64748b);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-tag-btn:hover {
  background: rgba(217, 119, 6, 0.08);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.3);
}

.filter-tag-btn.active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

/* Gallery Grid Layout */
.gallery-card-col {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-grid-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border-color, #e2e8f0);
  aspect-ratio: 4/3;
  cursor: pointer;
  background: #0f172a;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

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

/* Category Badge (Top Left) */
.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 3;
}

/* Hover Overlay */
.gallery-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

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

.gallery-item-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  line-height: 1.3;
}

.gallery-item-category {
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-zoom-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px) scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
}

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

/* Lightbox overlay styling */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  width: 90%;
  position: relative;
}

.lightbox-img-wrapper {
  max-width: 100%;
  max-height: 72vh;
  position: relative;
  display: flex;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  animation: scaleUpLightbox 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUpLightbox {
  from { transform: scale(0.93); opacity: 0.8; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-details {
  text-align: center;
  color: #ffffff;
  margin-top: 18px;
  width: 100%;
  max-width: 750px;
}

.lightbox-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #ffffff;
}

.lightbox-meta {
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.lightbox-desc {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  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;
  transition: all 0.25s ease;
  z-index: 10000;
}

.lightbox-nav-btn:hover {
  background: #d97706;
  border-color: #d97706;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev-btn { left: 40px; }
.lightbox-next-btn { right: 40px; }

.lightbox-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10000;
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.lightbox-counter {
  position: absolute;
  top: 35px;
  left: 40px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: monospace;
}

@media (max-width: 768px) {
  .gallery-hero-banner { padding: 60px 0 45px; }
  .toolbar-filters { flex-direction: column; align-items: stretch; }
  .filter-btn-group { justify-content: center; }
  .lightbox-prev-btn { left: 12px; width: 42px; height: 42px; }
  .lightbox-next-btn { right: 12px; width: 42px; height: 42px; }
  .lightbox-close-btn { top: 15px; right: 15px; width: 40px; height: 40px; }
  .lightbox-counter { top: 22px; left: 15px; }
  .lightbox-title { font-size: 1.05rem; }
}
