body #fancybox-overlay {
  overscroll-behavior: none;
  background: rgba(50,50,50,0.75) !important;
  opacity: 1 !important;
}
body #fancybox-wrap {
  pointer-events: none;
  padding: 0;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
  overscroll-behavior: none;
}
body #fancybox-wrap #fancybox-outer {
  pointer-events: auto;
}
body #fancybox-wrap #fancybox-outer .fancybox-bg {
  display: none;
  pointer-events: none;
}
body #fancybox-close {
  top: 10px;
  right: 10px;
  width: auto;
  height: auto;
  background: none;
  transition: all 0.3s ease;
}
body #fancybox-close::after {
  content: '\E84A';
  display: block;
  height: 1.5rem;
  width: 1.5rem;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  color: #000;
  background: rgba(255,255,255,0.66);
  padding: 10px;
  font-family: 'custom-icons';
  font-style: normal;
  font-weight: bold;
  text-decoration: none;
  font-variant: normal;
  text-transform: none;
  overflow: visible;
  transition: all 0.3s ease;
}
body #fancybox-close:hover {
  transition: all 0.3s ease;
}
body #fancybox-close:hover::after {
  background: #ffffff;
  transition: all 0.3s ease;
}
@media (max-width: 640px) {
  body #fancybox-close {
    top: 0;
    right: 0;
  }
  body #fancybox-close::after {
    padding: 15px 15px 5px 5px;
  }
}
body #fancybox-img {
  object-fit: cover;
}
body #fancybox-left,
body #fancybox-right {
  text-decoration: none;
  transition: background 0.3s ease;
}
body #fancybox-left::after,
body #fancybox-right::after {
  content: '\e804';
  font-family: custom-icons;
  display: block;
  position: absolute;
  left: 0;
  top: calc(50% - 1rem);
  margin: 0 10px;
  padding: 10px;
  line-height: 1;
  overflow: visible;
  font-size: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  font-weight: bold;
  vertical-align: middle;
  text-align: center;
  background: transparent;
  color: #000;
  text-shadow: 0 0 1.5rem #ffffff, 0 0 1.5rem #ffffff;
  transition: background 0.3s ease;
}
@media (max-width: 640px) {
  body #fancybox-left::after,
  body #fancybox-right::after {
    padding: 5px;
    background: rgba(255,255,255,0.66);
  }
}
body #fancybox-left:hover,
body #fancybox-right:hover {
  transition: background 0.3s ease;
}
body #fancybox-left:hover::after,
body #fancybox-right:hover::after {
  background: #ffffff;
  transition: background 0.3s ease;
}
body #fancybox-right::after {
  content: '\e805';
  left: auto;
  left: unset;
  right: 0;
}
body #fancybox-left-ico,
body #fancybox-right-ico {
  display: none !important;
}
body #fancybox-title {
  display: none;
  position: absolute;
  padding: 10px 0;
  background: rgba(255,255,255,0.66);
  color: #000;
  width: calc(100% - 20px);
  margin-left: 10px;
  bottom: 10px;
  font-family: unset;
  font-size: 0.9rem;
  font-size: clamp(12px,0.9rem,22px);
  transition: all 0.3s ease;
  z-index: 1103;
}
body #fancybox-title:hover {
  background: #ffffff;
  transition: all 0.3s ease;
}
body #fancybox-title #fancybox-title-over {
  display: block;
  padding: 0 10px;
  line-height: 1.5;
  display: -webkit-box;
  background: none;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
body #fancybox-title #fancybox-title-over a {
  color: #000;
  background: transparent;
  text-decoration: underline;
}
body #fancybox-title #fancybox-title-over a:hover {
  color: #000;
  background: transparent;
  text-decoration: underline;
}
body #fancybox-title .image-credits {
  display: block;
  padding: 0 10px;
  line-height: 1.5;
  display: -webkit-box;
  background: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  body #fancybox-title {
    padding: 5px 0;
    font-size: 0.8rem;
    font-size: clamp(12px,0.8rem,18px);
  }
  body #fancybox-title .image-credits,
  body #fancybox-title #fancybox-title-over {
    padding: 0 5px;
    line-height: 1.33;
  }
}
@media (max-width: 400px) {
  body #fancybox-title .image-credits,
  body #fancybox-title #fancybox-title-over {
    line-height: 1.2;
  }
}
body.customtheme-lightbox-fancybox-mobile #fancybox-overlay {
  background: rgba(25,25,25,0.96) !important;
  opacity: 1 !important;
}
body.customtheme-lightbox-fancybox-mobile #fancybox-close {
  position: fixed;
  top: 0;
  right: 0;
}
body.customtheme-lightbox-fancybox-mobile #fancybox-close::after {
  padding: 10px;
  background: rgba(255,255,255,0.95);
}
body.customtheme-lightbox-fancybox-mobile #fancybox-title {
  position: fixed;
  bottom: 0;
  margin: 0;
  padding: 15px 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
}
body.customtheme-lightbox-fancybox-mobile #fancybox-title .image-credits,
body.customtheme-lightbox-fancybox-mobile #fancybox-title #fancybox-title-over {
  padding: 0 15px;
}
body.customtheme-lightbox-fancybox-mobile #fancybox-left::after,
body.customtheme-lightbox-fancybox-mobile #fancybox-right::after {
  margin: 0;
}
