/* Portfolio uses the shared inner-page header offset. */
.portfolio-page {
    color: #252525;
    background: #f7f7f7;
    font-family: "Poppins", sans-serif;
}
html[lang="zh"] .portfolio-page,
html[lang="zh"] .portfolio-page h1,
html[lang="zh"] .portfolio-page h2,
html[lang="zh"] .portfolio-page h3 {
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
.portfolio-wrap {
    width: 100%;
    max-width: 1140px;
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
    margin: auto;
}
@media (min-width: 576px) { .portfolio-wrap { max-width: 540px; } }
@media (min-width: 768px) { .portfolio-wrap { max-width: 720px; } }
@media (min-width: 992px) { .portfolio-wrap { max-width: 960px; } }
@media (min-width: 1200px) { .portfolio-wrap { max-width: 1210px; } }
.portfolio-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
    padding: 40px 0 44px;
    background: linear-gradient(rgba(12,14,16,.64), rgba(12,14,16,.64)), url('../../img/bg-img/09_September_Construction.jpg') center 52%/cover no-repeat;
    color: #fff;
}
.portfolio-hero h1 {
    margin: 18px 0 16px;
    color: #fff;
    font: 700 clamp(27px, calc(5vw - 16px), 52px)/1 "Poppins", sans-serif;
    text-transform: uppercase;
}
.portfolio-hero p {
    max-width: 780px;
    margin: 0;
    color: #eee;
    line-height: 1.8;
}
.portfolio-content {
    padding-top: 42px;
    padding-bottom: 48px;
}
.portfolio-content > h2 {
    margin-bottom: 26px;
    font-size: 25px;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.portfolio-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px #00000008;
    scroll-margin-top: calc(var(--site-header-height) + 20px);
}
.portfolio-featured {
    position: relative;
    display: block;
    overflow: hidden;
}
.project-protected-image {
    position: relative;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.project-protected-image > .project-image {
    display: block;
}
.project-image-watermark {
    display: block;
    position: absolute;
    left: 12px;
    right: 140px;
    bottom: 12px;
    z-index: 10;
    color: #fff;
    font: 700 14px/1 Arial, sans-serif;
    letter-spacing: .35px;
    white-space: nowrap;
    text-align: center;
    opacity: .62;
    pointer-events: none;
}
.project-watermark-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(18%, 116px);
    min-width: 84px;
    height: auto;
    margin: 0;
    transform: translate(-50%, -50%);
    opacity: .29;
    z-index: 2;
    pointer-events: none;
    user-select: none;
}
.portfolio-featured > .portfolio-view-project {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 4px;
    color: #fff;
    background: #951019;
    font-size: 12px;
    z-index: 11;
}
.portfolio-card-body {
    padding: 22px;
}
.portfolio-card-body h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.portfolio-card-body p {
    font-size: 15px;
    line-height: 1.75;
}
.portfolio-card-body .portfolio-location {
    margin-bottom: 10px;
    color: #8b1015;
    font-size: 13px;
}
.portfolio-service {
    color: #8b1015;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.portfolio-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.portfolio-thumbnails a {
    display: block;
    width: 76px;
}
.portfolio-thumbnails img {
    width: 76px;
    height: 58px;
    object-fit: cover;
    border-radius: 4px;
}
.portfolio-thumbnails .project-protected-image {
    width: 76px;
    height: 58px;
    overflow: hidden;
    border-radius: 4px;
}
.portfolio-thumbnails .project-watermark-logo {
    min-width: 28px;
    width: 28%;
}
.portfolio-thumbnails .project-image-watermark {
    left: 3px;
    right: 3px;
    bottom: 4px;
    font-size: 5px;
    letter-spacing: 0;
    white-space: normal;
}
.portfolio-cta {
    padding: 34px 0;
    background: #25282b;
}
.portfolio-cta .portfolio-wrap {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}
.portfolio-cta h2 {
    color: #fff;
    font-size: 24px;
}
.portfolio-cta p {
    margin: 0;
    color: #eee;
    font-size: 16px;
}
.portfolio-cta a {
    flex-shrink: 0;
    padding: 14px 20px;
    border-radius: 5px;
    color: #fff;
    background: #b10e17;
}
.portfolio-page a:focus-visible {
    outline: 3px solid #d4a400;
    outline-offset: -3px;
}

/* Project page motion */
.portfolio-page .portfolio-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity .72s cubic-bezier(.22, 1, .36, 1), transform .72s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}
.portfolio-page .portfolio-reveal.portfolio-reveal-left { transform: translate3d(-30px, 0, 0); }
.portfolio-page .portfolio-reveal.portfolio-reveal-right { transform: translate3d(30px, 0, 0); }
.portfolio-page .portfolio-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.portfolio-page .portfolio-stagger > * {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(.98);
    transition: opacity .62s cubic-bezier(.22, 1, .36, 1), transform .62s cubic-bezier(.22, 1, .36, 1);
}
.portfolio-page .portfolio-stagger.is-visible > * { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.portfolio-page .portfolio-stagger.is-visible > *:nth-child(2) { transition-delay: .1s; }
.portfolio-page .portfolio-stagger.is-visible > *:nth-child(3) { transition-delay: .2s; }
.portfolio-page .portfolio-stagger.is-visible > *:nth-child(4) { transition-delay: .3s; }
.portfolio-page .portfolio-stagger.is-visible > *:nth-child(5) { transition-delay: .4s; }
.portfolio-page .portfolio-stagger.is-visible > *:nth-child(6) { transition-delay: .5s; }
.portfolio-page .portfolio-card { transition: transform .3s ease, box-shadow .3s ease; }
.portfolio-page .portfolio-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(0,0,0,.12); }
@media (prefers-reduced-motion: reduce) {
    .portfolio-page .portfolio-reveal, .portfolio-page .portfolio-stagger > * { opacity: 1; transform: none; transition: none; }
}
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 64px;
    background: #000e;
}
.portfolio-lightbox.open {
    display: flex;
}
.portfolio-lightbox-image {
    position: relative;
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 128px);
}
.portfolio-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 128px);
    object-fit: contain;
}
.portfolio-lightbox-image > img:first-child {
    display: block;
}
.portfolio-lightbox-image .project-watermark-logo {
    width: min(18%, 116px);
    min-width: 84px;
    height: auto;
}
.portfolio-lightbox-image .project-image-watermark {
    left: 12px;
    right: 12px;
    bottom: 12px;
}
.portfolio-lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #ffffff66;
    border-radius: 5px;
    color: #fff;
    background: #222;
    font-size: 24px;
    cursor: pointer;
}
.portfolio-lightbox button:focus-visible {
    outline: 3px solid #ffc400;
    outline-offset: 3px;
}
.portfolio-lightbox [data-gallery-close] {
    top: 14px;
    right: 14px;
}
.portfolio-lightbox [data-gallery-prev] {
    left: 8px;
}
.portfolio-lightbox [data-gallery-next] {
    right: 8px;
}
.portfolio-lightbox [hidden] {
    display: none;
}
@media (max-width: 991.98px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .portfolio-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .portfolio-hero {
        min-height: 550px;
        padding: 28px 0 32px;
    }
    .portfolio-cta .portfolio-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .portfolio-cta a {
        text-align: center;
    }
    .portfolio-lightbox {
        padding: 64px 12px 100px;
    }
    .portfolio-lightbox img {
        max-height: calc(100vh - 164px);
    }
    .portfolio-lightbox [data-gallery-prev], .portfolio-lightbox [data-gallery-next] {
        bottom: 20px;
    }
}
