/* ===== HERO SLIDER ===== */
.gallery-hero {
  padding: 20px;
}

.slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
}

.slides img {
  width: 100%;
  max-height: 70vh;
  height: auto;
  object-fit: contain; /* show full image */
  flex-shrink: 0;
  background: #000;
}
/* Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 64, 175, 0.85);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
}

.slider-btn.prev {
  left: 12px;
}
.slider-btn.next {
  right: 12px;
}

.slider-btn:hover {
  background: rgba(30, 64, 175, 1);
}

/* ===== GALLERY GRID ===== */
.gallery-section {
  padding: 35px 20px;
}

.gallery-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--blue-primary);
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  max-height: 220px;
  height: auto;
  color: #fff;
  object-fit: contain;
  background: #000;
  border-radius: 16px;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

/* Overlay */
.gallery-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1));
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
}

/* Achievement highlight */
.gallery-card.achievement {
  outline: 2px solid rgba(30, 64, 175, 0.25);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .slides img {
    aspect-ratio: 16 / 10;
  }

  .slider-btn {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}

/*scrollable stuff*/
.horizontal-gallery {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 60px;

  scrollbar-width: none; /* Firefox */
}
.gallery-track::-webkit-scrollbar {
  display: none; /* Chrome */
}

.gallery-item {
  flex: 0 0 auto;
  width: 260px;
  height: 160px;

  background: #000;
  border-radius: 16px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

/* Arrows */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: rgba(30, 64, 175, 0.85);
  color: #fff;
  border: none;
  cursor: pointer;

  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn.left {
  left: 10px;
}
.scroll-btn.right {
  right: 10px;
}

@media (max-width: 768px) {
  .gallery-item {
    width: 220px;
    height: 140px;
  }

  .gallery-track {
    padding: 0 20px;
  }

  .scroll-btn {
    display: none;
  }
}

/* LIGHTBOX OVERLAY */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Show state */
.image-lightbox.active {
  display: flex;
}

.image-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;

  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

/*expanded for the grid lyt*/
