.csic {
  max-width: 700px;
  margin: 0 auto;
}

.csic-main {
  text-align: center;
}

.csic-mainLink {
  display: inline-block;
  text-decoration: none;
}

.csic-mainImg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.csic-caption {
  text-align: center;
  font-size: 14px;
  margin: 10px 0 8px;
  color: #333;
}

.csic-thumbsWrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 10px;
}

.csic-thumbs {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  min-width: 100%;
  box-sizing: border-box;
}

.csic-thumb {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.csic-thumb img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  display: block;
  background: #fff;
  border: 1px solid transparent;
}

.csic-thumb.is-active img {
  border-color: #111;
  box-shadow: 0 0 0 2px #efefef inset;
  background: #efefef;
}

/* Lightbox */
.csic-lightbox[hidden] { display: none; }

.csic-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
  box-sizing: border-box;
}

.csic-lightboxInner {
  position: relative;
  max-width: 1000px;
  width: 100%;
}

.csic-lightboxImg {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.csic-lightboxClose {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 26px;
  line-height: 38px;
  text-align: center;
}

body.csic-noScroll {
  overflow: hidden;
}