/* ACS Custom Lightbox - Version 2.0.0 - 260106 */

/* Hide for modal */
.lity-hide{
  display: none;
}

/* 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;
  touch-action: pan-y;
}

.acs-lb-overlay.acs-lb-open { 
  opacity: 1; 
}

/* Dialog */
.acs-lb-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.25s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.5); 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: #000;
   -webkit-box-shadow: 7px 7px 7px rgba(0, 0, 0, 0.2);
  box-shadow: 7px 7px 7px rgba(0, 0, 0, 0.2);
  position: relative; 
  z-index: 1;
  transition: transform 250ms ease; 
  will-change: transform;
}

/* 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;
  transition: all .2s ease;
}
@media (hover: hover), (-ms-high-contrast:none) {
  .acs-lb-close:hover {
    border: 2px solid #D40029;
    background-color: #D40029; 
  }
}

/* Gallery nav */
.acs-lb-arrows{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.acs-lb-prev, 
.acs-lb-next {
  display: block;
  background: url(https://cdn-tp3.mozu.com/24645-m1/cms/files/acs-lb-gallery-arrow.svg) no-repeat;
  background-color: transparent;
  background-size: 20px;
  background-position: center;
  padding: 10px;
  border: 2px solid #FFF;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  pointer-events: auto;
  transition: all .2s ease;
}
@media (hover: hover), (-ms-high-contrast:none) {
  .acs-lb-prev:hover, 
  .acs-lb-next:hover { 
    border: 2px solid #D40029;
    background-color: #D40029; 
  }
}

.acs-lb-prev{
  left: -70px;
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}
.acs-lb-next {
  right: -70px; 
}

@media (max-width: 768px) {
  .acs-lb-arrows { 
    display: none; 
  }
  .acs-lb-content:has(iframe) + .acs-lb-arrows{
    display: flex;
  }
  .acs-lb-prev, 
  .acs-lb-next {
    background-size: 15px;
    padding: 10px;
    width: 34px;
    height: 34px;
  }
  .acs-lb-prev{
    left: -40px;
  }
  .acs-lb-next {
    right: -40px; 
  }
}

/* Dots styling */
.acs-lb-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 0 12px;
}

.acs-lb-dot {
  border: 0;
  cursor: pointer;
  padding: 0;
  background-color: #FFF;
  opacity: 1;
  height: 12px;
  width: 12px;
  border-radius: 6px;
  pointer-events: all;
  -webkit-transition: width 300ms ease;
  transition: width 300ms ease;
}

.acs-lb-dot.is-active { 
  background-color: #D40029;
  height: 12px;
  width: 40px;
  border-radius: 6px;
}

/* Focus */
.acs-lb-prev:focus-visible,
.acs-lb-next:focus-visible,
.acs-lb-close:focus-visible,
.acs-lb-dot:focus-visible {
  box-shadow: 0px 0px 0px 4px #5E9ED6;
}