/* ==============================
   HOME — vertical columns
   ============================== */
.home-gallery {
  display: flex;
  gap: var(--gap-xs);
  padding: var(--gap-xs);
  min-height: calc(100vh - var(--header-height));
  overflow-x: auto;
  scrollbar-width: none;
}
.home-gallery::-webkit-scrollbar {
  display: none;
}
.home-col {
  flex: 1;
  min-width: 140px;
  position: relative;
}
.home-col img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  display: block;
  filter: invert(0);
  opacity: 0;
  transition:
    filter 1s ease,
    opacity 0.6s ease;
  position: relative;
  z-index: 1;
}
.home-col img.loaded {
  opacity: 1;
}
.home-col img:hover {
  filter: invert(1);
}

.home-mobile-img {
  display: none;
}

.home-mobile-img {
  display: none;
}

@media (max-width: 600px) {
  .home-gallery {
    display: none;
  }
  .home-mobile-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--header-height));
    transform: translateX(-4%);
    width: 116%;
  }
}

/* ==============================
   GALLERY PAGES
   ============================== */
.gallery-grid {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jg-row {
  display: flex;
  gap: 6px;
}

.img-wrap {
  position: relative;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.8s ease;
  position: relative;
  z-index: 1;
}
.img-wrap img.loaded {
  opacity: 1;
}
.img-wrap img:hover {
  transform: scale(1.02);
  opacity: 0.92;
}

/* ==============================
   Shimmer
   ============================== */
@keyframes shimmer {
  0% {
    background-position: -800px 0;
  }
  100% {
    background-position: 800px 0;
  }
}
.img-shimmer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, #ececec 25%, #e0e0e0 50%, #ececec 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  transition: opacity 0.4s ease;
}
.img-shimmer.shimmer-done {
  opacity: 0;
  pointer-events: none;
}
.home-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 480px;
  height: 100%;
}
