.project-description {
    max-width: 1000px;
    margin: 0 auto 65px;
}

.project-description .button {
    margin: 12px 12px 0 0;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: start;
}

.gallery figure {
    margin: 0;
}

.gallery-open {
    display: block;
    border: 0;
    background: var(--paper);
    border-radius: 22px;
    overflow: hidden;
    padding: 0;
    width: 100%;
    cursor: zoom-in;
}

.gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery figcaption {
    font-size: 13px;
    color: var(--muted);
    padding: 12px 0;
}

.lightbox {
    width: 96vw;
    height: 94vh;
    max-width: none;
    max-height: none;
    border: 0;
    padding: 40px 70px 60px;
    background: transparent;
    overflow: hidden;
    color: white;
}

.lightbox::backdrop {
    background: #101315ed;
}

.lightbox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    background: white;
    color: var(--ink);
    border: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 25px;
}

.lightbox-close {
    right: 10px;
    top: 0;
}

.lightbox-prev {
    left: 5px;
    top: 48%;
}

.lightbox-next {
    right: 5px;
    top: 48%;
}

.lightbox-count {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 15px;
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .lightbox {
        padding-inline: 0;
        padding-bottom: 80px;
    }

    .lightbox-prev, .lightbox-next {
        top: auto;
        bottom: 15px;
    }


}

.lightbox-count {
    pointer-events: none;
}

.lightbox button {
    z-index: 2;
}




.gallery-open {
    aspect-ratio: 4 / 3;
}

.lightbox button {
    position: absolute;
    padding: 0;
    display: grid;
    place-items: center;
}

.lightbox button::before,
.lightbox-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.lightbox-close::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.lightbox-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-prev::after,
.lightbox-next::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(-5%, -50%) rotate(45deg);
}

.lightbox-prev::after {
    transform: translate(-95%, -50%) rotate(-135deg);
}
