/* 簡易ライトボックス用CSS */
.simple-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.simple-lightbox-content {
  width: 100%;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-lightbox-image {
  width: 100%;
  height: 90vh;
  max-width: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.simple-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.simple-lightbox-overlay.is-hidden {
  display: none;
}

.entry-content img,
.entry-content a {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.entry-content img {
  -webkit-user-drag: none;
}

@media screen and (max-width: 768px) {
  .simple-lightbox-overlay {
    padding: 12px;
  }

  .simple-lightbox-content {
    max-height: 85vh;
  }

  .simple-lightbox-image {
    height: 85vh;
  }

  .simple-lightbox-close {
    top: 8px;
    right: 12px;
    font-size: 32px;
  }
}
