/* ============================================================
   GALLERY PAGE SPECIFIC STYLES
   ============================================================ */

/* Page Title Section */
.page-title-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2a5fa8 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-title-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.page-title-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.page-title-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.breadcrumb-item a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--white);
}

.breadcrumb-item.active {
  color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.5);
  content: "›";
  font-size: 1.2rem;
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24,63,114,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.gallery-icons {
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icons {
  transform: translateY(0);
}

.gallery-icons i {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.gallery-title {
  font-size: 0.8rem;
  font-weight: 500;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 8px;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.close-lightbox:hover {
  color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  padding: 20px;
  transition: 0.3s;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  color: var(--white);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  padding: 10px;
  background: rgba(0,0,0,0.6);
  margin: 0 auto;
  width: fit-content;
  border-radius: 30px;
  margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-title-section {
    padding: 60px 0 40px;
  }
  
  .page-title-section h1 {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .filter-btn {
    padding: 6px 18px;
    font-size: 0.75rem;
  }
  
  .gallery-filters {
    gap: 8px;
    margin-bottom: 30px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 576px) {
  .page-title-section {
    padding: 50px 0 30px;
  }
  
  .page-title-section h1 {
    font-size: 1.6rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .gallery-item {
    aspect-ratio: 4 / 3;
  }
  
  .filter-btn {
    padding: 5px 12px;
    font-size: 0.7rem;
  }
  
  .gallery-filters {
    gap: 6px;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .close-lightbox {
    font-size: 30px;
    top: 15px;
    right: 20px;
  }
}