/* ============================================================
   Iris Design
   Version 17
   Midpoint gradient between versions 15 and 16
============================================================ */

:root {
    --ink: #171717;
    --gray: #6f6f74;
    --line: rgba(30, 30, 35, 0.12);
    --mint: #c8efbd;
    --magenta: #f6bfdc;
    --purple: #d8cbf5;
    --blue: #bee7f8;

    /*
       Cool-balanced shared gradient for every page hero.
       Mint appears only on the left. Blue and purple occupy more
       area, while magenta remains a softer accent. The top-right
       navigation area therefore sits over a cool blue tone.
    */
    --iris-page-gradient: linear-gradient(
        90deg,
        rgba(180, 229, 169, 0.255) 0%,
        rgba(162, 214, 239, 0.305) 29%,
        rgba(191, 170, 236, 0.335) 55%,
        rgba(236, 174, 213, 0.225) 74%,
        rgba(151, 207, 236, 0.335) 100%
    );

    --iris-strip-gradient: linear-gradient(
        90deg,
        rgba(180, 229, 169, 0.225) 0%,
        rgba(162, 214, 239, 0.270) 29%,
        rgba(191, 170, 236, 0.295) 55%,
        rgba(236, 174, 213, 0.205) 74%,
        rgba(151, 207, 236, 0.295) 100%
    );
    --max: 1180px;
    --font-main: "Noto Sans JP", sans-serif;
    --font-en: var(--font-main);
    --ease: 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-stretch: normal;
    line-break: strict;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--ink);
    background: #ffffff;
    font-family: var(--font-main);
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

::selection {
    color: var(--ink);
    background: rgba(216, 203, 245, 0.55);
}

.container {
    width: min(var(--max), calc(100% - 12vw));
    margin-inline: auto;
}

/* ============================================================
   Header
============================================================ */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    padding: 12px 0;
    border-bottom: 1px solid rgba(23, 23, 23, 0.055);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 8px 30px rgba(45, 35, 70, 0.035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        padding var(--ease),
        background-color var(--ease),
        box-shadow var(--ease),
        backdrop-filter var(--ease);
}

.header.is-scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 35px rgba(45, 35, 70, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.brand {
    display: block;
    flex: 0 0 auto;
}

.brand img {
    width: auto;
    height: 126px;
    object-fit: contain;
    transition:
        transform var(--ease),
        opacity var(--ease);
}

.brand:hover img {
    transform: translateY(-1px);
    opacity: 0.82;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    position: relative;
    padding: 8px 0;
    font: 400 13px var(--font-en);
    letter-spacing: 0.09em;
}

.nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 320ms ease;
}

.nav a:hover::after,
.nav a.is-current::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.menu-button {
    display: none;
    border: 0;
    background: none;
    font: 400 12px var(--font-en);
    letter-spacing: 0.12em;
    cursor: pointer;
}

/* ============================================================
   Single pastel gradient

   One continuous gradient only. The page remains predominantly
   white. Mint stays on the left, blue and purple form the main
   cool-color field, and magenta is used as a restrained accent.
============================================================ */

/*
   Home, Works, Services, About and Contact use exactly the same
   uninterrupted gradient. The color balance is controlled here.
*/
.gradient-surface,
.hero.gradient-surface,
.page-hero.gradient-surface {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 80%,
            rgba(255, 255, 255, 0.12) 86%,
            rgba(255, 255, 255, 0.38) 92%,
            rgba(255, 255, 255, 0.72) 97%,
            #ffffff 100%
        ),
        var(--iris-page-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%;
}

.gradient-strip {
    background-color: #ffffff;
    background-image:
        linear-gradient(
            180deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.76) 5%,
            rgba(255, 255, 255, 0.34) 12%,
            rgba(255, 255, 255, 0.10) 20%,
            rgba(255, 255, 255, 0.10) 80%,
            rgba(255, 255, 255, 0.34) 88%,
            rgba(255, 255, 255, 0.76) 95%,
            #ffffff 100%
        ),
        var(--iris-strip-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%, 100% 100%;
    text-align: center;
}

/* ============================================================
   Typography and common elements
============================================================ */

@supports (word-break: auto-phrase) {
    body {
        word-break: auto-phrase;
    }
}

h1,
h2,
h3,
.hero-ja,
.page-ja,
.lead,
.cta-message {
    text-wrap: balance;
}

.eyebrow {
    color: var(--gray);
    font: 400 12px var(--font-en);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow.brand-name {
    text-transform: none;
    letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
    font: 300 clamp(48px, 8vw, 108px) / 1.03 var(--font-en);
    letter-spacing: -0.05em;
}

.hero-ja,
.page-ja {
    margin-top: 22px;
    color: #4d4d52;
    font-family: inherit;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 200;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

.rule {
    width: min(760px, 100%);
    height: 1px;
    margin: 54px auto;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(80, 80, 80, 0.4),
        transparent
    );
}

.lead {
    max-width: 760px;
    margin: 44px auto 0;
    color: #4d4d52;
    font-size: clamp(14px, 1.3vw, 17px);
}

.section {
    padding: 135px 0;
}

.section-head {
    margin-bottom: 62px;
}

.split {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 9vw;
}

.split h2,
.section-head h2,
.cta h2 {
    font: 300 clamp(38px, 5vw, 70px) / 1.15 var(--font-en);
    letter-spacing: -0.04em;
}

/* Home introduction: add space only between the English heading
   and the Japanese explanatory text. */
.intro .split h2 + p {
    margin-top: 52px;
}

.intro .intro-message {
    color: #4d4d52;
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 300;
    line-height: 1.9;
}

.concept-title {
    max-width: none;
    margin-top: 26px;
    color: #4d4d52;
    font-size: clamp(28px, 3.3vw, 44px);
    font-weight: 200;
    line-height: 1.5;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.split p + p {
    margin-top: 24px;
}

.pill {
    display: inline-flex;
    min-width: 160px;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    font: 400 12px var(--font-en);
    letter-spacing: 0.15em;
    cursor: pointer;
    transition:
        color 300ms ease,
        background-color 300ms ease,
        transform 300ms ease;
}

.pill:hover {
    color: #ffffff;
    background: var(--ink);
    transform: translateY(-2px);
}

/* ============================================================
   Home hero
============================================================ */

.hero {
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 185px 0 105px;
}

.hero-inner {
    max-width: 1020px;
    text-align: center;
}

.hero .eyebrow {
    margin-bottom: 22px;
}

.service-line {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    font: 300 clamp(14px, 1.4vw, 18px) var(--font-en);
}

.service-line span {
    padding: 4px 16px;
}

.service-line span + span {
    border-left: 1px solid var(--line);
}

/* ============================================================
   Works cards
============================================================ */

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px 36px;
}

.work-card .placeholder {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(70, 55, 95, 0.085);
    font: 300 22px var(--font-en);
    letter-spacing: 0.025em;
    transition:
        transform var(--ease),
        box-shadow var(--ease);
}

.work-card:hover .placeholder {
    transform: translateY(-7px);
    box-shadow: 0 30px 88px rgba(70, 55, 95, 0.13);
}

.work-card > div:last-child {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 68px 4px 0;
}

.work-card span {
    padding-top: 4px;
    color: var(--gray);
    font: 400 13px var(--font-en);
    letter-spacing: 0.12em;
}

.work-card h3 {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.06em;
}

.pastel-mint {
    background: linear-gradient(
        135deg,
        rgba(200, 239, 189, 0.42),
        rgba(255, 255, 255, 0.93)
    );
}

.pastel-mint-blue {
    background: linear-gradient(
        135deg,
        rgba(176, 232, 210, 0.48) 0%,
        rgba(170, 225, 222, 0.44) 46%,
        rgba(173, 211, 242, 0.40) 76%,
        rgba(255, 255, 255, 0.94) 100%
    );
}

.pastel-mint-magenta {
    background: linear-gradient(
        135deg,
        rgba(200, 239, 189, 0.48) 0%,
        rgba(207, 235, 190, 0.44) 48%,
        rgba(246, 191, 220, 0.22) 78%,
        rgba(255, 255, 255, 0.94) 100%
    );
}

.pastel-pink {
    background: linear-gradient(
        135deg,
        rgba(246, 191, 220, 0.40),
        rgba(255, 255, 255, 0.93)
    );
}

.pastel-lavender {
    background: linear-gradient(
        135deg,
        rgba(216, 203, 245, 0.43),
        rgba(255, 255, 255, 0.93)
    );
}

.pastel-blue {
    background: linear-gradient(
        135deg,
        rgba(190, 231, 248, 0.45),
        rgba(255, 255, 255, 0.93)
    );
}

.cta p {
    margin: 24px 0 34px;
}

.cta .cta-message {
    max-width: 30em;
    margin: 30px auto 40px;
    color: #4d4d52;
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: 0.025em;
    text-align: center;
}

/* ============================================================
   Inner page hero
============================================================ */

.page-hero {
    display: flex;
    min-height: 78svh;
    align-items: center;
    padding: 195px 0 105px;
}

.page-hero h1 {
    font-size: clamp(50px, 7.5vw, 104px);
    font-weight: 200;
}

.page-hero .page-ja {
    transform-origin: left center;
}

.page-hero .rule {
    margin: 50px 0 38px;
}

.page-hero .lead {
    max-width: 650px;
    margin: 0;
}

/* ============================================================
   Works page
============================================================ */

.project-head {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 24px;
    margin-bottom: 58px;
}

.project-head > span {
    padding-top: 10px;
    color: var(--gray);
    font: 400 12px var(--font-en);
    letter-spacing: 0.12em;
}

.project-head .eyebrow {
    margin-bottom: 32px;
}

.project-head h2 {
    font-size: clamp(31px, 4vw, 56px);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.06em;
}

.project-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 7vw;
    align-items: center;
}

.project-image,
.gallery-item {
    display: grid;
    aspect-ratio: 16 / 10;
    place-items: center;
    border-radius: 24px;
    color: #66666c;
    box-shadow: 0 24px 80px rgba(70, 55, 95, 0.075);
    font: 300 18px var(--font-en);
    letter-spacing: 0.04em;
}

.project-copy dl {
    margin-top: 36px;
    border-top: 1px solid var(--line);
}

.project-copy dl div {
    display: grid;
    grid-template-columns: 90px 1fr;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

dt {
    color: var(--gray);
    font: 400 10px var(--font-en);
    letter-spacing: 0.12em;
}

dd {
    font-size: 13px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 54px;
}

/* ============================================================
   Services / About / Contact
============================================================ */

.service-cards,
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card,
.value-grid article {
    min-height: 330px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.service-card span,
.value-grid span {
    color: var(--gray);
    font: 400 11px var(--font-en);
}

.service-card h2,
.value-grid h3 {
    margin: 68px 0 34px;
    font: 300 28px / 1.25 var(--font-en);
}

.service-card strong {
    display: block;
    margin-top: 28px;
    color: var(--gray);
    font: 400 12px var(--font-en);
}

.workflow ol {
    border-top: 1px solid var(--line);
}

.workflow li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.workflow li > span {
    color: var(--gray);
    font: 400 11px var(--font-en);
}

.workflow h3 {
    margin-bottom: 7px;
    font: 300 27px var(--font-en);
}

.note,
.profile-table {
    background: #f8f8f8;
}

.profile-table dl {
    border-top: 1px solid var(--line);
}

.profile-table dl div {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 9vw;
}

.contact-grid h2 {
    font-size: clamp(31px, 4vw, 54px);
    font-weight: 300;
    line-height: 1.4;
}

.contact-grid ul {
    margin-top: 28px;
}

.contact-grid li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.contact-form {
    display: grid;
    gap: 22px;
}

.contact-form label {
    display: grid;
    gap: 9px;
    font-size: 13px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(30, 30, 35, 0.28);
    outline: none;
    background: transparent;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--ink);
}

.form-note {
    color: var(--gray);
    font-size: 12px;
}

/* ============================================================
   Footer
============================================================ */

.footer {
    padding: 70px 0 35px;
    background: #ffffff;
}

.footer-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.footer img {
    width: auto;
    height: 126px;
    object-fit: contain;
}

.footer nav {
    display: flex;
    gap: 25px;
    font: 400 13px var(--font-en);
}

.footer-copy {
    margin-top: 38px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: #96969b;
    font: 400 10px var(--font-en);
}

/* ============================================================
   Reveal animation
============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 800ms ease,
        transform 800ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   Tablet
============================================================ */

@media (max-width: 900px) {
    .container {
        width: min(var(--max), calc(100% - 44px));
    }

    .brand img,
    .footer img {
        width: auto;
        height: 110px;
    }

    .nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .nav.is-open {
        position: absolute;
        top: 134px;
        right: 22px;
        left: 22px;
        display: block;
        padding: 24px;
        border: 1px solid rgba(30, 30, 35, 0.07);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 20px 60px rgba(60, 45, 80, 0.12);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .nav.is-open ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .split,
    .project-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-cards,
    .value-grid {
        grid-template-columns: 1fr;
    }

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

    .work-grid {
        grid-template-columns: 1fr;
    }

    .service-line {
        grid-template-columns: 1fr;
    }

    .service-line span {
        padding: 14px 0;
        border-top: 1px solid var(--line);
    }

    .service-line span + span {
        border-left: 0;
    }

    .footer-grid {
        align-items: flex-start;
    }

    .footer nav {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* ============================================================
   Mobile
============================================================ */

@media (max-width: 600px) {
    .intro .intro-message {
        font-size: 14px;
        line-height: 1.85;
    }

    .concept-title {
        margin-top: 20px;
        font-size: 27px;
    }

    .cta .cta-message {
        max-width: 100%;
        margin: 24px auto 34px;
        font-size: 14px;
        line-height: 1.75;
        text-align: center;
    }

    .container {
        width: calc(100% - 36px);
    }

    .header {
        padding: 8px 0;
    }

    .brand img,
    .footer img {
        width: auto;
        height: 94px;
    }

    .nav.is-open {
        top: 116px;
    }

    .hero {
        padding-top: 165px;
    }

    .page-hero {
        padding-top: 165px;
    }

    .section {
        padding: 95px 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .page-hero h1 {
        font-size: 48px;
    }

    .hero-ja,
    .page-ja {
        font-size: 30px;
    }

    .rule {
        margin: 40px auto;
    }

    .page-hero .rule {
        margin: 40px 0 31px;
    }

    .work-card .placeholder,
    .project-image,
    .gallery-item {
        border-radius: 18px;
    }

    .intro .split h2 + p {
        margin-top: 36px;
    }

    .work-card > div:last-child {
        padding-top: 46px;
    }

    .project-head {
        grid-template-columns: 42px 1fr;
    }

    .profile-table dl div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .footer-grid {
        flex-direction: column;
    }

    .footer nav {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   Version 23: portfolio images
============================================================ */

.work-thumb {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(30, 30, 35, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(70, 55, 95, 0.085);
    transition:
        transform var(--ease),
        box-shadow var(--ease);
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-thumb {
    transform: translateY(-7px);
    box-shadow: 0 30px 88px rgba(70, 55, 95, 0.13);
}

.work-card:hover .work-thumb img {
    transform: scale(1.018);
}

.project-layout {
    align-items: start;
}

.project-featured-media,
.portfolio-item {
    min-width: 0;
}

.portfolio-image-button {
    display: grid;
    width: 100%;
    padding: 0;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(30, 30, 35, 0.09);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(70, 55, 95, 0.075);
    cursor: zoom-in;
    transition:
        transform var(--ease),
        box-shadow var(--ease),
        border-color var(--ease);
}

.project-featured-media .portfolio-image-button {
    aspect-ratio: 16 / 10;
}

.portfolio-item .portfolio-image-button {
    aspect-ratio: 16 / 11;
}

.portfolio-image-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-image-button:hover {
    border-color: rgba(30, 30, 35, 0.16);
    box-shadow: 0 30px 92px rgba(70, 55, 95, 0.12);
    transform: translateY(-4px);
}

.portfolio-image-button:hover img {
    transform: scale(1.012);
}

.project-featured-media figcaption,
.portfolio-item figcaption {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    padding: 15px 4px 0;
    color: var(--gray);
    font: 400 10px var(--font-en);
    letter-spacing: 0.12em;
}


.portfolio-gallery-top {
    display: grid;
    max-width: min(560px, 100%);
    margin-top: 68px;
}

.portfolio-gallery-scroll-wrap {
    margin-top: 28px;
    padding-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(30, 30, 35, 0.28) rgba(30, 30, 35, 0.06);
}

.portfolio-gallery-scroll-wrap::-webkit-scrollbar {
    height: 10px;
}

.portfolio-gallery-scroll-wrap::-webkit-scrollbar-track {
    background: rgba(30, 30, 35, 0.06);
    border-radius: 999px;
}

.portfolio-gallery-scroll-wrap::-webkit-scrollbar-thumb {
    background: rgba(30, 30, 35, 0.28);
    border-radius: 999px;
}

.portfolio-gallery-scroll {
    display: flex;
    gap: 28px;
    width: max-content;
    min-width: 100%;
    padding-bottom: 8px;
}

.portfolio-gallery-scroll .portfolio-item {
    flex: 0 0 clamp(260px, 34vw, 420px);
}

.portfolio-scroll-note {
    margin-top: 12px;
    color: var(--gray);
    font-size: 12px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 0;
    background: rgba(12, 12, 15, 0.90);
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox-inner {
    position: relative;
    display: grid;
    width: min(1500px, 100%);
    max-height: calc(100svh - 64px);
    place-items: center;
}

.image-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100svh - 64px);
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42);
}

.image-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(20, 20, 24, 0.72);
    cursor: pointer;
    font: 300 24px / 1 var(--font-en);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .portfolio-gallery-scroll {
        gap: 22px;
    }

    .portfolio-gallery-scroll .portfolio-item {
        flex-basis: clamp(240px, 58vw, 360px);
    }
}

@media (max-width: 600px) {
    .work-thumb,
    .portfolio-image-button {
        border-radius: 18px;
    }

    .portfolio-gallery-top {
        margin-top: 50px;
    }

    .portfolio-gallery-scroll-wrap {
        margin-top: 22px;
        padding-bottom: 8px;
    }

    .portfolio-gallery-scroll {
        gap: 18px;
    }

    .portfolio-gallery-scroll .portfolio-item {
        flex-basis: min(82vw, 320px);
    }

    .project-featured-media figcaption,
    .portfolio-item figcaption {
        font-size: 9px;
    }

    .portfolio-scroll-note {
        font-size: 11px;
    }

    .image-lightbox {
        padding: 14px;
    }

    .image-lightbox-inner,
    .image-lightbox img {
        max-height: calc(100svh - 28px);
    }

    .image-lightbox-close {
        top: 8px;
        right: 8px;
    }
}


/* ============================================================
   Version 24: all Works images use one horizontal gallery
============================================================ */

.project-overview {
    max-width: 760px;
}

.portfolio-gallery-all {
    margin-top: 58px;
    padding-top: 6px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
}

.portfolio-gallery-all .portfolio-gallery-scroll {
    align-items: flex-start;
}

.portfolio-gallery-all .portfolio-item {
    flex: 0 0 clamp(320px, 46vw, 680px);
    scroll-snap-align: start;
}

.portfolio-gallery-all .portfolio-image-button {
    aspect-ratio: 16 / 10;
}

@media (max-width: 900px) {
    .portfolio-gallery-all .portfolio-item {
        flex-basis: clamp(280px, 70vw, 540px);
    }
}

@media (max-width: 600px) {
    .portfolio-gallery-all {
        margin-top: 46px;
    }

    .portfolio-gallery-all .portfolio-item {
        flex-basis: min(86vw, 360px);
    }
}
/* redeploy */
