/* =========================================================
   WHOLE IN ONE — PROJECT VIEWER
   Change visual styling here.
   Project text/images are NOT stored in this file.
   ========================================================= */

body {
    margin: 0;
}

.project-viewer {
    min-height: 100vh;
    padding: 34px 4vw 0;
    background: #f4f5f6;
    color: #102f5c;
}

.project-viewer__back {
    display: inline-block;
    margin-bottom: 20px;
    color: #111;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.project-viewer__panel {
    max-width: 1420px;
    margin: 0 auto;
    padding: 34px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .12);
}

.project-viewer__main {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(290px, .8fr);
    gap: 38px;
}


/* MAIN IMAGE
---------------------------------------------------------- */

.project-stage {
    position: relative;
    min-width: 0;
}

.project-stage figure {
    display: grid;
    place-items: center;
    height: min(64vh, 690px);
    margin: 0;
    overflow: hidden;
    background: #f4f4f2;
}

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

.project-stage__arrow {
    position: absolute;
    top: 48%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: #123;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
    font-size: 28px;
    text-decoration: none;
}

.project-stage__arrow--left {
    left: 14px;
}

.project-stage__arrow--right {
    right: 14px;
}

.project-stage__count {
    position: absolute;
    left: 13px;
    bottom: 13px;
    padding: 7px 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 11px;
}


/* PROJECT TEXT
---------------------------------------------------------- */

.project-info {
    padding: 8px 4px;
}

.project-info__number {
    margin: 0;
    color: #77879a;
    font-size: 12px;
}

.project-info h1 {
    margin: 20px 0;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.02;
}

.project-info__service {
    font-size: 14px;
    font-weight: 700;
}

.project-info__service span {
    float: right;
    color: #777;
}

.project-info__description {
    margin: 30px 0;
    color: #607086;
    font-size: 14px;
    line-height: 1.65;
}

.project-info h4 {
    margin-top: 28px;
    font-size: 12px;
    letter-spacing: .06em;
}

.project-info ul {
    padding-left: 19px;
    color: #607086;
    font-size: 13px;
    line-height: 1.7;
}

.project-info__website {
    display: inline-block;
    margin-top: 20px;
    color: #0788e8;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}


/* ADDITIONAL IMAGES — 70% WIDTH
---------------------------------------------------------- */

.project-gallery {
    width: 70%;
    margin: 32px auto 0;
}

.project-gallery img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    background: #f4f4f2;
}


/* PROJECT THUMBNAIL FILMSTRIP
---------------------------------------------------------- */

.project-strip {
    margin: 32px -4vw 0;
    padding: 18px 4vw;
    background: #222831;
}

.project-strip__inner {
    display: flex;
    gap: 10px;
    max-width: 1500px;
    margin: auto;
    padding-bottom: 5px;
    overflow-x: auto;
}

.project-thumb {
    flex: 0 0 110px;
    color: #fff;
    font-size: 9px;
    text-decoration: none;
    opacity: .68;
}

.project-thumb.active {
    opacity: 1;
}

.project-thumb img {
    display: block;
    width: 110px;
    height: 68px;
    object-fit: contain;
    background: #fff;
    border: 2px solid transparent;
}

.project-thumb.active img {
    border-color: #149cff;
}

.project-thumb span {
    display: block;
    margin-top: 5px;
    line-height: 1.3;
}


/* MOBILE
---------------------------------------------------------- */

@media (max-width: 850px) {

    .project-viewer {
        padding: 18px 3vw 0;
    }

    .project-viewer__panel {
        padding: 18px;
    }

    .project-viewer__main {
        grid-template-columns: 1fr;
    }

    .project-stage figure {
        height: 52vh;
    }

    .project-stage__arrow {
        width: 42px;
        height: 42px;
    }

    .project-gallery {
        width: 100%;
    }

    .project-strip {
        margin-left: -3vw;
        margin-right: -3vw;
    }
}
