/* Custom wp gallery */
 
.enlarge_thumb_gal .custom_gal_item,
.custom_gallery_thumbnails .custom_gal_item_thumb {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
}
.enlarge_thumb_gal .custom_gal_item:after,
.custom_gallery_thumbnails .custom_gal_item_thumb:after {
    content: "\e905";
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -37px 0 0 -37px;
    font-size: 74px;
    color: #fff;
    z-index: 2;
    opacity: 0;
    -webkit-transition: opacity .25s;
    -moz-transition: opacity .25s;
    -ms-transition: opacity .25s;
    -o-transition: opacity .25s;
    transition: opacity .25s;
}
.enlarge_thumb_gal .custom_gal_item:before,
.custom_gallery_thumbnails .custom_gal_item_thumb:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
    opacity: 0;
    -webkit-transition: opacity .25s;
    -moz-transition: opacity .25s;
    -ms-transition: opacity .25s;
    -o-transition: opacity .25s;
    transition: opacity .25s;
}
.enlarge_thumb_gal .custom_gal_item:hover:after,
.enlarge_thumb_gal .custom_gal_item:hover:before,
.custom_gallery_thumbnails .custom_gal_item_thumb:hover:after,
.custom_gallery_thumbnails .custom_gal_item_thumb:hover:before  {
    opacity: 1;
}
.potrait_overlay.custom_gallery_overlay.active {
    visibility: visible;
    opacity: 1;
}
.potrait_overlay.custom_gallery_overlay .container {
    height: 100%;
}
.custom_enlarge_slider_wpapper_preview .slick-slide * {
    max-height: calc(100vh - 180px);
    width: auto !important;
}
.slider_thumb_margin.arrows-visible .slick-list.draggable {
    margin: 0;
}
.custom_gallery_overlay .slick-initialized .slick-slide {
    text-align: center;
    min-width: 100%;
}
.wp_custom_gallery_slider_wrapper .custom_enlarge_slider_wpapper_preview {
    display: none !important;
}
span.lg-close.lg-icon:after {
    content: "\e906";
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 60px;
    color: #fff;
}
button.fancybox-button.fancybox-button--close:after {
    content: "\e906";
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 60px;
    color: #fff;
}
span.lg-fullscreen.lg-icon {
    display: none;
}
a#lg-download {
    display: none;
}
.lg-hide-items .lg-toolbar,
.lg-hide-items .lg-prev,
.lg-hide-items .lg-next {
    opacity: 1 !important;
    -webkit-transform: translate3d(0, 0px, 0) !important;
    transform: translate3d(0, 0px, 0) !important;
}
div#lg-counter {
    display: none;
}
.lg-backdrop {
    background-color: rgba(0,0,0,0.9) !important;
}
.lg-outer .lg-img-wrap {
    padding: 90px 0 !important;
}
.lg-toolbar.group {
    background: transparent !important;
}
span.lg-close.lg-icon {
    width: 60px;
    padding: 0;
    height: 60px;
    top: 15px;
    right: 15px;
    position: absolute;
}
.lg-actions .lg-next, .lg-actions .lg-prev {
    background-color: transparent !important;
}
.lg-actions .lg-next:before,
.lg-actions .lg-prev:after,
button.fancybox-button.fancybox-button--arrow_right:after,
button.fancybox-button.fancybox-button--arrow_left:after
{
    content: '\e908'  !important;
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    color: #5e5e5e;
    display: inline-block;
    z-index: 1;
    width: 100px;
    height: 100px;
    -webkit-transition: color .25s;
    -moz-transition: color .25s;
    -ms-transition: color .25s;
    -o-transition: color .25s;
    transition: color .25s;
}
.lg-actions .lg-prev:after,
button.fancybox-button.fancybox-button--arrow_left:after 
{
    content: '\e909' !important;
}
.lg-actions .lg-prev,
.fancybox-navigation .fancybox-button--arrow_left {
    left: calc((((100% - 1400px) / 2) / 2) - 25px) !important;
    padding: 0;
    width: 70px;
}
.lg-actions .lg-next,
.fancybox-navigation .fancybox-button--arrow_right {
    right: calc((((100% - 1400px) / 2) / 2) - 25px) !important;
    padding: 0;
    width: 70px;
}
.lg-actions .lg-next:hover:before, .lg-actions .lg-prev:hover:after {
    color: #FFF;
}
.fancybox-navigation .fancybox-button,
.fancybox-toolbar {
    opacity: 1 !important;
    visibility: visible;
    background: none;
}
.fancybox-button {
    background: none;
}
button.fancybox-button.fancybox-button--arrow_right svg,
button.fancybox-button.fancybox-button--arrow_left svg,
button.fancybox-button.fancybox-button--zoom,
button.fancybox-button.fancybox-button--play,
button.fancybox-button.fancybox-button--thumbs,
button.fancybox-button.fancybox-button--close svg,
.fancybox-show-infobar .fancybox-infobar
{
    display: none !important;
}
button.fancybox-button.fancybox-button--close {
    width: 60px;
    padding: 0;
    height: 60px;
    top: 15px;
    right: 15px;
    position: absolute;
}

.fancybox-bg {
    background: #000;
}

.potrait_overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    top: 0;
    left: 0;
    z-index: 99;
    padding: 90px 0;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .25s, visibility .25s;
    -moz-transition: opacity .25s, visibility .25s;
    -ms-transition: opacity .25s, visibility .25s;
    -o-transition: opacity .25s, visibility .25s;
    transition: opacity .25s, visibility .25s;
}

.potrait_overlay.active {
    opacity: 1;
    visibility: visible;
}
.portrait_overlay_close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.portrait_overlay_close:after {
    content: "\e906";
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 60px;
    color: #fff;
}
.overlay_slider_container .slick-track {
    min-width: 100%;
}