/* =========================================================
   PORTFOLIO PAGE ONLY
   Responsive editorial / Pinterest-style board
   ========================================================= */

html.portfolio-root,
body.portfolio-page {
    min-width: 0 !important;
    width: 100%;
    min-height: 100%;
    height: auto !important;
    margin: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.portfolio-page {
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9d1df;
}

body.portfolio-page img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   MAIN BOARD
   Two broad columns create the sketch layout without using
   absolute positioning. Nothing can drift on top of anything.
   ========================================================= */

.portfolio-board {
    width: min(92vw, 1380px);
    margin: 0 auto;
    padding: clamp(100px, 10vw, 140px) 0 170px;

    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    column-gap: clamp(55px, 8vw, 130px);
    align-items: start;
}

.portfolio-left,
.portfolio-right {
    min-width: 0;
}

/* =========================================================
   LEFT COLUMN — WORK + WEBSITES
   ========================================================= */

.work-heading {
    margin: 0;
    font-size: clamp(68px, 9vw, 150px);
    line-height: 0.82;
    letter-spacing: -0.075em;
    font-weight: 500;
}

.website-stack {
    margin-top: clamp(70px, 9vw, 125px);
    display: flex;
    flex-direction: column;
    gap: clamp(42px, 5vw, 76px);
}

.website-card {
    display: block;
    color: #111;
    text-decoration: none;
}

.website-card-one {
    width: 72%;
}

.website-card-two {
    width: 84%;
    margin-left: 9%;
}

.website-card-three {
    width: 76%;
    margin-left: 2%;
}

.website-preview-frame {
    width: 100%;
    aspect-ratio: 1.7 / 1;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.website-preview-frame iframe,
.website-preview-frame img {
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    pointer-events: none;
}

.website-card > span {
    display: block;
    margin-top: 10px;
    font-size: clamp(14px, 1.2vw, 19px);
}

.website-card[href]:hover .website-preview-frame {
    transform: translateY(-3px);
}

.website-preview-frame {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.website-card[href]:hover .website-preview-frame {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

/* =========================================================
   RIGHT COLUMN — COOL PICS + FEATURE PROJECTS
   ========================================================= */

.portfolio-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.cool-pics-block {
    width: min(100%, 560px);
    align-self: flex-end;
}

.cool-pics-label {
    margin: 0 0 12px 4%;
    font-size: clamp(15px, 1.4vw, 22px);
}

.cool-pics-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.08fr;
    gap: clamp(14px, 2vw, 26px);
    align-items: start;
}

.cool-pic {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #fff;
}

.pic-one {
    width: 80%;
    justify-self: end;
}

.pic-two {
    width: 74%;
    justify-self: end;
    margin-top: 28px;
}

.pic-three {
    width: 92%;
    justify-self: start;
    margin-top: 10px;
}

.pic-four {
    width: 84%;
    justify-self: start;
    margin-top: 32px;
}

.feature-card {
    position: relative;
    display: block;
    overflow: hidden;
    color: #111;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.88);
}

.lake-tahoe-card {
    width: 88%;
    align-self: flex-end;
    margin-top: clamp(65px, 8vw, 120px);
}

.lake-tahoe-card img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-card-caption {
    padding: 18px 20px 20px;
}

.feature-card-caption span {
    font-size: 12px;
    text-transform: lowercase;
}

.feature-card-caption h2 {
    margin: 4px 0 0;
    font-size: clamp(30px, 4vw, 62px);
    font-weight: 500;
    letter-spacing: -0.045em;
}

.lake-tahoe-card:hover img {
    transform: scale(1.015);
}

.lake-tahoe-card img {
    transition: transform 220ms ease;
}

.new-york-card {
    width: 62%;
    min-height: 180px;
    align-self: flex-end;
    margin: 34px 7% 0 0;
}

/* =========================================================
   PLACEHOLDERS
   ========================================================= */

.placeholder-box {
    border: 1px solid rgba(17, 17, 17, 0.38);
    background: rgba(255, 255, 255, 0.28);
}

.placeholder-box > span,
.website-preview-frame.placeholder-box > span {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    text-transform: lowercase;
}

/* =========================================================
   FOOTER
   ========================================================= */

.portfolio-footer {
    width: min(92vw, 1380px);
    margin: 0 auto;
    padding: 0 0 38px;
    font-size: 12px;
}

.portfolio-footer p {
    margin: 0;
}

/* =========================================================
   TABLET
   Keep two columns, but reduce the spacing and offsets.
   ========================================================= */

@media (max-width: 980px) {
    .portfolio-board {
        width: min(94vw, 900px);
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        column-gap: 42px;
        padding-top: 78px;
    }

    .website-card-one {
        width: 84%;
    }

    .website-card-two {
        width: 92%;
        margin-left: 5%;
    }

    .website-card-three {
        width: 86%;
    }

    .lake-tahoe-card {
        width: 96%;
    }

    .new-york-card {
        width: 74%;
        margin-right: 0;
    }
}

/* =========================================================
   MOBILE
   One flowing column, but deliberately staggered widths keep
   the Pinterest/editorial feeling without any overlap.
   ========================================================= */

@media (max-width: 720px) {
    body.portfolio-page {
        background-attachment: scroll;
    }

    .portfolio-site-nav {
        padding-top: 16px;
        gap: 14px;
    }

    .portfolio-site-links {
        gap: 14px;
    }

    .portfolio-site-nav a {
        font-size: 12px;
    }

    .portfolio-site-brand {
        font-size: 12px !important;
    }

    .portfolio-board {
        width: min(92vw, 620px);
        padding-top: 62px;
        padding-bottom: 120px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .work-heading {
        font-size: clamp(66px, 22vw, 118px);
    }

    .cool-pics-block {
        width: 92%;
        align-self: flex-end;
        margin-top: 58px;
    }

    .cool-pics-grid {
        gap: 12px;
    }

    .pic-two,
    .pic-four {
        margin-top: 22px;
    }

    .website-stack {
        margin-top: 82px;
        gap: 54px;
    }

    .website-card-one {
        width: 84%;
    }

    .website-card-two {
        width: 92%;
        margin-left: auto;
    }

    .website-card-three {
        width: 80%;
        margin-left: 5%;
    }

    .lake-tahoe-card {
        width: 94%;
        margin-top: 90px;
        align-self: flex-end;
    }

    .new-york-card {
        width: 76%;
        min-height: 150px;
        margin: 28px auto 0 0;
        align-self: flex-start;
    }

    .feature-card-caption h2 {
        font-size: clamp(32px, 11vw, 52px);
    }
}

@media (max-width: 430px) {
    .portfolio-site-nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .portfolio-site-links {
        gap: 10px;
    }

    .portfolio-site-nav a,
    .portfolio-site-brand {
        font-size: 10.5px !important;
    }

    .portfolio-board {
        width: 90vw;
    }

    .website-card > span,
    .cool-pics-label {
        font-size: 13px;
    }
}
/* =========================================
   SOCIAL MEDIA CAROUSEL
========================================= */

.social-carousel {
    position: relative;

    width: 85%;
    max-width: 500px;

    margin-top: 10px;
    margin-left: 5%;
}


/* visible carousel window */
.social-carousel-window {
    width: 100%;
    height: 500px;

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

    overflow: hidden;
}


/* ALL images hidden by default */
.social-slide {
    display: none !important;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ONLY current image shows */
.social-slide.active {
    display: block !important;
}


/* arrows */
.social-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: black;
    font-size: 32px;

    cursor: pointer;

    z-index: 10;
}

.social-prev {
    left: -40px;
}

.social-next {
    right: -40px;
}

.social-arrow:hover {
    opacity: 0.5;
}
/* =========================================
   NEW YORK VIDEOS
========================================= */

.new-york-videos {
    width: 100%;

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

    gap: 50px;

    margin-top: 10px;
}

.ny-video {
    display: block;

    width: 44%;
    height: auto;

    object-fit: cover;
}


/* make them slightly scattered */
.ny-video-one {
    margin-left: 4%;
}

.ny-video-two {
    margin-top: 70px;
    margin-right: 3%;
}
.new-york-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.new-york-caption h2 {
    display: inline-block;
    margin: 0;

    text-decoration: underline;
    text-underline-offset: 6px;

    font-size: clamp(32px, 5vw, 70px);
}

.new-york-caption {
    text-align: center;
}

.down-arrow {
    margin-top: 12px;

    font-size: 42px;
    line-height: 1;

    text-align: center;
}
.carousel-title {
    margin: 100px 0 20px 5%;    
    font-size: clamp(24px, 3vw, 42px);
    font-weight: normal;

    text-decoration: underline;
    text-underline-offset: 6px;
}
