.wp-lightbox-container img {
  cursor: zoom-in;
}

.wp-lightbox-container button {
  display: none !important;
}

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

.es-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #FCFAF5;
  background-color: inherit;
}

.es-lightbox.is-open {
  display: flex;
}

.es-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.es-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.es-lightbox-figure figcaption {
  color: inherit;
  opacity: 0.7;
  font-size: 14px;
  text-align: center;
  max-width: 720px;
}

.es-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(79, 57, 57, 0.12);
  border-radius: 50%;
  background: #e7eddd;
  color: #4F3939;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.es-lightbox-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.es-lightbox-close:hover {
  background: #dbe4cb;
  border-color: rgba(79, 57, 57, 0.28);
  transform: scale(1.06);
}

.es-lightbox-close:active {
  transform: scale(0.96);
}

.es-lightbox-close:focus-visible {
  outline: 2px solid rgba(79, 57, 57, 0.6);
  outline-offset: 3px;
}

@media only screen and (max-width: 600px) {
  .es-lightbox-close {
    top: 12px;
    right: 12px;
  }
}
