.gallery img {
    cursor: zoom-in;
}

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

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

.lightbox img {
    max-width: min(92vw, 1400px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-btn {
    position: fixed;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-btn:hover,
.lightbox-btn:focus {
    background: #ffffff;
}

.lightbox-close {
    top: 14px;
    right: 14px;
    font-size: 1.7rem;
}

.lightbox-prev {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 640px) {
    .lightbox-btn {
        width: 40px;
        height: 40px;
    }
}
