/* Bossify Academy — Event Gallery */

.section--gallery {
  background: var(--cream);
  padding-bottom: 72px;
}

.gallery__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

.gallery__breadcrumb a {
  color: var(--purple);
  font-weight: 600;
}

.gallery__breadcrumb a:hover {
  color: var(--gold-dark);
}

.gallery__header {
  max-width: 720px;
  margin-bottom: 32px;
}

.gallery__header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--purple);
  line-height: 1.15;
  margin: 8px 0 14px;
}

.gallery__intro {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.gallery__filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(36, 7, 47, 0.12);
  background: var(--white);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.gallery__filter:hover {
  border-color: rgba(200, 155, 60, 0.45);
  color: var(--gold-dark);
}

.gallery__filter.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.gallery__filter.is-active .gallery__filter-date {
  background: rgba(200, 155, 60, 0.25);
  color: var(--gold-light);
}

.gallery__filter-date {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(36, 7, 47, 0.06);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery__item {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(36, 7, 47, 0.08);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.gallery__item.is-hidden {
  display: none;
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery__thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #1a0a22;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery__item:hover .gallery__thumb img {
  transform: scale(1.04);
}

.gallery__caption {
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.gallery__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 16px;
  font-size: 15px;
}

.gallery__empty.is-hidden {
  display: none;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 8, 20, 0.92);
  padding: 24px;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__figure {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  margin: 0;
  text-align: center;
}

.gallery-lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.gallery-lightbox__figure figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(200, 155, 60, 0.35);
}

.gallery-lightbox__close {
  top: 20px;
  right: 20px;
  font-size: 20px;
}

.gallery-lightbox__nav--prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox__nav--next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.event-card__summary {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox__nav--prev,
  .gallery-lightbox__nav--next {
    display: none;
  }
}
