


/* ============================================
   GALLERY PAGE STYLES 
   ============================================ */

/* ===== PAGE BANNER ===== */
.page-banner {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 40%, var(--primary-dark) 100%);
  padding: 140px 0 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  animation: heroGlow 8s infinite ease-in-out alternate;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  animation: heroGlow 10s infinite ease-in-out alternate-reverse;
}

.page-banner h1 {
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.page-banner p {
  font-size: 17px;
  opacity: 0.8;
  max-width: 550px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.breadcrumb-custom li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb-custom li a:hover {
  color: var(--accent-light);
}

.breadcrumb-custom li.active {
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 600;
}

.breadcrumb-custom li.active::before {
  content: '›';
  margin-right: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
}

/* ===== GALLERY FILTERS ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--glass-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-soft);
}

.filter-btn i {
  font-size: 13px;
}

.filter-btn:hover {
  color: var(--primary);
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.3);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.gallery-card {
  background: var(--glass-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(13, 148, 136, 0.3);
}

.gallery-image {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.1);
}

/* ===== IMAGE OVERLAY ===== */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(8, 47, 73, 0.9) 0%,
    rgba(8, 47, 73, 0.4) 40%,
    rgba(8, 47, 73, 0.1) 70%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s ease;
  width: 100%;
}

.gallery-card:hover .overlay-content {
  transform: translateY(0);
}

.zoom-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.gallery-card:hover .zoom-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
}

.overlay-content h6 {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== IMAGE COUNT ===== */
.gallery-count {
  text-align: center;
  margin-top: 40px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.gallery-count span {
  color: var(--primary);
  font-weight: 700;
}

/* ============================================
   LIGHTBOX STYLES
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  flex-direction: column;
}

.lightbox.visible {
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 47, 73, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

/* Lightbox Top Bar */
.lightbox-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
}

.lightbox-counter span {
  color: #fff;
}

.lightbox-actions {
  display: flex;
  gap: 8px;
}

.lightbox-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.6);
}

/* Lightbox Navigation Arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Lightbox Image Area */
.lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
  overflow: hidden;
  padding: 20px;
  touch-action: none;
}

.lightbox-image-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 75vh;
  transition: transform 0.3s ease;
  cursor: grab;
}

.lightbox-image-wrapper:active {
  cursor: grabbing;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Loader */
.lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.lightbox-loader.active {
  display: block;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Caption Bar */
.lightbox-caption {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.2);
}

.lightbox-caption p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* ===== ZOOM INDICATOR ===== */
.zoom-level-indicator {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 18px;
  border-radius: 50px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.zoom-level-indicator.visible {
  opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .page-banner {
    padding: 120px 0 60px;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-image {
    height: 220px;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 576px) {
  .page-banner h1 {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-image {
    height: 160px;
  }

  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .filter-btn i {
    display: none;
  }

  .overlay-content h6 {
    font-size: 12px;
  }

  .gallery-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .zoom-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .lightbox-topbar {
    padding: 12px 16px;
  }

  .lightbox-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-radius: 10px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}
  







