﻿.project-page {
    min-height: 100vh;
    padding: 210px 60px 92px;
    background:
        radial-gradient(circle at top left, rgba(20, 163, 168, 0.08), transparent 30%),
        radial-gradient(circle at top right, rgba(201, 169, 110, 0.09), transparent 26%),
        linear-gradient(180deg, var(--color-bg-primary), var(--color-bg-secondary));
}

.project-header,
.project-gallery-wrap {
    width: min(100%, 1480px);
    margin-left: auto;
    margin-right: auto;
}

.project-header {
    margin-bottom: clamp(36px, 5vw, 74px);
}

.project-label {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
    color: var(--color-accent);
    background: rgba(20, 163, 168, 0.08);
    border: 1px solid rgba(20, 163, 168, 0.18);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.project-title {
    margin: 0 0 18px;
    color: var(--color-text-primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 5.4vw, 68px);
    line-height: 1.02;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.project-subtitle {
    max-width: 900px;
    margin: 0 0 24px;
    color: var(--color-text-muted);
    font-size: 18px;
    line-height: 1.9;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-meta-item {
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(13, 115, 119, 0.08);
    box-shadow: 0 10px 28px rgba(28, 28, 26, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .project-meta-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.project-topbar {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin: 34px 0 0;
    padding: 0 0 0 26px;
    flex-wrap: wrap;
}

.project-nav-actions,
.project-nav-actions--switch,
.project-topbar .project-nav-actions,
.project-topbar .project-nav-actions--switch {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    min-width: 0;
    margin: 0;
    flex-wrap: wrap;
}

.project-nav-actions--switch {
    order: 2;
}

.project-back,
.project-menu-trigger {
    min-width: 52px;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
    font: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.96), rgba(20, 163, 168, 0.96));
    box-shadow: 0 18px 38px rgba(13, 115, 119, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(0);
}

.project-back {
    padding: 0 20px;
    font-weight: 800;
    white-space: nowrap;
}

.project-menu-trigger {
    padding: 0 20px;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.project-back:hover,
.project-menu-trigger:hover {
    box-shadow: 0 22px 44px rgba(13, 115, 119, 0.34);
}

.project-switch {
    position: relative;
    z-index: 90;
}

.project-menu-arrow {
    font-size: 13px;
    line-height: 1;
    transition: transform 0.28s ease;
}

.project-switch.is-open .project-menu-arrow {
    transform: rotate(180deg);
}

.project-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(330px, calc(100vw - 40px));
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.38));
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 22px 48px rgba(15, 15, 15, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.98);
    transition: 0.25s ease;
    z-index: 120;
}

[data-theme="dark"] .project-menu-panel {
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.62), rgba(18, 18, 18, 0.40));
    border-color: rgba(255, 255, 255, 0.1);
}

.project-switch.is-open .project-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.project-menu-list {
    display: grid;
    gap: 10px;
}

.project-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.30);
    border: 1px solid rgba(13, 115, 119, 0.08);
    color: var(--color-text-primary);
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

[data-theme="dark"] .project-menu-item {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f5f3ef;
}

.project-menu-item:hover {
    transform: translateY(-1px);
    background: rgba(20, 163, 168, 0.14);
}

.project-menu-item.is-active {
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.2), rgba(20, 163, 168, 0.14));
    border-color: rgba(20, 163, 168, 0.28);
}

.project-menu-note {
    font-size: 12px;
    color: var(--color-text-muted);
}

.project-menu-badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(20, 163, 168, 0.14);
    color: var(--color-text-primary);
}

[data-theme="dark"] .project-menu-badge {
    color: #ffffff;
}

.project-gallery-wrap {
    display: block;
}

.project-card-shell {
    position: relative;
    width: 100%;
    isolation: isolate;
}

.project-gallery-frame {
    position: relative;
    overflow: visible;
    isolation: isolate;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(0);
    animation: projectGalleryReveal 0.72s ease both;
    transition: none;
}

.project-gallery-frame::before,
.project-gallery-frame::after {
    display: none;
}

.project-gallery-frame:hover {
    border-color: transparent;
    box-shadow: none;
}

[data-theme="dark"] .project-gallery-frame {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.project-gallery,
.project-gallery.compact,
.project-gallery-frame.compact .project-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
    align-items: start;
}

.project-gallery-item {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: block;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    aspect-ratio: 4 / 2.15;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 14px 34px rgba(20, 20, 20, 0.10);
    cursor: pointer;
    isolation: isolate;
    transform: translateY(0);
    transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.project-gallery-item:first-child::before {
    display: none;
    content: none;
}

[data-theme="dark"] .project-gallery-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.28);
}

.project-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 38%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 48%);
    opacity: 0.46;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.project-gallery-item img {
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    transform: scale(1.001);
    transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.72s ease;
}

.project-gallery-item:hover img {
    transform: scale(1.055);
    filter: saturate(1.04) contrast(1.03);
}

.project-gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 163, 168, 0.32);
    box-shadow: 0 24px 58px rgba(13, 115, 119, 0.13), 0 16px 44px rgba(20, 20, 20, 0.14);
}

.project-gallery-item:hover::after {
    opacity: 0.5;
}

.project-gallery-item:focus-visible {
    outline: 3px solid rgba(20, 163, 168, 0.56);
    outline-offset: 4px;
}

@keyframes projectGalleryReveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(201, 169, 110, 0.12), transparent 28%),
        rgba(8, 10, 10, 0.78);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-shell {
    position: relative;
    width: min(100%, 1480px);
    max-height: calc(100vh - 24px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 22px 14px 14px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(22, 22, 21, 0.78), rgba(8, 10, 10, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    min-height: 72px;
    padding: 0 110px 0 8px;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.lightbox-counter {
    display: flex;
    gap: 8px;
    color: #f6f3ec;
    font-weight: 800;
}

.lightbox-stage,
.lightbox-content {
    min-width: 0;
    min-height: 0;
}

.lightbox-image-wrap {
    --lightbox-image: none;
    position: relative;
    width: 100%;
    height: clamp(460px, 64vh, 760px);
    max-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 110px 10px;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(12, 13, 13, 0.56);
}

.lightbox-image-wrap::before {
    content: "";
    position: absolute;
    inset: -4%;
    background-image: var(--lightbox-image);
    background-size: cover;
    background-position: center;
    filter: blur(34px);
    opacity: 0.58;
}

.lightbox-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.lightbox-image-wrap img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
}

.lightbox-image-wrap.is-portrait {
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    padding-bottom: 8px;
}

.lightbox-image-wrap.is-portrait img {
    max-width: min(72vw, 720px);
    max-height: calc(100% - 14px);
    margin-top: 0;
}

.lightbox-close,
.lightbox-nav {
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    font-size: 30px;
    z-index: 20;
    background: rgba(18, 18, 18, 0.38);
}

.lightbox-close:hover {
    transform: scale(1.06);
    background: rgba(35, 35, 40, 0.96);
    color: #f4d7a0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    z-index: 8;
    transform: translateY(-50%);
    transition: transform 0.28s ease, color 0.28s ease, background 0.28s ease;
    background: transparent;
}

.lightbox-prev {
    left: 22px;
}

.lightbox-next {
    right: 22px;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.06);
    color: #f4d7a0;
    background: rgba(255, 255, 255, 0.06);
}

.lightbox-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
}

.lightbox-thumb-btn {
    flex: 0 0 98px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    padding: 0;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    opacity: 0.58;
    transition: opacity 0.24s ease, border-color 0.24s ease;
}

.lightbox-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb-btn.active,
.lightbox-thumb-btn:hover {
    opacity: 1;
    border-color: rgba(201, 169, 110, 0.46);
}

body.lightbox-open {
    overflow: hidden;
}

body.lightbox-open .theme-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1180px) {
    .project-gallery,
    .project-gallery.compact,
    .project-gallery-frame.compact .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .project-page {
        padding: 142px 30px 70px;
    }

    .lightbox-image-wrap {
        height: clamp(390px, 60vh, 660px);
        max-height: calc(100vh - 180px);
        padding: 16px 76px 10px;
    }
}

@media (max-width: 768px) {
    .project-topbar {
        padding-left: 28px;
    }

    .project-page {
        padding: 132px 16px 48px;
    }

    .project-back,
    .project-menu-trigger {
        min-height: 38px;
        border-radius: 14px;
        padding: 0 12px;
        font-size: 12px;
        box-shadow: 0 12px 24px rgba(13, 115, 119, 0.22);
    }

    .project-nav-actions,
    .project-nav-actions--switch,
    .project-topbar .project-nav-actions,
    .project-topbar .project-nav-actions--switch {
        gap: 8px;
    }

    .project-menu-panel {
        right: 0;
        left: auto;
        width: min(242px, calc(100vw - 48px));
        padding: 10px;
        border-radius: 22px;
        background: linear-gradient(180deg, rgba(18, 18, 18, 0.42), rgba(18, 18, 18, 0.28));
        border-color: rgba(255, 255, 255, 0.09);
    }

    .project-menu-item {
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.045);
        font-size: 13px;
    }

    .project-header {
        margin-bottom: 28px;
    }

    .project-title {
        font-size: clamp(34px, 10vw, 48px);
        line-height: 1.02;
    }

    .project-label {
        padding: 8px 12px;
        margin-bottom: 14px;
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .project-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .project-gallery,
    .project-gallery.compact,
    .project-gallery-frame.compact .project-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .project-gallery-item {
        border-radius: 28px;
        aspect-ratio: 4 / 2.35;
    }

    .lightbox {
        padding: 8px;
    }

    .lightbox-shell {
        gap: 10px;
        padding: 12px 8px 8px;
        border-radius: 28px;
        max-height: calc(100vh - 16px);
    }

    .lightbox-image-wrap {
        height: clamp(420px, 68vh, 620px);
        max-height: calc(100vh - 126px);
        padding: 0 38px 2px;
        border-radius: 26px;
        background: rgba(12, 14, 14, 0.18);
    }

    .lightbox-image-wrap::before,
    .lightbox-image-wrap::after {
        display: none;
    }

    .lightbox-image-wrap img {
        border-radius: 18px;
    }

    .lightbox-image-wrap.is-portrait {
        padding-top: 0;
        padding-bottom: 6px;
    }

    .lightbox-image-wrap.is-portrait img {
        max-width: 100%;
        max-height: 100%;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-50%) scale(1.03);
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }

    .lightbox-close {
        top: 6px;
        right: 6px;
        width: 42px;
        height: 42px;
        font-size: 22px;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .lightbox-close:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .lightbox-thumb-btn {
        flex-basis: 64px;
        height: 46px;
        border-radius: 14px;
    }

    .lightbox-thumbs {
        gap: 8px;
        padding: 0 2px 4px;
    }

    .lightbox-topbar {
        min-height: 42px;
        padding: 0 46px 0 4px;
        align-items: center;
    }

    .lightbox-caption {
        font-size: 10px;
        letter-spacing: 0.22em;
    }

    .lightbox-counter {
        font-size: 15px;
    }
}

@media (max-width: 560px) {
    .project-page {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 128px;
    }

    .project-back,
    .project-menu-trigger {
        min-height: 36px;
        padding: 0 10px;
        font-size: 11px;
        border-radius: 14px;
    }

    .project-title {
        font-size: clamp(32px, 11vw, 46px);
    }

    .project-subtitle {
        font-size: 16px;
    }

    .project-meta-item {
        width: 100%;
    }

    .project-gallery,
    .project-gallery.compact,
    .project-gallery-frame.compact .project-gallery {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-gallery-item {
        border-radius: 20px;
        aspect-ratio: 4 / 2.35;
    }

    .lightbox-shell {
        border-radius: 24px;
        padding: 10px;
        gap: 10px;
    }

    .lightbox-topbar {
        padding-right: 58px;
    }

    .lightbox-caption {
        letter-spacing: 0.18em;
    }

    .lightbox-image-wrap {
        height: clamp(380px, 66vh, 520px);
        max-height: calc(100vh - 118px);
        padding: 0 30px 0;
        border-radius: 0;
    }

    .lightbox-image-wrap img {
        border-radius: 18px;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
}

/* Clean mobile lightbox: desktop-like thumbs, transparent arrows, no theme toggle overlap. */
@media (max-width: 768px) {
    .project-gallery-item {
        border-radius: 30px;
    }

    .project-gallery-item img {
        border-radius: inherit;
    }

    body.lightbox-open .theme-toggle {
        display: none;
    }

    .lightbox {
        padding: 10px;
        background:
            radial-gradient(circle at top left, rgba(201, 169, 110, 0.08), transparent 30%),
            rgba(9, 13, 13, 0.62);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .lightbox-shell {
        width: min(100%, 430px);
        height: min(100%, calc(100vh - 20px));
        max-height: calc(100vh - 20px);
        grid-template-rows: auto minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px 10px 14px;
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(19, 20, 20, 0.52), rgba(8, 10, 10, 0.38));
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
    }

    .lightbox-topbar {
        min-height: 38px;
        padding: 0 46px 0 2px;
        align-items: center;
    }

    .lightbox-caption {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .lightbox-counter {
        font-size: 12px;
    }

    .lightbox-stage,
    .lightbox-content {
        min-height: 0;
        height: 100%;
    }

    .lightbox-image-wrap {
        height: min(72vh, 640px);
        min-height: 0;
        max-height: none;
        padding: 4px 18px;
        border-radius: 28px;
        background: rgba(12, 14, 14, 0.16);
    }

    .lightbox-image-wrap::before,
    .lightbox-image-wrap::after {
        display: none;
    }

    .lightbox-image-wrap img,
    .lightbox-image-wrap.is-portrait img,
    .lightbox-image-wrap.is-landscape img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 30px;
        box-shadow: none;
    }

    .lightbox-image-wrap.is-portrait,
    .lightbox-image-wrap.is-landscape {
        padding: 4px 18px;
        align-items: center;
    }

    .lightbox-nav {
        width: 36px;
        height: 52px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
        color: rgba(255, 255, 255, 0.94);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .lightbox-nav span {
        font-size: 24px;
        line-height: 1;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }

    .lightbox-nav:hover,
    .lightbox-nav:active {
        background: transparent;
        color: #ffffff;
        transform: translateY(-50%) scale(1.04);
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        box-shadow: none;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .lightbox-thumbs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        min-height: 56px;
        padding: 4px 4px 8px;
        align-items: center;
        scrollbar-width: thin;
    }

    .lightbox-thumb-btn {
        flex: 0 0 66px;
        height: 48px;
        border-radius: 14px;
        opacity: 0.62;
    }
}

@media (max-width: 420px) {
    .project-topbar {
        padding-left: 24px;
    }

    .project-gallery-item {
        border-radius: 28px;
    }

    .project-menu-panel {
        width: min(232px, calc(100vw - 56px));
    }

    .lightbox {
        padding: 8px;
    }

    .lightbox-shell {
        width: min(100%, 390px);
        border-radius: 26px;
        padding: 10px 8px 12px;
    }

    .lightbox-image-wrap,
    .lightbox-image-wrap.is-portrait,
    .lightbox-image-wrap.is-landscape {
        height: min(72vh, 600px);
        padding: 4px 14px;
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }

    .lightbox-thumb-btn {
        flex-basis: 58px;
        height: 42px;
        border-radius: 12px;
    }
}

@media (max-width: 992px) {
    .project-page {
        padding-top: 142px;
    }
}

@media (max-width: 768px) {
    .project-page {
        padding-top: 132px;
    }
}

@media (min-width: 993px) {
    .project-page {
        padding-top: 150px;
    }

    .project-header {
        max-width: 860px;
        margin-left: 0;
        margin-right: auto;
    }

    .project-topbar {
        position: absolute;
        top: 155px;
        right: 80px;
        width: auto;
        margin: 0;
        padding: 0;
        justify-content: flex-end;
    }

    .project-back,
    .project-menu-trigger {
        min-height: 60px;
        padding: 0 26px;
        border-radius: 18px;
        font-size: 18px;
    }

    .project-gallery-wrap {
        margin-top: 120px;
    }
}