/* Common styles */

.x-gallery {
    position: relative;
    /* overflow: hidden; */
}

/* Gallery without JS */

.x-gallery__no-js ul {
    margin: 0 -1.5% -20px;
    font-size: 0;
}

.x-gallery__no-js li {
    display: inline-block;
    vertical-align: middle;
    width: 22%;
    margin: 0 1.5% 20px;
    text-align: center;
    margin-bottom: 20px;
}

.x-gallery__no-js img {
    vertical-align: top;
    max-width: 100%;
    height: 100%;
}

/* Gallery with JS */

.x-gallery__js .x-gallery_container {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.x-gallery__js .x-gallery_list {
    position: relative;
    padding: 0;
    list-style-type: none;
    overflow: hidden;
}

.x-gallery__js .x-gallery_item {
    position: relative;
    display: block;
    float: left;
    margin-right: 3px;
}

.x-gallery__js .x-gallery_item img {
    vertical-align: top;
}

.x-gallery__js .x-gallery_item.last {
    margin-right: 0 !important;
}

.x-gallery_arrow {
    position: absolute;
    width: 24px;
    height: 48px;
    top: 50%;
    margin-top: -24px;
    background: url('data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAX9JREFUeNrU2k2KAjEQhuH056xH+jreYLyBA3o4B/QGeoO5jKtxLxqhGjKi3fmpLykDRS9c+D6K2gl2p94x10Kuv6wnADn+6OcQQN4GMMR/+pkzESDH7/zsmYgPcvwmeGwliKXmZwLk+IvMmvVOgBw/LBoCFeKpCFSKpyFQMZ6CQOV4dQQaxKsi0CheDYGG8SoINI4vRsBAfBECRuKzETAUn4WAsfhkBAzGJyFgND4aAcPxUQgYj59EdKfefHy4Zn5+ZHv6d9+eDu/AVa6ds7/+tUI22EsRrUQ4M/rqb/18+zn7+bq3Izg5s4x4Gv/4LWQV8TL+2e+ANcRo/KtfYiuIyfixe6HWiKj4qbvRVojo+Jj9QG1EUnzsjqwWIjk+ZU/MRmTFp55KsBDZ8TnnQtqIovjckzktRHF8LkADoRJfAihBqMWXAnIQqvEagBSEerwWIAZBidcEjCFo8cOmXnst5NRgLqcIV1Y8C/CIcKx4JiBEdKx4NsC5Cn+3uQkwAEoVAtpWtN8AAAAAAElFTkSuQmCC') no-repeat;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
         -o-user-select: none;
            user-select: none;
}

.x-gallery_arrow:active {
    transform: translate(1px, 1px);
}

.x-gallery_arrow.left {
    left: -38px;
}

.x-gallery_arrow.right {
    right: -38px;
    background-position: 100% 0;
}

.x-gallery_arrow.disabled {
    /* cursor: default;
    background-position: 0 100%; */
    display: none !important;
}

/* .x-gallery_arrow.right.disabled {
    background-position: 100% 100%;
} */

/* .x-gallery_arrow.disabled:active {
    transform: translate(0, 0);
} */

/* .x-gallery_item__last {
    margin-right: 0;
} */

.x-gallery_link {
    display: block;
    position: relative;
}

.x-gallery_title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABBJREFUeNpi+v///0WAAAMACdcD0e/fQsMAAAAASUVORK5CYII='); /* rgba fallback */
    background: rgba(255, 255, 255, 0.82);
    padding: 10px 20px;
    height: 2.4em;
    font: 21px/1.2 'PT Sans Narrow', sans-serif;
    -webkit-box-sizing: content-box;
       -moz-box-sizing: content-box;
            box-sizing: content-box;
}

.x-gallery_link:hover .x-gallery_title {
    color: #e31e24;
}

.x-gallery_zoom {
    position: absolute;
    right: 0;
    top: 0;
    width: 58px;
    height: 55px;
    background: url('/i/gallery-zoom.png') no-repeat;
    border-radius: 0 0 0 100%;
}

.b-gallery .x-gallery {

}

/*.b-gallery .x-gallery_arrow.left {
    left: -15px;
}

.b-gallery .x-gallery_arrow.right {
    right: -15px;
}*/
