
/* --- GALLERY SECTION STYLING --- */
.gallery-section {
  position: relative;
}
.gallery-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url('./assets/gallery/bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  opacity: 0.2;
  z-index: -1;
}

/* GALLERY SELECTOR BOXES */
.gallery-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-box.active {
  outline: 4px solid #764ba2;
  box-shadow: 0 12px 30px rgba(118, 75, 162, 0.5);
}
.gallery-box:hover {
  transform: translateY(-5px) scale(1.03);
}
.gallery-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
  transition: filter 0.3s ease;
}
.gallery-box:hover .gallery-thumb {
  filter: brightness(0.85);
}
.overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  text-align: center;
}
.overlay h3 {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

/* HIDE GALLERIES INITIALLY */
.tab-pane {
  display: none;
}
.tab-pane.show.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

/* GALLERY GRID */
.grid {
  column-count: 3;
  column-gap: 15px;
}
.grid-item {
  break-inside: avoid;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.grid-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.grid-item:hover img {
  transform: scale(1.05);
}

/* HEADER STYLE */
.h-color {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .grid { column-count: 2; }
}
@media (max-width: 768px) {
  .grid { column-count: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
