.gallery-hero {
  padding: clamp(2rem, 4vw, 3.5rem) 0 1.25rem;
}

.gallery-hero__inner {
  display: grid;
  gap: 1rem;
}

.gallery-kicker {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}

.gallery-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
}

.gallery-intro {
  max-width: 780px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .9;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}

.gallery-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.gallery-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}

.gallery-chip.is-active {
  background: #0b1020;
  border-color: #0b1020;
  color: #fff;
}

.gallery-main {
  padding: .5rem 0 3rem;
}

.gallery-status {
  margin: .5rem 0 0;
  min-height: 1.5rem;
  opacity: .85;
}

.gallery-sections {
  display: grid;
  gap: 2.5rem;
  margin-top: 1rem;
}

.gallery-section {
  display: grid;
  gap: 1rem;
  scroll-margin-top: 110px;
}

.gallery-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 1rem;
}

.gallery-section__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.gallery-section__count {
  margin: 0;
  font-size: .95rem;
  opacity: .75;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.gallery-item__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: #f3f4f6;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .10);
}

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item--video .gallery-item__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(11,16,32,.80), rgba(11,16,32,.92)),
    #0b1020;
}

.gallery-item__play {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.14);
}

.gallery-empty {
  padding: 1rem 1.1rem;
}

/* Lightbox */
.pfe-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.pfe-lightbox.is-open {
  display: block;
}

.pfe-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
}

.pfe-lightbox__panel {
  position: absolute;
  inset: 4vh 4vw;
  background: rgba(11,16,32,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.pfe-lightbox__close {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.pfe-lightbox__content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 1rem 1rem;
}

.pfe-lightbox__content img,
.pfe-lightbox__content video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gallery-filters {
    flex-direction: column;
  }

  .gallery-chip {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .pfe-lightbox__panel {
    inset: 2vh 2vw;
    border-radius: 14px;
  }

  .pfe-lightbox__content {
    padding: 2.8rem .7rem .7rem;
  }
}