body .fancybox-container {
    z-index: 9999999999999;
}

.fancybox-slide--image {
    padding: 0 25px;
}

body .fancybox-content {
    max-width: 850px;
    max-height: 625px;
}

body .fancybox-inline-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    opacity: 0;
    /* transition: opacity 0.3s;   */
}

body .fancybox-inline-content.is-visible {
    opacity: 1;
}

body .fancybox-image {
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


body .fancybox-toolbar {
    top: 0;
    right: 25px;
    border: 1px solid #01916D;
    overflow: hidden;
    background: rgb(255 255 255 / 50%);
}

body .fancybox-content-wrapper {
    position: relative;
    height: 100%;
}

body .fancybox-zoom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99995;
    text-align: center;
    overflow: hidden;
}

body .fancybox-zoom-controls button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 50px;
    height: 50px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
}

body .fancybox-zoom-controls button:disabled {
    cursor: not-allowed;
}

body .fancybox-zoom-controls button:disabled i {
    opacity: 0.5;
}


body .fancybox-zoom-controls-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(1, 145, 109, 0.25);
}

body .fancybox-slide--iframe .fancybox-zoom-controls-button-group {
    display: none;
}

body .fancybox-zoom-controls button:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

body .fancybox-zoom-controls button:last-child {
    border-left: 1px solid rgba(0, 0, 0, 0.2);
}

body .fancybox-zoom-controls button i {
    color: #fff;
}

body .fancybox-navigation button svg {
    visibility: hidden;
}

body .fancybox-navigation .fancybox-button {
    background: transparent;
    width: auto;
}

body .fancybox-navigation .fancybox-button div {
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #01916D;
    background: #fff;
    height: 58px;
    width: 58px;
    transform: scale(0.5);
}

body .fancybox-navigation .fancybox-button {
    top: calc(50% - 22px);
    padding: 0;
    height: auto;
}

body .fancybox-navigation .fancybox-button.fancybox-button--arrow_left {
    left: 0;
}

body .fancybox-navigation .fancybox-button.fancybox-button--arrow_left div:before {
    content: "\e905";
    position: relative;
    top: 13px;
    right: 2px;
}

body .fancybox-navigation .fancybox-button.fancybox-button--arrow_right {
    right: 0;
}

body .fancybox-navigation .fancybox-button.fancybox-button--arrow_right div:before {
    content: "\e906";
    position: relative;
    top: 13px;
    right: -1px;
}

body .fancybox-infobar {
    display: none;
}

body .fancybox-toolbar {
    top: 25px;
    border: none;
    border-radius: 0;
    background-color: transparent;
}

body .fancybox-button--close {
    padding: 0;
    background: transparent;
    border: none;
    color: #fff;
}

.admin-bar .fancybox-inner {
    top: 0;
}

body .fancybox-caption {
    max-width: 865px;
    background: none;
}

/* body .fancybox-show-caption .fancybox-caption {
    opacity: 0;
}

body .fancybox-show-caption .fancybox-caption.is-active {
    opacity: 1;
} */

body .fancybox-caption__body {
    font-family: 'clarimo_ud_pedemibold';
    font-weight: bold;
    font-size: 20px;
    max-height: 120px;
}

body .fancybox-caption__description {
    margin-top: 10px;
    font-weight: normal;
    font-size: 16px;
}

@media (min-width: 600px) {
    .fancybox-slide--image {
        padding: 0 50px;
    }

    body .fancybox-navigation .fancybox-button.fancybox-button--arrow_left {
        left: 25px;
    }

    body .fancybox-navigation .fancybox-button.fancybox-button--arrow_right {
        right: 25px;
    }

    body .fancybox-navigation .fancybox-button div {
        transform: scale(1);
    }
}

@media (min-width: 1200px) {
    body .fancybox-toolbar {
        top: 50px;
        right: 50px;
    }

    body .fancybox-navigation .fancybox-button {
        top: 50%;
        transform: translate(0, -50%);
    }

    body .fancybox-zoom-controls button:hover {
        background-color: #1e1e1e;
    }

    body .fancybox-navigation .fancybox-button.fancybox-button--arrow_left {
        left: 0;
    }
    
    body .fancybox-navigation .fancybox-button.fancybox-button--arrow_right {
        right: 0;
    }

    .fancybox-slide--image {
        padding: 0 44px;
    }    
}

.fancybox-caption__new {
    position: absolute;
    bottom: 0;
    margin-top: 16px;
    text-align: center;
    transform: translateY( calc( 100% + 16px ) );
    width: 100%;
}

.fancybox-caption__new__headline {
    font-family: 'clarimo_ud_pedemibold';
    font-weight: bold;
    font-size: 20px;
}

.fancybox-caption__new__headline,
.fancybox-caption__new__description {
    color: white;
}