/* ===== SundayMorning Image Lightbox ===== */

.single-post .entry-content img,
.single-post .single-content img,
.single-post .post-content img {
  cursor: zoom-in;
}

.sm-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
}

.sm-image-lightbox.is-open {
  display: flex;
}

.sm-image-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1600px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.sm-image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1000000;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 34px;
  font-weight: 300;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
}

.sm-image-lightbox-close:hover,
.sm-image-lightbox-close:focus {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

body.sm-lightbox-open {
  overflow: hidden;
}

@media (max-width: 680px) {
  .sm-image-lightbox {
    padding: 14px;
  }

  .sm-image-lightbox-image {
    max-width: 96vw;
    max-height: 86vh;
  }

  .sm-image-lightbox-close {
    top: 10px;
    right: 10px;
  }
}
