/* Photo Project
   css/PhotoProject.css
*/

body {
    font-family: "Lato", sans-serif;
}

/* ============================= */
/* List Styling */
/* ============================= */

ul, #myUL {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* ============================= */
/* Folder Caret */
/* ============================= */

.caret {
    cursor: pointer;
    user-select: none;
}

.caret::before {
    content: "\25B6";
    color: black;
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

.caret-down::before {
    transform: rotate(90deg);
}

.nested {
    display: none;
}

.nested.active {
    display: block;
}

/* ============================= */
/* Sidebar */
/* ============================= */

.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 360px;

    background-color: #f8f9fa;
    border-right: 1px solid #ddd;

    overflow-y: auto;
    padding-top: 20px;
}

.sidenav a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 16px;
    color: #818181;
    display: block;
}

.sidenav a:hover {
    color: black;
    font-weight: 600;
}

/* ============================= */
/* Main Content */
/* ============================= */

.main {
    margin-left: 360px;
    padding: 30px 0;
}

/* ============================= */
/* Image Display */
/* ============================= */

#DisplayedPhoto {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    object-fit: contain;
}

/* ============================= */
/* User Bar */
/* ============================= */

.user-bar {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 999;
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 992px) {
    .sidenav {
        position: relative;
        width: 100%;
        height: auto;
    }

    .main {
        margin-left: 0;
    }
}

/* Sidebar */
.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 100vh;
    overflow-y: auto;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    padding: 20px 10px;
}

/* Main content */
.main {
    margin-left: 360px;
    padding: 30px 20px;
}


#DisplayedPhoto:fullscreen {
    background-color: black;
    object-fit: contain;
    width: 100vw;
    height: 100vh;
}

#DisplayedPhoto:-webkit-full-screen {
    background-color: black;
    object-fit: contain;
    width: 100vw;
    height: 100vh;
}

#DisplayedPhoto {
    transition: opacity 0.25s ease;
}

.photo-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: none;   /* hidden by default */
    z-index: 10;
}

#photoContainer {
    position: relative;
}
