.zoomable-media {
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.zoomable-media:hover {
  transform: translateY(-1px) scale(1.01);
  filter: saturate(1.02);
}

.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.case-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.case-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 19, 29, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.case-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.98);
  transition: transform 180ms ease;
}

.case-lightbox.is-open .case-lightbox__dialog {
  transform: scale(1);
}

.case-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(11, 16, 32, 0.28);
  background: #ffffff;
}

.case-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #141414;
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12, 17, 31, 0.16);
  transition: transform 160ms ease, background 160ms ease;
}

.case-lightbox__close:hover {
  transform: scale(1.04);
  background: #ffffff;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .case-lightbox {
    padding: 16px;
  }

  .case-lightbox__dialog {
    max-width: 100%;
    max-height: 84vh;
  }

  .case-lightbox__image {
    max-height: 84vh;
    border-radius: 16px;
  }

  .case-lightbox__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}
