/* LWH Core 3.8.2 — Public project frontend */
:root {
    --lwh-green: #1d6428;
    --lwh-green-dark: #14501f;
    --lwh-yellow: #f2c500;
    --lwh-charcoal: #303030;
    --lwh-text: #29302b;
    --lwh-muted: #6c746f;
    --lwh-line: #dfe5df;
    --lwh-surface: #ffffff;
    --lwh-radius: 10px;
    --lwh-shadow: 0 10px 28px rgba(25, 46, 30, .10);
}

.lwh-public-module,
.lwh-public-module * {
    box-sizing: border-box;
}

.lwh-public-module {
    width: 100%;
    min-width: 0;
    color: var(--lwh-text);
    font: inherit;
}

.lwh-public-section-title {
    margin: 0 0 18px;
    padding: 0 0 10px;
    color: var(--lwh-green);
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    position: relative;
}

.lwh-public-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 99px;
    background: var(--lwh-yellow);
}

/* Narrative */
.lwh-project-summary {
    padding: clamp(18px, 2.4vw, 34px) 0;
}

.lwh-project-summary p {
    margin: 0;
    max-width: 980px;
    color: #4f5752;
    font-size: 16px;
    line-height: 1.75;
}

.lwh-project-story {
    display: flex;
    flex-direction: column;
}

.lwh-story-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 280px;
    background: var(--lwh-green);
    color: #fff;
    overflow: hidden;
}

.lwh-story-row.is-reverse .lwh-story-copy {
    order: 2;
}

.lwh-story-row.is-reverse .lwh-story-figure {
    order: 1;
}

.lwh-story-row.is-single-column {
    grid-template-columns: 1fr;
    min-height: 0;
}

.lwh-story-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 52px);
    min-width: 0;
}

.lwh-story-copy h2 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 650;
    line-height: 1.1;
}

.lwh-story-text,
.lwh-story-text p {
    color: #fff;
    font-size: 15px;
    line-height: 1.58;
}

.lwh-story-text p {
    margin: 0 0 1em;
}

.lwh-story-text p:last-child {
    margin-bottom: 0;
}

.lwh-story-figure {
    margin: 0;
    min-width: 0;
    min-height: 280px;
    position: relative;
    background: #e7ebe7;
}

.lwh-story-figure img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.lwh-story-figure figcaption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    padding: 8px 11px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
}

/* Shared media */
.lwh-public-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.lwh-public-section-header .lwh-public-section-title {
    margin-bottom: 0;
}

.lwh-gallery-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.lwh-gallery-controls span {
    min-width: 46px;
    color: var(--lwh-muted);
    font-size: 12px;
    text-align: center;
}

.lwh-gallery-controls button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #dfe9df;
    color: var(--lwh-green);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.lwh-gallery-controls button:disabled {
    opacity: .4;
    cursor: default;
}

.lwh-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--lwh-gallery-columns, 4), minmax(0, 1fr));
    gap: 10px;
}

.lwh-gallery-tile,
.lwh-gallery-file {
    min-width: 0;
    height: 142px;
    border: 1px solid #dce5dc !important;
    border-radius: 8px !important;
    overflow: hidden;
    position: relative;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(21, 47, 28, .09);
}

.lwh-gallery-tile {
    display: block;
    width: 100%;
    padding: 0 !important;
    appearance: none;
    outline: 0;
    cursor: zoom-in;
}

.lwh-gallery-tile[hidden],
.lwh-gallery-file[hidden] {
    display: none !important;
}

.lwh-gallery-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.lwh-gallery-tile:hover img,
.lwh-gallery-tile:focus-visible img {
    transform: scale(1.035);
}

.lwh-gallery-file {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    color: var(--lwh-green);
    text-align: center;
    text-decoration: none;
}

.lwh-file-extension {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border-radius: 7px;
    background: var(--lwh-green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.lwh-media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding-left: 3px;
    border-radius: 999px;
    background: var(--lwh-yellow);
    color: #2b321e;
    font-size: 19px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .23);
}

.lwh-video-file-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e6428, #133f1b);
    color: rgba(255, 255, 255, .18);
    font-size: 80px;
}

/* Videos */
.lwh-video-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.lwh-video-card {
    grid-column: span 4;
    min-width: 0;
}

.lwh-video-count-1 .lwh-video-card { grid-column: span 12; }
.lwh-video-count-2 .lwh-video-card { grid-column: span 6; }
.lwh-video-count-3 .lwh-video-card { grid-column: span 4; }
.lwh-video-count-4 .lwh-video-card { grid-column: span 3; }
.lwh-video-count-5 .lwh-video-card:nth-child(-n+2) { grid-column: span 6; }
.lwh-video-count-5 .lwh-video-card:nth-child(n+3) { grid-column: span 4; }
.lwh-video-count-6 .lwh-video-card { grid-column: span 4; }
.lwh-public-videos.has-custom-columns .lwh-video-grid {
    grid-template-columns: repeat(var(--lwh-video-columns, 2), minmax(0, 1fr));
}
.lwh-public-videos.has-custom-columns .lwh-video-card { grid-column: auto; }

.lwh-video-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0 !important;
    border: 6px solid var(--lwh-green) !important;
    border-radius: 14px !important;
    overflow: hidden;
    position: relative;
    appearance: none;
    background: var(--lwh-green) !important;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(20, 80, 31, .14);
}

.lwh-video-cover.is-link { text-decoration: none; }

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

.lwh-video-copy { padding: 10px 2px 0; }
.lwh-video-copy h3 {
    margin: 0 0 4px;
    color: var(--lwh-green);
    font-size: 18px;
    line-height: 1.25;
}
.lwh-video-copy p {
    margin: 0;
    color: var(--lwh-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* Documents and files */
.lwh-document-grid {
    display: grid;
    grid-template-columns: repeat(var(--lwh-doc-columns, 1), minmax(0, 1fr));
    gap: 12px;
}

.lwh-document-card,
.lwh-file-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #e3e6df;
    border-radius: 9px;
    background: #fffdf6;
    box-shadow: 0 7px 18px rgba(48, 45, 25, .07);
}

.lwh-document-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 54px;
    border-radius: 7px;
    background: var(--lwh-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
}

.lwh-document-copy,
.lwh-file-card > div {
    min-width: 0;
}

.lwh-document-copy h3,
.lwh-file-card h3 {
    margin: 0 0 5px;
    color: #252d27;
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.lwh-document-copy p,
.lwh-file-card p {
    margin: 0 0 8px;
    color: var(--lwh-muted);
    font-size: 13px;
    line-height: 1.45;
}

.lwh-document-copy a,
.lwh-file-card a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #c69f00;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.lwh-file-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Renders */
.lwh-public-renders {
    container-type: inline-size;
}

.lwh-render-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 12px;
    min-height: 0;
}

.lwh-render-main {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    padding: 0 !important;
    border: 1px solid #dce5dc !important;
    border-radius: 9px !important;
    appearance: none;
    overflow: hidden;
    background: #e4e8e4;
    cursor: zoom-in;
}

.lwh-render-main img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.lwh-render-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 100%;
    padding-right: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lwh-yellow) #edf0eb;
}

.lwh-render-thumb {
    width: 100%;
    height: 68px;
    flex: 0 0 68px;
    padding: 0 !important;
    border: 2px solid transparent !important;
    border-radius: 7px !important;
    appearance: none;
    overflow: hidden;
    background: #e5e9e5;
    cursor: pointer;
}

.lwh-render-thumb.is-active {
    border-color: var(--lwh-yellow);
}

.lwh-render-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lwh-docs-renders-block {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: start;
}

.lwh-docs-renders-block > .lwh-public-module {
    margin: 0;
}

/* Technical cards */
.lwh-technical-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.lwh-tech-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 390px;
    padding: 22px 20px 24px;
    border-radius: 8px;
    color: #fff;
    box-shadow: var(--lwh-shadow);
    overflow: hidden;
}

.lwh-tech-card-green {
    background: var(--lwh-green);
}

.lwh-tech-card-dark {
    background: var(--lwh-charcoal);
}

.lwh-tech-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lwh-tech-card-heading {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 9px;
}

.lwh-tech-card-icon {
    color: var(--lwh-yellow);
    font-size: 21px;
    line-height: 1;
}

.lwh-tech-card h2 {
    margin: 0;
    color: var(--lwh-yellow);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.15;
}

.lwh-tech-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(242, 197, 0, .7);
    border-radius: 999px;
    color: var(--lwh-yellow);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
}

.lwh-tech-pdf-button:hover,
.lwh-tech-pdf-button:focus-visible {
    background: var(--lwh-yellow);
    color: #29301f;
}

.lwh-tech-card-rule {
    height: 1px;
    margin: 14px 0 16px;
    background: rgba(255, 255, 255, .55);
}

.lwh-tech-card-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 15px;
}

.lwh-tech-section {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.lwh-tech-card-green .lwh-tech-section:first-child,
.lwh-tech-card-green .lwh-tech-section:last-child {
    flex: 1 1 50%;
}

.lwh-tech-card-dark .lwh-tech-section {
    flex: 1 1 auto;
}

.lwh-tech-section h3 {
    margin: 0 0 7px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.lwh-tech-table-shell {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.lwh-tech-scroll {
    width: 100%;
    height: 100%;
    max-height: 190px;
    padding-right: 8px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--lwh-yellow) rgba(255, 255, 255, .09);
}

.lwh-tech-card-dark .lwh-tech-scroll {
    max-height: 390px;
}

.lwh-tech-scroll::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.lwh-tech-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .09);
    border-radius: 999px;
}

.lwh-tech-scroll::-webkit-scrollbar-thumb {
    background: var(--lwh-yellow);
    border-radius: 999px;
}

.lwh-tech-table {
    width: 100%;
    min-width: 510px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
}

.lwh-tech-table th,
.lwh-tech-table td {
    padding: 7px 8px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    color: inherit;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.lwh-tech-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 255, 255, .13);
    font-weight: 750;
}

.lwh-tech-table-shell.has-notes .lwh-tech-table th:first-child,
.lwh-tech-table-shell.has-notes .lwh-tech-table td:first-child { width: 39%; }
.lwh-tech-table-shell.has-notes .lwh-tech-table th:nth-child(2),
.lwh-tech-table-shell.has-notes .lwh-tech-table td:nth-child(2) { width: 17%; }
.lwh-tech-table-shell.has-notes .lwh-tech-table th:nth-child(3),
.lwh-tech-table-shell.has-notes .lwh-tech-table td:nth-child(3) { width: 20%; }
.lwh-tech-table-shell.has-notes .lwh-tech-table th:last-child,
.lwh-tech-table-shell.has-notes .lwh-tech-table td:last-child { width: 24%; border-right: 0; }

.lwh-tech-table-shell.no-notes .lwh-tech-table th:first-child,
.lwh-tech-table-shell.no-notes .lwh-tech-table td:first-child { width: 56%; }
.lwh-tech-table-shell.no-notes .lwh-tech-table th:nth-child(2),
.lwh-tech-table-shell.no-notes .lwh-tech-table td:nth-child(2) { width: 20%; }
.lwh-tech-table-shell.no-notes .lwh-tech-table th:nth-child(3),
.lwh-tech-table-shell.no-notes .lwh-tech-table td:nth-child(3) { width: 24%; border-right: 0; }

/* Context and credits */
.lwh-project-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 34px;
    padding: clamp(26px, 3vw, 38px);
    border-radius: 8px;
    background: var(--lwh-green);
    color: #fff;
}

.lwh-context-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.lwh-context-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--lwh-yellow);
    font-size: 26px;
    line-height: 1;
}

.lwh-context-item > span:last-child {
    min-width: 0;
}

.lwh-context-item strong,
.lwh-context-item small {
    display: block;
    color: #fff;
}

.lwh-context-item strong {
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
}

.lwh-context-item small {
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.lwh-credit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.lwh-credit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--lwh-line);
    border-radius: 9px;
    background: #fff;
}

.lwh-credit-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--lwh-green);
    color: var(--lwh-yellow);
    font-size: 19px;
    font-weight: 750;
}

.lwh-credit-card h3 {
    margin: 0 0 3px;
    color: var(--lwh-green);
    font-size: 15px;
}

.lwh-credit-card p {
    margin: 0;
    color: var(--lwh-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* Accessible modal */
.lwh-media-modal[hidden] {
    display: none !important;
}

.lwh-media-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lwh-media-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 13, .88);
    backdrop-filter: blur(4px);
}

.lwh-media-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 10px;
    background: #111;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

.lwh-media-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #b72025;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lwh-media-modal-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 999px !important;
    transform: translateY(-50%);
    appearance: none;
    background: rgba(0,0,0,.58) !important;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.lwh-media-modal-prev { left: 14px; }
.lwh-media-modal-next { right: 14px; }
.lwh-media-modal-nav:hover,
.lwh-media-modal-nav:focus-visible { background: var(--lwh-green) !important; }
.lwh-media-modal-counter {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    color: #fff;
    font-size: 12px;
}

.lwh-media-modal-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    background: #080808;
}

.lwh-media-modal-stage img,
.lwh-media-modal-stage video {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    margin: auto;
}

.lwh-media-modal-stage iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.lwh-media-modal-copy {
    padding: 16px 20px 18px;
    background: #fff;
}

.lwh-media-modal-copy h3 {
    margin: 0 0 4px;
    color: var(--lwh-green);
    font-size: 18px;
}

.lwh-media-modal-copy p {
    margin: 0;
    color: var(--lwh-muted);
    font-size: 13px;
    line-height: 1.5;
}

body.lwh-modal-open {
    overflow: hidden;
}

@container (max-width: 620px) {
    .lwh-render-layout {
        grid-template-columns: 1fr;
    }
    .lwh-render-thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 5px;
    }
    .lwh-render-thumb {
        flex: 0 0 112px;
        width: 112px;
    }
}

.lwh-auto-collapse[hidden] { display: none !important; }

@media (max-width: 900px) {
    .lwh-story-row,
    .lwh-story-row.is-reverse {
        grid-template-columns: 1fr;
    }

    .lwh-story-row.is-reverse .lwh-story-copy,
    .lwh-story-row.is-reverse .lwh-story-figure {
        order: initial;
    }

    .lwh-gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lwh-technical-cards,
    .lwh-docs-renders-block {
        grid-template-columns: 1fr;
    }

    .lwh-tech-card {
        min-height: 420px;
    }

    .lwh-file-list,
    .lwh-credit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .lwh-story-copy {
        padding: 32px 24px;
    }

    .lwh-story-figure,
    .lwh-story-figure img {
        min-height: 250px;
    }

    .lwh-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .lwh-gallery-tile,
    .lwh-gallery-file {
        height: 112px;
    }

    .lwh-video-grid { grid-template-columns: 1fr; }
    .lwh-video-card,
    .lwh-video-count-1 .lwh-video-card,
    .lwh-video-count-2 .lwh-video-card,
    .lwh-video-count-3 .lwh-video-card,
    .lwh-video-count-4 .lwh-video-card,
    .lwh-video-count-5 .lwh-video-card:nth-child(n),
    .lwh-video-count-6 .lwh-video-card { grid-column: 1; }
    .lwh-file-list,
    .lwh-credit-grid { grid-template-columns: 1fr; }

    .lwh-video-cover {
        border-width: 7px;
    }

    .lwh-render-layout {
        grid-template-columns: 1fr;
    }

    .lwh-render-thumbnails {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 5px;
    }

    .lwh-render-thumb {
        flex: 0 0 112px;
        width: 112px;
    }

    .lwh-project-context {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .lwh-tech-card {
        min-height: 0;
        padding: 20px 16px 22px;
    }

    .lwh-tech-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .lwh-tech-scroll,
    .lwh-tech-card-dark .lwh-tech-scroll {
        max-height: 300px;
    }

    .lwh-media-modal {
        padding: 10px;
    }

    .lwh-media-modal-dialog {
        max-height: calc(100vh - 20px);
    }
    .lwh-media-modal-nav { width: 40px; height: 40px; font-size: 28px; }
    .lwh-media-modal-prev { left: 6px; }
    .lwh-media-modal-next { right: 6px; }
}

/* --------------------------------------------------------------------------
 * LWH Core 3.8.2 — visual polish and Elementor width hardening
 * -------------------------------------------------------------------------- */

/* Keep optional shortcode modules stretched inside Elementor containers. */
.elementor-shortcode > .lwh-public-module,
.elementor-widget-shortcode:has(.lwh-public-module),
.elementor-widget-shortcode:has(.lwh-public-module) .elementor-widget-container,
.elementor-widget-shortcode:has(.lwh-public-module) .elementor-shortcode {
    width: 100% !important;
    min-width: 0 !important;
}

/* More compact, consistent narrative rows regardless of source-image ratio. */
@media (min-width: 901px) {
    .lwh-story-row {
        height: clamp(320px, 27vw, 390px);
        min-height: 0;
    }

    .lwh-story-copy {
        min-height: 0;
        padding: clamp(24px, 3vw, 42px);
        overflow: auto;
        scrollbar-width: thin;
    }

    .lwh-story-figure {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .lwh-story-figure img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center center;
    }
}

.lwh-story-copy h2 {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 11px;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 750;
    letter-spacing: -.018em;
}

.lwh-story-copy h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 99px;
    background: var(--lwh-yellow);
}

.lwh-story-text,
.lwh-story-text p {
    font-size: 14px;
    line-height: 1.5;
}

.lwh-story-text p { margin-bottom: .72em; }

/* Documents and 3D downloads use the same full-width visual rhythm. */
.lwh-document-grid,
.lwh-file-list {
    width: 100%;
    grid-template-columns: repeat(var(--lwh-doc-columns, 1), minmax(0, 1fr));
}

.lwh-file-list {
    grid-template-columns: repeat(var(--lwh-file-columns, 1), minmax(0, 1fr));
}

.lwh-file-card {
    width: 100%;
    min-height: 86px;
}

.lwh-file-extension {
    flex: 0 0 46px;
    width: 46px;
    height: 54px;
}

/* Renders: neutralize theme button widths and force a stable showcase grid. */
.lwh-public-renders,
.lwh-render-layout {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
}

.lwh-render-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 92px !important;
    gap: 12px;
    align-items: stretch;
}

.lwh-render-layout.is-single {
    grid-template-columns: minmax(0, 1fr) !important;
}

.lwh-render-main {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
}

.lwh-render-main img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.lwh-render-thumbnails {
    width: 92px;
    min-width: 92px;
}

.lwh-render-thumb {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

@container (max-width: 520px) {
    .lwh-render-layout {
        grid-template-columns: 1fr !important;
    }
    .lwh-render-thumbnails {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .lwh-story-copy {
        padding: 28px 24px;
    }
    .lwh-story-figure,
    .lwh-story-figure img {
        height: 300px;
        min-height: 300px;
        object-fit: cover;
        object-position: center center;
    }
}
