﻿.photo-popup-main {
    height: 500px;
    text-align: center;
    display: flex;
}

#main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#photo-popup-toolbar {
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    padding-top: 60px;
    padding-bottom: 10px;
    height: 125px;
    border-top: 1px solid #999;
    padding-top: 15px;
    padding-left: 10px;
}

.thumbnail {
    height: 120px;
    padding: 0px 3px;
    width: 100%;
    cursor: pointer;
}

#custom-popup-close {
    height: 20px;
    position: absolute;
    top: 5px;
    right: 5px;
}

.photo-info {
    padding-top: 5px;
}

.photo-info-container {
    width: 200px;
    text-align: left;
    margin-top: 5px;
    padding-left: 10px;
    word-break: break-word;
    overflow-y: scroll;
}

.photo-info-container div {
    word-break: break-all;
    padding-right: 8px;
}

.main-image-container {
    width: calc(100% - 200px);
    border-right: 1px solid #999;
    padding: 15px 10px;
}

.photo-info-label {
    font-weight: bold;
    margin: 5px 0px;
}

.thumbnail-container {
    display: inline-block;
    position: relative;
    height: 120px;
    width: 120px;
    margin: 0 3px;
}

.loading-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s infinite linear;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.photo-window-container {
    margin: 5px;
    background-color: #fff;
    border: 1px solid #999;
}

/* Sidebar */

#photos {
    font-size: 10px;
    max-height: 100%;
    /*overflow: hidden;*/
}

    #photos ul {
        padding-left: 5px;
        clear: both
    }

#photos-root li {
    clear: both;
}

#photos-header > h2 {
    font-size: 1.2em;
    font-weight: bold;
    margin: 5px 0 3px;
}

#photos-header .date {
    width: 115px !important;
}

#photos-header .date {
    width: 270px;
    border: 1px solid #aaaaaa;
    padding: 5px 5px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px
}

#photos-filter {
    margin-top: 10px;
}

#photos-toggle {
    display: block;
    margin: 5px;
    text-align: right
}

#photos-header .tagit {
    padding-left: 5px;
    clear: none;
    margin: 5px 0;
}

#photos-filter-container {
    border: 1px solid #aaa;
    margin: 5px 0;
    padding: 5px;
}

    #photos-filter-container h1 {
        font-size: 14px;
        font-weight: bold;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    #photos-filter-container h2 {
        font-size: 12px;
        font-weight: bold;
        margin: 4px 0;
        padding: 0;
    }

#photos-zoomto-all, #photos-refresh {
    width: 100%
}

/* filters-tree */

#photos-filters-tree {
    margin-top: 10px;
    /*max-height: 100%;
    height: 100%;
    overflow: auto;*/
}

#filters-tree-toggle {
    display: none;
}

#photos-filters-tree h2 {
    background: transparent url(../Images/toc/ui-check-box-uncheck.png) no-repeat 0 0;
    padding-left: 17px;
    font-weight: bold;
    font-size: 11px;
    margin: 10px 0 0 10px;
    cursor: pointer;
}

    #photos-filters-tree h2.checked {
        background: transparent url(../Images/toc/ui-check-box.png) no-repeat 0 0;
    }

    #photos-filters-tree h2.disabled {
        background: transparent url(../Images/toc/ui-check-box-disabled.png) no-repeat 0 0;
    }

#photos-filters-tree div.filterstreeheader, #photos-filters-tree div.tiledfilterstreeheader, #photos-filters-tree div.parentheader {
    height: 16px;
    padding-top: 2px;
    background: transparent url(../Images/toc/toggle-small-expand.png) no-repeat scroll 0 0;
}

#photos-filters-tree div.childnode {
    margin-left: 20px;
}

#photos-filters-tree div.parentnode {
    height: 20px;
}

#photos-filters-tree div.tiledfilterstreeheader {
    background: transparent;
}

#photos-filters-tree div.parentheader {
    background: transparent;
}

    #photos-filters-tree div.filterstreeheader:HOVER, #photos-filters-tree div.tiledfilterstreeheader:HOVER, #photos-filters-tree div.parentheader:HOVER {
        background-color: #eee
    }

#photos-filters-tree div.expanded {
    background-image: url(../Images/toc/toggle-small.png);
}

#photos-filters-tree li {
    height: 20px;
    width: 100%;
    display: inline-table;
}

#photos-filters-tree .filterstreedefinition {
    display: none;
}

    #photos-filters-tree .filterstreedefinition img {
        margin-right: 10px;
    }

#photos-filters-tree a.filters-tree-toggle {
    background: transparent url(../Images/toc/toggle-small.png) no-repeat 0 0;
    float: left;
    width: 16px;
    height: 16px;
}

#photos-filters-tree a.filters-tree-expand {
    background: transparent url(../Images/toc/toggle-small-expand.png) no-repeat 0 0;
}

#photos-filters-tree a.filters-tree-checkbox {
    background: transparent url(../Images/toc/ui-check-box-uncheck.png) no-repeat 0 0;
    float: left;
    height: 17px;
    color: Black;
    padding-left: 18px;
    margin-left: 0px;
    padding-top: 0;
    text-decoration: none;
    display: inline-table;
}

#photos-filters-tree a.filters-tree-checkbox-check {
    background: transparent url(../Images/toc/ui-check-box.png) no-repeat 0 0;
}

#photos-filters-tree a.filters-tree-checkbox-disabled {
    background: transparent url(../Images/toc/ui-check-box.png) no-repeat 0 0;
}

#photos-filters-tree span.filters-tree-parent {
    margin: 4px 0;
    display: inline;
}

.photo-period-code {
    width: 30%;
}