/* ===== GALLERY STYLES - متكامل مع التصميم الأصلي ===== */

/* Breadcrumb Section */
.breadcrumb-section {
  background: linear-gradient(135deg, var(--black-light), var(--black-medium));
  padding: 20px 0;
  border-bottom: 2px solid var(--gold-primary);
  margin-top: 70px;
}

.breadcrumb-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
}

.breadcrumb-nav a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: var(--gold-primary);
}

.breadcrumb-home {
  font-weight: 600;
}

.breadcrumb-separator {
  margin: 0 15px;
  color: var(--gold-primary);
  font-weight: bold;
}

.breadcrumb-current {
  color: var(--gold-primary);
  font-weight: 600;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-back {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: var(--black-primary);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  border: none;
}

.btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
  color: var(--black-primary);
  text-decoration: none;
}

.gallery-nav-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-nav-gallery {
  background: rgba(255, 193, 7, 0.1);
  color: var(--gold-primary);
  padding: 8px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--gold-primary);
  transition: all 0.3s ease;
}

.btn-nav-gallery:hover {
  background: var(--gold-primary);
  color: var(--black-primary);
  text-decoration: none;
}

.btn-nav-gallery.is-current {
  background: var(--gold-primary);
  color: var(--black-primary);
  font-weight: 700;
}

/* Gallery Header */
.gallery-header {
  background: linear-gradient(135deg, var(--black-primary), var(--black-light));
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.gallery-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
}

.gallery-header .container {
  position: relative;
  z-index: 2;
}

.gallery-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.gallery-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
}

.stat-item i {
  font-size: 2rem;
  color: var(--gold-primary);
  margin-bottom: 10px;
}

.stat-item strong {
  font-size: 1.5rem;
  color: var(--gold-primary);
  display: block;
}

/* Portfolio Gallery */
.portfolio-gallery-section {
  background: linear-gradient(135deg, var(--black-light), var(--black-medium));
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
  padding: 0;
  margin: 0;
}

.gallery-item {
  padding: 0;
  margin: 0;
}

.gallery-card {
  background: var(--black-medium);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--gold-primary);
}

.image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(255, 193, 7, 0.3) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: var(--white);
}

.btn-view {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: var(--black-primary);
  border: none;
  padding: 15px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto 15px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-view:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.5);
}

.image-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-counter {
  color: var(--gray-light);
  font-family: 'Inter', sans-serif;
  margin: 40px 0 0;
  text-align: center;
}

/* Gallery CTA Section */
.gallery-cta-section {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  padding: 80px 0;
  color: var(--black-primary);
}

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-description {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: var(--black-primary);
  border: 2px solid var(--black-primary);
}

.btn-outline:hover {
  background: var(--black-primary);
  color: var(--gold-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .breadcrumb-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .gallery-nav-buttons {
    justify-content: center;
  }
  
  .gallery-title {
    font-size: 2.5rem;
  }
  
  .gallery-stats {
    gap: 20px;
  }
  
  .lightbox-nav {
    padding: 10px 15px;
    font-size: 1.2rem;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Grid image container gets a dark placeholder colour while its lazy
   image loads in — no JS-dependent opacity toggle needed. */
.gallery-image {
  transition: transform 0.4s ease;
  background: var(--black-medium);
}

/* Animation for gallery items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item {
  animation: fadeInUp 0.6s ease forwards;
}