@keyframes scaleIn {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightBox {
  cursor: pointer;
}

.lightBox-content {
  display: none;
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.96);
  align-items: center;
  justify-content: center;
  padding: 5%;
  flex-direction: column;
  animation: fadeIn 0.5s ease-in;
}

.lightBox-content .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.lightBox-content .imageLightBox {
  animation: scaleIn 0.5s ease-in-out;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 100px);
  text-align: center;
  overflow: hidden;
}
.lightBox-content .imageLightBox img {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  touch-action: none;
  cursor: zoom-in;
}

.lightBox-content .imageLightBox img.is-zoomed {
  cursor: grab;
}

.lightBox-content .captionLightBox {
  color: #fff;
  line-height: 18px;
  margin-top: 20px;
}
.lightBox-content .captionLightBox span {
  font-size: 0.8rem;
}

.lightBox-buttons {
  display: flex;
  color: #fff;
  position: fixed;
  top: 24px;
  right: 24px;
  cursor: pointer;
  align-items: center;
  gap: 12px;
  z-index: 10020;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  padding: 8px 10px;
}

.lightBox-buttons .lightbox-fullscreen {
  font-size: 1.2rem;
}

.lightBox-buttons .lightbox-close {
  font-size: 1.4rem;
}

.lightBox-buttons .lightbox-fullscreen:hover,
.lightBox-buttons .lightbox-close:hover {
  opacity: 0.8;
}

.lightBox-buttons button,
#cboxLoadedContent .colorbox-zoom-controls .zoom-control {
  border: 1px solid #ffffff;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border-radius: 4px;
  min-width: 34px;
  height: 30px;
  line-height: 1;
  font-size: 14px;
  font-weight: 600;
  padding: 0 8px;
}

.lightBox-buttons button:hover,
#cboxLoadedContent .colorbox-zoom-controls .zoom-control:hover {
  opacity: 0.8;
}

#cboxLoadedContent {
  position: relative;
  overflow: hidden !important;
}

#cboxLoadedContent .colorbox-zoom-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10020;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 8px;
  padding: 8px 10px;
}

#cboxLoadedContent .colorbox-zoom-target {
  transform-origin: center center;
  transition: transform 0.12s ease-out;
  touch-action: none;
  cursor: zoom-in;
}

#cboxLoadedContent .colorbox-zoom-target.is-zoomed {
  cursor: grab;
}

@media (max-width: 768px) {
  .lightBox-content .lightBox-buttons {
    right: 12px;
    top: 12px;
    gap: 8px;
    padding: 6px 8px;
  }

  #cboxLoadedContent .colorbox-zoom-controls {
    top: 10px;
    left: 10px;
    gap: 6px;
    padding: 6px 8px;
  }
}
