@media (max-width: 639px) {
  .facilities-carousel .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.news-detail-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 28rem);
  margin-inline: auto;
  object-fit: contain;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1.5rem;
  border: 0;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
}

.image-lightbox[open] {
  display: grid;
  place-items: center;
}

.image-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.75);
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 3rem);
  object-fit: contain;
}

.image-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 639px) {
  .news-detail-image {
    max-height: 65vh;
  }

  .image-lightbox {
    padding: 1rem;
  }

  .image-lightbox__image {
    max-height: calc(100vh - 2rem);
  }
}
