.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.show {
    display: flex;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.gallery-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 96vw;
    max-height: 94vh;
}

.gallery-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-figure img {
    width: min(1000px, 90vw);
    height: min(660px, 78vh);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    background: #10151c;
}

.gallery-figure figcaption {
    text-align: center;
    margin-top: 18px;
    color: #fff;
}

.gallery-figure figcaption::before {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, var(--color1), #5b9cff);
    margin: 0 auto 14px;
    border-radius: 1px;
}

.gallery-figure figcaption h3 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.gallery-figure figcaption p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 1px;
}

.gallery-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.gallery-close:hover {
    background: var(--color1);
}

.gallery-nav {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.gallery-nav:hover {
    background: var(--color1);
}
