/* =========================================================
   LOON TECHNOLOGIES
   WEBSITE DEVELOPMENT PORTFOLIO
   PORTFOLIO.CSS
========================================================= */


/* =========================================================
   PORTFOLIO PAGE BASE
========================================================= */

body.portfolio-page {
    overflow-x: hidden;
    overflow-y: auto;
}


/* =========================================================
   MAIN PORTFOLIO WRAPPER
========================================================= */

.portfolio-page-main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 90px;
}


/* =========================================================
   PORTFOLIO INTRO / HERO
========================================================= */

.portfolio-intro {
    position: relative;
    width: 100%;
    min-height: 720px;

    display: flex;
    align-items: center;

    padding:
        120px
        8vw
        100px;

    overflow: hidden;

    border-bottom:
        1px solid
        rgba(255,255,255,0.14);
}


/* INTRO NUMBER */

.intro-index {
    position: absolute;

    top: 125px;
    left: 8vw;

    color: #3d3d3d;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 4px;
}


/* INTRO CONTENT */

.intro-content {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 1000px;

    margin-top: 40px;
}


/* SMALL LABEL */

.intro-label {
    margin-bottom: 30px;

    color: #666666;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 5px;

    text-transform: uppercase;
}


/* MAIN HEADING */

.intro-content h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            70px,
            10vw,
            150px
        );

    line-height: 0.82;

    font-weight: 800;

    letter-spacing: -9px;
}


/* OUTLINE WORD */

.intro-content h1 span {
    display: block;

    color: transparent;

    -webkit-text-stroke:
        1px
        rgba(255,255,255,0.9);

    text-stroke:
        1px
        rgba(255,255,255,0.9);
}


/* INTRO DESCRIPTION */

.intro-content p {
    max-width: 520px;

    margin-top: 45px;

    color: #666666;

    font-size: 14px;
    line-height: 1.9;
}


/* INTRO BOTTOM */

.intro-bottom {
    position: absolute;

    left: 8vw;
    right: 4vw;
    bottom: 45px;

    display: flex;
    align-items: center;

    gap: 20px;

    color: #4d4d4d;

    font-size: 8px;
    font-weight: 500;

    letter-spacing: 3px;
}


/* INTRO LINE */

.intro-line {
    width: 120px;
    height: 1px;

    background:
        rgba(255,255,255,0.18);
}


/* =========================================================
   PORTFOLIO LIST
========================================================= */

.portfolio-list {
    position: relative;
    width: 100%;
}


/* =========================================================
   PROJECT
========================================================= */

.portfolio-project,
.portfolio-project.reverse {

    position: relative;

    width: 100% !important;

    min-height: 850px;

    display: grid !important;

    /*
       IMAGE = 72%
       CONTENT = 28%
    */
    grid-template-columns:
        72%
        28% !important;

    align-items: center;

    padding:
        100px
        4vw
        100px
        6vw;

    border-bottom:
        1px solid
        rgba(255,255,255,0.13);

    overflow: hidden;

    transform: none !important;
}


/* =========================================================
   PROJECT INFO
========================================================= */

.project-info-new,
.portfolio-project.reverse .project-info-new {

    position: relative;

    z-index: 10;

    grid-column: 2 !important;
    grid-row: 1 !important;

    padding-left: 45px !important;
    padding-right: 0 !important;

    margin: 0 !important;

    width: 100%;
}


/* =========================================================
   PROJECT NUMBER
========================================================= */

.project-number-new {

    margin-bottom: 18px;

    color: #4b4b4b;

    font-size: 8px;
    font-weight: 500;

    letter-spacing: 4px;
}


/* =========================================================
   PROJECT TYPE
========================================================= */

.project-type {

    margin-bottom: 24px;

    color: #555555;

    font-size: 8px;
    font-weight: 500;

    letter-spacing: 3px;
}


/* =========================================================
   PROJECT TITLE
========================================================= */

.project-info-new h2 {

    margin: 0;

    color: #ffffff;

    font-size:
        clamp(
            42px,
            4vw,
            68px
        );

    line-height: 0.87;

    font-weight: 800;

    letter-spacing: -5px;

    text-transform: uppercase;
}


/* TITLE OUTLINE */

.project-info-new h2 span {

    display: block;

    color: transparent;

    -webkit-text-stroke:
        1px
        rgba(255,255,255,0.85);

    text-stroke:
        1px
        rgba(255,255,255,0.85);
}


/* =========================================================
   PROJECT DESCRIPTION
========================================================= */

.project-description {

    max-width: 330px;

    margin-top: 32px;

    color: #666666;

    font-size: 12px;

    line-height: 1.8;
}


/* =========================================================
   PROJECT LINK
========================================================= */

.project-link {

    display: inline-flex;

    align-items: center;

    gap: 18px;

    margin-top: 32px;

    padding-bottom: 8px;

    color: #ffffff;

    border-bottom:
        1px solid
        rgba(255,255,255,0.4);

    font-size: 8px;
    font-weight: 500;

    letter-spacing: 2px;

    transition:
        0.4s
        cubic-bezier(0.16,1,0.3,1);
}


/* LINK ARROW */

.project-link span {

    font-size: 15px;

    transition:
        transform
        0.4s
        cubic-bezier(0.16,1,0.3,1);
}


/* LINK HOVER */

.project-link:hover {

    color: #ffffff;

    border-color: #ffffff;

    transform:
        translateX(5px);
}


.project-link:hover span {

    transform:
        translate(
            4px,
            -4px
        );
}


/* =========================================================
   WEBSITE IMAGE CONTAINER
========================================================= */

.portfolio-project .project-visual,
.portfolio-project.reverse .project-visual {

    position: relative;

    z-index: 5;

    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;

    /*
       LARGE IMAGE
    */
    height: 650px !important;

    margin: 0 !important;

    display: block !important;

    overflow: hidden;

    background:
        #050505;

    border:
        1px solid
        rgba(255,255,255,0.20);

    transform: none !important;

    rotate: none !important;

    perspective: none !important;

    transition:
        border-color
        0.5s
        ease;
}


/* =========================================================
   ACTUAL WEBSITE IMAGE
========================================================= */

.portfolio-project .project-visual img {

    position: absolute !important;

    top: 0;
    left: 0;

    width: 100% !important;

    height: 100% !important;

    min-width: 100%;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    /*
       SHOW ACTUAL WEBSITE FRONT
    */
    object-fit: cover !important;

    object-position:
        center top !important;

    /*
       REMOVE OLD DARK PROFILE EFFECT
    */
    filter:
        none !important;

    opacity: 1 !important;

    transform:
        scale(1) !important;

    transition:
        transform
        1s
        cubic-bezier(0.16,1,0.3,1),
        filter
        0.6s
        ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

.portfolio-project .project-visual:hover img {

    transform:
        scale(1.025) !important;

    filter:
        brightness(1.03)
        contrast(1.02) !important;
}


.portfolio-project .project-visual:hover {

    border-color:
        rgba(255,255,255,0.5);
}


/* =========================================================
   WEBSITE PREVIEW LABEL
========================================================= */

.visual-label {

    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 15;

    padding:
        9px
        12px;

    color: #ffffff;

    background:
        rgba(0,0,0,0.65);

    border:
        1px solid
        rgba(255,255,255,0.25);

    backdrop-filter:
        blur(8px);

    font-size: 7px;

    letter-spacing: 2px;

    pointer-events: none;
}


/* =========================================================
   VIEW CIRCLE
========================================================= */

.visual-view {

    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 20;

    transform:
        translate(
            -50%,
            -50%
        );

    opacity: 0;

    pointer-events: none;

    transition:
        opacity
        0.5s
        ease;
}


.visual-view span {

    width: 100px;
    height: 100px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255,255,255,0.65);

    border-radius: 50%;

    background:
        rgba(0,0,0,0.35);

    backdrop-filter:
        blur(8px);

    color: #ffffff;

    font-size: 8px;

    letter-spacing: 2px;
}


.project-visual:hover .visual-view {

    opacity: 1;
}


/* =========================================================
   PROJECT CORNER NUMBER
========================================================= */

.visual-corner {

    position: absolute;

    right: 18px;
    bottom: 18px;

    z-index: 15;

    color: #ffffff;

    font-size: 8px;

    letter-spacing: 2px;

    opacity: 0.65;
}


/* =========================================================
   PROJECT DECORATIVE LINE
========================================================= */

.portfolio-project::before {

    content: "";

    position: absolute;

    left: 6vw;
    right: 4vw;

    top: 50%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.08),
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1401px) {

    .portfolio-project,
    .portfolio-project.reverse {

        min-height: 950px;

        grid-template-columns:
            74%
            26% !important;

        padding-left: 6vw;
        padding-right: 3vw;
    }


    .portfolio-project .project-visual,
    .portfolio-project.reverse .project-visual {

        height: 720px !important;
    }


    .project-info-new {

        padding-left: 50px !important;
    }


    .project-info-new h2 {

        font-size:
            clamp(
                50px,
                3.5vw,
                75px
            );
    }


    .project-description {

        max-width: 360px;

        font-size: 13px;
    }
}


/* =========================================================
   EXTRA LARGE DESKTOP
========================================================= */

@media (min-width: 1920px) {

    .portfolio-project,
    .portfolio-project.reverse {

        min-height: 1050px;

        grid-template-columns:
            76%
            24% !important;

        padding-left: 5vw;
        padding-right: 2.5vw;
    }


    .portfolio-project .project-visual,
    .portfolio-project.reverse .project-visual {

        height: 800px !important;
    }


    .project-info-new {

        padding-left: 55px !important;
    }


    .project-info-new h2 {

        font-size: 76px;

        letter-spacing: -6px;
    }


    .project-description {

        font-size: 14px;

        line-height: 1.9;
    }
}


/* =========================================================
   ULTRA LARGE DESKTOP
========================================================= */

@media (min-width: 2200px) {

    .portfolio-project,
    .portfolio-project.reverse {

        grid-template-columns:
            78%
            22% !important;

        min-height: 1150px;
    }


    .portfolio-project .project-visual,
    .portfolio-project.reverse .project-visual {

        height: 900px !important;
    }


    .project-info-new h2 {

        font-size: 82px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) and (min-width: 769px) {

    .portfolio-intro {

        min-height: 650px;

        padding:
            110px
            6vw
            80px;
    }


    .intro-index {

        left: 6vw;
    }


    .intro-bottom {

        left: 6vw;
    }


    .portfolio-project,
    .portfolio-project.reverse {

        min-height: 780px;

        grid-template-columns:
            68%
            32% !important;

        padding:
            80px
            4vw
            80px
            5vw;
    }


    .portfolio-project .project-visual,
    .portfolio-project.reverse .project-visual {

        height: 560px !important;
    }


    .project-info-new {

        padding-left: 30px !important;
    }


    .project-info-new h2 {

        font-size:
            clamp(
                38px,
                4vw,
                55px
            );

        letter-spacing: -4px;
    }


    .project-description {

        max-width: 280px;

        font-size: 11px;
    }
}


/* =========================================================
   MOBILE / TABLET STACK
========================================================= */

@media (max-width: 768px) {

    body.portfolio-page {

        overflow-x: hidden;

        overflow-y: auto;
    }


    .portfolio-page-main {

        padding-top: 75px;
    }


    /* HERO */

    .portfolio-intro {

        min-height: 620px;

        padding:
            80px
            22px
            70px;

        display: flex;

        align-items: center;
    }


    .intro-index {

        top: 100px;

        left: 22px;
    }


    .intro-content {

        margin-top: 30px;
    }


    .intro-label {

        font-size: 8px;

        letter-spacing: 3px;

        margin-bottom: 22px;
    }


    .intro-content h1 {

        font-size:
            clamp(
                60px,
                16vw,
                100px
            );

        letter-spacing: -6px;
    }


    .intro-content p {

        max-width: 380px;

        margin-top: 30px;

        font-size: 12px;
    }


    .intro-bottom {

        left: 22px;
        right: 22px;

        bottom: 28px;

        font-size: 7px;

        letter-spacing: 2px;
    }


    .intro-line {

        width: 60px;
    }


    /* PROJECT */

    .portfolio-project,
    .portfolio-project.reverse {

        display: flex !important;

        flex-direction: column;

        align-items: stretch;

        min-height: auto;

        padding:
            75px
            22px
            85px;

        gap: 45px;

        grid-template-columns: none !important;
    }


    .portfolio-project::before {

        left: 22px;
        right: 22px;

        top: 50%;
    }


    /* CONTENT */

    .project-info-new,
    .portfolio-project.reverse .project-info-new {

        order: 1;

        width: 100%;

        padding:
            0 !important;

        margin: 0 !important;
    }


    .project-number-new {

        margin-bottom: 15px;
    }


    .project-type {

        margin-bottom: 20px;
    }


    .project-info-new h2 {

        font-size:
            clamp(
                45px,
                12vw,
                72px
            );

        letter-spacing: -4px;
    }


    .project-description {

        max-width: 420px;

        margin-top: 28px;

        font-size: 11px;

        line-height: 1.8;
    }


    /* IMAGE */

    .portfolio-project .project-visual,
    .portfolio-project.reverse .project-visual {

        order: 2;

        width: 100% !important;

        height: 430px !important;

        min-height: 430px;

        margin: 0 !important;
    }


    .visual-view span {

        width: 80px;
        height: 80px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .portfolio-page-main {

        padding-top: 75px;
    }


    .portfolio-intro {

        min-height: 570px;

        padding:
            70px
            18px
            55px;
    }


    .intro-index {

        top: 90px;

        left: 18px;
    }


    .intro-content h1 {

        font-size:
            clamp(
                55px,
                16vw,
                82px
            );

        letter-spacing: -5px;
    }


    .intro-content p {

        font-size: 11px;

        line-height: 1.8;
    }


    .intro-bottom {

        left: 18px;
        right: 18px;

        gap: 12px;

        font-size: 6px;
    }


    .intro-line {

        width: 45px;
    }


    /* PROJECT */

    .portfolio-project,
    .portfolio-project.reverse {

        padding:
            60px
            18px
            70px;

        gap: 35px;
    }


    .project-info-new h2 {

        font-size: 42px;

        letter-spacing: -3px;
    }


    .project-description {

        font-size: 10px;

        line-height: 1.75;
    }


    /* IMAGE */

    .portfolio-project .project-visual,
    .portfolio-project.reverse .project-visual {

        height: 330px !important;

        min-height: 330px;
    }


    .visual-label {

        top: 12px;
        left: 12px;

        padding:
            7px
            9px;

        font-size: 6px;
    }


    .visual-corner {

        right: 12px;
        bottom: 12px;
    }


    .visual-view span {

        width: 70px;
        height: 70px;

        font-size: 7px;
    }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 360px) {

    .intro-content h1 {

        font-size: 50px;

        letter-spacing: -4px;
    }


    .project-info-new h2 {

        font-size: 38px;
    }


    .portfolio-project .project-visual,
    .portfolio-project.reverse .project-visual {

        height: 280px !important;

        min-height: 280px;
    }
}


/* =========================================================
   FINAL IMAGE OVERRIDE
   IMPORTANT
========================================================= */

body.portfolio-page .project-visual {

    width: 100% !important;

    overflow: hidden !important;

    transform: none !important;

    rotate: none !important;

    perspective: none !important;
}


body.portfolio-page .project-visual img {

    width: 100% !important;

    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;

    object-position: center top !important;

    filter: none !important;

    opacity: 1 !important;

    transform: scale(1) !important;
}


/* =========================================================
   REMOVE OLD PORTFOLIO IMAGE STYLES
========================================================= */

body.portfolio-page .project-image,
body.portfolio-page .image-hover,
body.portfolio-page .project-number,
body.portfolio-page .project-content {

    display: none !important;
}


/* =========================================================
   SMOOTH PROJECT REVEAL
========================================================= */

.portfolio-project {

    opacity: 1;

    visibility: visible;

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .project-visual img,
    .project-link,
    .project-link span,
    .visual-view {

        transition: none !important;
    }
}
/* =========================================
   PROJECT IMAGE — WIDER + SHORTER
========================================= */

body.portfolio-page .portfolio-project,
body.portfolio-page .portfolio-project.reverse {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 5vw !important;
    padding-right: 3vw !important;

    display: grid !important;
    grid-template-columns: 78% 22% !important;

    transform: none !important;
    rotate: none !important;
}

/* Wider image section */
body.portfolio-page .portfolio-project .project-visual,
body.portfolio-page .portfolio-project.reverse .project-visual {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    height: 430px !important;

    margin: 0 !important;
    padding: 0 !important;

    position: relative !important;
    overflow: hidden !important;

    transform: none !important;
}

/* Website screenshot */
body.portfolio-page .project-visual img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    position: absolute !important;
    inset: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    filter: none !important;
}

/* Project information */
body.portfolio-page .portfolio-project .project-info-new,
body.portfolio-page .portfolio-project.reverse .project-info-new {
    grid-column: 2 !important;
    grid-row: 1 !important;

    padding-left: 40px !important;
    padding-right: 0 !important;

    margin: 0 !important;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1600px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        grid-template-columns: 80% 20% !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 450px !important;
    }

}


/* =========================================
   EXTRA LARGE DESKTOP
========================================= */

@media (min-width: 2000px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        grid-template-columns: 82% 18% !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 470px !important;
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        grid-template-columns: 70% 30% !important;
        padding-left: 4vw !important;
        padding-right: 4vw !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 360px !important;
    }

    body.portfolio-page .portfolio-project .project-info-new,
    body.portfolio-page .portfolio-project.reverse .project-info-new {
        padding-left: 25px !important;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        width: 100% !important;
        height: 300px !important;

        order: 1 !important;
    }

    body.portfolio-page .portfolio-project .project-info-new,
    body.portfolio-page .portfolio-project.reverse .project-info-new {
        width: 100% !important;

        padding: 25px 0 !important;

        order: 2 !important;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 250px !important;
    }

}
/* =========================================
   FINAL PORTFOLIO IMAGE FIX
========================================= */

/* Slightly reduce image width */
body.portfolio-page .portfolio-project,
body.portfolio-page .portfolio-project.reverse {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 5vw !important;
    padding-right: 4vw !important;

    display: grid !important;
    grid-template-columns: 74% 26% !important;

    transform: none !important;
    rotate: none !important;
}

/* Website image */
body.portfolio-page .portfolio-project .project-visual,
body.portfolio-page .portfolio-project.reverse .project-visual {
    width: 100% !important;
    height: 470px !important;

    margin: 0 !important;
    padding: 0 !important;

    position: relative !important;
    overflow: hidden !important;

    transform: none !important;
}

/* Actual website screenshot */
body.portfolio-page .project-visual img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    position: absolute !important;
    inset: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    filter: none !important;
}


/* =========================================
   REMOVE "WEBSITE PREVIEW" STRIP
========================================= */

body.portfolio-page .visual-label {
    display: none !important;
}


/* Remove any preview overlay/background */
body.portfolio-page .project-visual::before,
body.portfolio-page .project-visual::after {
    display: none !important;
}


/* =========================================
   PROJECT INFORMATION
========================================= */

body.portfolio-page .portfolio-project .project-info-new,
body.portfolio-page .portfolio-project.reverse .project-info-new {
    grid-column: 2 !important;
    grid-row: 1 !important;

    padding-left: 40px !important;
    padding-right: 0 !important;

    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}


/* =========================================
   LARGE DESKTOP
========================================= */

@media (min-width: 1600px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        grid-template-columns: 76% 24% !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 490px !important;
    }
}


/* =========================================
   EXTRA LARGE DESKTOP
========================================= */

@media (min-width: 2000px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        grid-template-columns: 78% 22% !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 510px !important;
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        grid-template-columns: 70% 30% !important;

        padding-left: 4vw !important;
        padding-right: 4vw !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 400px !important;
    }

    body.portfolio-page .portfolio-project .project-info-new,
    body.portfolio-page .portfolio-project.reverse .project-info-new {
        padding-left: 25px !important;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        width: 100% !important;
        height: 300px !important;

        order: 1 !important;
    }

    body.portfolio-page .portfolio-project .project-info-new,
    body.portfolio-page .portfolio-project.reverse .project-info-new {
        width: 100% !important;

        padding: 25px 0 !important;

        order: 2 !important;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 250px !important;
    }
}
body.portfolio-page .portfolio-project .project-visual,
body.portfolio-page .portfolio-project.reverse .project-visual {
    height: 510px !important;
}
@media (min-width: 1600px) {
    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 530px !important;
    }
}

@media (min-width: 2000px) {
    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 550px !important;
    }
}
/* =========================================
   CONTACT / PROJECT CTA SECTION
========================================= */

body.portfolio-page .portfolio-end {
    width: 100%;
    min-height: 75vh;

    padding: 120px 8vw 100px;

    display: grid;
    grid-template-columns: 15% 85%;
    align-items: center;

    position: relative;
    overflow: hidden;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


/* Background glow */
body.portfolio-page .portfolio-end::before {
    content: "";
    position: absolute;

    width: 600px;
    height: 600px;

    right: -180px;
    bottom: -250px;

    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 30%,
        transparent 70%
    );

    pointer-events: none;
}


/* =========================================
   END NUMBER
========================================= */

body.portfolio-page .end-number {
    position: relative;
    z-index: 2;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.4);

    writing-mode: vertical-rl;
    transform: rotate(180deg);
}


/* =========================================
   END CONTENT
========================================= */

body.portfolio-page .end-content {
    position: relative;
    z-index: 2;

    max-width: 1100px;
}


/* Small label */

body.portfolio-page .end-content > span {
    display: block;

    margin-bottom: 30px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.35em;

    color: rgba(255, 255, 255, 0.5);
}


/* Main heading */

body.portfolio-page .end-content h2 {
    margin: 0;

    font-size: clamp(55px, 8vw, 145px);

    line-height: 0.9;

    font-weight: 800;

    letter-spacing: -0.06em;

    color: #ffffff;

    text-transform: uppercase;
}


/* Highlighted text */

body.portfolio-page .end-content h2 em {
    display: block;

    font-style: normal;

    color: transparent;

    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);

    text-stroke: 1px rgba(255, 255, 255, 0.7);
}


/* =========================================
   CONTACT BUTTON
========================================= */

body.portfolio-page .end-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    gap: 35px;

    margin-top: 55px;

    padding: 18px 28px;

    min-width: 220px;

    border: 1px solid rgba(255, 255, 255, 0.35);

    color: #ffffff;

    text-decoration: none;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.2em;

    position: relative;

    overflow: hidden;

    transition:
        color 0.4s ease,
        border-color 0.4s ease,
        transform 0.4s ease;
}


/* Button hover background */

body.portfolio-page .end-button::before {
    content: "";

    position: absolute;

    inset: 0;

    background: #ffffff;

    transform: translateY(101%);

    transition: transform 0.4s ease;

    z-index: -1;
}


/* Arrow */

body.portfolio-page .end-button span {
    font-size: 18px;

    transition: transform 0.4s ease;
}


/* Hover */

body.portfolio-page .end-button:hover {
    color: #000000;

    border-color: #ffffff;

    transform: translateY(-4px);
}

body.portfolio-page .end-button:hover::before {
    transform: translateY(0);
}

body.portfolio-page .end-button:hover span {
    transform: translate(5px, -5px);
}


/* =========================================
   CONTACT DECORATIVE LINE
========================================= */

body.portfolio-page .end-content::after {
    content: "";

    display: block;

    width: 100%;
    max-width: 850px;

    height: 1px;

    margin-top: 80px;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.3),
        rgba(255,255,255,0.05),
        transparent
    );
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    body.portfolio-page .portfolio-end {
        min-height: 65vh;

        padding: 100px 6vw 80px;

        grid-template-columns: 12% 88%;
    }

    body.portfolio-page .end-content h2 {
        font-size: clamp(50px, 8vw, 100px);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    body.portfolio-page .portfolio-end {
        min-height: 70vh;

        padding: 90px 25px 70px;

        display: block;
    }

    body.portfolio-page .end-number {
        writing-mode: horizontal-tb;

        transform: none;

        margin-bottom: 50px;

        font-size: 10px;
    }

    body.portfolio-page .end-content > span {
        margin-bottom: 25px;
    }

    body.portfolio-page .end-content h2 {
        font-size: clamp(48px, 13vw, 80px);

        line-height: 0.92;
    }

    body.portfolio-page .end-button {
        margin-top: 45px;

        width: 100%;

        justify-content: space-between;
    }

    body.portfolio-page .end-content::after {
        margin-top: 60px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    body.portfolio-page .portfolio-end {
        padding: 70px 20px 60px;
    }

    body.portfolio-page .end-content h2 {
        font-size: 45px;
    }

    body.portfolio-page .end-button {
        min-width: 0;

        padding: 16px 20px;

        gap: 20px;
    }

}
/* =========================================
   FINAL IMAGE HEIGHT
========================================= */

body.portfolio-page .portfolio-project .project-visual,
body.portfolio-page .portfolio-project.reverse .project-visual {
    height: 540px !important;
}


/* Large desktop */
@media (min-width: 1600px) {
    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 560px !important;
    }
}


/* Extra large desktop */
@media (min-width: 2000px) {
    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 580px !important;
    }
}


/* Tablet */
@media (max-width: 1100px) {
    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 420px !important;
    }
}


/* Mobile */
@media (max-width: 768px) {
    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 330px !important;
        min-height: 330px !important;
    }
}


/* Small mobile */
@media (max-width: 480px) {
    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {
        height: 300px !important;
        min-height: 300px !important;
    }
}
/* =========================================================
   FINAL DESKTOP WEBSITE SCREENSHOT FIX
   SHOW FULL WEBSITE — NO CROPPING
========================================================= */

@media (min-width: 1201px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {
        width: 100% !important;
        display: grid !important;

        /* Large image + smaller information area */
        grid-template-columns: 78% 22% !important;

        padding-left: 5vw !important;
        padding-right: 3vw !important;

        align-items: center !important;
        min-height: auto !important;

        overflow: visible !important;
    }

    /* Image wrapper */
    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {

        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 100% !important;

        /* IMPORTANT: no fixed height */
        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        position: relative !important;

        overflow: hidden !important;

        background: #050505 !important;

        border: 1px solid rgba(255,255,255,0.20);

        aspect-ratio: auto !important;
    }

    /* FULL WEBSITE SCREENSHOT */
    body.portfolio-page .portfolio-project .project-visual img,
    body.portfolio-page .portfolio-project.reverse .project-visual img {

        position: relative !important;

        inset: auto !important;

        display: block !important;

        width: 100% !important;

        /* IMPORTANT */
        height: auto !important;

        min-width: 0 !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center top !important;

        filter: none !important;
        opacity: 1 !important;

        transform: none !important;
    }

    /* Project information */
    body.portfolio-page .portfolio-project .project-info-new,
    body.portfolio-page .portfolio-project.reverse .project-info-new {

        grid-column: 2 !important;
        grid-row: 1 !important;

        width: 100% !important;

        padding-left: 40px !important;
        padding-right: 0 !important;

        margin: 0 !important;

        align-self: center !important;
    }
}


/* =========================================================
   VERY LARGE DESKTOP
========================================================= */

@media (min-width: 1600px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {

        grid-template-columns: 80% 20% !important;

        padding-left: 4vw !important;
        padding-right: 2.5vw !important;
    }

    body.portfolio-page .portfolio-project .project-info-new,
    body.portfolio-page .portfolio-project.reverse .project-info-new {

        padding-left: 45px !important;
    }
}


/* =========================================================
   EXTRA LARGE DESKTOP
========================================================= */

@media (min-width: 2000px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {

        grid-template-columns: 82% 18% !important;

        padding-left: 3vw !important;
        padding-right: 2vw !important;
    }

    body.portfolio-page .portfolio-project .project-info-new,
    body.portfolio-page .portfolio-project.reverse .project-info-new {

        padding-left: 45px !important;
    }
}


/* =========================================================
   LAPTOP / TABLET
   KEEP CURRENT LAPTOP LOOK
========================================================= */

@media (max-width: 1200px) and (min-width: 769px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {

        grid-template-columns: 70% 30% !important;

        padding-left: 4vw !important;
        padding-right: 4vw !important;

        min-height: auto !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {

        height: auto !important;
        min-height: 0 !important;
    }

    body.portfolio-page .portfolio-project .project-visual img,
    body.portfolio-page .portfolio-project.reverse .project-visual img {

        width: 100% !important;
        height: auto !important;

        object-fit: contain !important;
    }
}


/* =========================================================
   MOBILE — KEEP CURRENT MOBILE BEHAVIOUR
========================================================= */

@media (max-width: 768px) {

    body.portfolio-page .portfolio-project,
    body.portfolio-page .portfolio-project.reverse {

        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;

        padding-left: 20px !important;
        padding-right: 20px !important;

        gap: 35px !important;
    }

    body.portfolio-page .portfolio-project .project-visual,
    body.portfolio-page .portfolio-project.reverse .project-visual {

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        order: 1 !important;
    }

    body.portfolio-page .portfolio-project .project-visual img,
    body.portfolio-page .portfolio-project.reverse .project-visual img {

        position: relative !important;

        width: 100% !important;
        height: auto !important;

        max-width: 100% !important;

        object-fit: contain !important;
    }

    body.portfolio-page .portfolio-project .project-info-new,
    body.portfolio-page .portfolio-project.reverse .project-info-new {

        width: 100% !important;

        padding: 25px 0 !important;

        order: 2 !important;
    }
}