/* ========================================
   PAGE
======================================== */

.project-page {
    width: 100%;

    padding: 34px 40px 100px;
}


/* ========================================
   HERO
======================================== */

.project-hero {
    width: 100%;
    max-width: 1480px;

    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 0.7fr)
        minmax(380px, 0.7fr);

    gap: 64px;

    align-items: start;
}


/* ========================================
   SHOWCASE / GALLERY
======================================== */

.project-showcase {
    position: relative;

    min-width: 0;
}


/* ========================================
   SWIPE TRACK
======================================== */

.project-gallery-slider {
    width: 100%;

    display: flex;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    border-radius: 18px;

    background: #f2f2f2;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}

.project-gallery-slider::-webkit-scrollbar {
    display: none;
}


/* ========================================
   SLIDES
======================================== */

.project-gallery-slide {
    position: relative;

    width: 100%;
    min-width: 100%;

    margin: 0;

    flex: 0 0 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    scroll-snap-align: start;
    scroll-snap-stop: always;

    background: #f1f1f1;
}

.project-gallery-slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    user-select: none;

    -webkit-user-drag: none;
}


/* ========================================
   GALLERY CONTROLS
======================================== */

.project-gallery-controls {
    position: absolute;

    right: 18px;
    bottom: 18px;
    left: 18px;

    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    pointer-events: none;
}


/* ========================================
   ARROWS
======================================== */

.project-gallery-arrows {
    display: flex;
    align-items: center;

    gap: 8px;

    pointer-events: auto;
}

.project-gallery-button {
    width: 44px;
    height: 44px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #111;

    font-size: 18px;
    font-weight: 400;

    cursor: pointer;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        opacity 180ms ease;
}

.project-gallery-button:hover {
    background: #fff;

    transform: scale(1.04);
}

.project-gallery-button:active {
    transform: scale(0.94);
}


/* ========================================
   IMAGE COUNTER
======================================== */

.project-gallery-counter {
    min-width: 62px;
    height: 38px;

    padding: 0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;

    background: rgba(255, 255, 255, 0.88);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #222;

    font-size: 12px;
    font-weight: 500;

    pointer-events: auto;
}


/* ========================================
   RIGHT CONTENT
======================================== */

.project-content {
    min-width: 0;
}

.project-content__inner {
    position: sticky;
    top: 110px;

    padding: 20px 0 10px;
}


/* ========================================
   PROJECT USER
======================================== */

.project-user {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 34px;
}

.project-user img {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: block;

    object-fit: cover;

    border-radius: 50%;

    background: #f2f2f2;
}

.project-user__info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.project-user__info span {
    color: #999;

    font-size: 11px;
    font-weight: 500;

    line-height: 1.2;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.project-user__info strong {
    overflow: hidden;

    color: #171717;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ========================================
   TITLE
======================================== */

.project-content h1 {
    margin: 0;

    color: #111;

    font-size: clamp(42px, 4.2vw, 68px);
    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.045em;

    text-wrap: balance;
}


/* ========================================
   DESCRIPTION
======================================== */

.project-description {
    max-width: 560px;

    margin: 30px 0 0;

    color: #676767;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.75;

    letter-spacing: -0.01em;
}


/* ========================================
   DETAILS
======================================== */

.project-details {
    margin-top: 46px;

    padding: 8px 22px;

    background: #f5f5f3;

    border-radius: 18px;
}

.project-details__item {
    min-height: 62px;

    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: center;

    gap: 18px;

    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.project-details__item:last-child {
    border-bottom: 0;
}

.project-details__item span {
    color: #999;

    font-size: 10px;
    font-weight: 600;

    line-height: 1.2;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.project-details__item strong {
    min-width: 0;

    color: #171717;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.45;
}


/* ========================================
   OTHER PROJECTS
======================================== */

.other-projects {
    width: 100%;
    max-width: 1480px;

    margin: 130px auto 0;
}

.other-projects h2 {
    margin: 0 0 30px;

    color: #111;

    font-size: 34px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.035em;
}


/* ========================================
   OTHER PROJECTS GRID
======================================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 40px 20px;
}

.project-card {
    min-width: 0;

    display: block;

    color: inherit;

    text-decoration: none;
}

.project-card-image {
    position: relative;

    width: 100%;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    border-radius: 18px;

    background: #f2f2f2;
}

.project-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card-image img {
    transform: scale(1.035);
}

.project-card-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #999;

    font-size: 13px;
}

.project-card h3 {
    margin: 14px 2px 0;

    color: #171717;

    font-size: 15px;
    font-weight: 500;

    line-height: 1.4;

    letter-spacing: -0.015em;

    transition: opacity 160ms ease;
}

.project-card:hover h3 {
    opacity: 0.55;
}


/* ========================================
   SMALL DESKTOP / TABLET
======================================== */

@media (max-width: 1100px) {

    .project-page {
        padding:
            28px
            24px
            80px;
    }

    .project-hero {
        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(330px, 0.9fr);

        gap: 38px;
    }

    .project-content h1 {
        font-size: clamp(38px, 4.5vw, 54px);
    }

    .project-description {
        font-size: 15px;
    }

    .project-details {
        margin-top: 36px;
    }

}


/* ========================================
   TABLET / MOBILE LAYOUT
======================================== */

@media (max-width: 820px) {

    .project-page {
        padding:
            18px
            16px
            70px;
    }

    .project-hero {
        display: block;
    }

    .project-gallery-slide {
        aspect-ratio: 4 / 5;
    }

    .project-content {
        margin-top: 42px;
    }

    .project-content__inner {
        position: static;

        padding: 0 6px;
    }

    .project-content h1 {
        font-size: clamp(38px, 9vw, 58px);

        line-height: 1;
    }

    .project-description {
        max-width: 620px;

        margin-top: 24px;

        font-size: 16px;
    }

    .project-details {
        margin-top: 38px;
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 30px 12px;
    }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 560px) {

    .project-page {
        padding:
            12px
            12px
            58px;
    }

    .project-gallery-slider {
        border-radius: 18px;
    }

    .project-gallery-slide {
        aspect-ratio: 4 / 5;
    }

    .project-gallery-controls {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .project-gallery-button {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }

    .project-gallery-counter {
        height: 36px;

        padding: 0 12px;
    }

    .project-content {
        margin-top: 36px;
    }

    .project-content__inner {
        padding: 0 4px;
    }

    .project-user {
        margin-bottom: 26px;
    }

    .project-user img {
        width: 42px;
        height: 42px;
    }

    .project-content h1 {
        font-size: clamp(36px, 11vw, 48px);
    }

    .project-description {
        margin-top: 22px;

        font-size: 15px;

        line-height: 1.7;
    }

    .project-details {
        margin-top: 34px;

        padding: 6px 18px;

        border-radius: 18px;
    }

    .project-details__item {
        min-height: 60px;

        grid-template-columns: 90px minmax(0, 1fr);

        gap: 12px;
    }

    .project-details__item strong {
        font-size: 13px;
    }

    .other-projects {
        margin-top: 82px;
    }

    .other-projects h2 {
        margin-bottom: 24px;

        font-size: 29px;
    }

    .project-card-image {
        aspect-ratio: 4 / 5;

        border-radius: 18px;
    }

    .project-card h3 {
        margin-top: 10px;

        font-size: 13px;
    }

}
