/* ══════════════════════════════════════════════
   Lysiplex Cases — Frontend CSS
   Fonts: Plus Jakarta Sans (headings), Inter (body)
   Colors: #8dc640 accent, #37523B forest, #5a6b5c body
══════════════════════════════════════════════ */

:root {
    --lx-green:    #8dc640;
    --lx-forest:   #37523B;
    --lx-body:     #5a6b5c;
    --lx-black:    #111;
    --lx-white:    #fff;
    --lx-bg:       #f8f8f6;
    --lx-radius:   2px;
    --lx-max:      1600px;
    --lx-ease:     cubic-bezier(.25,.46,.45,.94);
}

/* ── SINGLE CASE — SPLITSCREEN ─────────────── */

.lx-case-wrap {
    display: flex;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Sticky left panel */
.lx-case-left {
    position: sticky;
    top: 0;
    width: 42%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 64px 56px;
    background: var(--lx-white);
    z-index: 2;
    flex-shrink: 0;
}

.lx-case-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.lx-case-nr {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--lx-green);
}

.lx-case-divider {
    width: 32px;
    height: 1px;
    background: #cdd8ce;
}

.lx-case-kategori {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #aab8ab;
}

.lx-case-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 800;
    color: var(--lx-forest);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 28px;
}

.lx-case-body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8em;
    color: var(--lx-body);
    margin: 0 0 40px;
    max-width: 480px;
}

.lx-case-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lx-case-progress-bar {
    flex: 1;
    height: 2px;
    background: #e0e8e1;
    border-radius: 1px;
    overflow: hidden;
}

.lx-case-progress-fill {
    height: 100%;
    background: var(--lx-green);
    width: 0%;
    transition: width .4s var(--lx-ease);
}

.lx-case-progress-count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #aab8ab;
    white-space: nowrap;
}

/* Scroll hint — placeret i højre billedpanel */
.lx-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity .5s;
    z-index: 10;
    pointer-events: none;
}

.lx-scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.lx-scroll-hint span {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    padding: 5px 12px;
    border-radius: 20px;
}

.lx-scroll-hint-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255,255,255,.8);
    border-bottom: 2px solid rgba(255,255,255,.8);
    transform: rotate(45deg) translateY(-3px);
    animation: lx-bounce 1.6s infinite;
}

@keyframes lx-bounce {
    0%, 100% { transform: rotate(45deg) translateY(-3px); }
    50%       { transform: rotate(45deg) translateY(2px); }
}

/* Right scrolling gallery */
.lx-case-right {
    flex: 1;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
}

.lx-case-right::-webkit-scrollbar {
    display: none;
}

.lx-case-img-slide {
    scroll-snap-align: start;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.lx-case-img-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s var(--lx-ease);
}

.lx-case-img-slide:hover img {
    transform: scale(1.02);
}

/* Slide caption */
.lx-slide-caption {
    position: absolute;
    bottom: 32px;
    right: 32px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    padding: 10px 16px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--lx-body);
    letter-spacing: .05em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s;
}

.lx-case-img-slide:hover .lx-slide-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lx-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.lx-lightbox.active {
    display: flex;
}

.lx-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 2px;
}

.lx-lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    color: rgba(255,255,255,.7);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color .2s;
    background: none;
    border: none;
    padding: 0;
}

.lx-lightbox-close:hover {
    color: #fff;
}

.lx-lightbox-prev,
.lx-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.7);
    font-size: 40px;
    cursor: pointer;
    transition: color .2s;
    background: none;
    border: none;
    padding: 0 20px;
    line-height: 1;
}

.lx-lightbox-prev { left: 16px; }
.lx-lightbox-next { right: 16px; }
.lx-lightbox-prev:hover,
.lx-lightbox-next:hover { color: #fff; }

/* Nav tilbage til oversigt — inline i venstre panel */
.lx-case-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #aab8ab;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color .2s, gap .2s;
}

.lx-case-back:hover {
    gap: 10px;
    color: var(--lx-green);
}

/* ── ARCHIVE — CASES OVERSIGT ──────────────── */

.lx-archive-wrap {
    max-width: var(--lx-max);
    margin: 0 auto;
    padding: 100px 48px 80px;
}

.lx-archive-header {
    margin-bottom: 22px;
	margin-top:22px;
}

.lx-archive-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lx-green);
    margin-bottom: 16px;
}

.lx-archive-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 800;
    color: var(--lx-forest);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin: 0;
}

/* Editorial grid */
.lx-archive-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

/* Alternating large/small layout */
.lx-archive-grid .lx-card:nth-child(3n+1) {
    grid-column: span 7;
}

.lx-archive-grid .lx-card:nth-child(3n+2) {
    grid-column: span 5;
}

.lx-archive-grid .lx-card:nth-child(3n+3) {
    grid-column: span 12;
}

/* Card */
.lx-card {
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #eaede8;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s var(--lx-ease), transform .7s var(--lx-ease);
}

.lx-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.lx-card-img {
    height: 320px;
    overflow: hidden;
    flex-shrink: 0;
}

.lx-card-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.lx-archive-grid .lx-card:nth-child(3n+3) .lx-card-img {
    height: 420px;
}

.lx-card-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform .7s var(--lx-ease);
}

.lx-card:hover .lx-card-img img {
    transform: scale(1.04);
}

.lx-card-info {
    padding: 24px 28px 28px;
    background: var(--lx-white);
    position: relative;
}

.lx-card-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 28px;
    width: 32px;
    height: 2px;
    background: var(--lx-green);
    transition: width .4s var(--lx-ease);
}

.lx-card:hover .lx-card-info::before {
    width: 64px;
}

.lx-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lx-forest);
    margin: 0 0 8px;
    line-height: 1.2;
}

.lx-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: var(--lx-body);
    margin: 0;
}

.lx-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lx-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .25s;
    color: var(--lx-forest);
    font-size: 16px;
}

.lx-card:hover .lx-card-arrow {
    background: var(--lx-green);
    color: var(--lx-white);
    transform: translate(2px, -2px);
}

/* ── FORSIDSFRISE ──────────────────────────── */

.lx-frise-wrap {
    padding: 80px 0;
    background: var(--lx-white);
}

.lx-frise-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 0px;
}

.lx-frise-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.lx-frise-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lx-green);
    margin-bottom: 12px;
}

.lx-frise-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    color: var(--lx-forest);
    letter-spacing: -.025em;
    margin: 0;
}

.lx-frise-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lx-forest);
    text-decoration: none;
    border-bottom: 2px solid var(--lx-green);
    padding-bottom: 3px;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}

.lx-frise-link:hover {
    color: var(--lx-green);
}

.lx-frise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

/* Alle frise-kort samme størrelse — override archive nth-child regler */
.lx-frise-grid .lx-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}

.lx-frise-grid .lx-card-img {
    aspect-ratio: 4/3;
}

/* Ensartet kortstørrelse via flex */
.lx-frise-grid .lx-card {
    display: flex;
    flex-direction: column;
}

.lx-frise-grid .lx-card-info {
    flex: 1;
}

/* ── RESPONSIVE ────────────────────────────── */

@media (max-width: 1024px) {
    .lx-case-left {
        width: 48%;
        padding: 48px 40px;
    }
    .lx-archive-grid .lx-card:nth-child(3n+1),
    .lx-archive-grid .lx-card:nth-child(3n+2),
    .lx-archive-grid .lx-card:nth-child(3n+3) {
        grid-column: span 6;
    }
    .lx-frise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lx-case-wrap {
        flex-direction: column;
        height: auto;
    }
    .lx-case-left {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 24px 32px;
    }
    .lx-case-right {
        overflow-y: visible;
        scroll-snap-type: none;
    }
    .lx-case-img-slide {
        height: 65vw;
        scroll-snap-align: none;
    }
    .lx-case-progress { display: none; }

    .lx-archive-wrap {
        padding: 72px 20px 60px;
    }
    .lx-archive-grid .lx-card {
        grid-column: span 12 !important;
    }
    .lx-frise-grid {
        grid-template-columns: 1fr;
    }
    .lx-frise-inner {
        padding: 0 20px;
    }
    .lx-archive-grid {
        gap: 16px;
    }
}
