main {
display: grid;
grid-template-columns: 150px 1fr;
flex: 1;
min-height: 0;
}

#archive {
min-height: 0;
display: flex;
flex-direction: column;
}

#archive .widget:first-child {
flex: 0 0 auto;
}

#archive .widget:nth-child(2) {
flex: 0 0 auto;
}

#archive .widget:last-child {
flex: 1;

display: flex;
flex-direction: column;

min-height: 0;
}

#archiveList {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 5px 10px; 
overflow-y: auto;
color: var(--yellow);
}

#archiveList .button.active {
color: var(--lime);
}

#archiveList .button.active::before {
content: "> ";
}

#viewer {
display: flex;
flex-direction: column;
min-height: 0;
border-left: 2px solid var(--yellow);
}

.imageContainer {
flex: 1;
overflow: auto;
}

#viewerImage {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
object-fit: contain;
display: block;
}

#viewerHeader {
display: flex;
justify-content: space-between;
align-items: center;
}

.filter {
padding: 5px 10px; 
}

.button{
padding: 2px 0;
font-family: monospace;
font-size: 12px;
font-weight: bold;
color: var(--yellow);
background-color: var(--black);
border: none;
cursor: pointer;
}

.button:hover{
color: var(--lime);
}

.palette {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
