.gallery-container {
  width: 100%;
  max-width: 400px;
  margin: auto;
}

.gallery-item {
  width: 100%;
  height: auto;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
}

.gallery-container .swiper-slide {
  /* background-color: #000000; */
}

.gallery-container .gallery-item {
  opacity: 0.5;
  transition: opacity 300ms ease-in-out;
}

.gallery-container .swiper-slide-active>.gallery-item {
  opacity: 1;
}

.gallery-item>img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  border-radius: 16px;
  filter: contrast(1.1);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.95) 100%);
  pointer-events: none;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.95) 100%);
  pointer-events: none;
}