#galleryHolder .stage ul>li>input+div,
#galleryHolder .thumbs ul>li>label>div,
#galleryHolder .thumbs ul>li>label>img,
.stage ul>li div {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat
}
#galleryHolder .stage ul>li>input+div,
#galleryHolder .thumbs ul>li,
#galleryHolder .thumbs ul>li>label>img,
#galleryHolder .thumbs ul>li>label>img:after {
    background-color: rgba(255, 255, 255, 1)
}
#galleryHolder .thumbs ul>li {
    width: 25%;
    width: calc(100% / 4);
    float: left
}
#galleryHolder .stage ul>li>input,
#galleryHolder .stage ul>li[data=''] {
    display: none
}
#galleryHolder .gallery {
    margin: 0 .5rem;
    -ms-flex: 1;
    flex: 1;
    -ms-flex-order: 1;
    order: 1
}
#galleryHolder .stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 0;
    margin-bottom: .5rem;
    padding-bottom: 100%
}
#galleryHolder .stage ul {
    margin: 0;
    padding: 0;
    list-style: none
}
#galleryHolder .stage ul>li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.stage ul>li div {
    display: block;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 100%;
    -webkit-transition: opacity .5s ease 0s;
    transition: opacity .5s ease 0s;
    opacity: 0;
    background-color: #fff
}
#galleryHolder .stage ul>li>input+div {
    display: block;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 100%;
    transition: opacity .5s ease 0s;
    opacity: 0
}
#galleryHolder .stage ul>li>input:checked+div {
    opacity: 1
}
#galleryHolder .thumbs {
    position: relative;
    z-index: 1;
    margin: 0 -.25rem
}
#galleryHolder .thumbs:after {
    content: " ";
    display: table;
    clear: both
}
#galleryHolder .thumbs ul {
    display: -ms-flexbox;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
}
#galleryHolder .thumbs ul>li:only-child,
#galleryHolder .thumbs ul>li[data=''] {
    display: none
}
#galleryHolder .thumbs ul>li {
    height: 100%;
    margin: auto 0
}
#galleryHolder .thumbs ul>li>label {
    position: relative;
    display: initial;
    float: left;
    width: 100%;
    height: 100%;
    margin-bottom: 20px
}
#galleryHolder .thumbs ul>li>label>div {
    position: relative;
    z-index: 4;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    cursor: pointer;
    background-color: transparent;
    box-sizing: border-box;
}
#galleryHolder .thumbs ul>li>label>div:before {
    font-size: 0;
    display: block;
    padding-top: 100%;
    content: '\00a0 '
}
#galleryHolder .thumbs img {
    position: relative;
    z-index: 4;
    max-width: 95%;
    height: auto;
    cursor: pointer
}
.mto_cat_item_text_counter {
    display: none
}
.lightbox_control,
.lightbox_control:visited {
    color: rgba(255, 255, 255, 1)
}
input:checked+.lightbox>a.lightbox_link {
    cursor: -webkit-zoom-in;
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1
}
#galleryHolder .stage ul>li>input+div.lightbox:target,
.lightbox_overlay,
.stage ul>li>input+div.lightbox {
    transition: none!important
}
.lightbox_overlay {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    z-index: -1;
    left: 0
}
:target .lightbox_overlay {
    background-color: rgba(0, 0, 0, .9);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    display: -ms-flexbox;
    display: flex;
    opacity: 1;
    visibility: visible;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center
}
.lightbox_overlay>.lightbox_content {
    opacity: 0;
    overflow: visible;
    max-height: 80vh;
    max-width: 80%;
    position: relative
}
.lightbox_overlay>.lightbox_figure {
    transition: opacity 2s
}
:target .lightbox_overlay>.lightbox_content {
    opacity: 1
}
:target .lightbox_overlay>.lightbox_figure {
    display: block;
    margin: 1.5em
}
.lightbox_figure img {
    display: block;
    height: auto;
    max-width: 100%;
    margin: 0 auto !important;
}
:target .lightbox_overlay .lightbox_figure,
:target .lightbox_overlay .lightbox_image {
    max-width: 80vw;
    background-position: center 0;
    max-height: 80vh;
    opacity: 1;
    position: relative
}
:target .lightbox_overlay .lightbox_figure {
    position: absolute;
    margin-top: 100px;
    width: 80vw;
    top: 0;
    left: 0;
    right: 0;
    margin: 100px auto 0 !important;
}
:target .lightbox_overlay .lightbox_figure * {
    margin: 0 auto;
}
:target .lightbox_overlay .lightbox_image {
    opacity: 1;
    display: none;
    padding-top: 0
}
.lightbox_control {
    position: absolute
}
.lightbox_control_icons .lightbox_control {
    position: absolute;
    width: 3em;
    height: 3em;
    background-position: 50%;
    background-size: cover;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden
}
.lightbox_close {
    top: 1em;
    right: 1em
}
.lightbox_control_icons .lightbox_close {
    top: 2.5em;
    right: 2.5em;
    background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20x%3D%220%22%20y%3D%220%22%20viewBox%3D%220%200%2032%2032%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M21.7%2010.3c-0.4-0.4-1-0.4-1.4%200l-4.3%204.3-4.2-4.2c-0.4-0.4-1-0.4-1.4%200-0.4%200.4-0.4%201%200%201.4l4.2%204.2-4.3%204.3c-0.4%200.4-0.4%201%200%201.4%200.4%200.4%201%200.4%201.4%200l4.3-4.3%204.2%204.2c0.4%200.4%201%200.4%201.4%200%200.4-0.4%200.4-1%200-1.4l-4.2-4.2%204.3-4.3C22.1%2011.3%2022.1%2010.7%2021.7%2010.3zM16%200C7.2%200%200%207.2%200%2016s7.2%2016%2016%2016c8.8%200%2016-7.2%2016-16S24.8%200%2016%200zM16%2030C8.3%2030%202%2023.7%202%2016S8.3%202%2016%202s14%206.3%2014%2014S23.7%2030%2016%2030z%22%2F%3E%3C%2Fsvg%3E);
    mix-blend-mode: difference
}
.lightbox_control_icons .lightbox_close:hover {
    opacity: .5
}
.lightbox_close_around {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    cursor: default
}
.lightbox_next,
.lightbox_prev {
    top: 50%;
    margin-top: -1.5em;
    opacity: .2
}
.lightbox_prev {
    left: 2em
}
.lightbox_next {
    right: 2em
}
.lightbox_control_icons .lightbox_next,
.lightbox_control_icons .lightbox_prev {
    margin-top: -1.5em;
    transition: opacity .2s;
    opacity: 1;
    background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2244.1%22%20height%3D%2294.7%22%20viewBox%3D%220%200%2044.1%2094.7%22%20enable-background%3D%22new%200%200%2044.088%2094.67%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23fff%22%20d%3D%22M44.1%2047.3L1.5%2094.7%200%2093.3l41.4-46L0%201.3%201.5%200%2044.1%2047.3z%22%2F%3E%3C%2Fsvg%3E)
}
.lightbox_control_icons .lightbox_prev {
    left: 2em;
    transform: rotate(180deg)
}
.lightbox_control_icons .lightbox_figure > .lightbox_next {
    right: -3em;
    margin-top: -18px !important;
}
.lightbox_control_icons .lightbox_figure > .lightbox_prev {
    left: -3em;
    margin-top: -18px !important;
}
.lightbox_next:focus,
.lightbox_next:hover,
.lightbox_prev:focus,
.lightbox_prev:hover {
    opacity: .5;
    transition: opacity .2s
}
.lightbox_untarget {
    position: fixed;
    top: 0
}
.lightbox_content {
    overflow: auto;
    max-height: 100%
}
.lightbox_html {
    padding: 2em;
    max-width: 80%;
    background-color: #fff
}
div[class*=' csslider'],
div[class^=csslider] {
    z-index: 1
}
@media only screen and (min-width: 992px) {
    #galleryHolder .stage ul>li>input+div.lightbox:target {
        opacity: 1;
        visibility: visible
    }
}
@media only screen and (max-width: 991px) {
    #galleryHolder .stage ul>li>input+div.lightbox *,
    #galleryHolder .stage ul>li>input+div.lightbox:target * {
        display: none
    }
}
@media only screen and (min-width: 1200px) {
    .lightbox_figure img {
        max-width: 100%
    }
}