#baguetteBox-slider.bounce-from-right {
  animation: bounceFromRight .2s ease-out;
}

#gallery {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 10px 0;
}

.photo-grid {
  width: 90%;
  margin: 0 auto;
  padding: 10px 8px;
  background: transparent;
  column-count: 5;
  column-gap: 8px;
  box-sizing: border-box;
  line-height: 0;
}

.photo-grid a {
  display: block;
  width: 100%;
  margin: 0 0 8px 0;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  line-height: normal;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.photo-grid a.fade-out {
  opacity: 0;
}

.photo-grid a.hidden {
  display: none;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.8s ease, filter 0.8s ease, box-shadow 0.8s ease;
}

.photo-grid a:hover {
  position: relative;
  z-index: 5;
}

.photo-grid a:hover img {
  transform: scale(1.02);
  filter: brightness(1.02);
  box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

#galleri .filter-btn.active, #galleri .filter-btn.active:focus, #galleri .filter-btn.active:focus-visible {
  background-color: rgba(255,255,255,0.75) !important;
  border-color: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
  outline: none !important;
}

@media (max-width: 1200px) {
  .photo-grid {
    column-count: 3;
  }
}

@media (max-width: 800px) {
  .photo-grid {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .photo-grid {
    column-count: 1;
  }
}

