/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */




.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);
    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;
}

.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.00);
    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.00);
    padding-bottom: 50px;
    padding-top: 25px;
}

.cdm_images_gallery .swiper-slide-prev,
.swiper-slide-next {
    opacity: 0.55;
}

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

.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;
    background: rgba(0,0,0,0.65);
    color: white;
    min-height: 60px;
    min-width: 100%;
}
@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;
    }
    img {
        max-height:calc(100vh-190px);
    }
    .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));
}

.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: transparent;
    color: white!important;
    height: 200px;
        padding: 0 30px;
        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;
}
