.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.lightbox.active {
    display: flex;
}

.lightbox.active button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.lightbox.active .lightbox-inner {
    position: relative;
    max-width: 1000px;
    max-height: 90vh;
    width: 100%;
}

.lightbox.active .lightbox-close {
    width: 32px;
    height: 32px;
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(0, 0, 0, 0);
    color: var(--color-background);
}

.lightbox.active .lightbox-img-wrap {
    position: relative;
}

.lightbox.active .lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox.active .lightbox-prev,
.lightbox.active .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: var(--color-background);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox.active .lightbox-prev {
    left: 16px;
}

.lightbox.active .lightbox-next {
    right: 16px;
}

.lightbox.active .lightbox-caption {
    margin-top: 16px;
    text-align: center;
    color: var(--color-background);
}

.lightbox.active .lightbox-caption .h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.lightbox.active .lightbox-caption p {
    color: oklch(0.872 0.01 258.338);
    font-size: 14px;
}
