.cdm_images_gallery .swiper {
  width: 100%;
  height: auto;
}

.cdm_images_gallery .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: auto !important;
  max-width: 85%;
}

.cdm_images_gallery .modal-body .swiper-slide {
  max-width: 100%;
  width: 100% !important;
}

.cdm_images_gallery .modal-body .swiper-slide img {
  margin: 0 auto;
  /*   max-width: 85%;
  max-height: 85vh; */
}

.cdm_images_gallery .swiper-slide {
  background: transparent;
}

.cdm_images_gallery .gall-modal {
  z-index: 101;
  background-color: rgba(0, 0, 0, 0.88) !important;
  visibility: hidden;
  display: none;
  opacity: 0;
  transition: opacity 0.5s, visibility 0s 0.5s;
}

.cdm_images_gallery .gall-modal.modalactive {
  opacity: 1;
  visibility: visible;
  display: block;
  transition: opacity 0.5s;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

body.logged-in .cdm_images_gallery .gall-modal.modalactive {
  height: calc(100vh - 32px);
  top: 32px;
}

.cdm_images_gallery .modal-body,
.cdm_images_gallery .gall-modal.modalactive .modal-content {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flat-z-index {
  z-index: 0 !important;
}

html.noscroll,
body.noscroll {
  height: 100%;
  overflow: hidden;
}

body.modalopen #menu-cdm-base {
  z-index: 0 !important;
}

.cdm_images_gallery.gallery-container {
  background-color: RGBA(241, 241, 241, 1);
  margin: 40px 0;
  padding-bottom: 20px;
}

.cdm_images_gallery h4.gallery_name {
  padding: 20px;
  margin: 0;
  padding-bottom: 0px;
  font-size: 24px;
}

.cdm_images_gallery .p-swiper-gallery {
  background-color: RGBA(241, 241, 241, 1);
  padding-bottom: 50px;
  padding-top: 25px;
}

/*
.cdm_images_gallery .swiper-slide-prev,
.swiper-slide-next {
    opacity: 0.55;
} */
.cdm_images_gallery .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.55;
}

.cdm_images_gallery .swiper-button-next,
.cdm_images_gallery .swiper-button-prev {
  width: 30px;
  height: 30px;
  opacity: 0.75;
  cursor: pointer;
}

.cdm_images_gallery .swiper-button-next:after,
.cdm_images_gallery .swiper-rtl .swiper-button-prev:after {
  content: "";
  width: 30px;
  height: 30px;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 300 300' style='fill:white; enable-background:new 0 0 300 300;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M150,0C67.157,0,0,67.157,0,150c0,82.841,67.157,150,150,150s150-67.159,150-150C300,67.157,232.843,0,150,0z M195.708,160.159c-0.731,0.731-1.533,1.349-2.368,1.886l-56.295,56.295c-2.734,2.736-6.318,4.103-9.902,4.103 s-7.166-1.367-9.902-4.103c-5.47-5.47-5.47-14.34,0-19.808l48.509-48.516l-48.265-48.265c-5.47-5.473-5.47-14.34,0-19.808 c5.47-5.47,14.338-5.467,19.808-0.003l56.046,56.043c0.835,0.537,1.637,1.154,2.365,1.886c2.796,2.796,4.145,6.479,4.082,10.146 C199.852,153.68,198.506,157.361,195.708,160.159z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cdm_images_gallery .swiper-button-prev:after,
.modal-swiper-button-prev:after,
.cdm_images_gallery .swiper-rtl .swiper-button-next:after {
  content: "";
  width: 30px;
  height: 30px;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 300.003 300.003' style='fill:white; enable-background:new 0 0 300.003 300.003;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M150,0C67.159,0,0.001,67.159,0.001,150c0,82.838,67.157,150.003,149.997,150.003S300.002,232.838,300.002,150 C300.002,67.159,232.839,0,150,0z M189.226,218.202c-2.736,2.734-6.321,4.101-9.902,4.101c-3.582,0-7.169-1.367-9.902-4.103 l-56.295-56.292c-0.838-0.537-1.639-1.154-2.368-1.886c-2.796-2.799-4.145-6.479-4.077-10.144 c-0.065-3.667,1.281-7.35,4.077-10.146c0.734-0.731,1.53-1.349,2.368-1.886l56.043-56.043c5.47-5.465,14.34-5.467,19.808,0.003 c5.47,5.467,5.47,14.335,0,19.808l-48.265,48.265l48.514,48.516C194.695,203.864,194.695,212.732,189.226,218.202z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
}

.modal-swiper-button-prev:after {
  content: "";
  width: 30px;
  height: 30px;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='24px' height='24px' viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3Earrow-left%3C/title%3E%3Cdesc%3ECreated with sketchtool.%3C/desc%3E%3Cg id='directional' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='arrow-left' fill='white'%3E%3Cpolygon id='Shape' points='15 4 17 6 11 12 17 18 15 20 7 12'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.modal-swiper-button-next:after {
  content: "";
  width: 30px;
  height: 30px;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='24px' height='24px' viewBox='0 0 24 24' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' %3E%3Cg id='directional' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='arrow-right' fill='white'%3E%3Cpolygon id='Shape' points='9.0047481 4 17.0047481 12 9.0047481 20 7 18 13.0047481 12 7 6'%3E%3C/polygon%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.modal-body .swiper {
  margin-top: 50px;
}

.btn-close {
  background-repeat: no-repeat;
  background-size: cover;
  border: 0;
  background-color: transparent;
  /* z-index: 100000; */
  width: 30px;
  height: 30px;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3C!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath fill='white' d='M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M327.115,365.904 L256,294.789l-71.115,71.115l-38.789-38.789L217.211,256l-71.115-71.115l38.789-38.789L256,217.211l71.115-71.115l38.789,38.789 L294.789,256l71.115,71.115L327.115,365.904z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cdm_images_gallery .swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

.cdm_images_gallery .swiper-pagination-custom {
  font-size: 12.5px;
}

.caption-in-slide {
  position: absolute;
  bottom: 0;
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  min-height: 60px;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media only screen and (max-width: 769px) {
  .caption-in-slide {
    position: relative !important;
    background: white;
    color: black;
    font-size: 13px;
    min-height: 40px;
    padding: 10px;
    box-shadow: rgba(50, 50, 93, 0.05) 0px 50px 100px -20px, rgba(0, 0, 0, 0.09) 0px 30px 60px -30px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    top: 44% !important;
  }
  body.modalopen #menu-cdm-base {
    z-index: 0 !important;
    display: none;
  }
  body.modalopen .site-content {
    margin: 0;
  }
}
@media only screen and (min-width: 770px) {
  .foto-and-caption-container {
    position: relative;
    height: 100vh;
    max-width: 90vw !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .foto-and-caption-container img {
    max-height: calc(100vh - 190px);
    max-width: 100%;
  }
  body.logged-in .foto-and-caption-container {
    height: calc(100vh - 32px);
  }
  .caption-in-modal {
    /*  max-height: 190px;
    position: absolute;
    padding: 5px 0 !important; */
  }
}
.modal-swiper-button-next,
.modal-swiper-button-prev {
  position: absolute;
  top: 50%;
  width: calc(var(--swiper-navigation-size) / 44 * 27);
  height: var(--swiper-navigation-size);
  margin-top: calc(0px - var(--swiper-navigation-size) / 2);
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swiper-navigation-color, var(--swiper-theme-color));
}

.swiper-horizontal .modal-swiper-button-next,
.swiper-horizontal .modal-swiper-button-prev {
  background: #cbcbcb;
  border-radius: 20px;
  width: 35px;
  height: 35px;
}

.modal-swiper-button-prev,
.swiper-rtl .modal-swiper-button-next {
  left: 10px;
  right: auto;
}

.modal-swiper-button-next,
.swiper-rtl .modal-swiper-button-prev {
  right: 10px;
  left: auto;
}

.caption-in-modal {
  background: #a0a0a0;
  color: white !important;
  /* height: 200px; */
  padding: 5px 0px !important;
  width: 100%;
}

.gall-modal-button.in-modal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swiper-slide.swiper-slide-active .in-preview img {
  cursor: pointer;
}

.cdm_images_gallery .swiper-slide {
  height: auto;
}

@media only screen and (max-width: 769px) {
  .cdm_images_gallery .swiper-slide {
    height: inherit;
  }
  .cdm_images_gallery .modal-body .swiper-slide {
    align-items: flex-start !important;
  }
  .caption-in-modal {
    font-size: 13.5px;
  }
}
.element-post-thumbnail img {
  width: 100% !important;
}

.btn-close.btn-close-gall-modal {
  height: 40px;
  width: 40px;
  background: #a0a0a0;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 2px;
  border-radius: 50%;
  background-size: 30px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M20.7457 3.32851C20.3552 2.93798 19.722 2.93798 19.3315 3.32851L12.0371 10.6229L4.74275 3.32851C4.35223 2.93798 3.71906 2.93798 3.32854 3.32851C2.93801 3.71903 2.93801 4.3522 3.32854 4.74272L10.6229 12.0371L3.32856 19.3314C2.93803 19.722 2.93803 20.3551 3.32856 20.7457C3.71908 21.1362 4.35225 21.1362 4.74277 20.7457L12.0371 13.4513L19.3315 20.7457C19.722 21.1362 20.3552 21.1362 20.7457 20.7457C21.1362 20.3551 21.1362 19.722 20.7457 19.3315L13.4513 12.0371L20.7457 4.74272C21.1362 4.3522 21.1362 3.71903 20.7457 3.32851Z' fill='%23FFFFFF'%3E%3C/path%3E%3C/g%3E%3C/svg%3E") !important;
}

.swiperMain-container {
  height: 400px;
  background: #d0d0d0;
  padding: 4px;
  margin-top: 5px;
  margin-bottom: 5px;
  display: flex;
  gap: 5px;
}
.swiperMain-container .swiperThumbnails {
  overflow: hidden;
  max-height: 100%;
  height: 100%;
}
.swiperMain-container .swiperMain {
  border: 1px solid red;
}
.swiperMain-container .swiperMain .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 90%;
}
.swiperMain-container .swiperMain .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiperMain-container .swiperMain .swiper-container {
  display: flex;
  height: 100%;
  gap: 10px;
  position: relative;
}
.swiperMain-container .main-slider {
  height: 100%;
  width: calc(100% - 100px);
}
.swiperMain-container .thumbnail-slider {
  width: 100px;
  height: calc(100% - 50px);
  flex: 1;
}
.swiperMain-container .thumbnail-slider .swiper-slide {
  width: 100%;
  height: auto;
  opacity: 0.4;
}
.swiperMain-container .thumbnail-slider .swiper-slide-thumb-active {
  opacity: 1;
}
.swiperMain-container .navigation-buttons {
  width: 100px;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0px solid red;
  position: relative;
}
.swiperMain-container .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper:not(.swiper-thumbs) .gall-modal_button {
  cursor: default;
}
.swiper:not(.swiper-thumbs) .swiper-slide.swiper-slide-active .gall-modal_button {
  cursor: pointer;
}

.creative_gallery_container {
  display: flex;
  width: 100%;
  background-color: RGBA(241, 241, 241, 1);
  height: 410px;
  position: relative;
  padding: 5px;
  gap: 5px;
}
.creative_gallery_container .swiper_01.swiper {
  width: calc(100% - 100px);
  background-color: RGBA(241, 241, 241, 1);
  min-height: 400px;
  height: 400px;
}
.creative_gallery_container .swiper_01 .swiper-slide {
  text-align: center;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 90%;
}
.creative_gallery_container .swiper_01 .swiper-slide .foto-and-caption-container {
  height: 400px;
}
.creative_gallery_container .swiper_01 .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.creative_gallery_container .swiper_01 .swiper-slide .caption-in-modal {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  height: auto;
  font-size: 15px;
}
.creative_gallery_container .swiper-button-prev:after,
.creative_gallery_container .modal-swiper-button-prev:after,
.creative_gallery_container .swiper-rtl .swiper-button-next:after {
  content: "";
  width: 30px;
  height: 30px;
  background-size: cover;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 300.003 300.003' style='fill:%235f5f5f; enable-background:new 0 0 300.003 300.003;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M150,0C67.159,0,0.001,67.159,0.001,150c0,82.838,67.157,150.003,149.997,150.003S300.002,232.838,300.002,150 C300.002,67.159,232.839,0,150,0z M189.226,218.202c-2.736,2.734-6.321,4.101-9.902,4.101c-3.582,0-7.169-1.367-9.902-4.103 l-56.295-56.292c-0.838-0.537-1.639-1.154-2.368-1.886c-2.796-2.799-4.145-6.479-4.077-10.144 c-0.065-3.667,1.281-7.35,4.077-10.146c0.734-0.731,1.53-1.349,2.368-1.886l56.043-56.043c5.47-5.465,14.34-5.467,19.808,0.003 c5.47,5.467,5.47,14.335,0,19.808l-48.265,48.265l48.514,48.516C194.695,203.864,194.695,212.732,189.226,218.202z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
}
.creative_gallery_container .swiper-button-next:after,
.creative_gallery_container .swiper-rtl .swiper-button-prev:after {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='iso-8859-1'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 300 300' style='fill:%235f5f5f; enable-background:new 0 0 300 300;' xml:space='preserve'%3E%3Cg%3E%3Cg%3E%3Cpath d='M150,0C67.157,0,0,67.157,0,150c0,82.841,67.157,150,150,150s150-67.159,150-150C300,67.157,232.843,0,150,0z M195.708,160.159c-0.731,0.731-1.533,1.349-2.368,1.886l-56.295,56.295c-2.734,2.736-6.318,4.103-9.902,4.103 s-7.166-1.367-9.902-4.103c-5.47-5.47-5.47-14.34,0-19.808l48.509-48.516l-48.265-48.265c-5.47-5.473-5.47-14.34,0-19.808 c5.47-5.47,14.338-5.467,19.808-0.003l56.046,56.043c0.835,0.537,1.637,1.154,2.365,1.886c2.796,2.796,4.145,6.479,4.082,10.146 C199.852,153.68,198.506,157.361,195.708,160.159z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.creative_gallery_container .swiper_02 {
  width: 100px;
  height: calc(100% - 40px);
  flex: 1;
}
.creative_gallery_container .swiper_02 .swiper-wrapper {
  align-items: center;
}
.creative_gallery_container .swiper_02 .swiper-slide {
  width: 100%;
  height: auto;
  opacity: 0.4;
}
.creative_gallery_container .swiper_02 .swiper-slide-thumb-active {
  opacity: 1;
}
.creative_gallery_container .navigation-buttons {
  background-color: rgba(255, 255, 255, 0.2);
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 35px;
}

.cdm_images_gallery.opacity-on {
  position: relative;
  transition: all 1s ease-out;
}

.cdm_images_gallery.opacity-on::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 10000;
  backdrop-filter: blur(10px);
  transition: all 0.5s ease-out;
}

.cdm_images_gallery.opacity-on::after {
  content: "";
  display: block;
  position: absolute;
  border: 3px solid #c8c8c8;
  border-top-color: #999898;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  animation: spin 1s infinite;
  z-index: 10001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
body.archive.post-type-archive-fotogallery .fotogallery-archive-content {
  margin-bottom: 1rem;
}
body.archive.post-type-archive-fotogallery h4.archive-media {
  font-style: normal;
  font-weight: bold;
  font-size: 22px;
  line-height: 30px;
  color: #1A1A1A;
  padding-bottom: 1rem;
}
body.archive.post-type-archive-fotogallery .image-container {
  position: relative;
  cursor: pointer;
}
body.archive.post-type-archive-fotogallery .image-container h3 {
  padding: 1rem 0;
  font-size: 1.5rem;
}
body.archive.post-type-archive-fotogallery .image-container .occhiello.media-fotogallery {
  position: absolute;
  width: 42px;
  height: 42px;
  background: #C2241E;
  background-repeat: no-repeat;
  background-position: center center;
  top: 0;
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='19' viewBox='0 0 20 19' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.57812 0.75H12.3828C13.2031 0.75 13.9062 1.29688 14.1406 2.03906L14.5703 3.25H17.5C18.8672 3.25 20 4.38281 20 5.75V15.75C20 17.1562 18.8672 18.25 17.5 18.25H2.5C1.09375 18.25 0 17.1562 0 15.75V5.75C0 4.38281 1.09375 3.25 2.5 3.25H5.39062L5.82031 2.03906C6.05469 1.29688 6.75781 0.75 7.57812 0.75ZM10 14.5C12.0703 14.5 13.75 12.8203 13.75 10.75C13.75 8.67969 12.0703 7 10 7C7.89062 7 6.25 8.67969 6.25 10.75C6.25 12.8203 7.89062 14.5 10 14.5Z' fill='white'/%3E%3C/svg%3E%0A");
}
body.archive.post-type-archive-fotogallery .image-container .occhiello.media-fotogallery .count-foto.badge {
  font-size: 10px;
  letter-spacing: -1px;
  font-weight: 700;
  font-family: "Noto Sans";
  color: white;
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 0em 0.3em;
  min-width: 14px;
  text-align: center;
  line-height: 1.3;
}