[class^="archive"] {
    width: 155px;
    height: 275px;
    display: flex;
	flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    color: white;
    padding: 8px;
    font-size: 14px;
    overflow: hidden;
    word-wrap: break-word;
	gap: 10px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[class^="archive"]:hover {
	transform: scale(1.04);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.container {
	display: flex;
	flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

#viewer-overlay {
	display: none;
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #111;
	z-index: 9999;
}
            
#viewer-overlay.active {
    display: block;
}
            
#viewer-viewport {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    scrollbar-width: none;
    cursor: grab;
}
            
#viewer-viewport::-webkit-scrollbar {
	display: none;
}

#viewer-viewport.dragging {
    cursor: grabbing;
}

#viewer-img {
    display: block;
    margin: auto;
	max-width: none;
	flex-shrink: 0;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}
 
#viewer-toolbar {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 10001;
    display: flex;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

#viewer-toolbar button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 4px;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

#viewer-toolbar button#viewer-zoom-reset {
    width: auto;
    padding: 0 12px;
    font-size: 12px;
}

#viewer-toolbar button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

#viewer-toolbar button:not(:disabled):hover {
    background: rgba(40, 40, 40, 0.9);
}

#viewer-caption {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.82);
    color: #fff;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 20px;
    z-index: 10000;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    pointer-events: none;
    max-width: 70vw;
    overflow: hidden;
    text-overflow: ellipsis;
	opacity: 1;
	transition: opacity .4s ease;
}

#viewer-caption.fade-out {
	opacity: 0;
}

#viewer-close {
	width: 36px;
    height: 36px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 10001;
	background: rgba(150, 30, 30, 0.85);
}

#viewer-close:hover {
    background: rgba(190, 40, 40, 0.95);
}
