﻿.full-image {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}

.full-image figure {
/*    display: inline;*/
    margin: 0;
/*    height: 100%;*/
}

    .full-image .modal-image, .full-image .modal-video {
        display: inline-block;
        width: auto;
        height: auto;
        max-height: 95vh;
        max-width: 95vw;
        vertical-align: middle;
        -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
        -moz-box-shadow: 0 0 8px rgba(0, 0, 0, .6);
        box-shadow: 0 0 8px rgba(0, 0, 0, .6);
    }

.modal-video.video-placeholder {
    width: 85%;
    height: 85%;
    overflow: visible;
}

#previewModal .modal-dialog {
    max-width: 100% !important;
}

#previewModal .modal-content {
    background-color: transparent;
    display: block;
    pointer-events: none;
    border: none;
    width: auto;
}

#previewModal .modal {
    padding-left: 0 !important;
}

    #previewModal .img-container > * {
        pointer-events: all;
    }

.left-panel {
    position: absolute;
    background-color: white;
    width: 400px;
    height: 95vh;
    float: left;
}

.left-panel-bg {
    position: fixed;
    background-color: white;
    width: 400px;
    height: 100%;
    float: left;
}

.left-panel-helper {
    float: left;
    height: 100%;
    width: 400px;
    margin-right: 17px;
}

.img-container {
    position: relative;
}

    .img-container > .inline-img {
        display: inline;
    }

.modal-image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
}

.modal-navbtn {
    position: absolute;
    border: none;
    height: 100%;
    width: 20%;
    top: 0; /* was 40% */
}

.modal-navbtn:focus {
    outline: 0;
}

.modal-navbtn-prev {
    left: 0;
    background: url(../lib/finaltilesgallery/img/prev.png) left 50% no-repeat;
}

.modal-navbtn-next {
    right: 0;
    background: url(../lib/finaltilesgallery/img/next.png) right 50% no-repeat;
}

.modal-btn-close {
    position: absolute;
    width: 60px;
    height: 60px;
    border: none;
    z-index: 10;
    background: url(../lib/finaltilesgallery/img/close.png) center no-repeat;
}

.modal-info {
    width: 400px;
    height: 100%;
    border-right: 1px solid #dee2e6;
}

.modal-meta {
    margin: 15px; /* was 10px */
}

.modal-info-item {
    margin-top: 10px;
    display: table;
}

.modal-info-item > a {
    text-align: justify;
    word-break: break-all;
}

.modal-info-item h6 {
    white-space: nowrap;
    padding-right: 10px;
}

.modal-info-item > div, .modal-info-item > a {
    display: table-cell;
}

.modal-info-item {
    overflow: hidden;
    display: block;
}

.preview-footer {
    bottom: 0;
    display: block;
}

.h6, h6 {
    font-size: 1.4rem;
    font-family: 'Roboto Regular', sans-serif;
    display: table-caption;
    margin: inherit;
}

.modal-buttons {
    margin: 10px;
}

.sharethis-inline-share-buttons {
    margin: 10%
}

.modal-image-number {
    text-align: center;
    font-weight: bolder;
    padding-bottom: 10px;
}

@media (max-width: 750px) {
    .full-image {
        overflow: auto;
      
        max-width: 100vw;
    }

    .bottom-panel {
        max-width: 750px;
        pointer-events: none !important;
    }

    .modal-navbtn-prev {
        left: 0 !important;
    }
    modal-image
    .modal-navbtn-next {
        right: 0 !important;
    }

    .left-panel,
    .left-panel-helper,
    .left-panel-bg {
        width: 0;
        height: 0;
    }

    .modal-info {
        border: none;
        max-width: 400px;
        width: auto;
        margin: 20px auto;
        display: block;
        background-color: white;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, 0.2);
        border-radius: 0.3rem;
        outline: 0;
        pointer-events: all !important;
        /* overflow: auto;
        max-height: 350px; */
        text-align: left;
        text-align: -webkit-left;
    }

    #previewModal {
        padding-right: 0 !important;
    }
}

.modal-backdrop.show {
    opacity: 0.75 !important;
}

.bag-item {
    box-sizing: border-box;
    white-space: nowrap;
    border-radius: 0em;
    padding: 0.12em 0.4em 0.14em;
    margin: 0 0.5em 0 0;
    text-align: center;
    color: #ffffff;
    font-size: 1em;
    font-weight: 500;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
    position: relative;
    top: -0.15em;
    background-color: #999999;
}

.bag-item.color-blue { background-color: #1D3557; }
 
 
.modal-open .modal {
    overflow-x: hidden; /* was hidden */
    /* overflow-y: hidden;  was auto */
}

.modal-footer {
    margin-left: 15px;
    margin-right: 15px;
}

#downloadModal .modal-footer {
    height: auto;
}

.modal-download-img{
        max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
}
.modal-download-img-container {
    min-width: 150px;
    max-width: 150px;
    min-height: 100px;
    max-height: 100px;
    overflow: hidden;
}

.bag-item.color-blue {
    background-color: #6f9ad1;
}

    .bag-item.color-red { background-color: #d37c7c; }

    .bag-item.color-green { background-color: #9bc268; }

    .bag-item.color-orange { background-color: #dea154; }

    .bag-item.color-yellow { background-color: #e9d641; }

    .bag-item.color-purple { background-color: #9f83d1; }

    .bag-item > a { 
        color: white; 
        text-decoration: none;
        }

@supports (-webkit-overflow-scrolling: touch) {
    .modal-open {
        position: fixed;
        bottom: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        padding: 0;
    }

        .modal-open .modal-dialog {
            position: fixed;
            height: 100%;
            pointer-events: all;
            width: calc(100vw - 14px);
        }

    .full-image {
        max-height: 100vh;
        height: 100vh;
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll;
        z-index: 5000;
    }
}

