.gallery-section{
  margin-top:18px;
  padding:28px;
  border:1px solid rgba(145,194,255,.18);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(14,25,47,.94),rgba(7,13,26,.94));
  box-shadow:0 24px 70px rgba(0,0,0,.42);
  backdrop-filter:blur(14px);
  overflow:hidden;
}

.gallery-title{
  padding:0;
  margin-bottom:16px;
}

.gallery-filters{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin:0 0 16px;
}

.gallery-filter{
  appearance:none;
  border:1px solid rgba(145,194,255,.18);
  background:rgba(255,255,255,.025);
  color:#dbeaff;
  padding:9px 14px;
  border-radius:999px;
  font:inherit;
  font-size:.8rem;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}

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

.gallery-filter:hover{
  transform:translateY(-2px);
  border-color:rgba(121,190,255,.5);
  background:rgba(70,139,225,.08);
}

.gallery-filter.active{
  border-color:rgba(121,190,255,.72);
  background:linear-gradient(180deg,rgba(49,108,184,.34),rgba(17,39,72,.5));
  box-shadow:0 8px 24px rgba(40,118,220,.13);
  color:#fff;
}

.gallery-grid{
  padding:0;
  border:0;
  background:none;
}

.gallery-item{
  transition:opacity .22s ease,transform .22s ease;
}

.gallery-item.gallery-hidden{
  display:none;
}

.gallery-empty{
  display:none!important;
}

.gallery-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  margin-left:5px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(101,182,255,.12);
  color:#a8d8ff;
  font-size:.68rem;
}

@media(max-width:560px){
  .gallery-section{
    padding:20px 14px;
    border-radius:20px;
  }

  .gallery-title{
    margin-bottom:14px;
  }

  .gallery-filters{
    flex-wrap:nowrap;
    overflow-x:auto;
    margin:0 0 14px;
    padding:2px 0 4px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .gallery-filters::-webkit-scrollbar{display:none}
  .gallery-filter{flex:0 0 auto;padding:9px 12px}
}
