:root {
  --overlay-bg-color: #f6f6f6;
}
.mt-lightbox__image {
  position: relative;
}
.mt-lightbox__image:has(.mt-lightbox__opener) {
  cursor: pointer;
  overflow: hidden;
}
.mt-lightbox__image .mt-lightbox__opener {
  display: none;
  align-items: center;
  position: absolute;
  bottom: 0;
  min-height: 18px;
  padding: 10px 50px;
  box-sizing: border-box;
  max-width: 50%;
  background: rgba(102, 102, 102, 0.6) url(../../../../etc/designs/mt/docroot/images/icons/open-lightbox.svg) no-repeat 20px center;
  font-size: 12px;
  line-height: normal;
  text-align: left;
  color: white;
  cursor: pointer;
  transform: translateX(-101%);
  transition: transform .6s;
}
.mt-lightbox__image:hover .mt-lightbox__opener {
  transform: translateX(0%);
}
.mt-lightbox__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.mt-lightbox__overlay--visible {
  opacity: 1;
  visibility: visible;
  z-index: 109;
}
.mt-lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  outline: none;
}
.mt-lightbox__content .mt-lightbox__picture {
  display: block;
  overflow: hidden;
  max-width: calc(100% - 60px);
  padding: 30px;
  background: var(--overlay-bg-color);
}
.mt-lightbox__content .mt-lightbox__picture--landscape {
  aspect-ratio: 1.77777778;
  height: 80vh;
}
.mt-lightbox__content .mt-lightbox__picture--square {
  aspect-ratio: 1;
  height: 80vh;
}
.mt-lightbox__content .mt-lightbox__picture--portrait {
  aspect-ratio: 0.70921986;
  height: calc(100vh - 60px);
  margin: -30px 0 0 0;
}
.mt-lightbox__content img.mt-lightbox__img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  border: solid 1px #f0f0f0;
  transition: opacity 0.3s ease;
  object-fit: cover;
  overflow-clip-margin: 0px;
}
.mt-lightbox__content .cmp-carousel__slide {
  background: var(--overlay-bg-color);
  width: 100vw;
  height: 90vh;
  max-width: 100%;
  max-height: calc(100vh - 70px);
  overflow-y: scroll;
  overflow-x: hidden;
}
.mt-lightbox__content .cmp-carousel__slide .cross-template-component,
.mt-lightbox__content .cmp-carousel__slide [class*="--background-gray"] {
  width: 100%;
  background: transparent;
  padding: 30px;
  box-sizing: border-box;
  margin: 0;
}
.mt-lightbox__content .cmp-carousel__slide .cross-template-component .fc_wrapper,
.mt-lightbox__content .cmp-carousel__slide [class*="--background-gray"] .fc_wrapper {
  margin: 0;
  max-width: 100%;
}
.mt-lightbox__content .cmp-carousel__slide .mt-lightbox__opener {
  display: none;
}
.mt-lightbox__content .cmp-carousel__slide.featuredtextandimage .fc_image,
.mt-lightbox__content .cmp-carousel__slide.featuredtextanddocumentdownload .image-wrapper {
  flex-basis: 40%;
  max-width: 40%;
}
.mt-lightbox__content .cmp-carousel__slide.featuredtextanddocumentdownload .image-wrapper .fc_image {
  max-width: 100%;
}
.mt-lightbox__content .cmp-carousel__slide.featuredtextanddocumentdownload .image-wrapper .fc_image picture {
  width: auto;
}
.mt-lightbox__content .cmp-carousel__slide.featuredtextandimage .fc_text-form,
.mt-lightbox__content .cmp-carousel__slide.featuredtextanddocumentdownload .text-wrapper {
  flex-basis: 60%;
  max-width: 60%;
}
.mt-lightbox__content:has(.mt-lightbox__picture--portrait) .mt-lightbox__close {
  top: -30px;
  right: -16px;
}
.mt-lightbox__content .mt-lightbox__close {
  border: none;
  cursor: pointer;
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 3;
  outline: 0;
  background: var(--overlay-bg-color);
  border: solid 1px #ccc;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mt_direction_right_to_left .mt-lightbox__image .mt-lightbox__opener {
  transform: translateX(101%);
}
.mt_direction_right_to_left .mt-lightbox__image:hover .mt-lightbox__opener {
  transform: translateX(0%);
}
@media only screen and (max-width: 1009px) {
  .mt-lightbox__content .mt-lightbox__picture--landscape {
    height: auto;
    max-height: 80vh;
  }
}
@media only screen and (max-width: 768px) {
  .mt-lightbox__opener {
    display: none !important;
  }
}
