/* Adds rounded gallery photos and subtle drifting spotlights */

html,
body {
  background: #061024 !important;
}

body {
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.13), transparent 28vmax),
    radial-gradient(circle at 82% 12%, rgba(109, 155, 255, 0.14), transparent 30vmax),
    radial-gradient(circle at 52% 88%, rgba(255, 255, 255, 0.08), transparent 32vmax);
  animation: neeko-gallery-spotlight-drift 18s ease-in-out infinite alternate;
}

body::after {
  background:
    radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.08), transparent 26vmax),
    radial-gradient(circle at 24% 78%, rgba(89, 196, 255, 0.1), transparent 28vmax);
  animation: neeko-gallery-spotlight-drift-reverse 24s ease-in-out infinite alternate;
}

.gallery-page {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

.gallery-page .header,
.gallery-page .gallery,
.gallery-page .footer,
.gallery-page .container,
.gallery-page .container-fluid,
.gallery-page .gallery-header {
  background: transparent !important;
}

@keyframes neeko-gallery-spotlight-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  100% {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

@keyframes neeko-gallery-spotlight-drift-reverse {
  0% {
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
}

.gallery .mm-masonry__item,
.gallery-page .mm-masonry__item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(6, 16, 36, 0.18);
}

.gallery .mm-masonry__item a,
.gallery-page .mm-masonry__item a {
  display: block;
  border-radius: inherit;
  overflow: hidden;
}

.gallery img.mm-masonry__img,
.gallery-page img.mm-masonry__img,
.gallery .mm-masonry__item img,
.gallery-page .mm-masonry__item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.gallery-page button.arrow.arrow-down,
.gallery-page .arrow.arrow-down {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 24px rgba(6, 16, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.gallery-page button.arrow.arrow-down svg,
.gallery-page .arrow.arrow-down svg,
.gallery-page svg.feather-arrow-down {
  display: block;
  color: #fff !important;
  stroke: currentColor !important;
  stroke-width: 2.4;
  filter: drop-shadow(0 3px 6px rgba(6, 16, 36, 0.42));
}

.gallery-page button.arrow.arrow-down:hover,
.gallery-page .arrow.arrow-down:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none !important;
  }
}
