/* ============================================================
   LIVE, REST, GATHER  —  three-row composition + gallery lightbox
   ============================================================ */

.portfolio-section {
    padding-top: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .section-subtitle {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 10px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--eleanor-charcoal);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--font-body-size);
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.58);
    max-width: 680px;
    margin: 0 auto;
}

/* ====== Three-row stack ====== */
.lrg-stack {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Subtle section divider — sits between Live/Rest and Rest/Gather */
.lrg-row-divider {
    border: 0;
    height: 1px;
    width: 100%;
    margin: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.22) 50%,
        rgba(0, 0, 0, 0) 100%
    );
}

.lrg-row {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.85fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: stretch;
}

.lrg-row--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 1.7fr);
}

/* ====== Hero image ====== */
.lrg-hero {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.10);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
    min-height: 420px;
}

.lrg-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.lrg-hero:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

.lrg-hero:hover img {
    transform: scale(1.04);
}

/* ====== Content (eyebrow / title / description / CTA) ====== */
.lrg-content {
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lrg-eyebrow {
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 12px;
}

.lrg-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--eleanor-charcoal);
    margin: 0 0 14px;
    font-weight: 300;
    line-height: 1;
}

.lrg-divider {
    width: 56px;
    height: 1px;
    background: rgba(0, 0, 0, 0.18);
    margin: 0 0 18px;
}

.lrg-description {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 26px;
    max-width: 36ch;
}

/* ====== Thumbnails ====== */
.lrg-thumbs {
    display: grid;
    gap: 16px;
}

.lrg-thumbs--stack {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    max-height: 100%;
}

.lrg-thumbs--single {
    grid-template-columns: 1fr;
}

.lrg-thumbs--grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.lrg-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.lrg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.lrg-thumb:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.lrg-thumb:hover img {
    transform: scale(1.06);
}

/* ====== Hover overlay (dim + label card with expand icon) ====== */
.lrg-hero,
.lrg-thumb {
    /* Anchor for hover pseudo-elements; existing rules already set position:relative */
}

.lrg-hero::before,
.lrg-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.lrg-hero::after,
.lrg-thumb::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    background-color: rgba(245, 240, 230, 0.94);
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 8V3H8M21 8V3H16M3 16V21H8M21 16V21H16'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center 18px;
    background-size: 22px;
    padding: 56px 32px 18px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--eleanor-charcoal);
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.45s ease;
    z-index: 3;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.lrg-hero:hover::before,
.lrg-thumb:hover::before {
    opacity: 1;
}

.lrg-hero:hover::after,
.lrg-thumb:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Slightly smaller label card on the thumbs (they're smaller images) */
.lrg-thumb::after {
    padding: 48px 22px 14px;
    font-size: 0.62rem;
    background-position: center 14px;
    background-size: 18px;
}

/* Gather: extra wide row below the main 3-column grid */
.lrg-gather-extras {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lrg-thumb--wide {
    aspect-ratio: 16 / 10;
}

/* CTA button — kept as .slide-button for backwards-compat with existing styles elsewhere */
.slide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    background: var(--eleanor-charcoal);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.slide-button:hover {
    background: #151515;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

/* ============================================================
   LIGHTBOX  —  image on top, white card overlapping bottom
   ============================================================ */
.lrg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px 0;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lrg-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.lrg-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.lrg-lightbox__stage {
    position: relative;
    width: min(94vw, 1100px);
    height: min(78vh, 760px);
    z-index: 2;
}

/* Section header — sits above the stage in the flex column */
.lrg-lightbox__header {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.lrg-lightbox__eyebrow {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.lrg-lightbox__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.85rem);
    font-weight: 300;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    /* subtle accent — matches the on-page section feel */
    padding: 0 0.16em;
}

.lrg-lightbox__divider {
    width: 64px;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.lrg-lightbox__swiper {
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: visible;
}

/* Close ✕ — sits at top-right of image area */
.lrg-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--eleanor-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lrg-lightbox__close:hover {
    background: #fff;
    transform: scale(1.05);
}

/* Counter — small pill at top-left of the image */
.lrg-lightbox__counter {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px 14px;
    border-radius: 999px;
    z-index: 15;
    pointer-events: none;
}

/* Slides */
.lrg-lightbox .swiper-slide {
    position: relative;
}

.lrg-lightbox .portfolio-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Image: top portion, rounded top corners */
.lrg-lightbox .slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.lrg-lightbox .slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* No left-side gradient in the new layout */
.lrg-lightbox .slide-image::after {
    display: none;
}

/* Hide divider in lightbox — cleaner look matches reference */
.lrg-lightbox .slide-divider {
    display: none;
}

/* Card: white, centered horizontally, overlaps image bottom */
.lrg-lightbox .slide-content {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, 86%);
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    z-index: 5;
}

.lrg-lightbox .slide-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--eleanor-charcoal);
    margin: 0 0 14px;
    text-align: center;
    line-height: 1.15;
}

.lrg-lightbox .slide-content p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.72);
    margin: 0 auto 20px;
    text-align: center;
    max-width: 52ch;
}

/* CTA: wide rectangular charcoal bar inside the card */
.lrg-lightbox .slide-content .slide-button {
    align-self: stretch;
    width: 100%;
    border-radius: 8px;
    padding: 13px 24px;
    text-align: center;
    justify-content: center;
}

/* Lightbox nav buttons — custom (not Swiper's), glass pill matching counter/close */
.lrg-nav {
    position: absolute;
    top: 32%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.lrg-nav--prev {
    left: 20px;
}

.lrg-nav--next {
    right: 20px;
}

.lrg-nav:hover {
    background: rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.lrg-nav svg {
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

/* Lock body scroll when lightbox is open */
body.lrg-lightbox-open {
    overflow: hidden;
}

/* Hide page chrome (section-nav chevrons + vertical MENU label and its parent column)
   while a lightbox is open. The .vertical-nav parent is a fixed 110px column on the
   left that intercepts clicks on the prev nav button — must be hidden, not just the
   .menu-trigger child. */
body.lrg-lightbox-open .section-nav,
body.lrg-lightbox-open .vertical-nav,
body.lrg-lightbox-open .menu-trigger,
body.lrg-lightbox-open .menu-trigger-mobile {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .lrg-row,
    .lrg-row--reverse {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 28px;
    }

    .lrg-lightbox__stage {
        width: min(94vw, 900px);
    }

    .lrg-lightbox .slide-content {
        padding: 36px 44px 32px;
    }
}

/* Mobile — stacks vertically per category, like shot 3 */
@media (max-width: 768px) {
    .portfolio-section {
        padding: 60px 0;
    }

    .portfolio-section .content-container {
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 16px;
        padding: 28px 18px 32px;
        border-radius: 20px;
        box-sizing: border-box;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .lrg-stack {
        gap: 56px;
    }

    /* Each row becomes a vertical card */
    .lrg-row,
    .lrg-row--reverse {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .lrg-content {
        order: 3;
        padding: 8px 4px 0;
        text-align: center;
    }

    .lrg-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .lrg-description {
        margin-left: auto;
        margin-right: auto;
        max-width: 46ch;
    }

    .slide-button {
        align-self: center;
        width: 100%;
        max-width: 360px;
        text-align: center;
        padding: 14px 28px;
    }

    .lrg-hero {
        order: 1;
        aspect-ratio: 16 / 11;
    }

    .lrg-thumbs {
        order: 2;
    }

    .lrg-thumbs--stack,
    .lrg-thumbs--single {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .lrg-thumbs--single {
        grid-template-columns: 1fr;
    }

    .lrg-thumbs--grid {
        grid-template-columns: 1fr 1fr;
    }

    .lrg-thumb {
        aspect-ratio: 4 / 3;
    }

    .lrg-gather-extras {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lrg-thumb--wide {
        aspect-ratio: 4 / 3;
    }

    /* Lightbox: stack image then card, no overlap */
    .lrg-lightbox {
        gap: 16px;
        padding: 20px 0;
    }

    .lrg-lightbox__stage {
        width: 96vw;
        height: min(82vh, 800px);
    }

    .lrg-lightbox__header {
        gap: 6px;
    }

    .lrg-lightbox__eyebrow {
        font-size: 0.55rem;
        letter-spacing: 0.26em;
    }

    .lrg-lightbox__title {
        font-size: 1.15rem;
        letter-spacing: 0.24em;
    }

    .lrg-lightbox__divider {
        width: 40px;
    }

    .lrg-nav {
        width: 44px;
        height: 44px;
    }

    .lrg-lightbox__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .lrg-lightbox__counter {
        top: 14px;
        left: 16px;
        font-size: 0.65rem;
    }

    .lrg-lightbox .slide-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 60%;
        border-radius: 12px;
    }

    .lrg-lightbox .slide-content {
        position: absolute;
        top: auto;
        bottom: 16px;
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        height: auto;
        max-height: 45%;
        padding: 24px 22px 26px;
        border-radius: 12px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
        overflow-y: auto;
        text-align: center;
        align-items: center;
    }

    .lrg-lightbox .slide-content h3 {
        font-size: 1.4rem;
        margin-bottom: 14px;
        text-align: center;
    }

    .lrg-lightbox .slide-content p {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 20px;
        text-align: center;
    }

    .lrg-lightbox .slide-content .slide-button {
        align-self: center;
        width: auto;
        min-width: 220px;
        max-width: 320px;
    }

    .lrg-nav {
        top: 30%;
    }

    .lrg-nav--prev {
        left: 8px;
    }

    .lrg-nav--next {
        right: 8px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .portfolio-section {
        padding: 40px 0;
    }

    .portfolio-section .content-container {
        width: calc(100% - 8px);
        max-width: none;
        margin: 0 4px;
        padding: 22px 14px 26px;
        border-radius: 16px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .lrg-stack {
        gap: 44px;
    }

    .lrg-title {
        font-size: 2.25rem;
    }

    .lrg-hero,
    .lrg-thumb {
        border-radius: 12px;
    }

    .lrg-lightbox .slide-content h3 {
        font-size: 1.4rem;
    }

    .lrg-lightbox .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .lrg-hero,
    .lrg-hero img,
    .lrg-thumb,
    .lrg-thumb img,
    .slide-button,
    .lrg-lightbox,
    .lrg-lightbox__close {
        transition: none;
    }

    .lrg-hero:hover img,
    .lrg-thumb:hover img,
    .slide-button:hover,
    .lrg-lightbox__close:hover {
        transform: none;
    }
}

/* High contrast */
@media (prefers-contrast: high) {
    .lrg-hero,
    .lrg-thumb {
        border: 2px solid var(--eleanor-charcoal);
    }

    .lrg-lightbox .slide-content {
        background: #fff;
        border: 2px solid var(--eleanor-charcoal);
    }
}
