/* ACS Custom Lightbox - Version 1.0.1 - 250815 */

/* Overlay */
.acs-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  backdrop-filter: blur(4px); 
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.25s ease;
  overflow-y: scroll;
}
.acs-lb-overlay.acs-lb-open { opacity: 1; }

/* Dialog */
.acs-lb-dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.75); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Content */
.acs-lb-content {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: clip;
  background-color: #FFF;
   -webkit-box-shadow: 7px 7px 7px rgba(0, 0, 0, 0.2);
    box-shadow: 7px 7px 7px rgba(0, 0, 0, 0.2);
}

/* Image sizing */
.acs-lb-content img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  transition: max-width 0.2s ease, max-height 0.2s ease;
}

/* Gallery mode slightly smaller */
.acs-lb-dialog.gallery-mode .acs-lb-content img {
  max-width: 70vw;
  max-height: 70vh;
}

/* Video wrapper */
.acs-lb-video-wrapper {
  position: relative;
  width: 70vw;
  height: auto;
  max-width: 1200px;
  max-height: 675px;
  aspect-ratio: 16/9;
}
.acs-lb-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  transform: scale(1.01); 
}
.acs-lb-dialog.gallery-mode .acs-lb-video-wrapper { width: 70vw; }

/* Mobile adjustments */
@media (max-width: 767px) {
  .acs-lb-content img { max-width: 93vw; max-height: 70vh; }
  .acs-lb-video-wrapper { 
	width: 93vw; 
	max-width: 713px;
  	max-height: 401px;
}
  .acs-lb-content {border-radius: 6px;}
}

/* Close button */
.acs-lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: calc(24rem / 16);
  line-height: 1;
  color: #FFF;
  border: 2px solid #FFF;
  cursor: pointer;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  text-align: center;

}

/* Gallery nav */
.acs-lb-prev, .acs-lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.3em 0.6em;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
}
.acs-lb-prev:hover, .acs-lb-next:hover { background: rgba(0,0,0,0.8); }
.acs-lb-prev { left: -3rem; }
.acs-lb-next { right: -3rem; }
@media (max-width: 600px) {
  .acs-lb-prev { left: 0.2rem; }
  .acs-lb-next { right: 0.2rem; }
}