/*
 * Monkeywood — custom lightbox styles
 */

#mw-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mw-lb[hidden] { display: none; }

.mw-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 15, 8, 0.55);
    cursor: pointer;
}

.mw-lb__box {
    position: relative;
    z-index: 1;
    max-width: 70vw;
    max-height: 80vh;
}

.mw-lb__img {
    display: block;
    max-width: 70vw;
    max-height: 80vh;
    object-fit: contain;
    animation: mw-lb-in 0.25s ease;
}

@keyframes mw-lb-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.mw-lb__caption {
    position: absolute;
    bottom: -28px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(240, 232, 216, 0.65);
    letter-spacing: 0.06em;
    margin: 0;
    font-family: Georgia, serif;
}

.mw-lb__close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #495037;
    border: none;
    color: #c9b97a;
    font-size: 14px;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
    z-index: 2;
}

.mw-lb__close:hover { background: #3a3c2a; }

.mw-lb__prev,
.mw-lb__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #495037;
    border: none;
    color: #c9b97a;
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
    z-index: 2;
}

.mw-lb__prev { left: -56px; }
.mw-lb__next { right: -56px; }

.mw-lb__prev:hover,
.mw-lb__next:hover { background: #3a3c2a; }