/* Gallery Section Styles - optimized for performance */
.gallery-section {
  width: 100%;
  padding: 60px 0;
  background: rgba(10, 15, 25, 0.9);
  /* Keep blur only on larger screens via media query below */
  border-radius: 15px;
  margin: 60px auto;
  max-width: 95%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.gallery-main-title {
  color: #00ff88;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.7);
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
  font-family: "Orbitron", sans-serif;
}

.gallery-main-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00ff88, transparent);
}

.gallery-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-item {
  flex: 1;
  min-width: 400px;
  max-width: 450px;
}

.gallery-image-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  height: 400px;
}

/* Ensure the <picture> and <img> fill the container */
.gallery-image-container picture,
.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-image {
  object-fit: cover;
}

/* Optional small stats section if you use it */
.gallery-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: rgba(15, 20, 30, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  min-width: 100px;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #00ff88;
  font-family: "Orbitron", sans-serif;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.stat-label {
  color: #ccc;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .gallery-item {
    min-width: 350px;
    max-width: 400px;
  }

  .gallery-image-container {
    height: 350px;
  }
}

@media (max-width: 1200px) {
  .gallery-item {
    min-width: 320px;
    max-width: 350px;
  }

  .gallery-image-container {
    height: 320px;
  }

  .gallery-row {
    gap: 25px;
  }
}

@media (max-width: 1024px) {
  .gallery-item {
    min-width: 300px;
    max-width: 320px;
  }

  .gallery-image-container {
    height: 300px;
  }

  .gallery-row {
    gap: 20px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-main-title {
    font-size: 2rem;
  }

  .gallery-item {
    min-width: 280px;
    max-width: 300px;
  }

  .gallery-image-container {
    height: 280px;
  }

  .gallery-row {
    gap: 15px;
    margin-bottom: 15px;
  }

  .gallery-stats {
    gap: 20px;
  }

  .stat-item {
    min-width: 80px;
    padding: 12px;
  }

  .stat-number {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .gallery-main-title {
    font-size: 1.6rem;
  }

  .gallery-item {
    min-width: 250px;
    max-width: 280px;
  }

  .gallery-image-container {
    height: 250px;
  }

  .gallery-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .gallery-stats {
    gap: 10px;
  }

  .stat-item {
    min-width: 70px;
    padding: 10px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .gallery-item {
    min-width: 200px;
    max-width: 220px;
  }

  .gallery-image-container {
    height: 200px;
  }
}

/* Apply blur only on larger screens to avoid mobile performance issues */
@media (min-width: 1025px) {
  .gallery-section {
    backdrop-filter: blur(6px);
  }
}
