#input-container {
    height: 100%;
    width: fit-content;
}

#gallery-container {
    display: flex;
    flex-flow: column;
    height: 100%;
}

#hierarchy-container {
    height: 100%;
    background-color: var(--color3);
    overflow-x: hidden;
}

#gallery-header {
    display: flex;
    flex-flow: row-reverse nowrap;
    background-color: var(--color1);
    min-width: fit-content;
}

.buttons-container {
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    justify-content: center;
}

#gallery-header .header-btn {
    width: 66px;
}

#buttons-container2 .header-btn {
    width: 60px !important;
}

#gallery-header .menu-divider-v {
    border-color: var(--color5);
}

#gallery-container .grid-view {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

#gallery-container .grid-view .metric-container {
    font-size: 0.9rem;
    /*width: 50px;*/
    width: 100%;
    text-align: center;
}


#gallery-container .grid-view .gallery-item {
    padding: 0;
}

#gallery-container .grid-view .gallery-row {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 5px;
}

#gallery-container .grid-view .gallery-name {
    display: none;
}

#gallery-container .grid-view .gallery-img {
    padding: 5px;
    margin: 0;
}

#gallery-container .gallery-date {
    display: none;
}

#gallery-container .grid-view .gallery-item.selected .gallery-img {
    background-color: var(--color-pink) !important;
}

#gallery-container .grid-view:not(:has(.gallery-folder)) .gallery-icon,
#gallery-container .grid-view:not(:has(.gallery-folder)) .gallery-checkmark-empty,
#gallery-container .grid-view:not(:has(.gallery-folder)) .gallery-checkmark-full {
    position: absolute;
    top: 5px;
    left: 0px;
}

#gallery-container .tags-container {
    display: none;
    flex-flow: row wrap;
    align-self: center;
    user-select: none;
    pointer-events: none;
    width: fit-content;
    justify-content: center;
    align-content: center;
    gap: 3px;
}

#gallery-container .grid-view .tags-container {
    position: absolute;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    bottom: 5px;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    align-content: center;
    max-height: 70%;
    padding: 5px 7px;
    justify-items: center;
}

#gallery-container .list-view #loader-img {
    width: auto;
    height: 100%;
    right: 10px;
}

#gallery-container .list-view .tags-container {
    display: none;
    flex-flow: row wrap;
    justify-content: start;
    padding: 0px 10px;
    width: 100%;
    margin-top: 7px;
}

#gallery-container .list-view .gallery-item:hover .tags-container, #gallery-container .view-metrics .gallery-view.list-view .tags-container {
    display: flex;
}

#gallery-container .grid-view .gallery-item:hover .tags-container, #gallery-container .view-metrics .gallery-view.grid-view .tags-container {
    display: grid;
}

#gallery-container .metric-container {
    padding: 2px 10px;
    line-height: 1;
}

#cum-container {
    display: flex;
    flex-flow: row wrap;
    gap: 5px;
    justify-content: center;
    justify-items: center;
    padding: 5px 10px;
    background-color: var(--color3);
    width: 100%;
    border-bottom: 1px solid var(--color5);
}

#cum-container .metric-container {
    /*width: 100%;*/
    text-align: center;
}
