/* Based Wall — Public Styles v1.1 */

:root {
    --bw-item-w:   180px;
    --bw-item-h:   130px;
    --bw-gap:      12px;
    --bw-board-bg: #0f0f0f;
    --bw-row-bg:   #191919;
	--bw-divider: #3a3a3a;
	--bw-accent:  #666666;
}

/* ── Board: columns along the x-axis ── */
.bw-wall {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--bw-board-bg);
    border: 3px solid var(--bw-divider);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.75);
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
}

/* ── Column ── */
.bw-row {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    border-right: 3px solid var(--bw-divider);
}

.bw-row:last-child {
    border-right: none;
}

/* ── Category label (top of each column) ── */
.bw-row__label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    min-height: 64px;
    border-bottom: 3px solid var(--bw-divider);
}

.bw-row__label-text {
    writing-mode: horizontal-tb;
    transform: none;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
}

/* ── Items area ── */
.bw-row__items {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    gap: var(--bw-gap);
    padding: var(--bw-gap);
    background: var(--bw-row-bg);
    min-height: 220px;
}

.bw-row--ultra_based .bw-row__items {
    background: #0d111f;
}

.bw-row__empty {
    color: #444;
    font-size: 18px;
    align-self: center;
}

/* ── Individual item ── */
.bw-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.bw-item__img {
    width: var(--bw-item-w);
    height: var(--bw-item-h);
    object-fit: cover;
    display: block;
    border: 2px solid #333;
    border-radius: 2px;
    box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.6);
    cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bw-item__img:hover {
    transform: scale(1.08);
    box-shadow: 6px 10px 28px rgba(0, 0, 0, 0.85);
    border-color: var(--bw-accent);
    position: relative;
    z-index: 20;
}

.bw-item__caption {
    color: #999;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-align: center;
    max-width: var(--bw-item-w);
    line-height: 1.2;
}

/* ── Lightbox ── */
.bw-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.93);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.bw-lightbox.is-open {
    display: flex;
}

.bw-lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--bw-divider);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
}

.bw-lightbox__caption {
    color: #ccc;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 14px;
    text-align: center;
}

.bw-lightbox__close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.15s, color 0.15s;
}

.bw-lightbox__close:hover {
    opacity: 1;
    color: var(--bw-accent);
}

/* ── Responsive: restack to rows on mobile ── */
@media (max-width: 768px) {
    .bw-wall {
        flex-direction: column;
    }

    .bw-row {
        border-right: none;
        border-bottom: 3px solid var(--bw-divider);
    }

    .bw-row:last-child {
        border-bottom: none;
    }

    .bw-row__label-text {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        letter-spacing: 3px;
        font-size: 9px;
    }

    :root {
        --bw-item-w: 110px;
        --bw-item-h:  80px;
    }
}