.filter-button {
  font-size: 18px;
  border: 1px solid #fff;
  border-radius: 5px;
  text-align: center;
  color: #fff;
  margin: 20px 2px;
}
.filter-button:hover {
  border-color: #6262dd;
  background-color: #fff;
  color: #000;
}
.filter-button.active {
  background: #6262dd;
  color: #fff;
}

.image-container > img, .video-container > video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* 
img:hover, video:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
} */

.gallery {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 270px;
  grid-auto-flow: dense;
}

.gallery > div {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.gallery > div > img, video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .tall {
  grid-row: span 2;
}

.gallery .m-tall {
  grid-row: span 3;
}

.gallery .wide {
  grid-column: span 2;
}

.gallery .m-wide {
  grid-column: span 3;
}

.gallery .wide.tall {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery .wide.m-tall {
  grid-column: span 2;
  grid-row: span 3;
}

.gallery .m-wide.tall {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery .m-wide.m-tall {
  grid-column: span 3;
  grid-row: span 3;
}
