.centralnow-item__gallery {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.centralnow-item__gallery-main {
  height: clamp(280px, 52vw, 620px);
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
}

.centralnow-item__gallery-item {
  display: none;
  height: 100%;
  margin: 0;
}

.centralnow-item__gallery-item.is-active {
  display: block;
}

.centralnow-item__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f3f6f5;
}

.centralnow-gallery-video {
  height: 100%;
  background: #0f172a;
}

.centralnow-gallery-video video,
.centralnow-gallery-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.centralnow-item__gallery-thumbs {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.centralnow-item__gallery-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, 76px);
  gap: 8px;
  padding: 2px;
  overflow: visible;
}

.centralnow-item__gallery-control {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(17, 32, 38, .18);
  border-radius: 50%;
  background: #fff;
  color: #112026;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.centralnow-item__gallery-control:disabled {
  cursor: default;
  opacity: .35;
}

.centralnow-item__thumb {
  height: 76px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .7;
  border-radius: 12px;
  overflow: hidden;
}

.centralnow-item__thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px #111827 inset;
}

.centralnow-item__thumb-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f6f5;
}

.centralnow-gallery-thumb-video {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  background: #112026;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

@media (max-width: 640px) {
  .centralnow-item__gallery-main {
    height: clamp(260px, 82vw, 440px);
  }

  .centralnow-item__thumb {
    height: 64px;
  }

  .centralnow-item__gallery-track {
    grid-template-columns: repeat(auto-fill, 64px);
  }

  .centralnow-item__gallery-control {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
}
