﻿#gallery-showbox-blender {
    background-color: #000;
    bottom: 0;
    left: 0;
    opacity: 0.4;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9;
}

#gallery-showbox-holder {
    background-color: #fff;
    height: 96vh;
    left: 15px;
    margin: 0 auto;
    max-width: 2100px;
    position: fixed;
    right: 15px;
    top: 2%;
    z-index: 10;
}

@media (min-width: 768px) {
    #gallery-showbox-holder {
        left: 5%;
        right: 5%;
    }
}

.article-gallery {
    overflow: hidden;
    user-select: none;
}

.article-gallery .missing-picture {
    background-image: url(/img/common/missing.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    height: 384px;
    /*width: 512px;*/
}

.article-gallery.showbox {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
}

.article-gallery.showbox .top-bar {
    display: flex;
    flex: 16px 0 0;
}

.article-gallery.showbox .top-bar .close {
    background-color: transparent;
    background-image: url(/img/common/cross_16.png);
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    height: 16px;
    width: 16px;
}

.article-gallery .article-picture { position: relative; }

.article-gallery.showbox .article-picture { flex: 1 1 auto; }

.article-gallery ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.4s ease;
}

.article-gallery .article-picture ul { }

.article-gallery.showbox .article-picture ul { height: 100%; }

.article-gallery .article-picture li {
    cursor: pointer;
    flex-grow: 0;
    flex-shrink: 0;
    height: 400px;
    padding: 0 1px;
    position: relative;
    width: 100%;
    z-index: 9;
}

.article-gallery.showbox .article-picture li { height: 100%; }


.article-gallery .article-picture .nav {
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    width: 10%;
    z-index: 2;
}

.article-gallery .article-picture .nav.prev {
    background-image: url(/img/arrow-left_32.png);
    left: 0;
}

.article-gallery .article-picture .nav.next {
    background-image: url(/img/arrow-right_32.png);
    right: 0;
}

.article-gallery .article-picture picture { padding: 0 10%; }

.article-gallery .article-picture picture img {
    max-height: 100%;
    max-width: 100%;
}

.article-gallery .article-picture .external-player {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 0 10%;
}

.article-gallery .play {
    background: #e11f21;
    border-radius: 50%;
    cursor: pointer;
    height: 100px;
    left: 50%;
    opacity: .7;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(.8);
    transition: opacity .2s, transform .2s;
    width: 100px;
}

.article-gallery .play-small {
    height: 40px;
    width: 40px;
}

.article-gallery .article-picture .external-player:hover .play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.article-gallery .article-picture .external-player .play > svg {
    height: 80%;
    width: 80%;
}

.article-gallery .article-picture .external-player iframe {
    height: 100%;
    width: 100%;
}

.article-gallery .article-carousel {
    margin: auto;
    max-width: 992px;
    overflow: hidden;
}

.article-gallery .article-carousel ul {
    display: flex;
    list-style: none;
    margin: 0px;
    padding: 0px;
}


.article-gallery .article-carousel ul li {
    align-items: center;
    display: flex;
    flex-grow: 0;
    flex-shrink: 0;
    height: 80px;
    justify-content: center;
}

.article-gallery .article-carousel ul li picture {
    align-items: center;
    border-bottom: 2px solid #efefef;
    display: flex;
    height: 100%;
    justify-content: center;
    margin: 2px;
    padding: 2px;
    position: relative;
    transition: border-color 1s ease;
    width: 100%;
}

.article-gallery .article-carousel ul li.selected picture {
    border-bottom-color: #e11f21;
    transition: border-color 0.4s ease;
}

.article-gallery .article-carousel ul li picture img {
    max-height: 100%;
    max-width: 100%;
}