/* Inline gallery: big stage + thumbnail strip (built by gallery.js) */
.content-gallery.ck-gallery {
  float: left;
  width: 420px;
  max-width: 100%;
  margin: 10px 20px 20px 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .content-gallery.ck-gallery {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}

/* big image: click = next image */
.ck-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.ck-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* title overlay: bottom left, mostly opaque black */
.ck-title {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.3;
  pointer-events: none;
}

/* thumbnail strip */
.ck-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: #000;
}

.ck-thumbs {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.ck-thumb {
  flex: 0 0 auto;
  width: 66px;
  height: 50px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.ck-thumb:hover,
.ck-thumb.is-active {
  opacity: 1;
}

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

.ck-arrow {
  flex: 0 0 auto;
  width: 22px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ck-arrow:hover {
  color: #fff;
}

.ck-prev::before {
  content: "\25C0";
  font-size: 12px;
}

.ck-next::before {
  content: "\25B6";
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .ck-thumbs {
    scroll-behavior: auto;
  }

  .ck-thumb,
  .ck-arrow {
    transition: none;
  }
}

