.sil-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  display: flex;
  flex-direction: column;
}

.sil-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sil-media {
  max-width: 92vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sil-current {
  max-width: 100%;
  max-height: 100%;
  border: 0;
}

.sil-current {
  transition: transform 0.15s ease;
  outline: none;
  box-shadow: none;
}

.sil-arrow {
  background: none;
  border: none;
  color: #fff;
  font-size: 48px;
  cursor: pointer;
  padding: 10px;
}

.sil-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
}

.sil-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.sil-thumb {
  min-width: 64px;
  height: 64px;
  opacity: 0.6;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sil-thumb img {
  display: block;
  height: 64px;
  width: auto;
}

.sil-thumb.active {
  opacity: 1;
  outline: 2px solid #4ade80;
  outline-offset: 1px;
}

.sil-trigger-host {
  position: relative !important;
}

a.sil-trigger-host {
  display: inline-block;
  max-width: 100%;
}

.sil-enlarge-hint {
  position: absolute !important;
  top: auto !important;
  right: auto !important;
  left: 10px !important;
  bottom: 10px !important;
  width: 36px;
  height: 36px;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  z-index: 40;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: zoom-in;
  transform: none !important;
  translate: 0 0 !important;
  line-height: 0;
  overflow: hidden;
  contain: layout paint;
}

.sil-enlarge-hint > .sil-enlarge-icon {
  display: block;
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  flex: 0 0 18px;
  pointer-events: none;
}

.sil-enlarge-hint.sil-gallery-hint {
  left: 6px !important;
  bottom: 6px !important;
  width: 30px;
  height: 30px;
}

.sil-enlarge-hint.sil-gallery-hint > .sil-enlarge-icon {
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  flex-basis: 14px;
}

@media (max-width: 767px) {
  .sil-enlarge-hint {
    left: 8px !important;
    bottom: 8px !important;
    width: 40px;
    height: 40px;
  }

  .sil-enlarge-hint > .sil-enlarge-icon {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-basis: 20px;
  }

  .sil-enlarge-hint.sil-gallery-hint {
    left: 5px !important;
    bottom: 5px !important;
    width: 28px;
    height: 28px;
  }

  .sil-enlarge-hint.sil-gallery-hint > .sil-enlarge-icon {
    width: 12px;
    height: 12px;
    max-width: 12px;
    max-height: 12px;
    flex-basis: 12px;
  }
}

.entry-content img,
.wp-block-post-content img,
.post-content img,
.the-content img,
.single-content img,
.single-post-content img,
.post-body img {
  cursor: zoom-in;
}
