#gallery-list {
    text-align: center;
}

#gallery-list .row {
    margin-right: 0;
}

.gallery-item {
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-bottom: 15px;
    margin-left: 15px;
    display: inline-block;
    overflow: hidden;
}

.gallery-item .image {
    /*position: absolute;*/
}
.gallery-item .image iframe{
    margin-bottom: -5px;
    max-width: 100%;
    max-height: calc((100vw - 40px) / (16/9));
}
.gallery-item .name {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    text-align: center;

}
.gallery-item .name h3 {
    margin: 0;
    background: rgba(0,0,0,0.3);
    text-shadow: 5px 2px 4px black;
}
.gallery-item .name h3 a{
    color: #ddd;
}
.gallery-item .tags {
    color: #ddd;
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(0,0,0,0.5);
    text-align: center;
    text-shadow: 5px 2px 4px black;
}

.gallery-item .tags span {
    padding-left: 5px;
    padding-right: 5px;
}
.gallery-item .tags span a {
    color : #ddd;
}

.gallery-item .actions button.btnFullscreen {
     color : #ccc;
     position: absolute;
     right: 0;
     bottom: 0;
     background: rgba(0,0,0,0.5);
 }

.gallery-item .actions button.btnDetail {
    color : #ddd;
    position: absolute;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}
.gallery-item .actions button.btnDescription {
    color : #ddd;
    position: absolute;
    margin-left: -20px;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.gallery-item .actions a span {
    color : #ddd;
    font-size: 26px;
    padding-top: 3px;
}

.panel-control .nav {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    text-align: center;
    display: inline-table;
    width: 50px;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color : #ddd;
    top : 0;
}

.panel-control .left {
    left : 0;
}

.panel-control .right {
    right: 0;
}

.panel-control .nav div {
    display: table-cell;
    vertical-align: middle;
    font-size: 100px;
    cursor: pointer;
}

.panel-control .number {
    position: absolute;
    z-index: 10;
    height: 50px;
    width : 100%;
    top : 0;
    color : #ddd;
    text-align: center;
    font-size: xx-large;
    text-shadow: 3px 2px 4px black;
}
.panel-control div.tags {
    position: absolute;
    z-index: 10;
    height: auto;
    width : 100%;
    top : 50px;
    color : #ddd;
    text-align: center;
    font-size: large;
    text-shadow: 3px 2px 4px black;
}
.panel-control div.info {
    position: absolute;
    z-index: 11;
    height: auto;
    width : 100%;
    bottom : 70px;
    color : #ddd;
    text-align: center;
    font-size: large;
    text-shadow: 3px 2px 4px black;
}
.panel-control div.info span {
    border-radius: 6px;
    padding: 5px;
    background: rgba(0,0,0,0.5);
    border-color: #ddd;
    border-style: solid;
    border-width: 1px;
}
.panel-control div.info.noshow {
    display: none !important;
}
.panel-control div.info.none {
    display: none !important;
}
.panel-control .actions {
    position: absolute;
    z-index: 10;
    height: 60px;
    left: 50%;
    bottom: 0;
    text-align: center;
    transform: translate(-50%);
}

.panel-control .actions span {
    height : 50px;
    background-color: gray;
    color : #ddd;
    font-size: 26px;
    vertical-align: middle;
    cursor: pointer;
}

.panel-control .display,.panel-control .video {
    top : 0;
    bottom: 60px;
    left: 50px;
    right: 50px;
    position: absolute;
}

.panel-control .display,.panel-control .pano-360 {
    top : 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
}
.panel-control .actions .zoom,.panel-control .actions .exit {
    width : 50px;
}

.panel-control .actions .comment {
    width : 50px;
}

.gallery-full {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}
.gallery-full .img-block {
    height: 100%;
    width: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
}

.gallery-full .img-block.full-zoom {
    background-size: contain;
}

.ghost {
    opacity: 0;
}

.panel-control .actions button {
    color : #ddd;
    background: rgba(0,0,0,0.5);
}


@media (min-width: 768px) {
    .gallery-item {
        padding: 10px;
    }
    .gallery-item .actions button.btnDetail {
        left: 10px;
        bottom: 10px;
    }
    .gallery-item .actions button.btnFullscreen {
        right: 10px;
        bottom: 10px;
    }
    .gallery-item .tags {
        /*margin: 10px;*/
    }
    .gallery-item .actions button.btnDescription {
        bottom: 10px;
    }
}

.second {
    padding-bottom: 15px;
    margin-top: -19px;
}

.image .description {
    display: none;
}

.gallery-lazy-image .actions {
    display: none;
}

.gallery-lazy-image .tags {
    display: none;
}

#gallery-list .video-responsive {
    display: block;
    width: auto;
    max-height: 100%;
}

video::-webkit-media-controls-fullscreen-button {
    display: none;
}

#galleryModalTitle, #qalleryModal .modal-body {
    color : #333;
}

.gallery-item.size-m .video-responsive, .gallery-item.size-m .img-responsive  {
    max-height: 510px !important;
}

.gallery-item.size-s .video-responsive, .gallery-item.size-s .img-responsive  {
    max-height: 332px !important;
}