#category {
  text-align: right;
}

#gallery ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#gallery {
  margin: 0;
  margin-top: 3rem;
  width: 100vw;
  max-width: 100vw;
  padding: 0;
}

.picture-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.picture {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  display: block;
}

.picture img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.2s;
}

.picture img:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .picture-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .picture-gallery {
    grid-template-columns: 1fr;
  }
}

body.gallery-page .page-container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
  border-radius: 0 !important;
  background: none !important;
}

#filter {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
}

body.gallery-page {
  position: relative;
}

@media (max-width: 900px) {
  #filter {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    border-radius: 0.375rem !important;
    margin-bottom: 0.25rem;
  }

  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
}
