*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
::-webkit-scrollbar-track {
    background-color: #D7C6C8;
}
::-webkit-scrollbar {
    width: 6px;
    background: #D7C6C8;
}
::-webkit-scrollbar-thumb {
    background: #151624;
}
body{
    background: #D7C6C8;
    color: #151624;
    font-family: 'Open Sans Condensed', sans-serif;
}
body > .container{
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;

    min-height: 100vh;

    padding: 1.2rem;
}
body h1{ font-size: 3rem; margin-bottom: 2rem; }
body h1 span:first-child{ border-bottom: 4px solid #fff; }
body h1 span:last-child{ 
    color: #fff;
    cursor: pointer;
    margin-left: .5rem;
}
.input-group{
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* INPUT GROUP */
.input-group input{
    padding: .7rem 1.2rem;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;

    border: 1px solid #ddd;    
    outline: none;
    color: #666;
    margin-right: -2px;
}
.input-group button{
    padding: .7rem 1.2rem;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;

    border: 1px solid #333;    
    outline: none;
    background: #000;

    font-weight: bold;
    color: #ddd;
    cursor: pointer;

    margin-left: -2px;
}
#error-input{
    color: #900;
    font-weight: bold;
    font-size: 80%;
    margin-left: .6rem;
    
    display: none;
}
/* SAVED PATHS */
#saved-paths{
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}
#saved-paths button{
    border:2px solid #fff;
    background: transparent;
    padding: .4rem 1.2rem;border-radius: 4px;
    background: #fff;
    color: #666;
    cursor: pointer;
    word-break: break-word;
}
/* GALLERY */
#content-gallery{
    margin-top: 2rem;

    column-count: 4;
    column-gap: 10px;    
}
figure{
    position: relative;

    margin: 0;
    display: flex;
    margin-bottom: 10px;
    break-inside: avoid;

    cursor: pointer;
}
.img-thumbnail{
    width: 100%;
    border-radius: 4px;
}
figure span{
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;

    text-align: center;
    background: rgba(21, 22, 36,.4);
    color: #fff;

    opacity: 0;
    transition: .6s;
}
figure:hover span{
    opacity: 1;
}

@media (max-width: 1000px) { #content-gallery{ column-count: 3; } }
@media (max-width: 800px) { #content-gallery{ column-count: 2; } }
@media (max-width: 500px) { #content-gallery{ column-count: 1; } }

figure.expanded{
    position: fixed;
    top: 2rem;
    left: 1.3rem;
    right: 1.3rem;
    max-height: 90vh;

    box-shadow: 0 0 20px rgba(21, 22, 36,.4);    

    z-index: 9999;
}
#cloak{
    background:rgba(21, 22, 36,.9);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
}