/* =============================================================================
   VV Marina — Our Work frontend styles v4.5.0
   Premium canal boat builder gallery experience
   Prefix: .vvmw-
   ============================================================================= */

:root {
    --vvmw-navy:        #0D1B2A;
    --vvmw-navy-deep:   #07101A;
    --vvmw-gold:        #B8966E;
    --vvmw-gold-light:  #C9A882;
    --vvmw-gold-pale:   rgba(184,150,110,0.12);
    --vvmw-ivory:       #F7F4EF;
    --vvmw-ivory-dark:  #EDE9E3;
    --vvmw-white:       #FFFFFF;
    --vvmw-grey:        #8A9BB0;
    --vvmw-text:        #2C3E50;
    --vvmw-radius:      10px;
    --vvmw-radius-lg:   16px;
    --vvmw-trans:       0.35s ease;
    --vvmw-trans-fast:  0.2s ease;
    --vvmw-shadow-sm:   0 2px 8px rgba(7,16,26,0.07);
    --vvmw-shadow:      0 8px 32px rgba(7,16,26,0.12);
    --vvmw-shadow-lg:   0 20px 60px rgba(7,16,26,0.18);
}

/* ============================================================================
   Scroll-in animations
   ============================================================================ */

.vvmw-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.vvmw-anim--delay-1 { transition-delay: 0.1s; }
.vvmw-anim--delay-2 { transition-delay: 0.2s; }
.vvmw-anim--delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .vvmw-anim { opacity: 1; transform: none; transition: none; }
}

/* ============================================================================
   Archive hero section (optional — rendered when hero setting is on)
   ============================================================================ */

.vvmw-archive-hero {
    background: linear-gradient(135deg, var(--vvmw-navy) 0%, #1A3050 60%, var(--vvmw-navy-deep) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.vvmw-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(184,150,110,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.vvmw-archive-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--vvmw-gold), transparent);
}

.vvmw-archive-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.vvmw-archive-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--vvmw-white);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.vvmw-archive-hero__title em {
    color: var(--vvmw-gold);
    font-style: normal;
}

.vvmw-archive-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.72);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================================================
   Archive wrapper + filter bar
   ============================================================================ */

.vvmw-archive {
    margin: 0 auto;
    max-width: 1240px;
    padding: 0 1.25rem;
}

.vvmw-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.25rem;
    justify-content: center;
}

.vvmw-filter-pill {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 1.5px solid rgba(13,27,42,0.18);
    border-radius: 100px;
    color: var(--vvmw-navy);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 0.4rem;
    letter-spacing: 0.03em;
    padding: 0.45rem 1.1rem;
    transition: background var(--vvmw-trans-fast), color var(--vvmw-trans-fast), border-color var(--vvmw-trans-fast), box-shadow var(--vvmw-trans-fast);
}

.vvmw-filter-pill:hover,
.vvmw-filter-pill:focus-visible {
    background: var(--vvmw-navy);
    border-color: var(--vvmw-navy);
    color: var(--vvmw-white);
    box-shadow: var(--vvmw-shadow-sm);
    outline: none;
}

.vvmw-filter-pill.is-active {
    background: var(--vvmw-navy);
    border-color: var(--vvmw-navy);
    color: var(--vvmw-white);
    box-shadow: var(--vvmw-shadow-sm);
}

.vvmw-filter-pill .vvmw-pill-count {
    background: rgba(255,255,255,0.22);
    border-radius: 100px;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
}

.vvmw-filter-pill:not(.is-active) .vvmw-pill-count {
    background: rgba(13,27,42,0.08);
}

.vvmw-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--vvmw-grey);
    font-size: 1rem;
}

/* ============================================================================
   Project grid
   ============================================================================ */

.vvmw-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 540px) {
    .vvmw-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .vvmw-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .vvmw-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* First card hero span */
.vvmw-card--hero {
    grid-column: 1 / -1;
}

@media (min-width: 540px) {
    .vvmw-card--hero { grid-column: span 2; }
}

@media (min-width: 900px) {
    .vvmw-cols-3 .vvmw-card--hero { grid-column: span 2; }
    .vvmw-cols-4 .vvmw-card--hero { grid-column: span 2; }
}

/* ============================================================================
   Project card
   ============================================================================ */

.vvmw-card {
    border-radius: var(--vvmw-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--vvmw-shadow-sm);
    transition: box-shadow var(--vvmw-trans), transform var(--vvmw-trans);
}

.vvmw-card:hover {
    box-shadow: var(--vvmw-shadow);
    transform: translateY(-3px);
}

.vvmw-card.is-hidden {
    display: none;
}

.vvmw-card__inner {
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    border-radius: var(--vvmw-radius-lg);
    aspect-ratio: 4 / 3;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.vvmw-card--hero .vvmw-card__inner {
    aspect-ratio: 16 / 7;
}

.vvmw-card--photo .vvmw-card__inner {
    aspect-ratio: 4 / 3;
}

.vvmw-card__img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.vvmw-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}

.vvmw-card__inner:hover .vvmw-card__img,
.vvmw-card__inner:focus-visible .vvmw-card__img {
    transform: scale(1.06);
}

.vvmw-card__img-wrap--empty {
    background: var(--vvmw-ivory-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vvmw-grey);
    font-size: 3rem;
}

.vvmw-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7,16,26,0.92) 0%,
        rgba(7,16,26,0.35) 50%,
        rgba(7,16,26,0.05) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1.25rem 1.25rem;
    color: var(--vvmw-white);
    transition: background var(--vvmw-trans);
}

.vvmw-card__inner:hover .vvmw-card__overlay,
.vvmw-card__inner:focus-visible .vvmw-card__overlay {
    background: linear-gradient(
        to top,
        rgba(7,16,26,0.97) 0%,
        rgba(7,16,26,0.55) 60%,
        rgba(7,16,26,0.12) 100%
    );
}

.vvmw-card__badge {
    background: var(--vvmw-gold);
    border-radius: 4px;
    color: var(--vvmw-white);
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    width: fit-content;
}

.vvmw-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    text-align: left;
}

.vvmw-card--hero .vvmw-card__title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.vvmw-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--vvmw-trans), transform var(--vvmw-trans);
}

.vvmw-card__inner:hover .vvmw-card__meta,
.vvmw-card__inner:focus-visible .vvmw-card__meta {
    opacity: 1;
    transform: none;
}

.vvmw-card__year {
    color: rgba(255,255,255,0.65);
}

.vvmw-card__cta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--vvmw-gold-light);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    margin-left: auto;
    white-space: nowrap;
}

.vvmw-card__cta--photo {
    color: rgba(255,255,255,0.85);
}

/* Grid animation on filter change */
.vvmw-grid[data-animating] .vvmw-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================================================
   Project embed (vvm_marina_project)
   ============================================================================ */

.vvmw-project-embed {
    max-width: 700px;
    margin: 2rem auto;
}

.vvmw-project-embed__card {
    display: block;
    text-decoration: none;
    border-radius: var(--vvmw-radius-lg);
    overflow: hidden;
    box-shadow: var(--vvmw-shadow);
    transition: transform var(--vvmw-trans), box-shadow var(--vvmw-trans);
    background: var(--vvmw-white);
}

.vvmw-project-embed__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vvmw-shadow-lg);
}

.vvmw-project-embed__img-wrap {
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.vvmw-project-embed__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.vvmw-project-embed__card:hover .vvmw-project-embed__img-wrap img {
    transform: scale(1.04);
}

.vvmw-project-embed__body {
    padding: 1.25rem 1.5rem;
}

.vvmw-project-embed__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vvmw-navy);
    margin: 0.35rem 0 0.65rem;
    line-height: 1.3;
}

.vvmw-project-embed__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--vvmw-grey);
}

.vvmw-project-embed__cta {
    margin-left: auto;
    color: var(--vvmw-gold);
    font-weight: 600;
}

/* ============================================================================
   Photo archive (direct photos + collections)
   ============================================================================ */

.vvmw-photo-archive {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 1.25rem;
}

/* Project tabs (collection view) */
.vvmw-project-tabs {
    margin: 0 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 20;
}

.vvmw-project-tabs__scroller {
    background: rgba(247,244,239,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(13,27,42,0.08);
    display: flex;
    gap: 0.5rem;
    margin-inline: -1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0.75rem 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.vvmw-project-tabs__scroller::-webkit-scrollbar { display: none; }

.vvmw-project-pill {
    align-items: center;
    appearance: none;
    background: var(--vvmw-white);
    border: 1.5px solid rgba(13,27,42,0.12);
    border-radius: 999px;
    color: var(--vvmw-navy);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 0.5rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.9rem;
    transition: background var(--vvmw-trans-fast), border-color var(--vvmw-trans-fast), color var(--vvmw-trans-fast), transform var(--vvmw-trans-fast), box-shadow var(--vvmw-trans-fast);
    white-space: nowrap;
}

.vvmw-project-pill span {
    background: rgba(13,27,42,0.08);
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    min-width: 1.4rem;
    text-align: center;
    transition: background var(--vvmw-trans-fast);
}

.vvmw-project-pill:hover,
.vvmw-project-pill:focus-visible,
.vvmw-project-pill.is-active {
    background: var(--vvmw-navy);
    border-color: var(--vvmw-navy);
    color: var(--vvmw-white);
    box-shadow: 0 4px 12px rgba(13,27,42,0.2);
    transform: translateY(-1px);
    outline: none;
}

.vvmw-project-pill.is-active span,
.vvmw-project-pill:hover span {
    background: rgba(255,255,255,0.2);
}

@media (min-width: 700px) {
    .vvmw-project-tabs { position: static; }
    .vvmw-project-tabs__scroller {
        background: transparent;
        border: 0;
        flex-wrap: wrap;
        justify-content: center;
        margin-inline: 0;
        overflow: visible;
        padding: 0 0 1.5rem;
    }
    .vvmw-project-pill { white-space: normal; }
}

/* ============================================================================
   Photo grid + cards
   ============================================================================ */

.vvmw-photo-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
    .vvmw-photo-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .vvmw-photo-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .vvmw-photo-cols-5 { grid-template-columns: repeat(5, 1fr); }
}

.vvmw-photo-card {
    appearance: none;
    background: var(--vvmw-navy-deep);
    border: 0;
    border-radius: var(--vvmw-radius);
    box-shadow: var(--vvmw-shadow-sm);
    cursor: pointer;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    aspect-ratio: 4 / 3;
    transition: transform var(--vvmw-trans), box-shadow var(--vvmw-trans);
}

.vvmw-photo-card:nth-child(7n + 1),
.vvmw-photo-card:nth-child(7n + 4) {
    aspect-ratio: 3 / 4;
}

.vvmw-photo-card:nth-child(7n + 2),
.vvmw-photo-card:nth-child(7n + 6) {
    aspect-ratio: 16 / 10;
}

.vvmw-photo-card.is-hidden { display: none; }

.vvmw-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.25s ease;
}

.vvmw-photo-card:hover,
.vvmw-photo-card:focus-visible {
    box-shadow: var(--vvmw-shadow);
    transform: translateY(-2px);
    outline: none;
}

.vvmw-photo-card:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.vvmw-photo-card:focus-visible {
    outline: 3px solid var(--vvmw-gold);
    outline-offset: 3px;
}

.vvmw-photo-card__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(7,16,26,0.88), transparent);
    color: var(--vvmw-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.4;
    padding: 2rem 0.85rem 0.7rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity var(--vvmw-trans-fast), transform var(--vvmw-trans-fast);
}

.vvmw-photo-card:hover .vvmw-photo-card__caption,
.vvmw-photo-card:focus-visible .vvmw-photo-card__caption {
    opacity: 1;
    transform: none;
}

/* ============================================================================
   Single project page
   ============================================================================ */

.vvmw-single {
    max-width: 100%;
    overflow: hidden;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.vvmw-hero {
    position: relative;
    min-height: clamp(420px, 65vh, 760px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 0;
    /* Push content below the sticky header (theme-agnostic) */
}

.vvmw-hero__bg {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0s linear;
}

.vvmw-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(7,16,26,0.92) 0%,
        rgba(7,16,26,0.40) 55%,
        rgba(7,16,26,0.08) 100%
    );
}

.vvmw-hero__content {
    position: relative;
    z-index: 2;
    color: var(--vvmw-white);
    padding: 2.5rem 2rem 2.75rem;
    max-width: 960px;
    width: 100%;
}

.vvmw-hero__badge {
    background: var(--vvmw-gold);
    border-radius: 4px;
    color: var(--vvmw-white);
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
    padding: 0.2rem 0.65rem;
    text-transform: uppercase;
}

.vvmw-hero__title {
    font-size: clamp(1.9rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.vvmw-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.72);
}

.vvmw-hero__meta span + span::before {
    content: '·';
    margin-right: 1.25rem;
}

.vvmw-hero__scroll {
    position: absolute;
    bottom: 1.75rem;
    right: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vvmw-hero__scroll-line {
    display: block;
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
    animation: vvmw-scroll-line 2.2s ease-in-out infinite;
}

@keyframes vvmw-scroll-line {
    0%,100% { opacity: 0.35; transform: scaleY(1); }
    50%      { opacity: 0.9;  transform: scaleY(0.55); }
}

@media (prefers-reduced-motion: reduce) {
    .vvmw-hero__scroll-line { animation: none; opacity: 0.5; }
    .vvmw-hero__bg { transition: none !important; }
}

/* ── Chamber ─────────────────────────────────────────────────────────────── */

.vvmw-chamber {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem;
    max-width: 1240px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .vvmw-chamber {
        grid-template-columns: 300px 1fr;
        gap: 3.5rem;
        padding: 3.5rem 2rem;
        align-items: start;
    }
}

/* ── Info panel ──────────────────────────────────────────────────────────── */

.vvmw-info {
    position: sticky;
    top: 2rem;
}

.vvmw-info__section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--vvmw-ivory-dark);
}

.vvmw-info__section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.vvmw-info__heading {
    color: var(--vvmw-grey);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0 0 0.85rem;
    text-transform: uppercase;
}

.vvmw-info__desc {
    color: var(--vvmw-text);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.vvmw-info__dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    font-size: 0.875rem;
    margin: 0;
}

.vvmw-info__dl dt {
    color: var(--vvmw-grey);
    font-weight: 600;
    white-space: nowrap;
}

.vvmw-info__dl dd {
    color: var(--vvmw-navy);
    margin: 0;
    font-weight: 500;
}

.vvmw-info__actions {
    margin-top: 2rem;
}

.vvmw-info__back {
    align-items: center;
    background: var(--vvmw-ivory);
    border: 1.5px solid var(--vvmw-ivory-dark);
    border-radius: 100px;
    color: var(--vvmw-navy);
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 600;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    text-decoration: none;
    transition: background var(--vvmw-trans-fast), border-color var(--vvmw-trans-fast);
}

.vvmw-info__back:hover {
    background: var(--vvmw-ivory-dark);
    text-decoration: none;
    border-color: rgba(13,27,42,0.2);
}

/* ── Gallery stage ───────────────────────────────────────────────────────── */

.vvmw-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vvmw-gallery__stage {
    position: relative;
    background: var(--vvmw-navy-deep);
    border-radius: var(--vvmw-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    min-height: 240px;
}

.vvmw-gallery__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vvmw-gallery__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    /* Keep position absolute; stage height is determined by aspect-ratio */
}

.vvmw-gallery__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vvmw-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(7,16,26,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    border-radius: 50%;
    color: var(--vvmw-white);
    cursor: pointer;
    height: 48px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--vvmw-trans-fast), transform var(--vvmw-trans-fast);
    z-index: 5;
}

.vvmw-gallery__nav:hover {
    background: rgba(7,16,26,0.8);
    transform: translateY(-50%) scale(1.08);
}

.vvmw-gallery__nav--prev { left: 1rem; }
.vvmw-gallery__nav--next { right: 1rem; }

.vvmw-gallery__expand {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(7,16,26,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    border-radius: 8px;
    color: var(--vvmw-white);
    cursor: pointer;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background var(--vvmw-trans-fast);
}

.vvmw-gallery__expand:hover { background: rgba(7,16,26,0.82); }

.vvmw-gallery__counter {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(7,16,26,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 100px;
    color: var(--vvmw-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    z-index: 5;
    letter-spacing: 0.04em;
}

/* Filmstrip */
.vvmw-gallery__filmstrip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--vvmw-gold) transparent;
}

.vvmw-gallery__filmstrip::-webkit-scrollbar { height: 3px; }
.vvmw-gallery__filmstrip::-webkit-scrollbar-thumb { background: var(--vvmw-gold); border-radius: 2px; }

.vvmw-gallery__thumb {
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    height: 56px;
    width: 72px;
    overflow: hidden;
    padding: 0;
    background: var(--vvmw-ivory-dark);
    transition: border-color var(--vvmw-trans-fast), transform var(--vvmw-trans-fast);
}

.vvmw-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.6;
    transition: opacity var(--vvmw-trans-fast);
}

.vvmw-gallery__thumb.is-active,
.vvmw-gallery__thumb:hover {
    border-color: var(--vvmw-gold);
    transform: translateY(-1px);
}

.vvmw-gallery__thumb.is-active img,
.vvmw-gallery__thumb:hover img {
    opacity: 1;
}

.vvmw-gallery__empty {
    aspect-ratio: 4 / 3;
    background: var(--vvmw-ivory);
    border-radius: var(--vvmw-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--vvmw-grey);
    gap: 0.75rem;
    font-size: 0.9rem;
}

.vvmw-gallery__empty .dashicons {
    font-size: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    opacity: 0.4;
}

/* ============================================================================
   Lightbox
   ============================================================================ */

.vvmw-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5,11,19,0.97);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.vvmw-lightbox__close {
    position: absolute;
    top: max(env(safe-area-inset-top, 0px) + 0.75rem, 1rem);
    right: 1.25rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--vvmw-white);
    cursor: pointer;
    height: 46px;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--vvmw-trans-fast), transform var(--vvmw-trans-fast);
    z-index: 2;
}

.vvmw-lightbox__close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

.vvmw-lightbox__stage {
    position: relative;
    width: 90vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vvmw-lightbox__slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.vvmw-lightbox__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.vvmw-lightbox__slide img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}

.vvmw-lightbox__caption {
    color: rgba(255,255,255,0.72);
    font-size: 0.8125rem;
    margin-top: 0.85rem;
    text-align: center;
    max-width: 600px;
}

.vvmw-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--vvmw-white);
    cursor: pointer;
    height: 56px;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--vvmw-trans-fast), transform var(--vvmw-trans-fast);
    z-index: 3;
}

.vvmw-lightbox__nav:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.08);
}

.vvmw-lightbox__nav--prev { left: 1.5rem; }
.vvmw-lightbox__nav--next { right: 1.5rem; }

.vvmw-lightbox__counter {
    position: absolute;
    top: max(env(safe-area-inset-top, 0px) + 1rem, 1.25rem);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
}

.vvmw-lightbox__filmstrip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    overflow-x: auto;
    padding: 1rem 1.25rem calc(env(safe-area-inset-bottom, 0px) + 0.85rem);
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    scrollbar-width: none;
}

.vvmw-lightbox__filmstrip::-webkit-scrollbar { display: none; }

.vvmw-lightbox__thumb {
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    height: 52px;
    width: 66px;
    overflow: hidden;
    padding: 0;
    background: rgba(255,255,255,0.08);
    transition: border-color var(--vvmw-trans-fast), transform var(--vvmw-trans-fast);
}

.vvmw-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.5;
    transition: opacity var(--vvmw-trans-fast);
}

.vvmw-lightbox__thumb.is-active,
.vvmw-lightbox__thumb:hover {
    border-color: var(--vvmw-gold);
    transform: translateY(-2px);
}

.vvmw-lightbox__thumb.is-active img,
.vvmw-lightbox__thumb:hover img {
    opacity: 1;
}

/* Single-image lightbox for mixed mode */
.vvmw-lightbox--single .vvmw-lightbox__stage {
    width: 95vw;
    height: 90vh;
}

/* ============================================================================
   Related Projects
   ============================================================================ */

.vvmw-related {
    background: var(--vvmw-ivory);
    padding: 3.5rem 1.25rem;
    margin-top: 2rem;
    border-top: 1px solid var(--vvmw-ivory-dark);
}

.vvmw-related__header {
    max-width: 1240px;
    margin: 0 auto 1.75rem;
}

.vvmw-related__title {
    color: var(--vvmw-navy);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

.vvmw-related__grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    max-width: 1240px;
    margin: 0 auto;
}

.vvmw-related-card {
    border-radius: var(--vvmw-radius-lg);
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: var(--vvmw-white);
    box-shadow: var(--vvmw-shadow-sm);
    transition: transform var(--vvmw-trans), box-shadow var(--vvmw-trans);
}

.vvmw-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vvmw-shadow);
    text-decoration: none;
}

.vvmw-related-card__img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--vvmw-ivory-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vvmw-grey);
}

.vvmw-related-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.vvmw-related-card:hover .vvmw-related-card__img-wrap img {
    transform: scale(1.06);
}

.vvmw-related-card__body {
    padding: 0.9rem 1.1rem 1rem;
}

.vvmw-related-card__badge {
    background: var(--vvmw-gold-pale);
    border-radius: 4px;
    color: var(--vvmw-gold);
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    padding: 0.15rem 0.5rem;
    text-transform: uppercase;
}

.vvmw-related-card__title {
    color: var(--vvmw-navy);
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.vvmw-related-card__year {
    color: var(--vvmw-grey);
    font-size: 0.8rem;
}

/* ============================================================================
   Mobile — portrait phones
   ============================================================================ */

@media (max-width: 539px) {
    .vvmw-archive,
    .vvmw-photo-archive {
        padding-inline: 1rem;
    }

    .vvmw-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1.5rem;
    }

    .vvmw-filters::-webkit-scrollbar { display: none; }

    .vvmw-filter-pill { flex-shrink: 0; }

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

    .vvmw-card--hero .vvmw-card__inner { aspect-ratio: 16 / 9; }

    .vvmw-photo-grid {
        gap: 0.6rem;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset aspect ratio variations on very small screens */
    .vvmw-photo-card,
    .vvmw-photo-card:nth-child(7n + 1),
    .vvmw-photo-card:nth-child(7n + 2),
    .vvmw-photo-card:nth-child(7n + 4),
    .vvmw-photo-card:nth-child(7n + 6) {
        aspect-ratio: 1;
    }

    .vvmw-hero__content {
        padding: 1.75rem 1rem 2rem;
    }

    .vvmw-hero__scroll { display: none; }

    .vvmw-chamber {
        padding: 1.75rem 1rem;
        gap: 1.5rem;
    }

    .vvmw-archive-hero { padding: 2.5rem 1rem; }
}

/* ============================================================================
   Mobile lightbox improvements
   ============================================================================ */

@media (max-width: 699px) {
    .vvmw-lightbox {
        justify-content: flex-start;
        padding-top: calc(env(safe-area-inset-top, 0px) + 3.5rem);
    }

    .vvmw-lightbox__stage {
        width: 100vw;
        height: calc(100svh - 10rem);
        padding-inline: 0.5rem;
    }

    .vvmw-lightbox__slide img {
        max-height: calc(100svh - 11rem);
        border-radius: 4px;
    }

    .vvmw-lightbox__nav {
        height: 46px;
        width: 46px;
        background: rgba(7,16,26,0.75);
        border-color: transparent;
    }

    .vvmw-lightbox__nav--prev { left: 0.75rem; }
    .vvmw-lightbox__nav--next { right: 0.75rem; }

    .vvmw-lightbox__filmstrip {
        justify-content: flex-start;
        padding-inline: 0.75rem;
    }

    .vvmw-lightbox__thumb {
        height: 56px;
        width: 70px;
    }
}

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

@media (min-width: 540px) and (max-width: 899px) {
    .vvmw-chamber {
        padding: 2rem 1.25rem;
    }
}

/* ============================================================================
   Card badge row + status chip
   ============================================================================ */

.vvmw-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.vvmw-card__badges .vvmw-card__badge {
    margin-bottom: 0;
}

.vvmw-card__status {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    color: var(--vvmw-white);
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    width: fit-content;
}

.vvmw-card__status--in-progress,
.vvmw-card__status--in_progress {
    background: rgba(59,130,246,0.35);
    border-color: rgba(96,165,250,0.5);
}

.vvmw-card__status--sold {
    background: rgba(239,68,68,0.35);
    border-color: rgba(252,165,165,0.5);
}

.vvmw-card__status--showcase {
    background: rgba(168,85,247,0.35);
    border-color: rgba(216,180,254,0.5);
}

/* ============================================================================
   Hero badges row + status modifier
   ============================================================================ */

.vvmw-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.vvmw-hero__badges .vvmw-hero__badge {
    margin-bottom: 0;
}

.vvmw-hero__badge--status {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ============================================================================
   Filter pill count badge
   ============================================================================ */

.vvmw-filter-pill__count {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 0.3rem;
    min-width: 1.25rem;
    padding: 0 0.3rem;
    text-align: center;
}

.vvmw-filter-pill.is-active .vvmw-filter-pill__count {
    background: rgba(255,255,255,0.3);
}

/* ============================================================================
   Print
   ============================================================================ */

@media print {
    .vvmw-lightbox,
    .vvmw-hero__scroll,
    .vvmw-gallery__expand,
    .vvmw-gallery__nav,
    .vvmw-info__back { display: none; }
}
