/* Clean, Minimalist Horizontal Scrollytelling CSS */
:root {
    --bg-primary: #f7f6f2;      /* Off-white warm granite sand */
    --bg-secondary: #ecebe6;    /* Light alpine slate grey */
    --text-primary: #1c221e;    /* Deep forest charcoal */
    --text-secondary: #424945;  /* Alpine slate grey */
    --text-muted: #79827c;      /* Lichen grey */
    --border-color: #dcdad0;    /* Warm granite border */
    
    --accent-color: #3b6143;    /* Alpine forest green */
    --accent-light: #e4ece6;    /* Warm alpine mist green */
    
    --line-color: #4e5651;      /* Slate line */
    --terrain-start: #78997a;   /* Alpine meadow green */
    --terrain-end: #ecebe6;     /* Warm granite base */
    
    --font-serif: "Lora", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.04);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.08);
    
    --radius-md: 8px;
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Background video fixed at absolute bottom */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

.bg-video.active {
    opacity: 0.25; /* Faded style */
}

html, body {
    height: 100%; /* Prevents iOS 100vh overflow under navbar */
    overflow-y: hidden;
    overflow-x: hidden; /* Disable native scroll; rely entirely on JS swiping */
    overscroll-behavior-y: none; /* Prevents vertical rubber-banding on iOS */
    overscroll-behavior-x: none; /* Optional: prevents horizontal bouncing */
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    display: flex;
    flex-direction: row;
    height: 100%;
    width: max-content;
}

/* Screen 1: Intro Screen */
.intro-screen {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: transform 10s linear;
}

.intro-screen:hover .hero-bg {
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 40px;
    text-align: center;
    color: var(--text-primary);
}

.hero-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.hero-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: uppercase;
    font-size: 56px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-val small {
    font-size: 12px;
}

.stat-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted); /* Dark grey */
    gap: 10px;
}

.swipe-icon {
    width: 38px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
    display: block;
}

.swipe-wheel {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    animation: swipeWheel 1.5s infinite;
}

@keyframes swipeWheel {
    0% { opacity: 1; left: 6px; }
    100% { opacity: 0; left: 22px; }
}

/* Screen 2: Elevation Profile Journey Track */
.journey-track-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.journey-track {
    position: relative;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

/* The giant SVG container */
.svg-profile-container {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 20; /* Elevation profile track runs ON TOP of the hero photo box */
    pointer-events: none;
}

.svg-profile-container svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* SVG Line & Terrain styling */
.svg-elevation-line {
    fill: none;
    stroke: var(--line-color);
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.svg-gap-line {
    fill: none;
    stroke: var(--line-color);
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 6 6;
    opacity: 0.65;
}

.svg-elevation-fill {
    fill: var(--bg-secondary);
    stroke: none;
}

.svg-landmark-line {
    stroke: var(--border-color);
    stroke-width: 1.5px;
    stroke-dasharray: 4 4;
}

.svg-signpost-post {
    stroke: var(--text-secondary); /* Dark slate metal signpost */
    stroke-width: 2.5px;
    stroke-linecap: round;
    opacity: 0.85;
}



.road-sign {
    position: absolute;
    transform: translate(-50%, -100%);
    /* Clean, highly-readable Swiss traffic sign colors & typography */
    background-color: #2b4e70; /* Organic desaturated slate-blue */
    color: #ffffff;
    font-family: "SNV", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 2px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.25;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background-color 0.3s ease;
}

/* Local town indicators styled as white/black local Swiss signs */
.road-sign.local {
    background-color: var(--bg-primary); /* Warm alpine paper/granite */
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

/* Pointer arrow at bottom of sign */
.road-sign::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #2b4e70 transparent;
    display: block;
    width: 0;
}

.road-sign.local::after {
    border-color: var(--text-primary) transparent;
}

.road-sign-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.road-sign-alt {
    font-size: 8.5px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 1px;
}

.photo-markers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 25; /* Trail markers and road signs sit on top */
    pointer-events: none; /* Let clicks pass through */
}

/* Swiss Hiking Trail Diamond Marker */
.photo-marker {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #f5c500; /* Swiss trail yellow */
    border: 2px solid var(--text-primary);
    transform: translate(-50%, -50%) rotate(45deg);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: auto; /* Enable hover/clicks */
    z-index: 1000; /* Force it to top */
}

.photo-marker:hover, .photo-marker.active {
    background-color: #ff3b30; /* Alpine Red on hover/focus */
    transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Media Cards Overlay Container */
.media-cards-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none; /* Let clicks pass through to track elements */
}

/* Large Hero-Style Display Box (Main Visual Element floating UNDER the track markers) */
.hero-display-box {
    position: fixed;
    top: 50%;
    right: 28px;
    width: auto; /* Allow box to size naturally to image dimensions */
    min-width: 480px;
    max-width: calc(100vw - 56px);
    max-height: calc(100vh - 48px);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.20);
    z-index: 10; /* Lower z-index so SVG track (20) and markers (25) sit ON TOP */
    opacity: 0;
    transform: translateY(calc(-50% + 16px));
    transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.3s ease;
    pointer-events: none; /* Ignore clicks when hidden! */
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
}

.hero-display-box.active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto; /* Re-enable clicks when visible */
}

.hero-display-box:hover {
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.26);
}

.hero-display-media {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-display-media img, .hero-display-media video {
    max-width: 100%;
    /* Maximize vertical space for portrait images, leaving room for text/padding */
    max-height: calc(100vh - 180px); 
    width: auto;
    height: auto;
    object-fit: contain; /* Scale to intrinsic dimensions without cropping */
    display: block;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

.hero-display-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-display-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.hero-display-dist {
    margin-left: auto;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
}

.hero-display-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 2px 0 0 0;
}

.hero-display-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 2px 0 6px 0;
}

.hero-display-exif {
    font-size: 11.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 4px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Individual Pop-up Card (Legacy fallback / hidden) */
.media-card {
    display: none;
}

/* Card inner components */
.card-media-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.card-media-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    outline: none;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-date {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 2px;
}

.card-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 4px;
}

.card-desc:empty {
    display: none;
}

.card-exif {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
    margin-top: 6px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* SVG connective connector line */
.svg-connective-line {
    stroke: var(--text-secondary);
    stroke-width: 1.5px;
    stroke-linecap: round;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.35s ease;
}

.svg-connective-line.active {
    opacity: 0.85; /* Fades in when active */
    stroke-width: 2px;
}

/* Screen 3: Outro / End Credits Screen */
.outro-screen {
    width: 100vw;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-left: 1px solid var(--border-color);
}

.outro-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.outro-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.outro-subtitle {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.outro-credits {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button override */
.btn {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Authoring Mode Banner */


.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.badge {
    background-color: var(--accent-color);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.banner-actions {
    display: flex;
    gap: 10px;
}

/* Content Editable styling */
[contenteditable="true"] {
    outline: 2px dashed transparent;
    padding: 1px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

[contenteditable="true"]:hover {
    outline-color: var(--border-color);
    background-color: var(--bg-secondary);
}

[contenteditable="true"]:focus {
    outline-color: var(--accent-color);
    background-color: var(--bg-primary);
}

body.edit-active [contenteditable="true"]:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    font-style: italic;
    font-weight: normal;
}

/* Floating Edit Mode Controls */




/* LIGHTBOX ZOOM MODAL */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(9,9,11,0.96);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    z-index: 100200;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-content {
    display: flex;
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    background-color: #121214;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    color: #ffffff;
}

.lightbox-media-container {
    flex-grow: 1;
    width: auto;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.lightbox-media-container img, .lightbox-media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-details {
    width: 380px;
    min-width: 340px;
    flex-shrink: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #1e1e21;
    background-color: #121214;
    overflow-y: auto;
}

.lightbox-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.lightbox-text {
    font-size: 13px;
    color: #a1a1a6;
    line-height: 1.6;
    margin-bottom: 24px;
}

.lightbox-text:empty {
    display: none;
}

.lightbox-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #1e1e21;
}

.lightbox-meta-title {
    font-size: 9px;
    text-transform: uppercase;
    color: #8e8e93;
    margin-bottom: 10px;
}

.lightbox-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lightbox-meta-item {
    font-size: 11px;
}

.lightbox-meta-item label {
    display: block;
    font-size: 9px;
    color: #8e8e93;
    margin-bottom: 2px;
}

/* --- MOBILE LANDSCAPE & PORTRAIT VIEWPORTS --- */
@media (max-width: 800px) {
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .stats-row {
        gap: 20px;
    }
    
    .stat-val {
        font-size: 16px;
    }
    
    .media-card {
        width: 260px; /* Slimmer cards for mobile screen fitting */
        padding: 8px;
    }
    
    .lightbox-content {
        flex-direction: column;
        max-height: 90vh;
    }
    
    .lightbox-media-container {
        width: 100%;
        height: 50vh;
    }
    
    .lightbox-details {
        width: 100%;
        height: 40vh;
        border-left: none;
        border-top: 1px solid #1e1e21;
        padding: 20px;
    }
}

/* Stylized Background Map */
.bg-map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
    background-image: url('bg-map.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8; /* Adjusted for better visibility */
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
}

/* Additional Mobile Overrides for Hero Image Box */
@media (max-width: 800px) {
    .hero-display-box {
        left: 16px;
        right: 16px;
        min-width: 0;
        max-width: none;
        width: calc(100vw - 32px);
        padding: 10px; /* Tighter padding for more image space */
        max-height: 75%; /* dvh handles iOS toolbars perfectly */
    }
    
    .hero-display-media img, .hero-display-media video {
        max-height: 55%; /* Increased to allow portrait images to grow and fill the horizontal space */
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .hero-display-header {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .hero-display-title {
        font-size: 20px;
    }
    
    .hero-display-desc {
        font-size: 13.5px;
    }
}

#btn-restart {
    position: relative;
    z-index: 100;
    cursor: pointer;
    pointer-events: auto;
}


/* Lightbox Navigation */
.lightbox-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #1e1e21;
}

.lightbox-nav-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.05);
}

.lightbox-nav-btn:hover {
    opacity: 1;
    background-color: rgba(255,255,255,0.1);
}

.lightbox-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: transparent;
}


/* --- READER VIEW (ARTICLE MODE) --- */
.reader-toggle {
    position: fixed;
    top: 20px;
    right: 25px;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.reader-toggle:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.reader-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #121214;
    z-index: 300000;
    display: none;
    overflow-y: auto;
    color: #ffffff;
}

.reader-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.reader-close {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 36px;
    color: #ffffff;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 300100;
    backdrop-filter: blur(5px);
}

.reader-content {
    max-width: 740px;
    margin: 0 auto;
    padding: 80px 20px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.reader-content h1 {
    font-family: var(--font-serif);
    font-size: 42px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.reader-content h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 15px;
}

.reader-content p {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.65;
    color: #e5e5ea;
    margin-bottom: 20px;
}

/* Reset image margins because we're wrapping it now */
.reader-content img, .reader-content video {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.reader-item {
    margin-bottom: 50px;
    clear: both; /* prevent overlapping floats */
    overflow: hidden; /* clear float */
}

/* Float Right Layout */
.reader-item.layout-float-right .reader-media {
    float: right;
    width: 45%;
    max-width: 350px;
    margin-left: 30px;
    margin-bottom: 15px;
    margin-top: 5px;
}

/* Float Left Layout */
.reader-item.layout-float-left .reader-media {
    float: left;
    width: 45%;
    max-width: 350px;
    margin-right: 30px;
    margin-bottom: 15px;
    margin-top: 5px;
}

/* Mobile fallback for floats */
@media (max-width: 650px) {
    .reader-item.layout-float-right .reader-media,
    .reader-item.layout-float-left .reader-media {
        float: none;
        width: 80%;
        max-width: none;
        margin: 0 auto 20px auto;
        display: block;
    }
}


.reader-meta {
    font-size: 12px;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
}

.reader-intro-outro {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid #1e1e21;
    margin-bottom: 40px;
}
.reader-content .reader-intro-outro p {
    font-size: 20px;
    color: #a1a1a6;
}

