.office-page {
    --office-bg: #f5f1ed;
    --office-panel: #ffffff;
    --office-soft: #eee6df;
    --office-border: #e4d8cf;
    --office-text: #292522;
    --office-muted: #746c67;
    --office-accent: #c76c40;
    --office-accent-dark: #a9542e;

    color: var(--office-text);
    background: var(--office-bg);
}

.office-page .public-hero {
    background: #ffffff;
}

.office-intro {
    padding: 60px 24px;
    background: var(--office-panel);
}

.office-intro-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    text-align: center;
}

.office-intro-title {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(34px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.office-intro-text {
    max-width: 1000px;
    margin: 26px auto 0;

    color: var(--office-muted);

    font-size: 18px;
    line-height: 1.8;
}

.office-gallery-section {
    padding: 96px 24px;
    background: var(--office-bg);
}

.office-gallery-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.office-gallery-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.office-gallery-heading h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(36px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.office-gallery-heading p {
    margin: 20px auto 0;

    color: var(--office-muted);

    font-size: 17px;
    line-height: 1.75;
}

.office-gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}

.office-gallery-item,
.office-gallery-item.is-auto,
.office-gallery-item.is-square,
.office-gallery-item.is-portrait,
.office-gallery-item.is-landscape {
    position: relative;

    grid-column: auto;

    width: 100%;
    min-width: 0;
    height: auto;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    border-radius: 15px;

    background: #ded5ce;

    box-shadow:
        0 12px 28px
        rgba(59, 44, 35, 0.08);
}

.office-gallery-button {
    position: relative;

    display: block;

    width: 100%;
    height: 100%;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: inherit;

    color: #ffffff;
    background: transparent;

    cursor: zoom-in;
}

.office-gallery-button:focus-visible {
    outline: 4px solid
        rgba(199, 108, 64, 0.45);

    outline-offset: 4px;
}

.office-gallery-button img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.55s ease,
        filter 0.4s ease;
}

.office-gallery-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(24, 19, 16, 0.74) 0%,
            rgba(24, 19, 16, 0.14) 45%,
            rgba(24, 19, 16, 0.02) 75%
        );

    opacity: 0.65;

    transition:
        opacity 0.35s ease;
}

.office-gallery-zoom {
    position: absolute;
    top: 18px;
    right: 18px;

    display: flex;

    width: 46px;
    height: 46px;

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

    border: 1px solid
        rgba(255, 255, 255, 0.55);

    border-radius: 50%;

    color: #ffffff;
    background:
        rgba(36, 29, 25, 0.35);

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    backdrop-filter: blur(8px);

    transform:
        translateY(-8px)
        scale(0.92);

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
}

.office-gallery-caption {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;

    transform: translateY(8px);

    transition:
        transform 0.35s ease;
}

.office-gallery-button:hover img {
    transform: scale(1.055);
    filter: saturate(1.05);
}

.office-gallery-button:hover
.office-gallery-overlay {
    opacity: 0.9;
}

.office-gallery-button:hover
.office-gallery-zoom {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.office-gallery-button:hover
.office-gallery-caption {
    transform: translateY(0);
}

.office-gallery-empty {
    margin: 0;
    padding: 42px 24px;

    border: 1px solid var(--office-border);
    border-radius: 16px;

    color: var(--office-muted);
    background: var(--office-panel);

    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.office-cta-copy h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.office-cta-copy p {
    margin: 18px 0 0;

    color: var(--office-muted);

    font-size: 16px;
    line-height: 1.7;
}

.office-cta-button span:last-child {
    font-size: 20px;
    line-height: 1;
}

.office-cta-button:hover {
    border-color: var(--office-accent-dark);
    background: var(--office-accent-dark);

    transform: translateY(-2px);

    box-shadow:
        0 12px 22px
        rgba(169, 84, 46, 0.22);
}

.office-cta-button:focus-visible {
    outline: 4px solid
        rgba(199, 108, 64, 0.25);

    outline-offset: 4px;
}

body.office-lightbox-open {
    overflow: hidden;
}

.office-lightbox[hidden] {
    display: none;
}

.office-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;

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

    padding: 30px;
}

.office-lightbox-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(16, 13, 11, 0.92);

    backdrop-filter: blur(10px);
}

.office-lightbox-panel {
    position: relative;
    z-index: 1;

    display: flex;

    width: min(1320px, 100%);
    height: min(88vh, 900px);

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

    border-radius: 18px;
}

.office-lightbox-figure {
    display: grid;
    grid-template-rows:
        minmax(0, 1fr)
        auto;

    width: 100%;
    height: 100%;
    margin: 0;

    overflow: hidden;

    border-radius: 18px;

    background: #181411;

    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, 0.45);
}

.office-lightbox-figure img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 0;

    object-fit: contain;

    background: #100d0b;
}

.office-lightbox-caption {
    min-height: 98px;
    padding: 20px 26px;

    color: #ffffff;
    background: #211b18;
}

.office-lightbox-caption h2 {
    margin: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 23px;
    line-height: 1.25;
}

.office-lightbox-caption h2:empty {
    display: none;
}

.office-lightbox-caption p {
    margin: 8px 0 0;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 14px;
    line-height: 1.6;
}

.office-lightbox-caption p:empty {
    display: none;
}

.office-lightbox-counter {
    display: block;
    margin-top: 10px;

    color:
        rgba(255, 255, 255, 0.5);

    font-size: 12px;
    font-weight: 700;
}

.office-lightbox-close,
.office-lightbox-navigation {
    position: absolute;
    z-index: 3;

    display: flex;

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

    border: 1px solid
        rgba(255, 255, 255, 0.32);

    color: #ffffff;
    background:
        rgba(29, 24, 21, 0.58);

    cursor: pointer;

    backdrop-filter: blur(8px);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.office-lightbox-close:hover,
.office-lightbox-navigation:hover {
    border-color:
        rgba(255, 255, 255, 0.65);

    background:
        rgba(199, 108, 64, 0.85);
}

.office-lightbox-close:focus-visible,
.office-lightbox-navigation:focus-visible {
    outline: 3px solid
        rgba(255, 255, 255, 0.55);

    outline-offset: 3px;
}

.office-lightbox-close {
    top: 16px;
    right: 16px;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.office-lightbox-navigation {
    top: 50%;

    width: 52px;
    height: 68px;

    border-radius: 12px;

    font-size: 46px;
    font-weight: 300;
    line-height: 1;

    transform: translateY(-50%);
}

.office-lightbox-navigation:hover {
    transform:
        translateY(-50%)
        scale(1.04);
}

.office-lightbox-previous {
    left: 18px;
}

.office-lightbox-next {
    right: 18px;
}

@media (max-width: 1100px) {
    .office-gallery-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 14px;
    }

    .office-gallery-item,
    .office-gallery-item.is-auto,
    .office-gallery-item.is-square,
    .office-gallery-item.is-portrait,
    .office-gallery-item.is-landscape {
        grid-column: auto;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .office-cta-inner {
        padding: 40px;
    }
}

@media (max-width: 760px) {
    .office-intro {
        padding: 64px 18px;
    }

    .office-intro-text {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.7;
    }

    .office-gallery-section {
        padding: 68px 16px;
    }

    .office-gallery-heading {
        margin-bottom: 32px;
    }

    .office-gallery-heading p {
        margin-top: 16px;
        font-size: 15px;
    }

    .office-gallery-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .office-gallery-item,
    .office-gallery-item.is-auto,
    .office-gallery-item.is-square,
    .office-gallery-item.is-portrait,
    .office-gallery-item.is-landscape {
        grid-column: auto;
        height: auto;
        min-height: 0;
    }

    .office-gallery-zoom {
        top: 14px;
        right: 14px;

        width: 42px;
        height: 42px;

        opacity: 1;

        transform: none;
    }

    .office-gallery-caption {
        right: 18px;
        bottom: 16px;
        left: 18px;

        font-size: 19px;

        transform: none;
    }

    .office-cta {
        padding:
            10px
            16px
            70px;
    }

    .office-cta-inner {
        display: grid;
        padding: 30px 24px;
        gap: 28px;
    }

    .office-cta-button {
        width: 100%;
    }

    .office-lightbox {
        padding: 12px;
    }

    .office-lightbox-panel {
        height: min(92vh, 820px);
    }

    .office-lightbox-figure {
        border-radius: 12px;
    }

    .office-lightbox-caption {
        min-height: 84px;
        padding: 16px 18px;
    }

    .office-lightbox-caption h2 {
        font-size: 19px;
    }

    .office-lightbox-close {
        top: 10px;
        right: 10px;

        width: 42px;
        height: 42px;

        font-size: 27px;
    }

    .office-lightbox-navigation {
        top: auto;
        bottom: 105px;

        width: 44px;
        height: 52px;

        font-size: 36px;

        transform: none;
    }

    .office-lightbox-navigation:hover {
        transform: scale(1.04);
    }

    .office-lightbox-previous {
        left: 10px;
    }

    .office-lightbox-next {
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .office-gallery-button img,
    .office-gallery-overlay,
    .office-gallery-zoom,
    .office-gallery-caption,
    .office-cta-button,
    .office-lightbox-close,
    .office-lightbox-navigation {
        transition: none;
    }
}

@media (max-width: 520px) {
    .office-gallery-grid {
        grid-template-columns: 1fr;
    }
}