﻿.uiGalleryMainImage {
    background: #282828;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 96px - 160px);
    max-height: 500px;
    overflow: hidden;
}
.uiGalleryMainImage img {
    display: block;
    border-radius: 3px;
    object-fit: cover;
    max-width: 100%;
}
.uiGalleryMainImage video,
.uiGalleryMainImage iframe {
    width: 100%;
    height: 100%;
    border-radius: 3px;
}
.uiGalleryMainImage img,
.uiGalleryMainImage video,
.uiGalleryMainImage iframe {
    animation: slideInRight 300ms;
}
.uiGalleryMainImage.backward img,
.uiGalleryMainImage.backward video,
.uiGalleryMainImage.backward iframe {
    animation: slideInLeft 300ms;
}
.uiGalleryThumbsNav {
        margin-top: 4px;
        background: #efefef;
        border-radius: 3px;
        padding: 3px;
        width: 100%;
    }
.uiGalleryThumbsNav ul li a {
    width: 150px;
    height: 90px;
    display: block;
    background: #282828;
    border-radius: 3px;
    position: relative;
}
.uiGalleryThumbsNav .playIcon {
    background: red;
    height: 24px;
    width: 24px;
    border-radius: 3px;
    position: absolute;
    right: 6px;
    bottom: 6px;
    box-shadow: rgba(0, 0, 0, 0.4) 0 2px 4px, rgba(0, 0, 0, 0.3) 0 7px 13px -3px, rgba(0, 0, 0, 0.2) 0 -3px 0 inset;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.uiGalleryThumbsNav ul li a:hover .playIcon {
    animation: tada 500ms infinite;
}
.uiGalleryThumbsNav ul li a video,
.uiGalleryThumbsNav ul li a img {
    border-radius: 3px;
    display: block;
    object-fit: cover;
    max-width: 150px;
    max-height: 90px;
    min-width: 150px;
    min-height: 90px;
}
.uiGalleryThumbsNav ul li a video {
    object-fit: contain;
}
.uiGalleryThumbsNav ul li a.selected video,
.uiGalleryThumbsNav ul li a.selected img {
    border: 2px solid #dc0d8a;
    box-sizing: border-box;
}
.uiGalleryThumbsNav ul li {
    margin-right: 5px !important;
}
.uiGalleryThumbsNav ul li:last-child {
    margin-right: 0 !important;
}
.uiGalleryThumbsNav .uiHorizontalScroller .scrollRight,
.uiGalleryThumbsNav .uiHorizontalScroller .scrollLeft {
    top: 42px;
}
#UIGalleryPreviewOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}
#UIGalleryPreviewOverlay:hover {
    cursor: pointer;
}
#UIGalleryPreviewOverlay img {
    box-shadow: rgba(0, 0, 0, 0.56) 0 22px 70px 4px;
    max-height: 90%;
    max-width: 90%;
    border: 8px solid #000;
    background: #000;
}