/* ═══════════════════════════════════════════════════
   JEWE Posts Slider v2 – Styles
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700&family=Playfair+Display:wght@600;700;800&display=swap');

/* ── Wrapper ── */
.jewe-ps-wrapper {
    --jewe-accent: #8b323d;
    --jewe-blur: 8px;
    --jewe-bright: 0.45;
    --jewe-dark: #0d1117;
    --jewe-text: #f0f0f0;
    --jewe-muted: #b8bcc4;
    --jewe-radius: 14px;
    --jewe-ease: cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    width: 100vw;
    height: var(--jewe-height, 100vh);
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--jewe-dark);
    isolation: isolate;
}

.jewe-ps-wrapper *,
.jewe-ps-wrapper *::before,
.jewe-ps-wrapper *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Slide Track ── */
.jewe-ps-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Single Slide ── */
.jewe-ps-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s var(--jewe-ease), visibility 0.8s var(--jewe-ease);
    z-index: 1;
}

.jewe-ps-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ── Background Image ── */
.jewe-ps-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(var(--jewe-blur)) brightness(var(--jewe-bright)) saturate(1.15);
    transform: scale(1.04);
    z-index: 0;
    transition: transform 12s ease;
}

.jewe-ps-slide.active .jewe-ps-bg {
    transform: scale(1.08);
}

.jewe-ps-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.05) 70%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ── Inner Layout ── */
.jewe-ps-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 28px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 140px;
    height: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .jewe-ps-inner {
        flex-direction: row;
        align-items: center;
        gap: 48px;
        padding: 60px 48px 120px;
    }
}

@media (min-width: 1100px) {
    .jewe-ps-inner {
        gap: 72px;
        padding: 60px 80px 120px;
    }
}

/* ── LEFT: Content ── */
.jewe-ps-mobile-image {
    display: none;
}

.jewe-ps-content {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 580px;
}

.jewe-ps-slide .jewe-ps-content > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.jewe-ps-slide.active .jewe-ps-content > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.1s; }
.jewe-ps-slide.active .jewe-ps-content > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.2s; }
.jewe-ps-slide.active .jewe-ps-content > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.3s; }
.jewe-ps-slide.active .jewe-ps-content > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.4s; }

.jewe-ps-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.jewe-ps-cat {
    display: inline-block;
    background: var(--jewe-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
}

.jewe-ps-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--jewe-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.jewe-ps-date svg { opacity: 0.5; }

.jewe-ps-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.12;
    color: #fff;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.jewe-ps-excerpt {
    font-size: 15px;
    line-height: 1.75;
    color: var(--jewe-muted);
    max-width: 460px;
}

.jewe-ps-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    background: var(--jewe-accent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--jewe-ease);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.jewe-ps-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.jewe-ps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(139, 50, 61, 0.45);
    gap: 14px;
    background: #a03a48;
}
.jewe-ps-btn:hover::before { opacity: 1; }
.jewe-ps-btn svg { transition: transform 0.3s; }
.jewe-ps-btn:hover svg { transform: translateX(3px); }

/* ── RIGHT: Main Image Preview – 3D Tilt ── */
.jewe-ps-image-wrap {
    flex: 1 1 48%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 760px;
    perspective: 800px;
}

.jewe-ps-image-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--jewe-radius);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transform-style: preserve-3d;
    will-change: transform;
    box-shadow:
        0 24px 64px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.45s var(--jewe-ease), box-shadow 0.45s ease;
}

.jewe-ps-slide .jewe-ps-image-link {
    opacity: 0;
    transform: scale(0.93) translateX(24px) rotateY(-4deg);
    transition: opacity 0.6s ease 0.15s, transform 0.6s var(--jewe-ease) 0.15s, box-shadow 0.5s ease;
}
.jewe-ps-slide.active .jewe-ps-image-link {
    opacity: 1;
    transform: scale(1) translateX(0) rotateY(0);
}

.jewe-ps-image-link.is-tilting {
    transition: box-shadow 0.3s ease;
}

.jewe-ps-image-link:hover {
    box-shadow:
        0 36px 80px rgba(0,0,0,0.6),
        0 0 0 2px rgba(139, 50, 61, 0.25),
        0 0 60px rgba(139, 50, 61, 0.08);
}

.jewe-ps-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s var(--jewe-ease);
}

.jewe-ps-image-link:hover .jewe-ps-image {
    transform: scale(1.07);
}

.jewe-ps-glare {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.25) 0%, transparent 70%);
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
}
.jewe-ps-image-link:hover .jewe-ps-glare { opacity: 1; }

.jewe-ps-image-link::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 50px; height: 50px;
    border-top: 2px solid var(--jewe-accent);
    border-left: 2px solid var(--jewe-accent);
    border-radius: var(--jewe-radius) 0 0 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s;
    transform: translate(-6px, -6px);
}
.jewe-ps-image-link::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 50px; height: 50px;
    border-bottom: 2px solid var(--jewe-accent);
    border-right: 2px solid var(--jewe-accent);
    border-radius: 0 0 var(--jewe-radius) 0;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.35s, transform 0.35s;
    transform: translate(6px, 6px);
}
.jewe-ps-image-link:hover::before,
.jewe-ps-image-link:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* ══════════════════════════════════════════
   THUMBNAIL NAVIGATION BAR (bottom)
   ══════════════════════════════════════════ */
.jewe-ps-thumbs-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
    padding: 20px 24px 18px;
}

.jewe-ps-thumbs-track {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    max-width: 1160px;
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 6px;
}

.jewe-ps-thumbs-track::-webkit-scrollbar { display: none; }

.jewe-ps-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 100px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.3);
    padding: 0;
    transition: all 0.35s var(--jewe-ease);
    outline: none;
}

.jewe-ps-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
    filter: brightness(0.6) saturate(0.7);
}

.jewe-ps-thumb:hover img {
    transform: scale(1.08);
    filter: brightness(0.85) saturate(1);
}

.jewe-ps-thumb:hover { border-color: rgba(255,255,255,0.35); }

.jewe-ps-thumb.active {
    border-color: var(--jewe-accent);
    box-shadow: 0 0 16px rgba(139, 50, 61, 0.4);
}

.jewe-ps-thumb.active img {
    filter: brightness(1) saturate(1.1);
}

.jewe-ps-thumb-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--jewe-accent);
    z-index: 2;
    border-radius: 0 0 0 6px;
}

/* ══════════════════════════════════════════
   HERO MODE (static single image)
   ══════════════════════════════════════════ */
.jewe-ps-hero-mode .jewe-ps-track,
.jewe-ps-hero-mode {
    height: var(--jewe-height, 100vh);
}

.jewe-ps-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 24px;
}

.jewe-ps-content-center {
    text-align: center;
    align-items: center;
    max-width: 720px;
}

.jewe-ps-content-center .jewe-ps-title { font-size: clamp(2rem, 5vw, 3.8rem); }
.jewe-ps-content-center .jewe-ps-excerpt { max-width: 540px; margin: 0 auto; font-size: 17px; }
.jewe-ps-content-center .jewe-ps-btn { align-self: center; }

/* ══════════════════════════════════════════
   RESPONSIVE – MOBILE
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
    .jewe-ps-wrapper { height: auto; min-height: 0; }
    .jewe-ps-bg { display: none; }
    .jewe-ps-slide::after { display: none; }

    .jewe-ps-inner {
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        gap: 0;
        height: auto;
    }

    .jewe-ps-image-wrap { display: none; }

    .jewe-ps-mobile-image {
        display: block;
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        order: -1;
    }

    .jewe-ps-mobile-image a { display: block; width: 100%; height: 100%; }
    .jewe-ps-mobile-image img {
        display: block; width: 100%; height: 100%; object-fit: cover;
        transition: transform 0.5s var(--jewe-ease);
    }

    .jewe-ps-slide .jewe-ps-mobile-image img {
        opacity: 0; transform: scale(1.06);
        transition: opacity 0.5s ease, transform 0.7s var(--jewe-ease);
    }
    .jewe-ps-slide.active .jewe-ps-mobile-image img { opacity: 1; transform: scale(1); }

    .jewe-ps-mobile-image::after {
        content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
        background: linear-gradient(to top, var(--jewe-dark) 0%, transparent 100%);
        pointer-events: none; z-index: 1;
    }

    .jewe-ps-content {
        position: relative; text-align: left; align-items: flex-start;
        gap: 14px; padding: 20px 20px 24px; max-width: 100%; width: 100%;
        background: var(--jewe-dark);
    }

    .jewe-ps-content::before {
        content: ''; position: absolute; left: 20px; top: 0;
        width: 40px; height: 3px; background: var(--jewe-accent); border-radius: 2px;
    }

    .jewe-ps-meta { gap: 10px; padding-top: 6px; }
    .jewe-ps-cat { font-size: 9px; padding: 4px 10px; letter-spacing: 1.4px; }
    .jewe-ps-date { font-size: 12px; color: var(--jewe-muted); }
    .jewe-ps-title { font-size: clamp(1.25rem, 5.5vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; color: #fff; text-shadow: none; }
    .jewe-ps-excerpt {
        font-size: 13.5px; line-height: 1.65; color: var(--jewe-muted);
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .jewe-ps-btn { padding: 12px 24px; font-size: 11px; letter-spacing: 1.2px; border-radius: 8px; margin-top: 2px; }

    .jewe-ps-slide .jewe-ps-content > * { transform: translateY(16px); }
    .jewe-ps-slide.active .jewe-ps-content > *:nth-child(1) { transition-delay: 0.1s; }
    .jewe-ps-slide.active .jewe-ps-content > *:nth-child(2) { transition-delay: 0.16s; }
    .jewe-ps-slide.active .jewe-ps-content > *:nth-child(3) { transition-delay: 0.22s; }
    .jewe-ps-slide.active .jewe-ps-content > *:nth-child(4) { transition-delay: 0.28s; }

    .jewe-ps-thumbs-bar { position: relative; background: var(--jewe-dark); padding: 6px 20px 16px; }
    .jewe-ps-thumbs-track { justify-content: flex-start; gap: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
    .jewe-ps-thumb { width: 68px; height: 46px; border-radius: 8px; flex-shrink: 0; scroll-snap-align: center; border-width: 2px; }
    .jewe-ps-thumb.active { border-color: var(--jewe-accent); box-shadow: 0 0 12px rgba(139, 50, 61, 0.5); }
    .jewe-ps-thumb-progress { height: 2px; }
    .jewe-ps-track { position: relative; height: auto; }
    .jewe-ps-slide { position: relative; inset: auto; display: none; }
    .jewe-ps-slide.active { display: block; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .jewe-ps-thumb { width: 80px; height: 52px; }
    .jewe-ps-image-wrap { max-width: 520px; }
    .jewe-ps-content { gap: 16px; }
    .jewe-ps-title { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
    .jewe-ps-slide,
    .jewe-ps-slide .jewe-ps-content > *,
    .jewe-ps-slide .jewe-ps-image-link,
    .jewe-ps-bg,
    .jewe-ps-image,
    .jewe-ps-thumb img,
    .jewe-ps-mobile-image img {
        transition-duration: 0.01ms !important;
    }
}


/* ══════════════════════════════════════════════════════
   POST ENHANCEMENT – Single Post Layout
   ══════════════════════════════════════════════════════ */

.jewe-post-wrap {
    --jewe-accent: #8b323d;
    --jewe-radius: 12px;
    --jewe-ease: cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1220px;
    margin: 0 auto;
    padding-inline: clamp(16px, 3vw, 28px);
}

/* ── Content + Sidebar Grid ── */
.jewe-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 56px;
}

@media (min-width: 1024px) {
    .jewe-post-layout {
        grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
        gap: 48px;
        align-items: start;
        justify-content: center;
    }
}

.jewe-post-main {
    min-width: 0;
    width: 100%;
    margin: 0 auto;
}

/* ── Sidebar ── */
.jewe-post-sidebar {
    position: sticky;
    top: 100px;
}

.jewe-post-sidebar-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--jewe-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.jewe-post-sidebar-title svg {
    color: var(--jewe-accent);
    flex-shrink: 0;
}

/* Sidebar Post Cards */
.jewe-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.jewe-sidebar-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.jewe-sidebar-post:last-child {
    border-bottom: none;
}

.jewe-sidebar-post:hover .jewe-sidebar-post-img img {
    transform: scale(1.06);
}

.jewe-sidebar-post:hover .jewe-sidebar-post-title {
    color: var(--jewe-accent);
}

.jewe-sidebar-post-img {
    flex: 0 0 76px;
    width: 76px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.jewe-sidebar-post-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--jewe-ease);
}

.jewe-sidebar-post-body {
    flex: 1;
    min-width: 0;
}

.jewe-sidebar-post-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 5px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jewe-sidebar-post-date {
    font-size: 11.5px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.jewe-sidebar-post-cat {
    display: inline-block;
    background: var(--jewe-accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 50px;
    margin-bottom: 4px;
}

/* ── Gallery Section ── */
.jewe-post-gallery-wrap {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

.jewe-post-gallery-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.jewe-post-gallery-heading svg {
    color: var(--jewe-accent);
}

.jewe-post-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 600px) {
    .jewe-post-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .jewe-post-gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

.jewe-gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

.jewe-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--jewe-ease), filter 0.3s;
}

.jewe-gallery-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.85);
}

.jewe-gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(139, 50, 61, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.jewe-gallery-item:hover .jewe-gallery-item-overlay {
    opacity: 1;
    background: rgba(139, 50, 61, 0.25);
}

.jewe-gallery-item-overlay svg {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* ── Gallery: first item spans 2 cols on larger screens ── */
@media (min-width: 600px) {
    .jewe-gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
    .jewe-gallery-item:first-child {
        aspect-ratio: auto;
    }
}


/* ══════════════════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════════════════ */

.jewe-lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.jewe-lb-overlay.is-open {
    opacity: 1;
}

.jewe-lb-stage {
    position: relative;
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jewe-lb-img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transition: opacity 0.3s ease;
}

.jewe-lb-caption {
    margin-top: 14px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    max-width: 600px;
}

.jewe-lb-counter {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 1px;
}

.jewe-lb-close,
.jewe-lb-prev,
.jewe-lb-next {
    position: fixed;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    outline: none;
    padding: 0;
}

.jewe-lb-close:hover,
.jewe-lb-prev:hover,
.jewe-lb-next:hover {
    background: rgba(139, 50, 61, 0.7);
    transform: scale(1.1);
}

.jewe-lb-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
}

.jewe-lb-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
}

.jewe-lb-prev:hover { transform: translateY(-50%) scale(1.1); }

.jewe-lb-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
}

.jewe-lb-next:hover { transform: translateY(-50%) scale(1.1); }

@media (max-width: 600px) {
    .jewe-lb-prev { left: 10px; width: 40px; height: 40px; }
    .jewe-lb-next { right: 10px; width: 40px; height: 40px; }
    .jewe-lb-stage { max-width: 95vw; }
    .jewe-lb-img { max-height: 70vh; }
}

/* ══════════════════════════════════════════════════════
   BLOG PAGE MODERNIZATION – Flatsome Theme
   ══════════════════════════════════════════════════════ */

body.blog,
body.archive,
body.search {
    --jewe-blog-accent: #8b323d;
    --jewe-blog-accent-light: #b04a58;
    --jewe-blog-radius: 16px;
    --jewe-blog-shadow: 0 4px 20px rgba(13, 17, 23, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    --jewe-blog-shadow-hover: 0 20px 50px rgba(13, 17, 23, 0.13), 0 6px 16px rgba(139, 50, 61, 0.1);
    --jewe-blog-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── HIDE: Kategorien ── */
body.blog h6.entry-category,
body.archive h6.entry-category,
body.search h6.entry-category,
body.blog footer.entry-meta,
body.archive footer.entry-meta,
body.search footer.entry-meta,
body.blog .cat-links,
body.archive .cat-links,
body.search .cat-links {
    display: none !important;
}

/* ── HIDE: Autor ("von mg") ── */
body.blog .entry-header-text .byline,
body.archive .entry-header-text .byline,
body.search .entry-header-text .byline {
    display: none !important;
}

/* ── HIDE: Divider (nicht mehr nötig ohne Kategorie) ── */
body.blog .entry-header-text .entry-divider,
body.archive .entry-header-text .entry-divider,
body.search .entry-header-text .entry-divider {
    display: none !important;
}

/* ── HIDE: Meta "Veröffentlicht am" Text (Datum steht bereits im Badge) ── */
body.blog .entry-header-text .entry-meta,
body.archive .entry-header-text .entry-meta,
body.search .entry-header-text .entry-meta {
    display: none !important;
}

/* ── Archive Page Header ── */
body.archive .archive-page-header,
body.blog .archive-page-header {
    padding: 44px 0 20px !important;
    margin-bottom: 8px !important;
}

body.archive .archive-page-header .page-title,
body.blog .archive-page-header .page-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem) !important;
    font-weight: 800 !important;
    color: #1a1a2e !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    line-height: 1.2 !important;
}

/* ── Post List Container ── */
#post-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── Article Cards ── */
body.archive #post-list article.post,
body.blog #post-list article.post,
body.search #post-list article.post {
    margin-bottom: 0 !important;
}

body.archive #post-list .article-inner,
body.blog #post-list .article-inner,
body.search #post-list .article-inner {
    background: #fff !important;
    border-radius: var(--jewe-blog-radius) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: var(--jewe-blog-shadow) !important;
    overflow: hidden !important;
    position: relative;
    transition: transform 0.4s var(--jewe-blog-ease),
                box-shadow 0.4s var(--jewe-blog-ease),
                border-color 0.4s ease;
}

body.archive #post-list .article-inner:hover,
body.blog #post-list .article-inner:hover,
body.search #post-list .article-inner:hover {
    transform: translateY(-5px);
    box-shadow: var(--jewe-blog-shadow-hover) !important;
    border-color: rgba(139, 50, 61, 0.15) !important;
}

/* Accent top-line on hover */
body.archive #post-list .article-inner::after,
body.blog #post-list .article-inner::after,
body.search #post-list .article-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--jewe-blog-accent), var(--jewe-blog-accent-light));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
    border-radius: var(--jewe-blog-radius) var(--jewe-blog-radius) 0 0;
}

body.archive #post-list .article-inner:hover::after,
body.blog #post-list .article-inner:hover::after,
body.search #post-list .article-inner:hover::after {
    opacity: 1;
}

/* ── Scroll-Reveal Animation ── */
body.archive #post-list article.post,
body.blog #post-list article.post,
body.search #post-list article.post {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--jewe-blog-ease), transform 0.6s var(--jewe-blog-ease);
}

body.archive #post-list article.post.jewe-visible,
body.blog #post-list article.post.jewe-visible,
body.search #post-list article.post.jewe-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Entry Header: Reorder (Bild zuerst) ── */
body.archive .entry-header,
body.blog .entry-header,
body.search .entry-header {
    display: flex !important;
    flex-direction: column !important;
}

body.archive .entry-header .entry-image,
body.blog .entry-header .entry-image,
body.search .entry-header .entry-image {
    order: -1 !important;
}

/* ── Bild ── */
body.archive .entry-image,
body.blog .entry-image,
body.search .entry-image {
    overflow: hidden !important;
    line-height: 0 !important;
    position: relative !important;
}

body.archive .entry-image img,
body.blog .entry-image img,
body.search .entry-image img {
    width: 100% !important;
    display: block !important;
    transition: transform 0.6s var(--jewe-blog-ease) !important;
}

body.archive .article-inner:hover .entry-image img,
body.blog .article-inner:hover .entry-image img,
body.search .article-inner:hover .entry-image img {
    transform: scale(1.04) !important;
}

/* ── Datum-Badge auf dem Bild ── */
body.archive .badge.post-date,
body.blog .badge.post-date,
body.search .badge.post-date {
    background: var(--jewe-blog-accent) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    top: 16px !important;
    left: 16px !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    box-shadow: 0 4px 16px rgba(139, 50, 61, 0.4) !important;
}

body.archive .badge.post-date .badge-inner,
body.blog .badge.post-date .badge-inner {
    font-family: 'DM Sans', sans-serif !important;
    line-height: 1 !important;
}

body.archive .badge.post-date .post-date-day,
body.blog .badge.post-date .post-date-day {
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: #fff !important;
}

body.archive .badge.post-date .post-date-month,
body.blog .badge.post-date .post-date-month {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Header-Text (Titel) ── */
body.archive .entry-header-text,
body.blog .entry-header-text,
body.search .entry-header-text {
    text-align: left !important;
    padding: 24px 28px 4px !important;
}

/* ── Titel ── */
body.archive #post-list .entry-title,
body.blog #post-list .entry-title,
body.search #post-list .entry-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(1.25rem, 2.5vw, 1.8rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
    margin: 0 !important;
}

body.archive #post-list .entry-title a.plain,
body.blog #post-list .entry-title a.plain,
body.search #post-list .entry-title a.plain {
    color: #1a1a2e !important;
    transition: color 0.3s ease !important;
}

body.archive #post-list .entry-title a.plain:hover,
body.blog #post-list .entry-title a.plain:hover,
body.search #post-list .entry-title a.plain:hover {
    color: var(--jewe-blog-accent) !important;
}

/* ── Excerpt ── */
body.archive .entry-content,
body.blog .entry-content,
body.search .entry-content {
    padding: 0 !important;
}

body.archive .entry-content .entry-summary,
body.blog .entry-content .entry-summary,
body.search .entry-content .entry-summary {
    padding: 8px 28px 24px !important;
}

body.archive .entry-summary > p,
body.blog .entry-summary > p,
body.search .entry-summary > p {
    color: #4a5060 !important;
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    margin-bottom: 0 !important;
}

/* ── Weiterlesen Button ── */
body.archive a.more-link.button,
body.blog a.more-link.button,
body.search a.more-link.button {
    background: transparent !important;
    color: var(--jewe-blog-accent) !important;
    border: 2px solid var(--jewe-blog-accent) !important;
    border-radius: 10px !important;
    padding: 11px 28px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    transition: all 0.3s var(--jewe-blog-ease) !important;
    text-decoration: none !important;
    margin-top: 14px !important;
}

body.archive a.more-link.button:hover,
body.blog a.more-link.button:hover,
body.search a.more-link.button:hover {
    background: var(--jewe-blog-accent) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(139, 50, 61, 0.3) !important;
}

/* Button-Container: linksbündig statt zentriert */
body.archive .entry-summary .text-center,
body.blog .entry-summary .text-center,
body.search .entry-summary .text-center {
    text-align: left !important;
}

/* ── Pagination ── */
body.archive ul.page-numbers.nav-pagination,
body.blog ul.page-numbers.nav-pagination,
body.search ul.page-numbers.nav-pagination {
    margin-top: 44px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    gap: 6px !important;
}

body.archive ul.page-numbers li,
body.blog ul.page-numbers li,
body.search ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
}

body.archive .page-number,
body.blog .page-number,
body.search .page-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #4a5060 !important;
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    text-decoration: none !important;
    transition: all 0.25s var(--jewe-blog-ease) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.archive a.page-number:hover,
body.blog a.page-number:hover,
body.search a.page-number:hover {
    background: var(--jewe-blog-accent) !important;
    color: #fff !important;
    border-color: var(--jewe-blog-accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(139, 50, 61, 0.25) !important;
}

body.archive .page-number.current,
body.blog .page-number.current,
body.search .page-number.current {
    background: var(--jewe-blog-accent) !important;
    color: #fff !important;
    border-color: var(--jewe-blog-accent) !important;
    box-shadow: 0 4px 14px rgba(139, 50, 61, 0.3) !important;
}

body.archive span.page-number.dots,
body.blog span.page-number.dots,
body.search span.page-number.dots {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #9ca3b0 !important;
}

/* ── Desktop: Side-by-Side Layout (grid auf article-inner) ── */
@media (min-width: 768px) {
    body.archive #post-list .article-inner,
    body.blog #post-list .article-inner,
    body.search #post-list .article-inner {
        display: grid !important;
        grid-template-columns: 40% 1fr !important;
        grid-template-rows: auto 1fr !important;
    }

    body.archive .entry-header,
    body.blog .entry-header,
    body.search .entry-header {
        display: contents !important;
    }

    body.archive .entry-header .entry-image,
    body.blog .entry-header .entry-image,
    body.search .entry-header .entry-image {
        grid-column: 1 !important;
        grid-row: 1 / -1 !important;
        order: 0 !important;
    }

    body.archive .entry-header .entry-image img,
    body.blog .entry-header .entry-image img,
    body.search .entry-header .entry-image img {
        height: 100% !important;
        object-fit: cover !important;
    }

    body.archive .entry-header-text,
    body.blog .entry-header-text,
    body.search .entry-header-text {
        grid-column: 2 !important;
        padding: 28px 32px 6px !important;
    }

    body.archive .entry-content,
    body.blog .entry-content,
    body.search .entry-content {
        grid-column: 2 !important;
    }

    body.archive .entry-content .entry-summary,
    body.blog .entry-content .entry-summary,
    body.search .entry-content .entry-summary {
        padding: 0 32px 28px !important;
    }
}

@media (min-width: 1100px) {
    body.archive #post-list .article-inner,
    body.blog #post-list .article-inner,
    body.search #post-list .article-inner {
        grid-template-columns: 36% 1fr !important;
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    body.archive .entry-header-text,
    body.blog .entry-header-text {
        padding: 20px 20px 4px !important;
    }

    body.archive .entry-content .entry-summary,
    body.blog .entry-content .entry-summary {
        padding: 4px 20px 20px !important;
    }

    body.archive .page-number,
    body.blog .page-number {
        min-width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 10px !important;
    }

    #post-list {
        gap: 20px;
    }
}
