/*
Theme Name: YUN'Z Design
Theme URI: https://yunz-design.com/
Author: YUN'Z Interior Design Group
Description: Custom portfolio theme restored from the original YUN'Z Weebly design.
Version: 0.8.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: yunz-design
*/

@font-face {
    font-family: "Cento";
    src: url("../../uploads/yunz-fonts/Cento-light.woff2") format("woff2");
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: "Cento";
    src: url("../../uploads/yunz-fonts/Cento-medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Cento";
    src: url("../../uploads/yunz-fonts/Cento-bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
}

:root {
    --yunz-black: #000;
    --yunz-dark-gray: #515151;
    --yunz-gray: #666;
    --yunz-light-gray: #a1a1a1;
    --yunz-concept-bg: #c0bcb6;
    --yunz-work-bg: #f3f3f1;
    --yunz-white: #fff;
    --yunz-content: 1200px;
    --yunz-font: "Cento", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--yunz-white);
    color: var(--yunz-black);
    font-family: var(--yunz-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
    top: 32px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--yunz-gray);
    text-decoration: none;
    transition: color 200ms ease;
}

a:hover,
a:focus {
    color: var(--yunz-black);
}

button,
input,
select,
textarea {
    font: inherit;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.yunz-container {
    position: relative;
    width: min(var(--yunz-content), calc(100% - 80px));
    margin-inline: auto;
}

/* Original desktop header */
.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    padding: 40px 0;
    background: #fff;
}

.site-header .yunz-container {
    width: min(var(--yunz-content), calc(100% - 60px));
}

.site-branding {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.site-logo {
    display: block;
    width: 275px;
    max-width: 70vw;
}

.site-logo img {
    display: block;
    width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.primary-navigation ul,
.primary-menu {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-navigation a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation a:hover,
.primary-navigation a:focus {
    color: #000;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-main {
    min-height: 50vh;
}

/* Complete 4:3 homepage image */
.yunz-home-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #33291f;
}

.yunz-home-hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.yunz-home-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.yunz-home-overlay p {
    position: absolute;
    top: 28%;
    left: 5.5%;
    margin: 0;
    padding-left: .28em;
    color: #fff;
    font-size: clamp(16px, 2.2vw, 34px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .28em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .34);
}

/* Original concept section */
.yunz-home-concept {
    background: var(--yunz-concept-bg);
    color: var(--yunz-dark-gray);
}

.yunz-original-concept-inner {
    width: min(100%, 1200px);
    margin-inline: auto;
    padding: 84px 40px 110px;
    text-align: center;
}

.yunz-original-concept-title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .02em;
}

.yunz-original-concept-subtitle {
    margin: 24px 0 54px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .14em;
}

.yunz-original-divider {
    width: 100%;
    margin: 0 auto 78px;
    border: 0;
    border-top: 1px solid rgba(81, 81, 81, .28);
}

.yunz-original-concept-copy {
    width: min(760px, 100%);
    margin-inline: auto;
    text-align: center;
}

.yunz-original-concept-copy h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .02em;
}

.yunz-original-concept-copy .yunz-home-cn-title {
    margin: 12px 0 52px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .12em;
}

.yunz-original-lines {
    margin: 0;
    color: var(--yunz-dark-gray);
    font-size: 17px;
    line-height: 1.9;
    text-align: center;
}

.yunz-original-lines span {
    display: block;
    margin-bottom: 24px;
}

.yunz-original-lines--english {
    margin-top: 58px;
    font-weight: 500;
}

.yunz-original-lines--english span {
    margin-bottom: 30px;
}

/* Original About section */
.yunz-home-about {
    position: relative;
    min-height: 700px;
    padding: 118px 30px 130px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.yunz-original-about-inner {
    width: min(820px, 100%);
    margin-inline: auto;
}

.yunz-original-about-heading {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.yunz-original-about-subtitle {
    margin: 12px 0 64px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .12em;
}

.yunz-original-about-copy {
    color: #3f3f3f;
    font-size: 17px;
    font-weight: 600;
    line-height: 2;
    text-align: center;
}

.yunz-original-about-copy p {
    margin: 0;
}

.yunz-original-about-copy .group {
    display: block;
    margin-bottom: 34px;
}

.yunz-original-about-copy--english {
    margin-top: 92px;
    color: var(--yunz-dark-gray);
    font-weight: 500;
}

.yunz-original-about-copy--english .group {
    margin-bottom: 52px;
}

/* Original Our Work gallery */
.yunz-home-work {
    background: var(--yunz-work-bg);
    padding: 58px 0 96px;
}

.yunz-original-work-inner {
    width: min(var(--yunz-content), calc(100% - 60px));
    margin-inline: auto;
}

.yunz-home-section-heading {
    margin-bottom: 58px;
    text-align: center;
}

.yunz-home-section-heading h2 {
    margin: 0;
    color: var(--yunz-light-gray);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.yunz-original-project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.yunz-original-project-card {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #ddd;
}

.yunz-original-project-card a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.yunz-original-project-card img,
.yunz-original-project-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yunz-original-project-placeholder {
    background: #ddd;
}

.yunz-original-project-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    place-items: center;
    min-height: 34px;
    padding: 8px 10px;
    color: #fff;
    background: rgba(77, 77, 77, .75);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    text-align: center;
    opacity: 0;
    transition: opacity 220ms ease, background 220ms ease;
}

.yunz-original-project-card a:hover .yunz-original-project-caption,
.yunz-original-project-card a:focus .yunz-original-project-caption {
    opacity: 1;
    background: rgba(0, 0, 0, .6);
}

/* Original contact */
.yunz-home-contact {
    position: relative;
    min-height: 697px;
    padding: 62px 30px 58px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.yunz-home-contact-inner {
    width: min(760px, 100%);
    margin-inline: auto;
    color: #fff;
}

.yunz-home-contact h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
}

.yunz-home-contact-email {
    margin: 42px 0 0;
}

.yunz-home-contact-email a {
    color: #a1a1a1;
    font-size: 23px;
    font-weight: 600;
}

.yunz-home-contact-spacer {
    height: 197px;
}

.yunz-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
}

.yunz-social-links a {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, .47);
}

.yunz-social-links svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.yunz-home-contact-brand {
    margin-top: 50px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 2.2;
}

.yunz-home-footer-strip {
    min-height: 115px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
}

/* General pages */
.page-shell {
    width: min(var(--yunz-content), calc(100% - 80px));
    margin-inline: auto;
    padding: 60px 0 90px;
}

.entry-header {
    margin-bottom: 36px;
}

.entry-title {
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.12;
}

.entry-content {
    max-width: 1000px;
}

.entry-content p {
    margin: 0 0 1.5em;
}

/* Portfolio plugin overrides */
.yunz-project-page,
.yunz-project-archive {
    width: min(var(--yunz-content), calc(100% - 80px)) !important;
    padding: 62px 0 90px !important;
}

.yunz-project-header h1 {
    font-family: var(--yunz-font) !important;
    font-weight: 500 !important;
}

body.post-type-archive-yunz_project .yunz-project-header {
    text-align: center;
}

body.post-type-archive-yunz_project .yunz-project-header h1 {
    font-size: clamp(38px, 4vw, 56px) !important;
    color: #a1a1a1;
    text-transform: uppercase;
}

body.single-yunz_project .yunz-project-header h1 {
    font-size: clamp(48px, 5vw, 72px) !important;
}

.yunz-project-card__body h2 {
    font-family: var(--yunz-font) !important;
    font-weight: 500 !important;
}

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.site-footer .yunz-container {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 34px;
    color: #777;
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

@media screen and (max-width: 1024px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .site-header {
        position: sticky;
        top: 0;
        left: 0;
        z-index: 1300;
        min-height: 50px;
        padding: 5px 10px !important;
        background: #fff;
        box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
    }

    .site-header .yunz-container {
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        align-items: center;
        width: 100%;
        max-width: none;
        min-height: 40px;
        margin: 0;
    }

    .site-branding {
        grid-column: 2;
        grid-row: 1;
        min-height: 40px;
        margin: 0;
        overflow: hidden;
    }

    .site-logo {
        width: auto;
        max-width: 125px;
        height: 40px;
    }

    .site-logo img {
        width: auto;
        height: 40px;
        max-height: 40px;
        margin-inline: auto;
    }

    .menu-toggle {
        position: relative;
        z-index: 1401;
        grid-column: 1;
        grid-row: 1;
        display: block;
        width: 42px;
        height: 40px;
        padding: 0;
    }

    .menu-toggle-lines,
    .menu-toggle-lines::before,
    .menu-toggle-lines::after {
        position: absolute;
        left: 4px;
        display: block;
        width: 22px;
        height: 2px;
        background: #000;
        content: "";
        transition: transform 200ms ease, top 200ms ease;
    }

    .menu-toggle-lines {
        top: 19px;
    }

    .menu-toggle-lines::before {
        top: -8px;
        left: 0;
    }

    .menu-toggle-lines::after {
        top: 8px;
        left: 0;
    }

    body.yunz-nav-open .menu-toggle-lines {
        background: transparent;
    }

    body.yunz-nav-open .menu-toggle-lines::before {
        top: 0;
        transform: rotate(45deg);
    }

    body.yunz-nav-open .menu-toggle-lines::after {
        top: 0;
        transform: rotate(135deg);
    }

    .primary-navigation {
        position: fixed;
        inset: 0;
        z-index: 1350;
        overflow-y: auto;
        padding: 92px 20px 50px;
        background: #fff;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-14px);
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    }

    .primary-navigation.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .primary-navigation ul,
    .primary-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-navigation li {
        display: block;
        text-align: center;
    }

    .primary-navigation a {
        padding: 12px 60px;
        font-size: 14px;
    }

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

@media screen and (max-width: 767px) {
    .yunz-container {
        width: calc(100% - 40px);
    }

    .yunz-home-overlay p {
        top: 27%;
        left: 5.5%;
        font-size: 15px;
        letter-spacing: .27em;
    }

    .yunz-original-concept-inner {
        padding: 76px 20px 98px;
    }

    .yunz-original-concept-title {
        font-size: 18px;
    }

    .yunz-original-concept-subtitle {
        margin: 44px 0 62px;
        font-size: 16px;
    }

    .yunz-original-divider {
        margin-bottom: 82px;
    }

    .yunz-original-concept-copy h2 {
        font-size: 16px;
    }

    .yunz-original-concept-copy .yunz-home-cn-title {
        margin: 14px 0 50px;
        font-size: 16px;
    }

    .yunz-original-lines {
        font-size: 16px;
        line-height: 1.9;
    }

    .yunz-original-lines span {
        margin-bottom: 28px;
    }

    .yunz-original-lines--english {
        margin-top: 64px;
    }

    .yunz-original-lines--english span {
        margin-bottom: 34px;
    }

    .yunz-home-about {
        min-height: 0;
        padding: 128px 20px 118px;
    }

    .yunz-original-about-heading {
        font-size: 17px;
    }

    .yunz-original-about-subtitle {
        margin-bottom: 64px;
        font-size: 16px;
    }

    .yunz-original-about-copy {
        font-size: 16px;
        line-height: 2.1;
    }

    .yunz-original-about-copy .group {
        margin-bottom: 34px;
    }

    .yunz-original-about-copy--english {
        margin-top: 94px;
        line-height: 2.15;
    }

    .yunz-original-about-copy--english .group {
        margin-bottom: 54px;
    }

    .yunz-home-work {
        padding: 36px 0 88px;
    }

    .yunz-original-work-inner {
        width: calc(100% - 30px);
    }

    .yunz-home-section-heading {
        margin-bottom: 70px;
    }

    .yunz-home-section-heading h2 {
        font-size: 24px;
    }

    .yunz-original-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .yunz-original-project-caption {
        min-height: 30px;
        padding: 7px 8px;
        font-size: 13px;
    }

    .yunz-home-contact {
        min-height: 697px;
        padding: 60px 20px 54px;
    }

    .yunz-home-contact h2 {
        font-size: 23px;
    }

    .yunz-home-contact-email {
        margin-top: 42px;
    }

    .yunz-home-contact-email a {
        font-size: 19px;
    }

    .yunz-home-contact-spacer {
        height: 197px;
    }

    .yunz-home-contact-brand {
        margin-top: 50px;
        font-size: 15px;
    }

    .page-shell,
    .yunz-project-page,
    .yunz-project-archive {
        width: calc(100% - 40px) !important;
        padding: 42px 0 68px !important;
    }

    body.single-yunz_project .yunz-project-header h1 {
        font-size: 42px !important;
    }
}


/* YUN'Z Design 0.6.0 — original Our Work page */
.yunz-work-archive {
    background: #f3f3f1;
}

.yunz-work-banner {
    position: relative;
    min-height: 255px;
    display: grid;
    place-items: center;
    background-position: 50% 44%;
    background-repeat: no-repeat;
    background-size: cover;
}

.yunz-work-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .08);
}

.yunz-work-banner h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-family: var(--yunz-font);
    font-size: clamp(32px, 4.2vw, 58px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: .08em;
    text-align: center;
}

.yunz-work-gallery-wrap {
    width: min(var(--yunz-content), calc(100% - 80px));
    margin-inline: auto;
    padding: 108px 0 120px;
}

.yunz-work-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.yunz-work-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: #ddd;
}

.yunz-work-item a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.yunz-work-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yunz-work-item-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    place-items: center;
    min-height: 36px;
    padding: 8px 10px;
    color: #fff;
    background: rgba(70, 70, 70, .72);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    opacity: 0;
    transition: opacity 200ms ease, background 200ms ease;
}

.yunz-work-item a:hover .yunz-work-item-caption,
.yunz-work-item a:focus .yunz-work-item-caption {
    opacity: 1;
    background: rgba(0, 0, 0, .62);
}

/* Award marks are preserved in the exact original Weebly thumbnails:
   Good Design Award 2024 — LuvUU Office
   iF Design Award 2021 — K.Y. Wang Residence and Hsu Residence | 1A */
.yunz-award-note {
    display: none;
}

@media screen and (max-width: 1024px) {
    .yunz-work-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .yunz-work-banner {
        min-height: 268px;
        background-position: 50% 44%;
    }

    .yunz-work-banner h1 {
        font-size: 34px;
        letter-spacing: .07em;
    }

    .yunz-work-gallery-wrap {
        width: calc(100% - 30px);
        padding: 108px 0 112px;
    }

    .yunz-work-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .yunz-work-item-caption {
        min-height: 32px;
        font-size: 13px;
    }
}


/* YUN'Z Design 0.6.1
 * Match the original Weebly Our Work mobile screenshot proportions.
 */
@media screen and (max-width: 767px) {
    /* Original banner is about 134 CSS px high on a 430 px-wide iPhone. */
    .yunz-work-banner {
        min-height: 134px;
        background-position: 50% 42%;
    }

    .yunz-work-banner h1 {
        font-size: 25px;
        line-height: 1.1;
        letter-spacing: .075em;
    }

    /* Original page uses approximately 24 px side margins. */
    .yunz-work-gallery-wrap {
        width: calc(100% - 48px);
        padding-top: 54px;
        padding-bottom: 104px;
    }

    .yunz-work-gallery {
        gap: 10px;
    }
}


/* YUN'Z Design 0.6.2
 * Mobile Our Work groups: 4 works per group, with blank separation between groups.
 */
.yunz-work-group-gap {
    display: none;
}

@media screen and (max-width: 767px) {
    .yunz-work-group-gap {
        display: block;
        grid-column: 1 / -1;
        height: 34px;
    }
}


/* YUN'Z Design 0.7.0 — original single project layout */
.yunz-single-work {
    min-height: 60vh;
    padding: 78px 0 112px;
    background: #f3f3f1;
}

.yunz-single-work-header {
    width: min(760px, calc(100% - 48px));
    margin: 0 auto;
    text-align: center;
}

.yunz-single-work-title {
    margin: 0;
    color: #a1a1a1;
    font-family: var(--yunz-font);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .02em;
}

.yunz-single-work-copy {
    width: min(720px, calc(100% - 48px));
    margin: 44px auto 54px;
    color: #555;
    text-align: center;
}

.yunz-single-work-copy .yunz-project-intro {
    max-width: none;
    margin: 0;
}

.yunz-single-work-copy .yunz-project-intro p {
    margin: 0;
}

.yunz-single-work-copy .yunz-project-intro-en {
    max-width: 600px;
    margin: 0 auto !important;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.95;
    letter-spacing: .06em;
}

.yunz-single-work-copy .yunz-project-intro-zh {
    max-width: 680px;
    margin: 34px auto 0 !important;
    color: #444;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.9;
    letter-spacing: .04em;
}

.yunz-single-work-copy > *:not(.yunz-project-intro) {
    max-width: 680px;
    margin-inline: auto;
}

.yunz-single-work-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.yunz-single-work-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.yunz-single-work-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    width: min(1120px, calc(100% - 48px));
    margin: 70px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, .12);
    color: #777;
    font-size: 14px;
}

.yunz-single-work-nav a {
    color: inherit;
}

@media screen and (max-width: 767px) {
    .yunz-single-work {
        padding: 61px 0 82px;
    }

    .yunz-single-work-header {
        width: calc(100% - 48px);
    }

    .yunz-single-work-title {
        font-size: 20px;
        line-height: 1.25;
        letter-spacing: .025em;
    }

    .yunz-single-work-copy {
        width: calc(100% - 48px);
        margin-top: 34px;
        margin-bottom: 38px;
    }

    .yunz-single-work-copy .yunz-project-intro-en {
        max-width: 350px;
        font-size: 15px;
        line-height: 2;
        letter-spacing: .065em;
    }

    .yunz-single-work-copy .yunz-project-intro-zh {
        max-width: 370px;
        margin-top: 28px !important;
        font-size: 15px;
        line-height: 1.9;
        letter-spacing: .035em;
    }

    .yunz-single-work-gallery {
        width: calc(100% - 48px);
        gap: 16px;
    }

    .yunz-single-work-nav {
        width: calc(100% - 48px);
        margin-top: 54px;
        font-size: 13px;
    }
}


/* YUN'Z Design 0.8.0 — original project slideshow + Design Concept */
:root {
    --yunz-montserrat: "Montserrat", Arial, sans-serif;
}

.yunz-single-work {
    min-height: 60vh;
    padding: 0;
    background: #fff;
}

.yunz-single-work-hero {
    padding: 78px 0 104px;
    background: #f3f3f1;
}

.yunz-single-work-title {
    color: #a1a1a1;
    font-family: var(--yunz-montserrat);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: .05em;
}

.yunz-single-work-copy {
    margin-top: 38px;
    margin-bottom: 44px;
}

.yunz-single-work-copy .yunz-project-intro-en,
.yunz-single-work-copy .yunz-project-intro-zh {
    font-family: var(--yunz-montserrat);
    font-weight: 500;
    letter-spacing: .05em;
}

.yunz-single-work-copy .yunz-project-intro-en {
    max-width: 640px;
    font-size: 14px;
    line-height: 1.75;
}

.yunz-single-work-copy .yunz-project-intro-zh {
    max-width: 700px;
    margin-top: 31px !important;
    color: #3f3f3f;
    font-size: 14px;
    line-height: 1.65;
}

.yunz-project-slider {
    position: relative;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    overflow: hidden;
    background: #eee;
    touch-action: pan-y;
}

.yunz-project-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .65s ease;
}

.yunz-project-slide.is-active {
    position: relative;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.yunz-project-slide img {
    display: block;
    width: 100%;
    height: auto;
}

.yunz-slider-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 42px;
    height: 58px;
    padding: 0;
    border: 0;
    color: rgba(255,255,255,.92);
    background: rgba(0,0,0,.14);
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease, background .2s ease;
}

.yunz-slider-control--prev { left: 0; }
.yunz-slider-control--next { right: 0; }

.yunz-project-slider:hover .yunz-slider-control,
.yunz-slider-control:focus-visible {
    opacity: 1;
}

.yunz-slider-control:hover,
.yunz-slider-control:focus-visible {
    background: rgba(0,0,0,.30);
}

.yunz-design-concept {
    padding: 72px 0 105px;
    background: #fff;
}

.yunz-design-concept-inner {
    width: min(1120px, calc(100% - 80px));
    margin: 0 auto;
}

.yunz-design-concept h2 {
    margin: 0 0 42px;
    color: #818181;
    font-family: var(--yunz-font);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
}

.yunz-design-concept-copy {
    color: #222;
    font-family: var(--yunz-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.9;
    text-align: justify;
}

.yunz-design-concept-copy p {
    margin: 0 0 1.15em;
}

.yunz-design-concept-en {
    margin-top: 38px;
    color: #444;
}

@media screen and (max-width: 767px) {
    .yunz-single-work-hero {
        padding: 61px 0 78px;
    }

    .yunz-single-work-title {
        font-size: 18px;
        letter-spacing: .05em;
    }

    .yunz-single-work-copy {
        width: calc(100% - 48px);
        margin-top: 31px;
        margin-bottom: 38px;
    }

    .yunz-single-work-copy .yunz-project-intro-en {
        max-width: 365px;
        font-size: 13px;
        line-height: 1.75;
        letter-spacing: .05em;
    }

    .yunz-single-work-copy .yunz-project-intro-zh {
        max-width: 380px;
        margin-top: 28px !important;
        font-size: 13px;
        line-height: 1.65;
        letter-spacing: .05em;
    }

    .yunz-project-slider {
        width: calc(100% - 48px);
    }

    .yunz-slider-control {
        width: 34px;
        height: 50px;
        font-size: 34px;
        opacity: 0;
    }

    .yunz-design-concept {
        padding: 65px 0 86px;
    }

    .yunz-design-concept-inner {
        width: calc(100% - 40px);
    }

    .yunz-design-concept h2 {
        margin-bottom: 42px;
        font-size: 18px;
    }

    .yunz-design-concept-copy {
        font-size: 15px;
        line-height: 2.05;
    }

    .yunz-design-concept-copy p {
        margin-bottom: 1.15em;
    }
}


/* YUN'Z Design 0.8.1 — stable Weebly-style fade
 *
 * The original 0.8.0 active slide became position:relative, so every image
 * change could recalculate the slider height. Mixed landscape/portrait images
 * then moved the whole page and looked like a screen flash.
 *
 * This version keeps a permanent 4:3 stage, preloads the next slides and fades
 * the new image above the old image. The old image remains visible until the
 * incoming image is fully decoded and opaque.
 */
.yunz-project-slider {
    position: relative;
    display: block;
    width: min(1120px, calc(100% - 48px));
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    overflow: hidden;
    isolation: isolate;
    contain: layout paint;
    background: #f3f3f1;
    touch-action: pan-y;
}

.yunz-project-slide,
.yunz-project-slide.is-active {
    position: absolute !important;
    inset: 0;
    z-index: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: opacity;
    transition: none;
}

.yunz-project-slide.is-active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.yunz-project-slide.is-incoming {
    z-index: 3;
    opacity: 0;
}

.yunz-project-slide.is-incoming.is-visible {
    opacity: 1;
    transition: opacity .82s cubic-bezier(.25, .46, .45, .94);
}

.yunz-project-slide.is-outgoing {
    z-index: 2;
    opacity: 1;
    transition: none;
}

.yunz-project-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f3f3f1;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-user-drag: none;
    user-select: none;
}

.yunz-project-slider.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .yunz-project-slide.is-incoming.is-visible {
        transition-duration: .01ms;
    }
}

@media screen and (max-width: 767px) {
    .yunz-project-slider {
        width: calc(100% - 48px);
        aspect-ratio: 4 / 3;
    }
}
