/* Expandable Folder — v1.0 */

.exf-wrap {
    display: flex !important;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
}

.exf-wrap.exf-empty {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 10px;
    color: #888;
    min-height: 140px;
    line-height: 1.5;
}

.exf-panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    min-width: 0;
    transition: flex var(--exf-speed, 480ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.exf-panel.exf-active {
    flex: var(--exf-ratio, 4);
}

.exf-panel img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center;
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    transform: scale(1.04);
    transition: transform var(--exf-speed, 480ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.exf-panel.exf-active img {
    transform: scale(1);
}

.exf-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: #000;
    opacity: var(--exf-overlay, 0.5);
    pointer-events: none;
    transition: opacity var(--exf-speed, 480ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.exf-panel.exf-active .exf-overlay {
    opacity: 0;
}

.exf-label-wrap {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 14px 14px 16px !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.exf-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 99px;
    padding: 4px 12px;
    white-space: nowrap;
    transition:
        transform var(--exf-speed, 480ms) cubic-bezier(0.4, 0, 0.2, 1),
        padding var(--exf-speed, 480ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.exf-panel:not(.exf-active) .exf-tag {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 12px 4px;
}

.exf-panel:focus-visible {
    outline: 2px solid rgba(255,255,255,0.7);
    outline-offset: -2px;
}

@media (max-width: 480px) {
    .exf-label-wrap { padding: 10px 10px 12px !important; }
    .exf-tag { font-size: 9px; padding: 3px 9px; }
    .exf-panel:not(.exf-active) .exf-tag { padding: 9px 3px; }
}
