/* ===== PROJECT GALLERY ===== */

.project-gallery {
    margin-top: 4px;
}

.gallery-grid {

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

/* карточка */

.gallery-item {

    overflow: hidden;
    /* важно */
    display: block;
}

/* изображение */

.gallery-item img {

    width: 100%;
    height: auto;
    display: block;
    transition: transform .8s cubic-bezier(.22, 1, .36, 1);
    cursor: pointer;
}

/* hover */

.gallery-item:hover img {
    transform: scale(1.08);
}

/* контейнер карточки */

.gallery-item {

    height: auto;
    display: block;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.gallery-item img {

    width: 100%;
    height: auto;
    display: block;
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* MOBILE */

@media (max-width:900px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 420px;
    }

}

/* ===== PROJECT HERO ===== */

.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 4px;
    background: #111;
    /* цвет шва */
}

/* LEFT IMAGE */

.project-left {

    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
}

/* RIGHT CONTENT */

.project-content {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px;
}

/* TITLE */

.project-content h1 {

    font-size: 42px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.project-location {

    opacity: 0.6;
    margin-bottom: 20px;
}

.project-content p {

    line-height: 1.6;
    margin-bottom: 30px;
}

/* MOBILE */

@media (max-width:900px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 520px;
    }
}

/* ===== LIGHTBOX ===== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox img {

    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {

    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.gallery-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 80px 0;
}

.gallery-socials a {
    font-size: 26px;
    color: white;
    transition: transform .3s ease, color .3s;
}

.gallery-socials a:hover {
    transform: scale(1.2);
    color: #ccc;
}

.project-nav {

    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity .4s ease,
        transform .4s ease;
}

/* скрытие как раньше */

.project-nav.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%);
}

.project-nav .button {

    width: 140px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-nav.footer-mode {
    bottom: 308px;

}