.moving-bg {
  position: relative;
  overflow: hidden;

  background-image: url("../imgs/bg-case4.jpg");
  background-repeat: repeat-x;
  background-size: 100% 600px;


  animation: bgMoveLeft 120s linear infinite;
}

@keyframes bgMoveLeft {
  from {
    background-position: 0 bottom;
  }
  to {
    background-position: -2400px bottom;
  }
}



/* ================================
   Masonry Album 瀑布流
================================ */

.masonry-album {
  column-count: 3;
  column-gap: 18px;
  width: 100%;
}

.masonry-item {
  display: block;
  position: relative;
  break-inside: avoid;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: #111;

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.22);

  transform: translateZ(0);
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.masonry-item:hover img {
  transform: scale(1.045);
  opacity: 0.86;
}

.masonry-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      transparent 45%,
      rgba(0, 0, 0, 0.35) 100%
    );

  opacity: 0;
  transition: opacity 0.35s ease;
}

.masonry-item:hover::after {
  opacity: 1;
}

@media (max-width: 991px) {
  .masonry-album {
    column-count: 2;
    column-gap: 14px;
  }

  .masonry-item {
    margin-bottom: 14px;
    border-radius: 15px;
  }
}

@media (max-width: 575px) {
  .masonry-album {
    column-count: 2;
  }

  .masonry-item {
    margin-bottom: 14px;
    border-radius: 5px;
  }

  .masonry-item:hover img {
    transform: none;
    opacity: 1;
  }
}


/* lightGallery 永遠蓋過 header、menu、offcanvas */
.lg-backdrop {
  z-index: 999998 !important;
}

.lg-outer {
  z-index: 999999 !important;
}



