body {
  background-color: #000;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.gallery-image {
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.image-preview {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background: rgb(0 0 0 / 95%);
  cursor: zoom-out;
}

.image-preview[hidden] {
  display: none;
}

.image-preview__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(90vw, 900px);
  flex: 0 0 auto;
  margin: auto;
  cursor: default;
}

@media (max-width: 640px) {
  .image-preview {
    padding: 16px;
  }

  .image-preview__image {
    max-width: 92vw;
  }
}

.masonry-item:hover .gallery-image {
  transform: scale(1.03);
  opacity: 0.9;
}

.background-home {
  background-image: url("/public/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fade-in-section {
  opacity: 1;
  transform: translateY(0);
  transition: all 600ms ease-out;
}

.js .fade-in-section {
  opacity: 0;
  transform: translateY(1.25rem);
}

.js .fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Chỉ để demo cuộn trang */
.spacer {
  height: 0px;
}
