#gallery2,
#gallery2 * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: AlbertaSans, Roboto, sans-serif;
    font-weight: 400;
}
#gallery2 i {
    font-family: 'font awesome 5 pro';
}

#gallery2 .fa {
    font-family: "FontAwesome";
}

#gallery2 .fal {
	font-family: "Font Awesome 5 Pro";
}

#gallery2 a {
    color: #000;
    text-decoration: none
}

#gallery2 {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: none;
    z-index: 999999;
    min-width: 320px;
}

#gallery2__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #1B1C1C
}

#gallery2__content-wrapper {
    position: relative;
    width: 100%;
    height: 100%
}


#gallery2__header_mobile {
    background: #000;
    color: #fff;
    font-size: 14px;
    position: relative;
    z-index: 10;
    height: 36px;
    line-height: 36px;
    display: none;
    padding-left: 10px;
    width: 100%
}
#gallery2__header_mobile .gallery2__header__close,
#gallery2__header_slideshow .gallery2__header__close {
    background-image: url(../images/UI_icons/white/close.svg);
    margin-left: auto;
    background-size: 14px 14px!important;
    height: 100%;
    width: 35px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    min-width: 40px;
}
#gallery2__header_slideshow .gallery2__header__close {
    background-size: 20px !important;
    height: 40px;
    width: 40px;
    margin-left: unset;
    border-radius: 10px;
    transition: background-color 0.5s ease, opacity 0.5s ease;
}

#gallery2__header_mobile .gallery2__header__img-count {
    margin-right: 10px;
    font-size: 12px;
    color: #767676;
    line-height: 36px;
    flex-shrink: 0;
}
#gallery2__header_mobile .gallery2__header__file_name_value {
    line-height: 36px;
}

#gallery2__header {
    background: #000;
    color: #fff;
    position: relative;
    z-index: 10;

    font-size: 16px;
}

#gallery2__header .fa,#gallery2__header .fal {
    color: #f0f4f5
}

#gallery2__header a {
    color: #fff;
    text-decoration: none;
}

#gallery2__header .fa {
    font-size: 20px;
}

#gallery2__header__inner {
    display: flex;
    height: 62px;
    align-items: center;
    padding: 0 15px 0 30px;
    width: 100%;
}

#gallery2__header__left div {
    vertical-align: top
}

#gallery2__header__left {
    gap: 20px;
    display: flex;
}

#gallery2__header .gallery2__header__img-count {
    font-size: 16px;
    color: #737373;
    white-space: nowrap;
    line-height: 21px;
}


.gallery2__header__file_name_value {
    height: 100%;
    overflow: hidden;
    line-height: 21px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    word-break: break-all;
}

.gallery2__header__right {
    float: right;
    display: flex;
    margin-left: 5px;
}
#gallery2__header__mobile_menu {
    display: none;
}

.gallery2__header__right span {
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color .5s ease,color .5s ease;
    min-width: 40px;
}

.gallery2__header__right span:hover {
    background-color: #333333;
}

#gallery2__header_slideshow {
    display: none;
    height: 60px;
    position: fixed;
    width: 100%;
    background: -moz-linear-gradient(top, rgba(0,0,0,1) -50%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0) 100%); /* FF3.6+ */
    background: -webkit-linear-gradient(top, rgba(0,0,0,1) -50%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(0,0,0,1) -50%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(0,0,0,1) -50%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0) 100%); /* IE10+ */
    background: linear-gradient(to bottom, rgba(0,0,0,1) -50%,rgba(0,0,0,0.15) 70%,rgba(0,0,0,0) 100%); /* W3C */
    z-index: 10;
    padding: 10px;
    justify-content: flex-end;
    gap: 5px;
    transition: opacity 0.4s ease;
}

#gallery2__content-wrapper.gallery__slideshow #gallery2__header_slideshow {
    display: flex;
    opacity: 0;
}

#gallery2__content-wrapper.gallery__slideshow #gallery2__controls_left, 
#gallery2__content-wrapper.gallery__slideshow #gallery2__controls_right {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#gallery2__content-wrapper.gallery__slideshow:is(.gallery__slideshow_user_active, .gallery__slideshow_paused) #gallery2__controls_left,
#gallery2__content-wrapper.gallery__slideshow:is(.gallery__slideshow_user_active, .gallery__slideshow_paused) #gallery2__controls_right,
#gallery2__content-wrapper.gallery__slideshow:is(.gallery__slideshow_user_active, .gallery__slideshow_paused) #gallery2__header_slideshow {
    opacity: 1;
}

#gallery2__header_slideshow .gallery2__header_slideshow_button_split {
    border-radius: 10px;
    cursor: pointer;
    height: 40px;
    font-size: 18px;
    display: flex;
    color: white;
    background-color: #242424;
}
#gallery2__header_slideshow .gallery2__header_slideshow_resume,
#gallery2__header_slideshow .gallery2__header_slideshow_pause,
#gallery2__header_slideshow .gallery2__header_slideshow_speed {
    background-image: url(../images/UI_icons/white/pause.svg);
    background-size: 14px;
    background-position-x: 14px;
    background-position-y: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 0 15px 0 40px;
    transition: background-color 0.5s ease, opacity 0.5s ease;
}

#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_resume,
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_pause,
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_speed {
    font-size: 0;
    padding: 0 40px 0 0;
    background-position: center;
}
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_speed,
#gallery2__header_slideshow.close-hide .gallery2__header__close{
    display: none;
}
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_button_split {
    background-color: unset;
}
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_resume,
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_pause {
    background-color: unset;
    border-radius: 10px;
    opacity: 0.65;
    background-size: 20px;
}
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_resume:hover,
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header_slideshow_pause:hover {
    background-color: #333333;
    opacity: 1;
}


#gallery2__header_slideshow .gallery2__header__close:hover {
    background-color: #333333;
    opacity: 1;
}
#gallery2__header_slideshow .gallery2__header_slideshow_resume {
    display: none;
    background-image: url(../images/UI_icons/white/play.svg);
}

#gallery2__header_slideshow .gallery2__header_slideshow_speed {
    width: 35px;
    border-left: 1px solid #000000;
    background-image: url(../images/UI_icons/grey/gear.svg);
    background-position: center;
    background-size: 14px;
    padding: 0;
    opacity: 1;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #333333;
    position: relative;
}
#gallery2__header_slideshow .gallery2__header_slideshow_resume,
#gallery2__header_slideshow .gallery2__header_slideshow_pause {
    background-color: #333333;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
#gallery2__header_slideshow .gallery2__header_slideshow_resume:hover,
#gallery2__header_slideshow .gallery2__header_slideshow_pause:hover {
     background-color: #333333;
}

#gallery2__header_slideshow .gallery2__header_slideshow_speed:hover {
    background-color: #242424;
    background-image: url(../images/UI_icons/white/gear.svg);
}

#gallery2__header_slideshow .gallery2__header__slideshow_dropdown {
    bottom: unset;
    top: 45px;
    left: -51px;
}
#gallery2__header_slideshow:is(.embed, .close-hide) .gallery2__header__slideshow_dropdown {
    left: unset;
    right: 0;
}
#gallery2__header_slideshow .gallery2__header__slideshow_dropdown:after {
    top: unset;
    bottom: 100%;
}
#gallery2__content-wrapper.gallery__slideshow_paused .gallery2__header_slideshow_resume {
    display: flex;
}
#gallery2__content-wrapper.gallery__slideshow_paused .gallery2__header_slideshow_pause {
    display: none;
}

.gallery2__close {
    background-image: url(../images/UI_icons/white/close.svg);
    background-size: 20px 20px!important
}

.gallery2__info {
    background-size: 20px 20px !important;
    font-size: 0;
}

#gallery2__controls_middle .gallery2__controls_middle div .gallery2__controls_middle_icon {
    opacity: 0.75;
    height: 100%;
    width: 100%;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    top: 0;
    background-size: 19px;
}
#gallery2__controls_middle .gallery2__controls_middle div:hover .gallery2__controls_middle_icon {
    opacity: 1;
}

#gallery_select_middle .gallery2__controls_middle_icon {
    background-image: url(../images/UI_icons/inputs/checkbox_checked_white.svg);
}
#gallery_select_middle.selected .gallery2__controls_middle_icon {
    opacity: 1 !important;
    background-image: url(../images/UI_icons/inputs/checkbox_checked.svg);
}

#gallery_comments_middle .gallery2__controls_middle_icon {
    background-image: url(../images/UI_icons/white/chat.svg);
}
#gallery_edit_image_middle .gallery2__controls_middle_icon {
    background-image: url(../images/UI_icons/white/edit_image.svg);
}
#gallery2__header__view-original,
#gallery2__header__fullscreen {
    margin-left: 10px;
}
#gallery2__header__fullscreen .gallery2__controls_middle_icon {
    background-image: url(../images/UI_icons/white/desktop.svg);
}
#gallery2__header__slideshow .gallery2__controls_middle_icon {
    background-image: url(../images/UI_icons/white/play.svg);
}
.gallery2__header__slideshow_dropdown {
    background: rgb(36 36 36 / 85%);
    width: 130px;
    position: absolute;
    bottom: 48px;
    left: -44px;
    border-radius: 10px;
    padding: 10px 0;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.gallery2__header__slideshow_dropdown:after {
    content: '';
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 15px;
    top: 100%;
    left: 0;
}
#gallery2__header__slideshow:hover .gallery2__header__slideshow_dropdown,
.gallery2__header_slideshow_speed:hover .gallery2__header__slideshow_dropdown {
    opacity: 1;
    pointer-events: all;
}
.gallery2__header__slideshow_dropdown .gallery2__header__slideshow_dropdown_title {
    color: rgb(255 255 255 / 40%);
    text-transform: uppercase;
    font-size: 10px;
    line-height: 14px;
    border-bottom: 1px solid black;
    padding: 0 20px 5px;
}
.gallery2__header__slideshow_dropdown .gallery2__header__slideshow_dropdown_title + .gallery2__header__slideshow_dropdown_value {
    margin-top: 5px
}
.gallery2__header__slideshow_dropdown .gallery2__header__slideshow_dropdown_value {
    line-height: 30px;
    color: white;
    transition: background-color 0.5s ease;
    font-size: 14px;
    padding: 0 37px 0 20px;
}
.gallery2__header__slideshow_dropdown .gallery2__header__slideshow_dropdown_value:hover {
    background: #333333;
}
.gallery2__header__slideshow_dropdown .gallery2__header__slideshow_dropdown_value.check {
    background-image: url(../images/UI_icons/white/check.svg);
    background-size: 14px;
    background-position: calc(100% - 12px) center;
    background-repeat: no-repeat;
}
#gallery2__header__zoom .gallery2__controls_middle_icon {
    background-image: url(../images/UI_icons/white/zoom.svg);
}
#gallery2__header__view-original .gallery2__controls_middle_icon {
    background-image: url(../images/UI_icons/white/full.svg);
    background-size: 18px !important;
}
#gallery_vote_middle {
    background-image: unset;
}
#gallery_vote_middle .gallery2__controls_middle_icon {
    background-image: url(../images/UI_icons/white/like.svg);
    background-size: 14px !important;
    background-position-x: 5px !important;
}
#gallery_vote_middle .vote_count {
     margin-left: 25px;
    margin-right: 5px;
    font-size: 12px;
    line-height: 40px;
    color: #fff;
    text-align: left
}
#gallery_vote_middle.has_voted .gallery2__controls_middle_icon{
    background-image: url(../images/UI_icons/blue/like.svg);
}



#gallery2__header__mid {
    margin: 0;
    text-align: right;
    margin-left: auto;
}

#gallery2__header__mid_content {
    font-size: 0;
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

#gallery2__header__mid .gallery2__header_middle_button {
    border-radius: 10px;
    display: flex;
    line-height: 18px;
    font-size: 16px;
    position: relative;
    height: 50px;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color .5s ease,color .5s ease;
    align-items: center;
    background-size: 16px;
    background-position-x: 12px;
    background-position-y: center;
    background-repeat: no-repeat;
    padding: 0 10px 0 40px;
    min-width: 50px;
    width: max-content;
}
#gallery2__header__mid .gallery2__header_middle_button a {
    font-size: 16px;
}
#gallery2__header__mid .gallery2__header_middle_button:hover {
    background-color: #333333;
}
#gallery2__header__mid #gallery2__buyproducts,
#gallery2__header__mid #gallery2__buyall,
#gallery2__header__mid #gallery2__buyfile {
    background-color: #00b715;
    padding: 0 18px 0 45px;
    background-position-x: 18px;
}
#gallery2__header__mid #gallery2__buyproducts:hover,
#gallery2__header__mid #gallery2__buyall:hover,
#gallery2__header__mid #gallery2__buyfile:hover {
    background-color: #009611;
}
#gallery2__header__mid #gallery2__buyall a,
#gallery2__header__mid #gallery2__buyfile a {
    margin-top: 4px;
}
#gallery2__header__mid #gallery2__buyall span.price,
#gallery2__header__mid #gallery2__buyfile span.price {
    font-size: 14px;
    margin-bottom: 0px;
    font-weight: bold;
}

#gallery2__sidebar__info-price_middle span.price {
    background: #00b715;
    padding: 4px 9px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
    line-height: 11px;
    font-size: 12px;
    margin-bottom: 0px;
    color: #fff;
    text-decoration: none;
    margin-left: 6px;
}

#gallery2__header__mid #gallery2__sign_main {
    background-color: #D9E6FD;
    padding: 0 18px 0 45px;
    background-position-x: 18px;
    background-image: url(../images/UI_icons/eParaksts.svg);
}

#gallery2__header__mid #gallery2__download_space {
    display: none;
}

#gallery2__header__mid #gallery2__sign_main a {
    color: #242424;
}
#gallery2__header__mid #gallery2__sign_main:hover a {
    color: #417FF2;
}

#gallery2__header__mid #gallery2__share {
    background-image: url(../images/UI_icons/white/share.svg);
}
#gallery2__header__mid #gallery2__buyfile, 
#gallery2__header__mid #gallery2__buyall, 
#gallery2__header__mid #gallery2__buy-products {
    background-image: url(/images/UI_icons/white/cart.svg);
}
#gallery2__header__mid #gallery2__buyproducts {
    background-image: url(/images/UI_icons/white/cup.svg);
}
#gallery2__header__mid #gallery2__share[style*='display: flex']{
    display: inline-flex !important;
}

#gallery2__header__mid .x-split-button {
    border: none;
    height: 50px;
    line-height: 50px;
    display: inline-flex;
    align-items: center;
    padding-right: 15px;
    border-radius: 10px;
    background-position-x: 12px!important;
    background-position-y: center!important;
    background-repeat: no-repeat!important;
    background-image: url(/images/UI_icons/white/download.svg);
    background-size: 16px;
    padding-left: 35px;
    background-color: unset;
    transition: background-color 0.5s ease;
}
#gallery2__header__mid .x-split-button:hover {
    background-color: #333333;
}

#gallery2__header__mid .x-button {
    height: 32px;
    line-height: 32px;
}
#gallery2__header__mid .x-button-main {

    padding-right: 0;
    font-size: 16px
}

#gallery2__header__mid .x-split-button span {
white-space: nowrap;
}

#gallery2__header__mid .x-button.x-button-drop {
    height: 40px;
    border: 0;
    padding-left: 10px;
    width: 25px;
    border-top-right-radius: 5px!important;
    border-bottom-right-radius: 5px!important
}

#gallery2__header__mid .x-button.x-button-drop:before {
    background: transparent url(/images/gallery/dropdown.svg?v=1) no-repeat center center;
    background-size: 10px;
}

#gallery2__header__mid .x-button-drop-menu {
    top: 56px;
    border-radius: 15px;
    padding: 10px 0;
    overflow: hidden;
    box-shadow: unset;
    border: unset;
    -webkit-box-shadow: 0 0 40px rgba(4, 30, 77, 0.12);
    box-shadow: 0 0 40px rgba(4, 30, 77, 0.12);
    width: auto;
}

#gallery2__header__mid .x-button-drop-menu li {
    transition: .5s ease;
    min-height: 35px;
    display: flex;
    align-items: center;
}

#gallery2__header__mid .x-button-drop-menu li a {
    padding: 10px 20px;
    line-height: 16px;
    text-align: left;
    font-size: 16px;
    display: flex;
    align-items: center;
    min-height: 35px;
    text-wrap: nowrap;
}
#gallery2__header__mid .x-button-drop-menu li a .x-button-recommended {
    display:none;
}
#gallery2__header__mid .x-button-drop-menu .gallery-download-simple-select-button {
    display: none;
}

@media only screen and (max-width: 1250px) {
 
    #gallery2__header__mid .x-split-button:not(.large) .x-button-drop-menu A {
        font-size: 16px !important;
    }
    #gallery2__header__mid .x-split-button:not(.large) .x-button {
        font-size:16px!important
    }

    #gallery2__header__mid .x-split-button {
        background-position-x: 12px !important
    }
    #gallery2__header__mid .x-split-button:not(.large) .x-button-short-text {
        display: none;
    }
    #gallery2__header__mid .x-split-button.large .x-button-short-text {
        display: inline;
    }
}

@media only screen and (max-width: 360px) {
    #gallery2__header__mid .x-button-drop-menu {
        top:45px;
        width: 90%;
        left: 5%;
        position: fixed
    }
}


#gallery2__header__mid  #gallery2__header__right_more {
    display: inline-flex;
    background-image: url(../images/UI_icons/white/more.svg);
    font-size: 0;
    background-position: center;
    background-size: 20px 20px;
}
#gallery2__header__mobile_menu,
#gallery2__header__mobile_menu_close_before {
    display: none;
}
#gallery2__header__mid #gallery2__header__right_more.open {
    position: relative;
    color: #417FF2;
    background-color: #333333;
}
#gallery2__header__right_more.open + #gallery2__header__mobile_menu {
    display: block;
    position: absolute;
    padding: 10px 0;
    border-radius: 0;
    box-shadow: unset;
    border-radius: 15px;
    background: white;
    z-index: 1;
    overflow: auto;
    top: 62px;
    -webkit-box-shadow: 0 0 40px rgba(4, 30, 77, 0.12);
    box-shadow: 0 0 40px rgba(4, 30, 77, 0.12);
}
#gallery2__header__right_more.open + #gallery2__header__mobile_menu + #gallery2__header__mobile_menu_close_before {
    display: block;
    order: unset !important;
    position: fixed;
}
#gallery2__header__mid .x-split-button:not(.x-split-button-single).open:not(:hover):before {
    display: none;
}

#gallery2__header__mid #gallery2__header__mobile_menu .gallery2__header_middle_button {
    display: flex;
    color: #242424;
    line-height: 35px;
    height: 35px;
    text-align: left;
    font-size: 16px !important;
    padding: 0 28px 0 50px;
    background-position-x: 16px !important;
    background-position-y: center !important;
    background-size: 16px 16px !important;
    background-repeat: no-repeat;
    max-width: unset;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    pointer-events: unset;
    width: -webkit-fill-available;
    border-radius: unset;
}
#gallery2__header__mid #gallery2__header__mobile_menu .gallery2__header_middle_button a {
    font-size: 16px !important;
}
#gallery2__header__mid #gallery2__header__mobile_menu .gallery2__header_middle_button:hover {
    background-color: #F7F7F7;
}

#gallery2__header__mobile_menu .gallery2__header_middle_button * {
    color: #242424;
    display: flex;
    align-items: center;
}
#gallery2__header__mobile_menu > * {
    display: flex;
    width: 100%;
    line-height: 50px;
    height: 50px;
    text-align: left;
    font-size: 18px !important;
    color: #242424;
    padding: 0 28px 0 65px;
    background-position-x: 22px !important;
    background-position-y: center !important;
    background-size: 23px 23px !important;
    background-repeat: no-repeat;
    margin: 0;
}
#gallery2__header__mobile_menu > .hidden {
    display: none !important;
}
#gallery2__header__mobile_menu .gallery2__header__mobile_menu_seperator {
    height: 0;
    border-bottom: 1px solid #E8E8E8;
    margin: 7px 0;
    display: none;
}
#gallery2__header__mobile_menu .gallery2__header_middle_button:visible + .gallery2__header__mobile_menu_seperator {
    display: block;
}

#gallery2_item_info_share,
#gallery2__header__mobile_menu #gallery2_item_info_share_middle {
    height: unset;
    padding: 0;
    box-sizing: border-box;
    width: calc(100% - 40px);
    margin: 10px 20px;
    border: 1px solid #DEDEDE;
    border-radius: 10px;
    align-items: center;
    justify-content: space-between;
    display: none;
}
#gallery2_item_info_share {
    display: flex;
}
#gallery2_item_info_share .gallery2_input-container,
#gallery2__header__mobile_menu #gallery2_item_info_share_middle .gallery2_input-container {
    width: 100%;
}
#gallery2_item_info_share .gallery2_share-input,
#gallery2__header__mobile_menu #gallery2_item_info_share_middle .gallery2_share-input {
    line-height: 40px;
    background: #505050;
    color: #fff!important;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 0!important;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    height: auto;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    padding-left: 15px;
    background: unset;
    color: #6295f4 !important;
    font-size: 16px;
}

#gallery2_item_info_share .copy_button,
#gallery2__header__mobile_menu .copy_button {
    display: inline-flex;
    border-radius: 5px;
    transition: background-color 0.5s ease;
    background-position-y: 50%;
    background-position-x: 0;
    background-size: 15px !important;
    background-repeat: no-repeat;
    background-image: url(../images/UI_icons/copy.svg);
    background-color: transparent;
    color: #242424;
    padding: 0 15px 0 25px;
    margin-left: 0;
    margin-right: 4px;
    cursor: pointer;
}
#gallery2_item_info_share .copy_button .copy_text div,
#gallery2__header__mobile_menu .copy_button .copy_text div {
    left: 30px;
    height: 32px;
    line-height: 32px;
    transition: background 0.5s ease, max-width 0.5s ease;
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
}

#gallery2_item_info_share .copy_button .copy_text div.copied,
#gallery2__header__mobile_menu .copy_button .copy_text div.copied {
    display: none;
}

#gallery2_item_info_share .copy_button.copied .copy_text div.hover,
#gallery2__header__mobile_menu .copy_button.copied .copy_text div.hover {
    display: none;
}

#gallery2_item_info_share .copy_button.copied .copy_text .copied,
#gallery2__header__mobile_menu .copy_button.copied .copy_text .copied {
    display: inline-block;
}
@media only screen and (max-width: 1500px) {
    #gallery2_item_info_share .copy_button:not(.copied) .hover,
        #gallery2__header__mobile_menu .copy_button:not(.copied) .hover {
        display: block;
    }
}
#gallery2_item_info_share .copy_button {
    color: white;
    background-image: url(../images/UI_icons/white/copy.svg);
    padding-left: 30px;
    background-position-x: 7px;
}
#gallery2_item_info_share .copy_button.copied,
#gallery2__header__mobile_menu .copy_button.copied {
    background: #42C689;
    color: white;
    padding: 0 15px;
}
#gallery2_item_info_share .copy_button .copy_text div,
#gallery2__header__mobile_menu .copy_button .copy_text div {
   font-size: 16px;
   font-weight: bold;
}

#gallery2__header__mobile_menu .gallery2__info:hover,
.gallery__sidebar-visible #gallery2__header__mobile_menu .gallery2__info {
    background-color: transparent !important;
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__comments_button_middle {
    background-image: url(../images/UI_icons/chat.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__report_button_middle {
    background-image: url(../images/UI_icons/alert.svg);
    border: unset;
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__sidebar__info-price_middle {
    background-image: url(/images/UI_icons/euro.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__item_info_cover_middle {
    background-image: url(/images/UI_icons/cover.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__slideshow_middle {
    background-image: url(/images/UI_icons/play.svg);
    background-position-x: 17px !important;
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__info_more {
    display: none;
    background-image: url(/images/UI_icons/info.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__order {
    background-image: url(../images/UI_icons/print.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__item_info_delete_middle {
    background-image: url(../images/UI_icons/red/trash.svg);
    color: #F23047;
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__item_info_replace_middle {
    background-image: url(../images/UI_icons/reload.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__sidebar__info_embed_button_middle {
    background-image: url(../images/UI_icons/code.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__sidebar__info-rename_middle {
    background-image: url(../images/UI_icons/pencil.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__buy-products {
    background-image: url(../images/UI_icons/cup.svg);
    margin-top: 10px;
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__berga_foto__select_person {
    background-image: url(../images/UI_icons/user.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__report_button_middle {
    margin-top: 10px;
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__report_button_middle:before,
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__buy-products:before {
    content: '';
    display: block;
    border-bottom: 1px solid #E8E8E8;
    width: 100%;
    position: absolute;
    left: 0;
    top: -5px;
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__edit {
    background-image: url(../images/UI_icons/edit.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__edit_in_google {
    background-image: url(../images/UI_icons/edit-google.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__edit.edit_image {
    background-image: url(../images/UI_icons/edit_image.svg);
}
#gallery2__header__mid #gallery2__header__mobile_menu #gallery2__sign {
    background-image: url(../images/UI_icons/eParaksts.svg);
}
#gallery2__header__mid #gallery2__info_middle {
    background-image: url(../images/UI_icons/white/info.svg);
    background-size: 20px !important;
    font-size: 0;
    background-position: center;
}
.gallery__sidebar-visible #gallery2__header__mid #gallery2__info_middle {
    background-color: #333333;
}


#gallery2__save_p2p .gallery2__save_p2p_short_text,
#gallery2__save .gallery2__save_short_text {
    display: none
}

#gallery2__sidebar__info_embed_button .gallery2__sidebar__info_embed_short_text {
    display: none
}

#gallery2__sidebar__info_embed_button.hidden {
    display: none!important
}

#gallery2__save_p2p.hidden {
    display: none!important
}

#gallery2__save_p2p {
    background-image: url(../images/UI_icons/white/download.svg);
}

#gallery2__save {
    background-image: url(../images/UI_icons/white/download.svg);
}

#gallery2__header__left a,
.gallery2__header__right a {
    display: inline-block
}

#gallery2__header__inner a .fa {
    position: relative;
    top: 2px;
    margin-right: 6px;
}

#gallery2__header__left a .fa,
.gallery2__header__right a .fa {
    margin-right: 0;
}

#gallery2_file_info .header-owner {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    position: relative;
    min-height: 70px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}
#gallery2_file_info .header-owner_image {
    display: inline-block;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-radius: 50%;
    height: 23px;
    width: 23px;
    background-size: cover;
    background-position: center center;
    cursor: default;
    border: 1px solid white;
    background-color: white;
}

#gallery2_file_info .header-owner_image-wrapper img {
    height: 100%;
    width: 100%;
}

#gallery2_file_info .header-owner_title {
    margin-bottom: 5px;
}

#gallery2_file_info .header-owner_name {
    max-width: calc(100% - 42px);
    margin-left: 10px;
}
#gallery2_file_info .header-owner_name a {
    color: #fff;
    line-height: 23px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#gallery2_file_info .header-owner_name span {
    width: unset;
    max-width: 110px;
    line-height: 19px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    text-overflow: ellipsis
}

#gallery2_file_info .header-owner_name img {
    display: none
}

#gallery2_item_info_bottom_section .header-owner {
    padding: 20px;
    border-bottom: 1.5px solid #1A1818;
    margin-bottom: 15px;
}

#gallery2_item_info_bottom_section .header-owner:after {
    width: 100%;
    left: 0;
}

#gallery2_item_info_bottom_section .header-owner_name a {
    color: #fff!important
}

#gallery2_file_details_table_tags,
#gallery2_file_details_table_ai,
#gallery2_file_details_table {
    font-size: 13px;
    border-radius: 3px;
    margin-bottom: 5px;
    margin-top: 5px;
    border-bottom: none;
    width: calc(100% - 40px);
    border-collapse: collapse;
    margin: 20px;
}

#gallery2_file_details_table_tags {
    margin-top: 20px;
    margin-top: 0;
}
#gallery2_file_details_table_ai {
    margin-top: 0;
    margin-bottom: 40px;
    position: relative;
}


#gallery2_file_details_table_tags td,
#gallery2_file_details_table_ai td,
#gallery2_file_details_table td {
    padding: 0;
    height: 25px;
    color: #969696;
    vertical-align: middle;
    font-size: 12px;
    word-break: break-word;
    min-width: 100px;
}

#gallery2_file_details_table_tags tr td:last-child,
#gallery2_file_details_table_ai tr td:last-child,
#gallery2_file_details_table tr td:last-child {
    text-align: end;
    color: #fff;
}

#gallery2_file_details_table_tags a,
#gallery2_file_details_table_ai a,
#gallery2_file_details_table a {
    color: white;
    text-decoration: underline;
    word-break: break-word;
}

#gallery2_file_details_table_tags tr td.gallery2__sidebar__info-exif_tags-dropdown,
#gallery2_file_details_table_ai tr td.gallery2__sidebar__info-exif_tags-dropdown,
#gallery2_file_details_table tr td.gallery2__sidebar__info-exif_tags-dropdown {
    display: flex;
    align-items: center;
    width: fit-content;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
    margin-top: 10px;
}

#gallery2_file_details_table_tags tr .gallery2__sidebar__info-one_line_buttons,
#gallery2_file_details_table_ai tr .gallery2__sidebar__info-one_line_buttons,
#gallery2_file_details_table tr .gallery2__sidebar__info-one_line_buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 20px;
}

#gallery2__sidebar__info-content_analyze-buttons .gallery2__sidebar__info-one_line_buttons > div div:first-child {
    margin-bottom: 10px;
}

#gallery2_file_details_table_tags tr .gallery2__sidebar__info-one_line_buttons .gallery2__sidebar__info-dropdown_button,
#gallery2_file_details_table_ai tr .gallery2__sidebar__info-one_line_buttons .gallery2__sidebar__info-dropdown_button,
#gallery2_file_details_table tr .gallery2__sidebar__info-one_line_buttons .gallery2__sidebar__info-dropdown_button {
    height: 25px;
}

.gallery2__sidebar__info-dropdown_button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    height: 100%;
}

#gallery2_file_details_table_tags tr .gallery2__sidebar__info-dropdown_button.disabled,
#gallery2_file_details_table_ai tr .gallery2__sidebar__info-dropdown_button.disabled,
#gallery2_file_details_table tr .gallery2__sidebar__info-dropdown_button.disabled {
    color: #737373;
    cursor: default;
}

#gallery2_file_details_table_tags tr .gallery2__sidebar__info-dropdown_icon,
#gallery2_file_details_table_ai tr .gallery2__sidebar__info-dropdown_icon,
#gallery2_file_details_table tr .gallery2__sidebar__info-dropdown_icon {
    background-image: url(/images/UI_icons/grey/caret_down.svg);
    background-repeat: no-repeat;
    background-position: center;
    width: 11px;
    height: 11px;
    margin-left: 5px;
}

.gallery2__sidebar__info-one_line_buttons .gallery2__sidebar__info-dropdown_button {
    background-color: #575757;
    border: 1px solid #575757;
    border-radius: 5px;
    padding: 0 5px;
    transition: background-color .5s ease,color .5s ease;
}

.gallery2__sidebar__info-one_line_buttons .gallery2__sidebar__info-dropdown_button:hover {
    background-color: #DEEDFF;
    color: #417FF2;
}

#gallery2_file_details_table_tags tr.gallery2__sidebar__info-metadata td.metadata-title_above_content,
#gallery2_file_details_table_ai tr.gallery2__sidebar__info-metadata td.metadata-title_above_content,
#gallery2_file_details_table tr.gallery2__sidebar__info-metadata td.metadata-title_above_content {
    text-align: left;
}

#gallery2_file_details_table_tags td.metadata-title_above_content > div:first-child,
#gallery2_file_details_table_ai td.metadata-title_above_content > div:first-child,
#gallery2_file_details_table td.metadata-title_above_content > div:first-child {
    color: #969696;
    height: 25px;
    line-height: 25px;
}

#gallery2_file_details_table_tags td.metadata-title_above_content > div.gallery2__sidebar__info-value,
#gallery2_file_details_table_ai td.metadata-title_above_content > div.gallery2__sidebar__info-value,
#gallery2_file_details_table td.metadata-title_above_content > div.gallery2__sidebar__info-value {
    line-height: 1.3;
}

#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    padding: 0 0 10px 0;
}
#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div {
    background-position: center left;
    background-size: 14px 14px;
    background-repeat: no-repeat;
    height: 30px;
    display: flex;
    padding: 0 10px 0 25px;
    align-items: center;
    text-align: left;
}

#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div.Model {
    background-image: url(../images/UI_icons/white/camera.svg);
}
#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div.ISO {
    background-image: url(../images/UI_icons/white/iso.svg);
}
#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div.LensModel {
    background-image: url(../images/UI_icons/white/lens.svg);
}
#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div.FocalLength {
    background-image: url(../images/UI_icons/white/angle.svg);
}
#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div.ApertureValue {
    background-image: url(../images/UI_icons/white/shutter.svg);
}
#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div.ExposureTime {
    background-image: url(../images/UI_icons/white/stopwatch.svg);
}
#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div.size {
    background-image: url(../images/UI_icons/white/expand.svg);
}
#gallery2__sidebar__info-mainexif .gallery2__sidebar__info-value .exif-grid div.mp {
    background-image: url(../images/UI_icons/white/pixels.svg);
}

#gallery2__sidebar__info-metadata-tags.gallery2__sidebar__exif_tags-top-separator td,
#gallery2__sidebar__info-content_analyze-buttons.gallery2__sidebar__exif_tags-top-separator td,
#gallery2__sidebar__info-google_cloud-speech_to_text-button.gallery2__sidebar__exif_tags-top-separator td {
    position: relative;
}
#gallery2_file_details_table_ai:after,
#gallery2__sidebar__info-google_cloud-speech_to_text-button.gallery2__sidebar__exif_tags-top-separator td:after {
    border-top: 1.5px solid #1A1818;
    content: ' ';
    height: 1px;
    width: calc(100% + 40px);
    display: block;
    position: absolute;
    bottom: -20px;
    left: -20px;
}

#gallery2__sidebar__info-metadata-tags td {
    text-align: start !important;
    width: 100%;
    color: #737373 !important;
    font-size: 14px;
    line-height: 19px;
}

  

#gallery2_details_table tr td:nth-child(2) {
    padding-left: 6px;
}

#gallery2__content {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    text-align: center;
    z-index: 9
}

#gallery2 div.tag {
    height: 19px;
    line-height: 20px;
    padding: 0 9px;
    border-radius: 10px;
    font-size: 10px;
    display: inline-block;
    color: white;
    vertical-align: bottom;
    font-weight: 600;
}
#gallery2 div.tag.new {
    background-color: #2AD498;
}
#gallery2 div.tag.pro {
    background-color: #F23047;
    background-image: url(/images/UI_icons/white/crown.svg);
    background-repeat: no-repeat;
    background-position: 5px center;
    padding-left: 19px;
    text-transform: uppercase;
    background-size: 10px;
}
#gallery2__header__mobile_menu div.tag {
    margin-left: 10px;
}
#gallery2__controls_middle  div.tag  {
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
    bottom: 15px;
}

#gallery2__content__viewport {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding-top: 62px;
    white-space: nowrap;
    -webkit-transition: all .3s;
    transition: all .3s
}

#gallery2__content.gallery__thumbs-visible #gallery2__content__viewport {
    padding-bottom: 87px;
}

#gallery2__content.gallery__sidebar-visible #gallery2__content__viewport {
    padding-right: 360px;
}

#gallery2__swipe-wrapper {
    position: relative;
    max-height: 100%;
    height: 100%
}

.bx-wrapper:hover + #gallery2__controls_middle.image,
#gallery2__controls_middle.image:hover {
    display: inline-flex;
}

#gallery2 .bx-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background: 0 0;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none
}

#gallery2 .bx-viewport {
    height: 100%!important
}

#gallery2__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    margin-left: auto
}

#gallery2__banner {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    height: 100%
}

.gallery2__vertical-helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle
}

.gallery2__item {
    max-height: 100%;
    height: 100%;
    vertical-align: middle;
    text-align: center
}

.gallery2__item .video_thumb_gen {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -150px;
    margin-top: -60px;
    font-size: 16px;
    color: #fff;
    background-color: #3b393b;
    border: 1px solid #3b393b;
    border-radius: 4px;
    padding: 20px;
}

.gallery2__item .video_thumb_gen .fa.fa-spin {
    font-size: 30px;
    line-height: 30px;
}

.bx-wrapper .gallery2__item img,.bx-wrapper .gallery2__item video {
    display: inline-block;
    max-height: 100%;
    vertical-align: middle;
    background-size: 100% 100%;
    margin-bottom: 20px;
}
.bx-wrapper .gallery2__item img {
    image-orientation: none;
}

.bx-wrapper .gallery2__item img.ext-icon {
    width: 200px;
}

.gallery2__item video {
    max-width: 100%
}

.gallery2__item__audio-wrapper {
    color: #fff;
    text-align: left;
    display: inline-block;
    vertical-align: middle;
    max-width: 100%
}

.gallery2__item .gallery2__item__img {
    cursor: pointer;
    max-height: 100%;
    height: auto;
    margin: auto 0 0;
}

.gallery2__item .print_or_buy_popup {
    position: absolute;
    box-shadow: 0 0 30px rgb(0 0 0/50%);
    padding: 30px;
    border-radius: 8px;
    overflow: visible;
    background: #fff;
    max-width: 90%;
    min-width: 500px;
    width: fit-content;
    left: 0;
    top: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    top: 50%;
    transform: translateY(-50%);
    white-space: pre-wrap;
    display: none;
}

.gallery2__item .print_or_buy_popup_close {
    position: absolute;
    font-size: 0;
    border: 0;
    background: url(/images/popups/close-shadow.svg) center no-repeat;
    cursor: pointer;
    z-index: 1;
    background-size: contain;
    top: -30px;
    height: 27px;
    width: 27px;
    padding: 0;
    margin: 0;
    right: -6px;
}

.gallery2__item .print_or_buy_popup_desc {
    color: #242424;
    padding: 20px 0 40px;
    text-align: left;
    font-size: 16px;
    line-height: 21px;
    width: 100%;
    white-space: break-spaces
}

.gallery2__item .print_or_buy_popup_button {
    border-radius: 5px;
    margin: 0 4px;
    display: inline-block;
    line-height: 40px;
    font-size: 14px;
    position: relative;
    height: 40px;
    cursor: pointer;
    vertical-align: middle;
    background-color: #2b2a2a;
    transition: background-color .5s ease,color .5s ease;
    align-items: center;
    background-size: 15px;
    background-position-x: 7px;
    background-position-y: center;
    background-repeat: no-repeat;
    padding: 0 10px 0 30px;
    background-color: #00b715;
    margin-top: 10px;
}

.gallery2__item .print_or_buy_popup_button:hover {
    background-color: #009611
}

.gallery2__item .print_or_buy_popup_button a {
    color: #fff!important
}

.gallery2__item .print_or_buy_popup__buyfile {
    background-image: url(/images/UI_icons/white/cart.svg);
}

.gallery2__item .print_or_buy_popup__products {
    background-image: url(/images/UI_icons/white/cup.svg);
}

.gallery2__item__information-wrapper {
    display: grid;
    grid-template-columns: auto min-content;
    width: 280px;
    margin: auto;
    margin-top: 10px;
}

.gallery2__item__desc-wrapper {
    align-items: center;
    color: #c1c1c1;
    display: flex;

    font-size: 16px;
    height: 70px;
    line-height: 17px;
    margin: auto;
    min-width: 280px;
    overflow: auto;
    text-align: justify;
    text-align: left;
    vertical-align: middle;
    white-space: pre-line;
    width: 100%;
    display: none!important
}

.gallery2__item__desc-wrapper-text {
    white-space: pre-line;
    overflow: auto;
    width: 100%;
    height: 100%;
    padding-right: 7px;
    position: relative;
    z-index: 1
}

.gallery2__item__doc-wrapper {
    color: #fff;
    text-align: left;
    padding: 20px 20px 100px;
    border-radius: 3px;
    display: inline-block;
    font-size: 12px;
    line-height: 25px;
    text-align: center;
    max-width: 100%;
    vertical-align: middle;

}

.gallery2__item__iframe-wrapper,
.gallery2__item__code-wrapper {
    color: #fff;
    max-width: 100%;
    vertical-align: middle;
}

.gallery2__item__iframe-wrapper {

    font-size: 20px;
    line-height: 25px;
}

.gallery2__item__code-wrapper {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 22px;
}

.gallery2__item__doc-wrapper.has_custom_thumb {
    width: 100%;
    height: 100%;
    padding: 20px;
}

.gallery2__item__doc-wrapper.has_custom_thumb .gallery2__item__information-wrapper {
    display: none!important
}

.gallery2__item__doc-wrapper .fa-5x {
    margin-bottom: 10px;
    font-size: 200px;
    text-shadow: 6px 6px 2px #535a67
}

.gallery2__item__doc-icon {
    position: relative
}

.gallery2__item__custom_thumb {
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain
}

.gallery2__item__custom_thumb.has_price {
    cursor: pointer
}

.gallery2__item__custom_thumb + .gallery2__item__doc-icon {
    display: none;
}

.gallery2__item__doc-icon .gallery2__item__doc-icon-ext {
    display: none;
    position: absolute;
    top: -37px;
    left: 50px;
    font-size: 35px;
    font-weight: 700;
}

.gallery2__item__doc-icon.psd .gallery2__item__doc-icon-ext,.gallery2__item__doc-icon.ai .gallery2__item__doc-icon-ext,.gallery2__item__doc-icon.eps .gallery2__item__doc-icon-ext,.gallery2__item__doc-icon.gif .gallery2__item__doc-icon-ext,.gallery2__item__doc-icon.tif .gallery2__item__doc-icon-ext,.gallery2__item__doc-icon.tiff .gallery2__item__doc-icon-ext {
    display: inline
}

.gallery2__item__doc-wrapper p.gallery2__item__doc-filename,
.gallery2__item__iframe-wrapper p.gallery2__item__doc-filename,
.gallery2__item__code-wrapper p.gallery2__item__doc-filename {
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    border: 1px solid #fff;
    border-radius: 5px;
    line-height: 40px;
    padding: 0 10px;
}

.gallery2__item__doc-wrapper p.gallery2__item__doc-nopreview {
    margin: 48px 0 24px;
    font-size: 16px;
    color: #fff
}

.gallery2__item__information-wrapper a {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    align-self: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-color: transparent;
    box-sizing: border-box;
    color: #fff!important;
    cursor: pointer;
    display: inline-block;

    font-size: 0!important;
    grid-column-start: 2;
    height: 42px;
    justify-self: end;
    line-height: 30px!important;
    margin: 0;
    position: relative;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    width: fit-content;
    border: 1px solid #fff;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: background-color .5s ease,color .5s ease
}

.gallery2__item__information-wrapper a:hover {
    background-color: #417FF2!important
}

.gallery2__item__information-wrapper a i {
    font-size: 16px;
    line-height: 30px;
}

.gallery2__item__doc-wrapper__download_button {
    margin-bottom: 10px;
}

.gallery2__item__doc-wrapper__download_button.gallery2__p2p_save_button,.gallery2__item__doc-wrapper__download_button.gallery2__save_button {
    background-image: url(../images/UI_icons/white/download.svg);
    padding: 0 20px;
    margin-left: -5px;
    background-color: #000;
}

.gallery2__item__doc-wrapper__download_button.gallery2__preview_button {
    background-image: url(../images/UI_icons/white/eye.svg);
    background-size: 16px 16px;
    padding: 0 19px;
    background-repeat: no-repeat;
    margin-left: -5px;
    background-color: #000;
}

.gallery2__item__information-wrapper a.gallery2__buy_button {
    background-image: url(../images/UI_icons/white/cart.svg);
    padding: 0 10px 0 30px;
    margin-left: -5px;
    background-color: #00b715;
    font-size: 14px !important;
    line-height: 42px !important;
    background-position: 8px center;
}

.gallery2__item__information-wrapper a.gallery2__buy_button:hover {
    background-color: #009611!important
}

.gallery2__video_downloadbutton.gallery2__buy_button {
    color: #fff!important;
    display: none;
    min-width: 180px;
    background: 0 0;
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 60px;
    border: 1px solid #fff;
    cursor: pointer;

    padding-left: 32px;
    background-position: 12px center;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-color: #008ddf;
    background-position: 20px 8px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 2px 3px rgba(0,0,0,.1);
    margin: 20px 0;
    max-width: 100%;
    overflow: hidden
}

.gallery2__item__doc-wrapper a .fa {
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle
}

.gallery2__item__iframe-wrapper,
.gallery2__item__code-wrapper {
    width: 100%;
    height: 100%
}

.gallery2__item__code-wrapper pre code {
    position: absolute;
    inset: 0;
    white-space: pre-wrap;
}

.gallery2__item__iframe-loading,
.gallery2__item__code-loading {
    color: #fff;
    font-size: 70px;
    font-size: 7vh;
    position: absolute;
    width: 100%;
    height: 100%
}

.gallery2__item__iframe-loading__wrapper {
    display: inline-block
}

.gallery2__item__iframe-loading__icon {
    font-family: 'FontAwesome';
}

.gallery2__item__iframe-loading__text {
    display: block;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
    white-space: normal
}

.gallery2__item__iframe-wrapper iframe,
.gallery2__item__code-wrapper .modal_gallery_code_container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 9
}

.gallery2__item__iframe-wrapper iframe.modal_gallery_simple_iframe,
.gallery2__item__code-wrapper .modal_gallery_code_container {
    width: calc( 100% - 200px);
    height: calc( 100% - 6px);
}

.modal_gallery_code_container {
    background-color: #fff;
    color: black;
    text-align: left;
    margin: auto;
    user-select: text;
}

.gallery2__item__msg_has_no_preview {
    font-size: 20px;
    line-height: 24px;
    color: #fff;

    padding: 0 20px;
    white-space: normal
}

.gallery2__item__msg_has_no_preview div {
    display: inline-block
}
#gallery2__controls_middle {
    position: relative;
    bottom: 76px;
    height: 42px;
    display: none;
    gap: 5px;
}
#gallery2__controls_middle .gallery2__controls_middle {
    width: fit-content;
    background: rgb(0 0 0 / 75%);
    display: flex;
    border-radius: 8px;
}

#gallery2__controls_middle .gallery2__controls_middle > div {
    background-size: 20px 20px;
    background-position: center;
    background-repeat: no-repeat;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: background-color .5s ease, color .5s ease;
    min-width: 40px;
    display: inline-block;
    margin: 0;
    position: relative;
}
#gallery2__controls_middle > .gallery2__controls_middle > div:last-child{
    border-top-right-radius: 8px!important;
    border-bottom-right-radius: 8px!important
}
#gallery2__controls_middle .gallery2__controls_middle > div:first-child{
    border-top-left-radius: 8px!important;
    border-bottom-left-radius: 8px!important
}

#gallery2__controls_middle .gallery2__controls_middle > div:hover {
    background-color: #000000;
}

#gallery2__controls_doc_sign {
    position: relative;
    bottom: 76px;
    height: 62px;
    display: none;
}

#gallery2__controls_doc_sign #gallery2__controls_doc_sign_button {
    background-color: #D9E6FD;
    padding: 0 18px 0 45px;
    background-image: url(../images/UI_icons/eParaksts.svg);
    border-radius: 10px;
    display: flex;
    line-height: 18px;
    font-size: 16px;
    position: relative;
    height: 46px;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color .5s ease,color .5s ease;
    align-items: center;
    background-size: 16px;
    background-position-x: 18px;
    background-position-y: center;
    background-repeat: no-repeat;
    min-width: 50px;
    width: max-content;
}

#gallery2__controls_doc_sign #gallery2__controls_doc_sign_button a {
    color: #242424;
    font-size: 16px;
    text-decoration: none;
}

#gallery2__controls_left,#gallery2__controls_right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15px;
}

#gallery2__controls_left {
    left: 0;
}

#gallery2__controls_right {
    right: 0;
}

#gallery2__controls_left a,#gallery2__controls_right a {
    position: absolute;
    display: block;
    width: 36px;
    height: 36px;
    top: 50%;
    margin-top: -30px;
    text-align: center;
    font-size: 60px;
    z-index: 10;
    background-size: 9px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    transition: background-color .5s ease;
    left: 10px;
}

#gallery2__controls_right a {
    left: unset;
    right: 10px;
}

#gallery2__controls_left a:hover,
#gallery2__controls_right a:hover {
    background-color: rgb(0 0 0 / 50%);
}

#gallery2__controls_left a {
    background-image: url(../images/UI_icons/white/caret_left.svg);
}

#gallery2__controls_right a {
    background-image: url(../images/UI_icons/white/caret_right.svg);
}

#gallery2__controls_left a,#gallery2__controls_left a .fa,#gallery2__controls_right a,#gallery2__controls_right a .fa {
    line-height: 60px;
}

#gallery2__controls__prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

#gallery2__controls__next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

#gallery2__thumb-strip {
    position: absolute;
    width: 100%;
    height: 77px;
    -webkit-transition: all .3s;
    transition: all .3s;
    z-index: 10;
    overflow: hidden;
    background: #000;
    margin-top: 10px;
}

#gallery2__thumb-strip__inner {
    position: relative;
    margin: 0 auto;
    display: flex;
    min-width: 100%;
    justify-content: center;
    width: fit-content !important;
    transition: 0.5s;
}
#gallery2__thumb-strip__inner .thumb-wrapper {
    height: 100%;
    width: 100%;
    overflow: hidden;
}
#gallery2__thumb-strip__inner a {
    margin: 2px 2px;
    width: auto;
    height: 73px;
    min-width: 108px;
    min-height: 73px;
    display: block;
    float: left;
    position: relative;
    text-align: center;
    background-color: #000;
    border: 2px solid transparent;
    overflow: visible;
}

#gallery2__thumb-strip__inner a div.checkbox {
    display: none;
}

#gallery2__thumb-strip__inner a.selected div.checkbox {
    position: absolute;
    width: 22px;
    height: 22px;
    background: url(../images/UI_icons/inputs/checkbox_cheched_small_thumbstrip.svg) no-repeat left center transparent;
    background-size: 22px;
    left: -2px;
    top: -2px;
    display: block;
}
#gallery2__thumb-strip__inner a.selected.active div.checkbox {
    background: url(../images/UI_icons/inputs/checkbox_cheched_small_thumbstrip_selected.svg) no-repeat left center transparent;
}

#gallery2__thumb-strip__inner a:hover {
}

#gallery2__thumb-strip__inner a.active {
    border: 2px solid  black;
    outline: 2px solid white;
}

#gallery2__thumb-strip__inner a.doc-icon {
    background: #999;
    color: #767676;
    font-size: 46px;
    text-align: center
}

#gallery2__thumb-strip__inner a.doc-icon,#gallery2__thumb-strip__inner a.doc-icon .fa,#gallery2__thumb-strip__inner a.doc-icon .fal {
    line-height: 93px;
}

#gallery2__thumb-strip__inner a.video-icon:before {
    content: '\f04b';
    font-family: fontawesome;
    font-size: 24px;
    color: #fff;
    text-align: center;
    line-height: 93px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: .8;
    z-index: 1
}

#gallery2__thumb-strip__inner a img {
    position: relative;
    height: 73px;
    width: auto
}

#gallery2__thumb-strip__buttons,#gallery2__thumb-strip__hide_container {
    position: relative
}

#gallery2__thumb-strip__hide_container {
    display: none!important
}

#gallery2__thumb-strip__buttons a,#gallery2__thumb-strip__hide_container a {
    position: absolute;
    display: block;
    text-align: center;
    color: #fff;
    font-size: 24px;
    height: 77px;
}

#gallery2__thumb-strip__hide_container a {
    top: -10px;
}

#gallery2__thumb-strip__prev,#gallery2__thumb-strip__next {
    width: 30px;
    height: 21px;
    background-size: 8px !important;
    z-index: 10;
    background-repeat: no-repeat;
    background-position: center;
}

#gallery2__thumb-strip__prev {
    background-image: url(../images/UI_icons/white/caret_left.svg);
}

#gallery2__thumb-strip__next {
    right: 0;
    background-image: url(../images/UI_icons/white/caret_right.svg);
}

#gallery2__thumb-strip__hide {
    width: 40px;
    height: 20px;
    left: 50%;
    top: -20px;
    margin-left: -20px;
    background-image: url(../images/gallery/rect_arrow_down.svg?v=9);
    background-repeat: no-repeat;
    background-position: center
}

#gallery2__thumb-strip__hide,#gallery2__thumb-strip__hide .fa {
    line-height: 20px;
}

#gallery2__content:not(.gallery__thumbs-visible) #gallery2__thumb-strip__hide {
    top: -20px;
}

#gallery2__content__sidebar {
    position: absolute;
    width: 360px;
    height: 100%;
    right: -360px;
    top: 0;
    background: #242424;
    -webkit-transition: all .3s;
    transition: all .3s;
    padding-top: 62px;
    text-align: left;
    color: #fff;
    font-size: 14px;
    z-index: 11
}

#gallery2__content__sidebar__inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto
}

#gallery2__content__sidebar__inner.gallery2__content__sidebar__inner__flex {
    display: flex;
    flex-flow: column;
    height: calc(100% - 40px);
    overflow: auto
}

#gallery2__content.gallery__sidebar-visible #gallery2__content__sidebar {
    right: 0;
}
#gallery2__sidebar__info__comments {
	border-bottom: 1.5px solid #1A1818;
	background: #242424;
	display: flex;
	height: 40px;
	align-items: center;
	width: 100%;
	padding-left: 15px;
	gap: 10px;
}
#gallery2__info_button,
#gallery2__comments_button {
	border: unset;
	padding: 0 5px;
	color: #737373;
	height: 100%;
	display: flex;
	align-items: center;
	border-bottom: 2px solid #242424;
	cursor: pointer;
}
#gallery2__content:not(.gallery__sidebar__comments-visible) #gallery2__info_button,
#gallery2__content.gallery__sidebar__comments-visible #gallery2__comments_button {
    border-bottom: 2px solid white;
    color: white
}

#gallery2__sidebar-close {
    display: inline-block;
    height: 100%;
    cursor: pointer;
    width: 40px;
    margin-left: auto;
    background-repeat: no-repeat!important;
    background-position-y: center!important;
    background-position-x: center!important;
    background-image: url(/images/UI_icons/grey/caret_right.svg);
}

#gallery2__sidebar__info {
    flex: 0 1 auto
}

#gallery2__sidebar__banner {
    margin: 0 auto
}

#file-info {
    line-height: 40px;
    text-transform: uppercase;
    font-weight: 700;
    color: #969696;
    border-bottom: 1px solid #525252;
    padding: 0 20px;
    display: none;
}

#gallery2_file_info {
    max-width: 400px;
}

#gallery2_file_info.gallery2_item_info_padded {
    padding-left: 8px;
    padding-right: 8px;
}

#gallery2_info_head .info_head {
    display: inline-flex;
    align-items: center;
    width: 100%;
}

#gallery2_info_head .thumbnail-wrapper {
    display: inline-block;
    max-width: 45px;
    min-width: 30px;
    height: 30px;
    margin-right: 5px;
    position: relative
}

#gallery2_info_head .thumbnail-wrapper.one-action {
    margin-right: 15px;
}

#gallery2_info_head .thumbnail-wrapper.two-actions {
    margin-right: 35px;
}

#gallery2_info_head .thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

#gallery2_info_head .thumbnail-actions {
    display: inline-flex;
    padding: 3px;
    border-radius: 13px;
    background-color: #505050;
    position: absolute;
    top: -16px;
    left: calc(100% - 15px);
}

#gallery2_info_head .thumbnail-actions.text {
    top: calc(50% - 13px);
    left: calc(100% - 25px);
}

#gallery2_info_head .thumbnail-actions a {
    text-decoration: none
}

#gallery2_info_head .thumbnail-actions-edit,#gallery2_info_head .thumbnail-actions-delete {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat!important;
    background-position-y: center!important;
    background-position-x: center!important;
    background-size: 12px;
}

#gallery2_info_head .thumbnail-actions-edit {
    background-image: url(/images/UI_icons/white/edit.svg);
}

#gallery2_info_head .thumbnail-actions-edit:hover {
    background-image: url(/images/UI_icons/blue/edit.svg);
}

#gallery2_info_head .thumbnail-actions-delete {
    background-image: url(/images/UI_icons/white/trash.svg);
}

#gallery2_info_head .thumbnail-actions-delete:hover {
    background-image: url(/images/UI_icons/red/trash.svg);
}
#file_description_value {
    word-break: break-all;
    line-height: 12px;
    font-size: 12px;
}

#file_description_edit_wrapper {
    display: inline-block;
    width: 100%
}

#file_description_edit_wrapper textarea {
    border-color: transparent;
    border-radius: 5px;
    background: 0 0;
    color: #fff;
    resize: none;
    margin-top: 0!important;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    padding: 5px 26px 5px 0;
    font-size: 13px;
    min-height: 32px;
    font-size: 16px;
}

#file_description_edit_wrapper textarea::placeholder {

    color: white
}

#file_description_edit_wrapper textarea:focus {
    border: 1px solid #d2d2d2
}

.editable_field_save_button {
    margin-top: 10px;
    margin-bottom: 5px;
    height: 26px;
    background: #deedff;
    color: #417FF2;
    font-size: 10px;
    padding: 0 10px;
    border-radius: 13px;
    cursor: pointer;
    display: none;
    align-items: center;
    width: fit-content;
    margin-left: auto
}

#file_name_edit_wrapper textarea:focus+.editable_field_save_button,#file_description_edit_wrapper textarea:focus+.editable_field_save_button {
    display: inline-flex;
}

#file_name_edit_wrapper textarea:focus+.editable_field_save_button+.edit_wrapper_edit_button,#file_description_edit_wrapper textarea:focus+.editable_field_save_button+.edit_wrapper_edit_button {
    display: none!important
}

#file_description_edit_wrapper:hover textarea {
    border: 1px solid #d2d2d2
}

#file_description_edit_wrapper .error_msg {
    position: absolute;
    top: 100%;
    font-size: 10px;
    line-height: 10px;
    background: #f2dede;
    padding: 2px;
    color: #c3130f;
    display: none
}

#file_description_edit_wrapper.has_error .error_msg {
    display: inline-block
}

#file_description_edit_wrapper .gallery2__sidebar__file_description_value {
    overflow-y: auto;
    display: inline-block;
    max-height: 96px;
    width: 100%;
    margin-top: 10px!important;
    padding-left: 3px;
    color: white;
}

span.gallery2__sidebar__file_description_value {
    border-color: #fff;
    background: 0 0;
    resize: none;
    margin-top: 0!important;
    display: block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    padding: 0;
    padding-right: 15px;

    font-size: 13px;
    line-height: normal;
    overflow-y: auto;
    display: inline-block;
    max-height: 150px;
    margin-top: 10px!important;
    color: white
}

#file_description_edit_wrapper.no-description {
    position: relative;
    text-align: right
}

#file_description_edit_wrapper.no-description:hover textarea {
    border: 1px solid #d2d2d2
}

#file_name_value {
    word-break: break-all;
    line-height: 12px;
    font-size: 12px;
}

#file_name_edit_wrapper {
    display: inline-block;
    width: 100%;
    color: #fff
}

#file_name_edit_wrapper .fa-file {
    position: relative;
    top: 1px;
}

#file_name_edit_wrapper textarea {
    border-color: transparent;
    border-radius: 5px;
    margin-top: 0!important;
    background: 0 0;
    color: #fff;
    resize: none;
    display: inline-block;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    padding: 5px 26px 5px 5px;
    font-size: 16px;
    min-height: 32px;
    line-height: 20px;
    max-height: 165px;
}

#file_name_edit_wrapper textarea.pulse {
    border: 1px solid #d2d2d2;
    -webkit-animation: pulse 0.7s;
    -webkit-animation-iteration-count: 3;
    animation: pulse 0.7s;
    animation-iteration-count: 3;
}

@-webkit-keyframes pulse {
    from { border-color: #d2d2d2; }
    50% { border-color: #417FF2; }
    to { border-color: #d2d2d2; }
}
@keyframes pulse {
    from { border-color: #d2d2d2; }
    50% { border-color:#417FF2; }
    to { border-color: #d2d2d2; }
}
  

.has_error textarea {
    border-color: #c96f6f!important
}

#file_name_edit_wrapper textarea::placeholder {

}

#file_name_edit_wrapper:hover textarea {
    border-color: #d2d2d2
}

.edit_wrapper_edit_button {
    height: 26px;
    width: 26px;
    padding: 3px;
    border-radius: 13px;
    background-color: #505050;
    cursor: pointer;
    position: absolute;
    top: calc(50% - 13px);
    right: 0;
    display: none!important
}

#file_name_edit_wrapper:hover .edit_wrapper_edit_button,#file_description_edit_wrapper:hover .edit_wrapper_edit_button {
    display: inline-flex!important
}

.edit_wrapper_edit_button_icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat!important;
    background-position-y: center!important;
    background-position-x: center!important
}

.edit_wrapper_edit_button_icon {
    background-image: url(/images/UI_icons/white/edit.svg);
    background-size: 12px;
}

.edit_wrapper_edit_button_icon:hover {
    background-image: url(/images/UI_icons/blue/edit.svg);
}

#gallery2__sidebar__info-name .edit_wrapper_edit_button_icon {
    bottom: 18px;
}

#file_name_edit_wrapper .error_msg {
    font-size: 10px;
    line-height: 10px;
    background: #f2dede;
    padding: 2px;
    color: #c3130f;
    display: none;
    margin-bottom: 5px!important
}

#file_name_edit_wrapper.has_error .error_msg {
    display: block
}

#gallery2__content__sidebar__inner::-webkit-scrollbar,#file_name_edit_wrapper textarea::-webkit-scrollbar,#file_description_edit_wrapper textarea::-webkit-scrollbar,span.gallery2__sidebar__file_description_value::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#gallery2__content__sidebar__inner::-webkit-scrollbar-thumb,#file_name_edit_wrapper textarea::-webkit-scrollbar-thumb,#file_description_edit_wrapper textarea::-webkit-scrollbar-thumb,span.gallery2__sidebar__file_description_value::-webkit-scrollbar-thumb {
    background: rgb(83 83 83);
    border-radius: 10px;
    box-shadow: rgba(255,255,255,.3) 0 0 0 1px;
}

#gallery2__content__sidebar__inner:hover::-webkit-scrollbar-thumb,#file_name_edit_wrapper textarea:hover::-webkit-scrollbar-thumb,#file_description_edit_wrapper textarea:hover::-webkit-scrollbar-thumb,span.gallery2__sidebar__file_description_value:hover::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.3);
}

#gallery2__content.gallery__sidebar-visible #gallery2__thumb-strip {
    width: calc( 100% - 360px )!important
}
#gallery2__content #gallery2__thumb-strip:before,
#gallery2__content #gallery2__thumb-strip:after {
    left: 0;
    content: "";
    display: block;
    position: absolute;
    width: 121px;
    height: 100%;
    top: 0;
    overflow: hidden;
    z-index: 1;
    background: -moz-linear-gradient( right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100% );
    background: -webkit-linear-gradient( right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100% );
    background: linear-gradient( to right, rgb(0 0 0) 0%, rgba(0, 0, 0, 0) 100% );
    pointer-events: none;
}

#gallery2__content #gallery2__thumb-strip:after  {
   right: 0;
   left: unset;
    background: -moz-linear-gradient( left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100% );
    background: -webkit-linear-gradient( left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100% );
    background: linear-gradient( to left, rgb(0 0 0) 0%, rgba(0, 0, 0, 0) 100% );
   
  
}

#gallery2__content.gallery__sidebar__info-visible #gallery2__sidebar__info {
    display: block;
    margin-bottom: auto
}

#gallery2__content.gallery__sidebar__info-visible.gallery__sidebar__comments-visible #gallery2__content__sidebar__inner {
    display: none
}

#gallery2__content.gallery__sidebar__info-visible.gallery__sidebar__comments-visible #gallery2__comments {
    display: flex;
}

#gallery2__content__sidebar .gallery2__sidebar__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    align-self: flex-start
}

#gallery2__content__sidebar ul li {
    line-height: 1.5em;
    margin-bottom: 7px;
}

#gallery2__content__sidebar .fa-li {
    font-size: 16px;
}

#gallery2__content__sidebar .gallery2__sidebar__dropdown {
    color: #ca1913;
    border: none;
    text-align: right;
    border: 0;
    outline: 0;
    float: right;
    margin-top: 10px;
    font-size: 14px;
    background: 0 0;
}

#gallery2__sidebar__info-data {
    margin-left: 25px;
}

.gallery2__report_button {
    border-top: 1px solid #525252;
    line-height: 40px;
    cursor: pointer;
    padding: 0 20px;
}

.gallery2__report_button img {
    margin-right: 15px;
    width: 12px;
}

.gallery2__report_button {
    color: #c2c2c2
}

#gallery2 .gallery2__report_button span {
    display: none ;
}

#gallery2 .gallery2__report_button.has_reported .reported {
    display: inline
}

#gallery2 .gallery2__report_button:not(.has_reported) .not-reported {
    display: inline
}

#gallery2__comments_button_close {
    padding: 5px;
}

#gallery2__comments_button_close i {
    width: 28px;
    text-align: center;
    line-height: 30px;
    vertical-align: middle;
    font-family: 'font awesome 5 pro';
    width: 28px;
    height: 28px;
    border-radius: 5px;
    transition: .5s ease
}

#gallery2__comments_button_close:hover i {
    background-image: none;
    background-color: #deedff;
    color: #417FF2
}

#chatfm-app-wrapper {
    position: relative;
    height: 100%;
    color: #323941;
}

.gallery2__comments {
    display: flex;
    position: relative;
    width: 100%;
    min-width: 100%;
    height: calc( 100% - 40px );
    padding: 2px 0 20px;
    flex-direction: column;
    flex: 1 1 auto;
    background: #f0f2f2;
    overflow: hidden
}

#gallery_file_tags_container .tagsinput {
    overflow-y: auto;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

#gallery_file_tags_container .tagsinput .tag,
.gallery2__sidebar__info-image_annotation .tag {
    border: 1px solid #575757;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    display: flex;
    float: left;
    padding: 0 10px;
    text-decoration: none;
    background: #575757;
    color: #fff;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 12px;
    min-height: 26px;
    line-height: 19px;
    cursor: default;
    align-items: center;
    transition: background-color .5s ease,color .5s ease;
}

#gallery_file_tags_container .tagsinput .tag a {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-size: 0;
    margin-left: 5px;
    display: inline-block;
    background-image: url(../images/UI_icons/grey/close.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 8px;
    width: 8px;
    line-height: 8px;
}

#gallery_file_tags_container .tagsinput.searchable .tag,
.gallery2__sidebar__info-image_annotation .tag {
   cursor: pointer;
}
#gallery_file_tags_container .tagsinput.searchable .tag:hover,
.gallery2__sidebar__info-image_annotation .tag:hover {
   background-color: #deedff;
   color: #417FF2;
}
#gallery_file_tags_container .tagsinput.searchable .tag:hover  a{
   background-image: url(../images/UI_icons/blue/close.svg);
}

#gallery_file_tags_container .tagsinput input {
    width: 80px;
    margin: 0;
    font-size: 13px;
    border: 0;
    background: 0 0;
    color: #fff!important;
    outline: 0;
}

#gallery_file_tags_container .tagsinput div {
    display: block;
    float: left
}

#gallery_file_tags_container .tags_clear {
    clear: both;
    width: 100%;
    height: 0;
}

#gallery_file_tags_container .not_valid {
    background: #fbd8db!important;
    color: #90111a!important
}

#gallery_file_tags_container .tagsinput div .fa {
    font-size: 13px;
    color: ;
    cursor: pointer
}

#gallery_file_tags_container .remove_tag {
    display: none!important
}

#gallery_file_tags_container.allow_edit .remove_tag {
    display: inline-block!important
}

#gallery_file_tags_container .add_tag_button {
    display: block;
    margin-top: 3px;
    position: relative;
    width: 100%;
}

#gallery_file_tags_container .add_tag_button.interactive:before {
    content: "";
    height: 15px;
    width: 15px;
    background-size: 12px;
    background-position: center;
    position: absolute;
    background-repeat: no-repeat;
    left: 0;
    top: 13px;
    z-index: 999999999;
    color: #fff;
    background-image: url(../images/UI_icons/white/plus_circle.svg);
    display: block;
}

#gallery_file_tags_container .add_tag_button input {
    width: 100% !important;
    margin: 10px 0;

    padding-left: 20px;
    position: relative;
}

#gallery_file_tags_container .add_tag_button input::placeholder {
    color: #fff
}
#gallery_file_tags_container .add_tag_button input:hover::placeholder {
    color: #417FF2;
}

#gallery_file_tags_container .file_tags_error {
    position: absolute;
    top: 100%;
    font-size: 10px;
    line-height: 10px;
    background: #f2dede;
    padding: 2px;
    color: #c3130f;
    display: none
}

.gallery_vote.has_voted i {
    color: #c3130f
}

#gallery2__header .gallery2__header__icon-group span#gallery2__header__setprice {
}

#gallery2__header .gallery2__header__icon-group span#gallery2__header__setprice i {
    border-radius: 5px;
    margin: 0 10px 0 0;
    line-height: 40px;
    font-size: 14px;
    position: relative;
    height: 40px;
    cursor: pointer;
    vertical-align: middle;
    background-color: #2b2a2a;
    transition: background-color .5s ease,color .5s ease;
    width: 40px;
    text-align: center
}

#gallery2__header .gallery2__header__icon-group span#gallery2__header__setprice i:hover {
    background-color: #00b715
}

#gallery2__share {
    display: none
}

.gallery2__video_container {
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    max-height: 100%;
    height: 100%;
    background: #000;
}

.gallery2__video_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    width: 100%;
    margin: auto
}

.gallery2__video_wrapper.mobile-wrapper {
    align-items: flex-start
}

.gallery2__video_wrapper .vjs-ffm {
    max-width: 100%;
    width: 100%!important;
    height: 100%!important
}

.gallery2__video_container__embed_palyer {
    max-height: 100%;
    width: 100%;
    height: auto
}

.filesfm__embed_player__container {
    margin: 0 auto;
    display: inline-block;
    min-width: 80%
}
.filesfm_embed_palyer__poster_div_before {
    display: none;
}


.gallery2__video_previewtext {
    color: #fff;
    font-size: 12px;
    margin-top: 12px;
    overflow: hidden;
    white-space: break-spaces
}

.gallery2__video_wrapper_bottom {
    max-width: 100%;
    width: 100%
}

.gallery2__video_filename-download {
    margin-top: 10px;
}

.gallery2__video_filename {
    color: #fff;
    font-size: 16px;
    overflow: hidden;
    display: inline-block;
    margin-right: 10px;

    white-space: normal;
    line-height: 20px;
}

.gallery2__video_downloadbutton {
    display: inline-block;
    border-radius: 15px;
    cursor: pointer;
    background: rgba(255,255,255,.2);
    padding: 7px;
}

.gallery2__video_downloadbutton img {
    height: 15px;
}

.ffm_video_fallback:not(.vjs-has-started) .vjs-control-bar * {
    visibility: hidden
}

.ffm_video_fallback .vjs-loading-spinner .vjs-control-text {
    clip: unset;
    height: auto;
    width: auto;
    bottom: -35px;
    font-size: 14px;
    line-height: 16px;
    white-space: break-spaces;
    min-width: 400px;
    left: -200px;
    text-align: center
}

.ffm_video_fallback.vjs-layout-tiny .vjs-loading-spinner .vjs-control-text,.ffm_video_fallback.vjs-layout-small .vjs-loading-spinner .vjs-control-text {
    min-width: 200px;
    left: -80px;
    font-size: 12px;
}

#gallery2 .jp-audio,#gallery2 .jp-audio-stream,#gallery2 .jp-video {
    display: inline-block;
    border: none!important;
    margin: auto
}

.gallery2__load-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 70px;
    color: #fff;
    margin-left: -35px;
    margin-top: -35px;
    font-family: 'FontAwesome' !important;
}

.comments_letter_avatar {
    text-transform: uppercase;
    width: 100%;
    height: 45px;
    border: 1px solid #ababab;
    color: #ababab;
    text-align: center;
    font-size: 30px;
    line-height: 45px;
}

#gallery2.is_upload_owner #gallery2__sidebar__info-description #file_description_edit_wrapper {
    display: flex;
    position: relative;
    flex-direction: column
}

#gallery2 #gallery2__sidebar__info-description #file_description_value {
    display: block
}

#gallery2.is_upload_owner #gallery2__sidebar__info-description #file_description_value {
    display: none
}
.block-label {
    width: 100%;
    color: #737373;
    display: block;
    font-size: 14px;
    line-height: 19px;
}

#gallery2.is_upload_owner #gallery2__sidebar__info-name #file_name_edit_wrapper {
    display: flex;
    position: relative;
    flex-direction: column
}

#gallery2 #gallery2__sidebar__info-name #file_name_value {
    display: block
}

#gallery2.is_upload_owner #gallery2__sidebar__info-name #file_name_value {
    display: none
}

#gallery2__sidebar__info-name,
#gallery2__sidebar__info-price,
#gallery2__sidebar__info-buy-products,
#gallery2__sidebar__info-size,
#gallery2__sidebar__info-date,
#gallery2__sidebar__info-moddate,
#gallery2__sidebar__info-ValidTODate,
#gallery2__sidebar__info-user,
#gallery2__sidebar__info-views,
#gallery2__sidebar__info-downloads,
#gallery2__sidebar__info-description,
#gallery2__sidebar__info-tags {
    min-height: 21px;
}

#gallery_upload-access-switch label {
    display: none;
}

#gallery_upload-access-switch .styled-select {
    width: 100%;
}
#gallery_upload-access-switch {
    margin-bottom: 15px;
}

#gallery_upload-access-switch .select-selected {
    font-size: 16px;
    border: 1px solid #D8D8D8 !important;
    background: 0 0;
    color: #fff;
    height: 40px;
    width: 100%;
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: calc(50% + 1px);
    background-image: url(/images/UI_icons/inputs/dropdown_grey.svg);
    background-size: 10px;
    line-height: 40px;
    padding: 0 15px;
    border-radius: 10px !important;
}

#gallery_upload-access-switch .select-selected.select-arrow-active {
    background-image: url(/images/UI_icons/inputs/dropdown_active_grey.svg);
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
#gallery_upload-access-switch .select-selected + .select-items {
   font-size: 14px;
   border: 1px solid #e6e6e6;
   background: #242424;
   box-shadow: none;
   border-radius: 0;
   border-bottom-left-radius: 10px !important;
   border-bottom-right-radius: 10px !important;
   overflow: hidden;
   top: calc(100% - 1px);
   padding: 5px 0;
}
#gallery_upload-access-switch .styled-select .select-items > div:hover {
    background: #333333;
}
#gallery_upload-access-switch .select-items .value {
    color: white;
}
#gallery_upload-access-switch .select-items > div {
    padding-left: 35px;
    transition: 0.5s ease;
}
#gallery_upload-access-switch .select-items .checked:before {
    background-size: 14px;
    left: 10px;
    width: 14px;
}
#gallery_upload-access-switch .select-items .desc {
    font-size: 11px;
}

#gallery2_item_info_bottom_section .gallery2_item_info_share,
.gallery2_item_info_share {
    position: relative;
    height: 40px;
    width: 100%;
    margin: 20px 0 0;
}

#gallery2_item_info_bottom_section .gallery2_item_info_share {
    margin: 0;
}

#gallery2_item_info_bottom_section #item_info_share .gallery2_input-container {
    width: calc( 100% - 16px );
    margin-left: 8px;
    position: absolute;
    display: block;
    left: 0;
    right: 60px;
}

.gallery2_item_info_share .gallery2_input-container .gallery2_share-input {
    display: inline-block;
    height: 40px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    position: relative;
    min-width: 42px;
}

#gallery2__sidebar__info-size:before {
    background-image: url(../images/gallery/pie_chart.svg);
    width: 18px!important
}

#gallery2__sidebar__info-date:before {
    background-image: url(../images/gallery/calendar.svg);
    background-size: 18px 16px!important
}

#gallery2__sidebar__info-user:before {
    background-image: url(../images/gallery/user.svg);
}

#gallery2__sidebar__info-user #gallery2__sidebar__info-user-link {
    color: #61a9cf;
    text-decoration: none;
    display: inline-block;
    width: 100%
}

#gallery2__sidebar__info-user #gallery2__sidebar__info-user-link a {
    display: inline-block;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    text-decoration: underline;
    font-size: 16px;
}

#gallery2__sidebar__info-views:before {
    background-image: url(../images/gallery/eye.svg);
    background-size: 18px 20px!important
}

#gallery2__sidebar__info-downloads:before {
    background-image: url(../images/gallery/download2.svg);
}

#gallery2__sidebar__info-description:before {
    background-image: url(../images/gallery/description.svg?v=1);
    background-size: 14px 14px!important
}

#gallery2__sidebar__info-tags:before {
    margin-top: 3px;
    background-image: url(../images/gallery/tag.svg?v=1);
}

#gallery2__sidebar__info-description {
    color: #4b5f6a;
    font-size: 14px;
    line-height: 18px;
}

#gallery2__sidebar__info-tags {
    color: #b1b4bc
}

#gallery2__sidebar__info-tags:after {
    border-top: 1.5px solid #1A1818;
    content: ' ';
    height: 1px;
    width: calc(100% + 20px);
    display: block;
    position: absolute;
    bottom: -10px;
    left: -20px;
}

#gallery2__sidebar__info-data {
    color: #fff;
    margin-left: 19px;
}

.gallery2__sidebar__info-image_annotation {
    margin-left: 20px;
}

.gallery2__sidebar__info-image_annotation .title {
    color: #737373;
    line-height: 19px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.gallery2__sidebar__info-image_annotation .tags {
    overflow: hidden;
}

#gallery2__sidebar__info-name,#gallery2__sidebar__info-name-uneditable {
    font-size: 14px;
    color: #fff;
    flex: 1;
    min-width: 0;
    line-height: 16px;
}

#gallery2__sidebar__info-name-uneditable span {
    max-height: 160px;
    overflow-y: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    padding: 0;
    font-weight: 700;
}

#gallery2__sidebar__info-name div {
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all
}

#gallery2__sidebar__info-report {
    color: #61a9cf;
    position: relative;
    left: -26px;
    font-size: 18px;
}

#gallery2__sidebar__info-report i {
    cursor: pointer
}

.gallery2__header__icon {
    width: 48px;
    height: 48px;
    background-size: 25px 25px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    display: inline-block;
    margin: 0 0;
}

.gallery2__item__thumbnail .gallery2__item__thumbnail-ext {
    display: none;
    position: absolute;
    top: 6px;
    left: 40px;
    font-size: 12px;
    font-weight: 700;
}

.gallery2__item__thumbnail.psd .gallery2__item__thumbnail-ext,.gallery2__item__thumbnail.ai .gallery2__item__thumbnail-ext,.gallery2__item__thumbnail.eps .gallery2__item__thumbnail-ext,.gallery2__item__thumbnail.gif .gallery2__item__thumbnail-ext,.gallery2__item__thumbnail.tif .gallery2__item__thumbnail-ext,.gallery2__item__thumbnail.tiff .gallery2__item__thumbnail-ext {
    display: inline
}

#gallery2__top-ads {
    position: absolute;
    top: 62px;
    z-index: 9;
    height: 270px;
    padding: 10px;
    width: calc( 100% - 160px - 30px );
    z-index: 10;
}

#gallery2__top-ads>div {
    margin: 0 auto
}

body.ui-mobile #gallery2__top-ads {
    height: 70px;
    width: 100%;
    left: 0;
}

#gallery2.gallery__sidebar-visible #gallery2__top-ads {
    left: 360px;
    width: calc( 100% - 160px - 360px );
}

#gallery2.gallery2_top-ad-visible #gallery2__content__viewport {
    padding-top: 336px;
}

body.ui-mobile #gallery2.gallery2_top-ad-visible #gallery2__content__viewport {
    padding-top: 132px;
}

#gallery2__sidebar__info-set-custom-thumbnail {
    padding-top: 20px;
    display: none!important
}

.gallery2_item_info_padded {
    text-align: justify;
    padding: 30px 20px 15px;
    border-bottom: 1.5px solid #1A1818;
}
.gallery2_item_info_padded.share {
    padding: 20px;
}
#gallery2_info_head {
    padding-bottom: 10px;
}
.gallery2_item_info_padded.signatures {
    border: unset;
    padding: 0;
}

.gallery2_item_info_padded:first-child {
    padding-bottom: 10px;
}



#gallery2__controls_zoom {
    position: absolute;
    top: 7px;
    right: 0;
    transform: translateX(-50%);
    opacity: .75
}

#gallery2__controls_zoom a {
    min-width: 64px;
    height: 64px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #fff;
    color: #fff;
    top: initial;
    bottom: 0;
    padding: 5px 12px;
    background: rgba(83,108,121,.1);
}

.gallery-download-split-button.large {
    border-radius: 30px;
}

.gallery-download-split-button.x-split-button.large .x-button:not(.x-button-drop) {
    font-size: 18px;
}

#gallery2__left_info__signers-list-container {
    font-size: 13px;
    text-align-last: left;
    grid-column: span 2;
    padding: 20px;
    border-bottom: 1.5px solid #1A1818;
}

#gallery2__left_info__signers-list-container .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed_header {
    font-weight: 700!important;
    margin-bottom: 8px;
}

#gallery2__left_info__signers-list {
}

#gallery2__left_info__signers-list .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed + .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed {
    margin-top: 10px;
}
#gallery2__left_info__signers-list .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed {
    display: flex;
    align-items: center;
}
#gallery2__left_info__signers-list .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed .signature-validation-icon {
    width: 15px;
    height: 9px;
    margin-right: 5px;
    font-size: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#gallery2__left_info__signers-list .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed .signature-validation-icon.signature-validation-icon_is-valid {
    background-image: url(/images/UI_icons/green/check.svg);
}

#gallery2__left_info__signers-list .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed .signature-validation-icon.signature-validation-icon_not-valid {
    background-image: url(/images/UI_icons/red/close.svg);
}

#gallery2__left_info__signers-list .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed span {
    margin-right: 5px;
}

#gallery2__left_info__signers-list .file-signing-eparaksts-form_file-list_file-item_signatures-info_is-signed span:nth-child(2) {
    min-width: 115px;
    display: inline-block
}

.gallery2__left_info__signers-list__loading i {
    margin-right: 5px;
}

@media screen and (max-width: 500px) {
    #gallery2 #jquery_jplayer_1 {
        max-width:640px!important;
        max-height: 360px!important;
        width: 100%!important;
        height: 100%!important
    }

    #gallery2 #jquery_jplayer_1>img {
        display: block
    }

    #gallery2 .jp-video video,#gallery2 .jp-audio,#gallery2 .jp-controls-holder {
        width: 100%!important
    }

    #gallery2 .jp-video,#gallery2 .jp-video>div,#gallery2 .jp-video img {
        height: 100%!important;
        width: 100%!important
    }

    #gallery2 .jp-video object {
        max-width: 640px!important;
        max-height: 360px!important;
        width: 100%!important;
        height: 100%!important
    }

    #gallery2 .jp-video-360p {
        max-width: 570px!important
    }

    #gallery2 .jp-video-270p {
        max-width: 480px!important
    }

    #gallery2 .jp-progress {
        width: 100%!important
    }
}

@media only screen and (max-width: 1250px) {
    .p2p_download #gallery2__save_p2p .gallery2__save_p2p_short_text,.p2p_download #gallery2__save .gallery2__save_short_text,#gallery2__sidebar__info_embed_button .gallery2__sidebar__info_embed_short_text {
        display:inline-block;
        font-size: 1em!important
    }

    #gallery2__save_p2p a span:not(.gallery2__save_p2p_short_text),#gallery2__save a span:not(.gallery2__save_short_text__info_embed_short_text) {
        font-size: 0;
    }

    #gallery2__save_p2p a .fa,#gallery2__save a .fa {
        margin-right: 0;
    }

    #gallery2__save {
        padding-left: 29px!important
    }
}

@media only screen and (max-width: 1080px) {

    #gallery2__buyfile,
    #gallery2__buyall,
    #gallery2__buy-products {
        padding-left: 0;
    }

    #gallery2__controls__prev,#gallery2__controls__next,#gallery2__controls__play {
    }

    #gallery2__content #gallery2__thumb-strip:before, 
    #gallery2__content #gallery2__thumb-strip:after,
    #gallery2__thumb-strip__prev,
    #gallery2__thumb-strip__next {
        display: none!important;
    }

    #gallery2__content.gallery__sidebar-visible #gallery2__content__viewport {
    }

    #gallery2.gallery__sidebar-visible #gallery2__top-ads {
        display: none
    }

    #gallery2__content__sidebar {
        right: -100%
    }

    #gallery2__content__sidebar__inner {
        overflow-y: auto
    }

    .ui-mobile #gallery2__thumb-strip {
        overflow-x: auto
    }

    .ui-mobile #gallery2__thumb-strip__inner {
        position: initial
    }

    #gallery2__sidebar__info_embed_button .fa {
        margin-right: -4px!important
    }
}

@media only screen and (max-width: 870px) {
  

    #gallery2__thumb-strip__prev,#gallery2__thumb-strip__next {
        display: none!important
    }

    #gallery2__content.gallery__sidebar-visible #gallery2__content__viewport {
        padding-right: 100%
    }

    #gallery2.gallery__sidebar-visible #gallery2__top-ads {
        display: none
    }

    #gallery2__content__sidebar {
        width: 100%;
        right: -100%
    }

    #gallery2__content__sidebar__inner {
        overflow-y: auto
    }

    .ui-mobile #gallery2__thumb-strip {
        overflow-x: auto
    }

    .ui-mobile #gallery2__thumb-strip__inner {
        position: initial
    }

}

@media only screen and (max-width: 805px) {
    .gallery2__close {
        margin-right:0!important
    }

    #gallery2__save .gallery2__save_short_text {
        display: none!important
    }

    #gallery2.p2p_download_allowed.simple_download_allowed:not(.list_for_specific_file) #gallery2__header__mid_content #gallery2__save_p2p {
        display: none!important
    }

   #gallery2__controls_middle.image {
        display: inline-flex !important
    }
    
    #gallery2__header__fullscreen,
    #gallery2__header__zoom {
        display: none!important;
    }
}
@media only screen and (max-width: 740px) {
    #gallery2__header__mid .x-button.x-button-main .x-button-small-icon {
        display: none !important;
    }
    
    #gallery2__header__mid .x-split-button {
       padding-right: 5px;
       min-width: 50px;
    }
    #gallery2__header__mid .x-split-button-single.x-split-button {
        background-position-x: center !important;
    }
    #gallery2__header__mid .x-split-button:not(.large) .x-button {
        padding: 0 ;
    }
    #gallery2__header__mid .x-split-button:not(.large) .x-button-main {
        display: none;
    }

    .gallery2__header_middle_button {
        background-position: center  !important;
    }
    .gallery2__header_middle_button span {
        display: none;
    }
    #gallery2__header__mid #gallery2__buyproducts,
    #gallery2__header__mid #gallery2__buyall,
    #gallery2__header__mid #gallery2__buyfile {
        padding: 0 10px 0 40px;
    }

}

@media only screen and (max-width: 550px) {
    

    .gallery2__video_wrapper {
        width:100%
    }
    
    #gallery2__controls_zoom {
        display: none
    }

    #gallery2__controls_left a {
        background-image: url(../images/gallery/gallery_backward.svg);
    }

    #gallery2__controls_right a {
        background-image: url(../images/gallery/gallery_forward.svg);
    }

    #gallery2__controls_left a,#gallery2__controls_right a {
        width: 64px;
        height: 64px;
        font-size: 24px;
        border-radius: 0;
        top: initial;
        bottom: 100px;
        background-size: 40px 40px;
        background-repeat: no-repeat;
        background-position: center;
        left: unset
    }

    #gallery2__controls_right a {
        right: 0;
    }

    #gallery2__controls_left a,#gallery2__controls_left a .fa,#gallery2__controls_right a,#gallery2__controls_right a .fa {
        line-height: 30px;
    }

    #gallery2__header__left .gallery_vote,#gallery2__header__setprice {
        display: none!important
    }

   
    #gallery2__header__mid .x-split-button {
        margin: 0 2px;
    }

    .gallery2__video_container__embed_palyer {
        padding: 0;
        height: auto
    }

    .gallery2__video_container {
        padding: 0;
    }

    .gallery2__item__custom_thumb {
        height: calc( 100% - 230px );
    }

    .gallery2__item__information-wrapper a {
        justify-self: center
    }

    .gallery__sidebar-visible .gallery2__info + .gallery2__close {
        display: none
    }
    #gallery2_item_info_bottom_section {
    }

    #gallery2__controls_left a:hover,#gallery2__controls_right a:hover {
        background-color: unset
    }

    .gallery2__item__iframe-wrapper iframe.modal_gallery_simple_iframe,
    .gallery2__item__code-wrapper .modal_gallery_code_container {
        width: calc( 100% - 100px);
    }
}

#gallery2__content-wrapper:is(.gallery__only_image, .gallery__slideshow) .gallery2__video_container {
    padding: 0;
}


#gallery2__content-wrapper.gallery__slideshow .bx-wrapper .gallery2__item img {
    margin-bottom: 0;
}
#gallery2__content-wrapper.gallery__slideshow .bx-wrapper .gallery2__item img.stretch_image {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

#gallery2__content-wrapper:is(.gallery__only_image, .gallery__slideshow) #gallery2__header_mobile,
#gallery2__content-wrapper:is(.gallery__only_image, .gallery__slideshow) #gallery2__header,
#gallery2__content-wrapper:is(.gallery__only_image, .gallery__slideshow) #gallery2__thumb-strip,
#gallery2__content-wrapper:is(.gallery__only_image, .gallery__slideshow) #gallery2__controls_middle,
#gallery2__content-wrapper.gallery__only_image #gallery2__controls_left,
#gallery2__content-wrapper.gallery__only_image #gallery2__controls_right,
#gallery2__content-wrapper:is(.gallery__only_image, .gallery__slideshow) #gallery2__thumb-strip__hide_container {
    display: none!important
}

#gallery2__content-wrapper:is(.gallery__only_image, .gallery__slideshow) #gallery2__content__viewport {
    padding: 0!important
}

#gallery2__content-wrapper:is(.gallery__only_image, .gallery__slideshow) .gallery2__video_container__embed_palyer {
    max-height: 100%
}

#gallery2__content-wrapper.gallery__slideshow .gallery2__item {
    opacity: 1;
    transition: opacity 1s ease;
}

#gallery2__content-wrapper.gallery__slideshow .gallery2__item[aria-hidden="true"] {
    opacity: 0;
}

@media screen and (orientation: landscape) {
    #gallery2__content-wrapper.gallery__only_image:not(.gallery__is_image) #gallery2__header_mobile {
        display:flex!important
    }
    #gallery2__content-wrapper.gallery__only_image:not(.gallery__is_image) .gallery2__video_container {
        padding: 36px 0 0;
    }

    #gallery2__content-wrapper.gallery__only_image:not(.gallery__is_image) .gallery2__video_container__embed_palyer {
        max-height: calc(100% - 36px);
    }
}

@media only screen and (max-width: 500px) {
    #gallery2__header__left .gallery_vote,
    #gallery2__header__setprice {
        display:none!important
    }

    .gallery2__item .print_or_buy_popup {
        min-width: unset
    }

    #gallery2__header_mobile {
        display: flex;
    }
    
    #gallery2__header {
        bottom: 0;
        position: absolute
    }

    #gallery2__content__viewport {
        padding-top: 40px;
        padding-bottom: 74px;
    }

    #gallery2__content.gallery__thumbs-visible #gallery2__content__viewport {
        padding-bottom: 150px;
    }

    #gallery2__content__sidebar {
        padding-top: 0;
        padding-bottom: 0;
        box-sizing: border-box;
    }
    #gallery2__content.gallery__sidebar-visible {
      z-index: 11;
    }

    #gallery2__content__sidebar__inner.gallery2__content__sidebar__inner__flex {
      height: calc(100% - 44px)  
    }
    #gallery2__sidebar__info__comments {
        height: 44px;
        padding-right: 5px;
    }
    #gallery2__sidebar-close {
       background-image: url(../images/UI_icons/white/close.svg);
       background-size: 20px;
    }

    .gallery2__close,
    #gallery2__header__left {
        display: none!important
    }

    #gallery2__header__inner {
        padding: 10px 20px 0;
        background-color: #060606;
        max-width: 100%;
        box-sizing: border-box;
        height: 80px;
    }

    #gallery2__thumb-strip {
        height: 70px;
        padding-top: 10px;
        margin-top: 0;
    }

    #gallery2__thumb-strip__inner a {
        height: 55px;
        min-height: 55px;
    }

    #gallery2__thumb-strip__inner a img {
        max-height: 100%
    }

    #gallery2__header__mid {
        display: flex;
        height: 58px;
        text-align: left;
        flex-wrap: wrap;
        width: 100%;
    }

    #gallery2__header__mid_content {
        display: inline-flex;
        column-gap: 16px;
        width: 100%;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-around;
        box-sizing: border-box;
    }

    #gallery2__header__mid .gallery2__header_middle_button,
    #gallery2__header .gallery2__header__icon-group span,
    #gallery2__header__right_more {
        height: 58px;
        min-width: 65px;
        margin: 0;
        max-width: 100px;
        background-position: center;
        background-repeat: no-repeat;
    }
    .gallery2__header__right {
        display: none;
    }
    #gallery2__header__mid #gallery2__header__right_more.open {
        background-image: url(../images/UI_icons/blue/more.svg);
        color: #417FF2;
        background-color: unset;
    }
    #gallery2__header__right_more.open + #gallery2__header__mobile_menu {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        bottom: 80px;
        top: unset;
        left: 0;
        z-index: 1;
        right: 0;
        position: fixed;
        max-height: 80%;
    }
    #gallery2__header__right_more.open + #gallery2__header__mobile_menu + #gallery2__header__mobile_menu_close_before:before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        bottom: 80px;
        background-color: rgba(0,0,0,0.3);
    }
    #gallery2__header__mobile_menu #gallery2_item_info_share_middle {
        display: flex;
    }

    #gallery2__header__mid .x-split-button {
        margin: 0;
        height: 58px;
        max-width: 65px;
        padding-left: 0;
        flex-direction: row;
        text-align: center;
        justify-content: center;
        background-size: 18px !important;
        background-position-y: 7px !important;
        background-position-x: center !important;
        background-color: transparent !important;
        text-align: center;
        align-items: stretch;
    }

    #gallery2__header__mid .x-split-button {
        width: calc(25% - 12px);
        background: unset;
        max-width: unset;
        padding: 0;
    }

    #gallery2__header__mid #gallery2__buyproducts,
    #gallery2__header__mid .gallery2__header_middle_button {
        flex-direction: column;
        padding: 0;
        align-items: center;
        text-align: center;
        justify-content: center;
        padding-top: 30px;
        background-size: 18px 18px !important;
        background-position-y: 7px !important;
        background-position-x: center !important;
        background-color: transparent !important;
        font-size: 12px !important;
        line-height: 12px;
        width: calc(25% - 12px);
    }
    #gallery2__header__mid .gallery2__header_middle_button a {
        font-size: 12px !important;
    }
    #gallery2__header__mid .gallery2__header_middle_button:hover {
         background-color: transparent !important;
    }
    #gallery2__header__mid #gallery2__header__right_more {
        order: 3;
    }

    #gallery2__header__mid #gallery2__buyfile,
    #gallery2__header__mid #gallery2__buyall,
    #gallery2__header__mid #gallery2__buy-products {
        background-position: center
    }

    .gallery2__header_middle_button span {
        display: flex;
    }
    .gallery2__report_button span {
        display: none;
    }
    
    #gallery2__header__mid #gallery2__buyfile,
        #gallery2__header__mid #gallery2__buyall {
        background: unset;
        align-items: center;
        padding: 0;
        padding-top: 30px;
    }
    #gallery2__header__mid #gallery2__buyall a,
    #gallery2__header__mid #gallery2__buyfile a {
        display: flex;
        flex-direction: column-reverse;
        margin-top: 0;
    }

    #gallery2__header__mid #gallery2__sign_main {
        display: none !important;
    }
    
    #gallery2__header__mid #gallery2__buyall span.price,
    #gallery2__header__mid #gallery2__buyfile span.price {
        position: absolute;
        top: 5px;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        background: #00b715;
        padding: 4px 9px;
        border-radius: 10px;
        display: inline-block;
        width: fit-content;
        line-height: 11px;
        font-size: 12px;
        margin-bottom: 0px;
    }

    #gallery2__header__mid #gallery2__buyall span.dash,
    #gallery2__header__mid #gallery2__buyfile span.dash {
        display: none;
    }

    #gallery2__header__mid .x-button.x-button-main span:not(.x-button-short-text) {
       
        display: block;
        font-size: 12px !important;
        min-height: 12px;
        max-width: 100%;
        width: 100%;
        white-space: normal;
        word-break: break-word;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .x-split-button:not(.large) .x-button-main .x-button-short-text,
    .x-split-button:not(.large) .x-button-main .x-button-small-icon {
        display: none;
    }

    #gallery2__header__mid .x-split-button:not(.large) .x-button {
        line-height: 12px;
        height: 12px;
        background-color: transparent;
    }
    #gallery2__header__mid .x-split-button:not(.large) .x-button.x-button-main {
        background-repeat: no-repeat !important;
        background-image: url(/images/UI_icons/white/download.svg);
        display: flex;
        flex-direction: column;
        padding-top: 30px;
        background-size: 18px !important;
        background-position-y: 7px !important;
        background-position-x: center !important;
        background-color: transparent !important;
        height: 100%;
        justify-content: center;
        max-width: 100%;
    }
    #gallery2__header__mid .x-split-button:not(.large).open .x-button.x-button-main {
        background-image: url(/images/UI_icons/blue/download.svg); 
        color: #417FF2;
    }

    #gallery2__header__mid .x-button.x-button-drop {
        padding: 1px 14px 1px 10px!important;
        margin-left: auto;
        height: 100% !important;
        display: none;
    }

    #gallery2__header__right_more.open:after,
    #gallery2__header__mid .x-split-button:not(.x-split-button-single).open:before {
        content: ' ';
        height: 15px;
        width: 15px;
        display: inline-block;
        background: white;
        border-right: 1px solid #E8E8E8;
        border-bottom: 1px solid #E8E8E8;
        transform: rotate(45deg);
        box-sizing: border-box;
        position: absolute;
        bottom: -14px;
        z-index: 1;
        left: calc(50% - 7px);
        top: -24px;
    }
    #gallery2__header__mid .x-split-button:not(.x-split-button-single, .open):hover:before,
    #gallery2__header__mid .x-split-button:not(.x-split-button-single).open:after {
        display: none;
    }

    #gallery2__header__mid #gallery2__info_middle.mobile-hide {
        display: none;
    }
    

    #gallery2__header__mid .x-split-button:hover > .x-button-drop-menu {
        display: none;
    }
    #gallery2__header__mid .x-split-button.open > .x-button-drop-menu {
        display: block;
        position: fixed;
        padding: 10px 30px;
        border: 1px solid #E8E8E8;
        border-radius: 0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
    }
    #gallery2__header__mid #gallery2__header__mobile_menu .gallery2__header_middle_button {
        height: 50px;
        font-size: 18px !important;
        padding: 0 28px 0 65px;
        background-position-x: 23px !important;
        width: 100%;
        background-size: 20px 20px !important;
    }
    #gallery2__header__mid #gallery2__header__mobile_menu .gallery2__header_middle_button a {
        font-size: 18px !important;
    }
    #gallery2__header__mid #gallery2__header__mobile_menu #gallery2__slideshow_middle {
         background-position-x: 25px !important;   
    }

    #gallery2__header__mid #gallery2__header__mobile_menu #gallery2__info_more.mobile-show {
        display: flex;
    }
    
    #gallery2__header__mid .x-button-drop-menu li:hover {
        background-color: transparent;
    }
    #gallery2__header__mid .x-button-drop-menu li a {
        width: 100% !important;
        line-height: 50px;
        height: 50px;
        text-align: left;
        padding: 0;
        display: inline-flex;
        align-items: center;
    }
    #gallery2__header__mid .x-button-drop-menu li a .x-button-recommended {
        display: block;
        font-size: 14px;
        height: 26px;
        color: #55BA32;
        background: #E3F4DE;
        line-height: 26px;
        margin-left: 15px;
        padding: 0 15px;
        border-radius: 13px;
    }
    .x-split-button:not(.large) .x-button-short-text {
        font-size: 18px !important;
    }
    #gallery2__header__mid .x-button-drop-menu {
        bottom: 80px;
        top: unset
    }

    #gallery2__header__mid .seperator {
        display: inline-block;
        height: 42px;
        width: 1px;
        border-left: 2px solid #313131;
        margin-right: auto
    }
    #gallery_file_tags_container .tagsinput input {
        font-size: 16px;
    }
    
    #gallery2__header__slideshow .tag {
        display: none !important;
    }

    #gallery2__controls_doc_sign.document {
        display: inline-flex !important;
    }
}

@media only screen and (max-width: 420px) {
    #gallery2__header .gallery2__header__img-count {
        margin-right: 0;
        font-size: 12px;
    }

    .gallery2__header__right span {
        width: 28px;
    }

  

    .bx-wrapper .gallery2__item img.ext-icon {
        width: 100px;
    }

    .gallery2__item .print_or_buy_popup_button {
        width: 100%
    }
}

@media only screen and (max-width: 360px) {

    #gallery2__header__mid {
        margin-right: 8px;
    }

    #gallery2__header__mid_content {
        column-gap: 8px;
    }

    #gallery2__header__inner {
        padding: 15px 10px 7px;
    }
}

@media only screen and (max-width: 740px) {
    .gallery2__item__desc-wrapper {
        font-size:14px;
        line-height: 18px;
    }
}

@media only screen and (max-width: 600px) {
    .gallery2__item__audio-wrapper {
        height:100%;
        width: 100%
    }
}

@media only screen and (max-height: 600px) {
    .gallery2__item__doc-wrapper .fa-5x {
        font-size:100px;
        margin-bottom: 12px;
    }

    .gallery2__item__doc-wrapper p.gallery2__item__doc-nopreview {
        margin: 24px 0 12px;
    }
}

@media only screen and (max-height: 630px) {
    .gallery2__item__doc-icon img {
        width:115px!important
    }
}

#gallery2__thumb-strip__inner .thumb-loader {
    font-size: 2px;
    text-indent: -9999em;
    text-align: center;
    width: 11em;
    height: 11em;
    border-radius: 50%;
    background: #fff;
    background: -moz-linear-gradient(left,#ffffff 10%,rgba(255,255,255,0) 42%);
    background: -webkit-linear-gradient(left,#ffffff 10%,rgba(255,255,255,0) 42%);
    background: -o-linear-gradient(left,#ffffff 10%,rgba(255,255,255,0) 42%);
    background: -ms-linear-gradient(left,#ffffff 10%,rgba(255,255,255,0) 42%);
    background: linear-gradient(to right,#ffffff 10%,rgba(255,255,255,0) 42%);
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    z-index: 10000;
    -webkit-animation: load3 1.4s infinite linear;
    animation: load3 1.4s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

#gallery2__thumb-strip__inner .thumb-loader:before {
    width: 50%;
    height: 50%;
    background: #fff;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: ''
}

#gallery2__thumb-strip__inner .thumb-loader:after {
    background: #000;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#image_editor::before {
    content: none;
}

#image_editor .modal-inner {
    margin: 0 auto;
    border-radius: 30px;
    width: 90%;
    max-width: 1720px;
    inset: 60px 0;
    background-color: unset;
}

#image_editor_iframe {
    width: 100%;
    height: 100%;
}

#image_editor .modal-close::before {
    opacity: 0.9;
    cursor: default;
    display: block;
}

#image_editor .modal-close::after {
    content: none;
}

@media screen and (max-width: 690px), screen and (max-height: 735px) {
    #image_editor .modal-inner {
        width: auto;
        border-radius: 0;
        box-sizing: border-box;
        top: 42px;
        left: 0;
        right: 0;
        padding-top: 0;
        height: calc(100% - 42px);
        box-shadow: none;
        margin-left: 0 !important;
        overflow: hidden;
        max-height: unset;
    }

    #image_editor .modal-close::after {
        content: '\\00d7';
        background: url( '/images/popups/close-shadow3.svg' ) center no-repeat;
        color: #FFF;
        z-index: 10000002;
        position: absolute;
        font-size: 0px;
        height: 15px;
        width: 15px;
        padding: 2px 8px;
        margin-left: 0;
        top: 12px;
        left: auto;
        right: 10px;
    }
}

@-webkit-keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load3 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


.gallery2__video-play-button {
    background-image: url(/js/filesfm_videojs/images/play.svg);
    height: 70px;
    width: 70px;
    display: inline-block;
    background-color: #00000066;
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    border-radius: 50%;
    background-position-y: center;
    background-position-x: 55%;
    background-size: 70%;
    cursor: pointer;
}