/* Object landing gallery — Moyka Wave */
.obj-gallery {
  --og-accent: #0d9488;
  --og-ink: #0f172a;
  --og-radius: 18px;
  margin: 0 0 1.75rem;
}

.obj-gallery__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--og-radius);
  background: linear-gradient(145deg, #0b1220 0%, #1e293b 55%, #0f766e 140%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 48px -28px rgba(15, 23, 42, 0.55);
  aspect-ratio: 16 / 10;
}

.obj-gallery__track {
  position: absolute;
  inset: 0;
}

.obj-gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.obj-gallery__slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.obj-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.obj-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.obj-gallery__nav:hover {
  background: rgba(13, 148, 136, 0.85);
  transform: translateY(-50%) scale(1.05);
}

.obj-gallery__nav_prev { left: 14px; }
.obj-gallery__nav_next { right: 14px; }

.obj-gallery__counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  font: 600 0.8rem/1.2 "Manrope", system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
}

.obj-gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.obj-gallery__thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #e2e8f0;
  aspect-ratio: 16 / 10;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.obj-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.obj-gallery__thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.obj-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--og-accent);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.25);
}

.news-detail .obj-gallery {
  float: none;
  width: 100%;
  max-width: 920px;
}

.news-detail:has(.obj-gallery) .detail_picture {
  display: none;
}

.object-card__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media (max-width: 720px) {
  .obj-gallery__stage {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }
  .obj-gallery__nav {
    width: 40px;
    height: 40px;
  }
  .obj-gallery__thumb {
    border-radius: 10px;
  }
}
