.cb-cig-editor-placeholder {
  padding: 14px;
  border: 1px dashed rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.02);
}

.cb-cig {
  margin-top: 24px;
}

.cb-cig-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

@media (max-width: 900px) {
  .cb-cig-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .cb-cig-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.cb-cig-thumb {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.cb-cig-thumb-inner {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.cb-cig-thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cb-cig-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  z-index: 9999;
}

.cb-cig-overlay.is-open {
  display: block;
}

.cb-cig-overlay-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  box-sizing: border-box;
}

.cb-cig-overlay-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.cb-cig-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 42px;
  cursor: pointer;
}

html.cb-cig-lock,
html.cb-cig-lock body {
  overflow: hidden;
}
