/* ==========================================================================
   MAR DAS COISAS · SCROLLYTELLING STYLES
   Inspired by Documental.xyz / Mapbox Storytelling
   ========================================================================== */

:root {
    --bg-color: #0b111e;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --card-bg: rgba(15, 23, 42, 0.85);
    --card-border: rgba(56, 189, 248, 0.2);
    --card-hover-border: rgba(56, 189, 248, 0.5);
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.35);
    --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    --header-height: 64px;
    --card-max-width: 720px;
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.05);
}

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

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Map Container */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Progress bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #2dd4bf);
    width: 0%;
    z-index: 100;
    transition: width 0.1s ease-out;
}

/* Floating Navigation / Header */
.top-nav {
    position: fixed;
    top: 16px;
    left: 20px;
    right: 20px;
    height: var(--header-height);
    background: rgba(11, 17, 30, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: fit-content;
    max-width: calc(100vw - 40px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tool-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent);
    color: #fff;
}

.tool-btn.active {
    background: var(--primary);
    border-color: var(--accent);
}

/* Quick Nav Dots (Sidebar) */
.chapter-nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 40;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-dot:hover {
    background: var(--accent);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--accent);
    border-color: #fff;
    transform: scale(1.4);
    box-shadow: 0 0 12px var(--accent);
}

.nav-dot .tooltip {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dot:hover .tooltip {
    opacity: 1;
}

/* Carousel Chapter Navigation Arrows (Instagram-like) */
.carousel-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 45;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    padding: 0;
}

.carousel-arrow:hover {
    background: rgba(14, 165, 233, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.6);
    transform: translateY(-50%) scale(1.1);
    color: #fff;
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.prev {
    left: 24px;
}

.carousel-arrow.next {
    right: 56px;
}

.carousel-arrow.disabled,
.carousel-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.8);
}

/* Story Container */
#story {
    position: relative;
    z-index: 20;
    pointer-events: none;
}

#features {
    padding-top: 100px;
    padding-bottom: 200px;
}

/* Scrollytelling Step */
.step {
    padding-bottom: 25vh;
    opacity: 0.25;
    transition: opacity 0.4s ease-in-out;
    display: flex;
    pointer-events: none;
}

.step:last-child {
    padding-bottom: 30vh;
}

.step.active {
    opacity: 1;
}

/* Alignment rules */
.step.left {
    justify-content: flex-start;
    padding-left: 5vw;
}

.step.right {
    justify-content: flex-end;
    padding-right: 5vw;
}

.step.center {
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}

/* Story Cards */
.story-card {
    pointer-events: auto;
    width: 100%;
    max-width: var(--card-max-width);
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.step.active .story-card {
    border-color: var(--card-hover-border);
    box-shadow: var(--shadow-card), 0 0 25px var(--accent-glow);
}

/* Hero / Title Card Specifics */
.hero-card {
    max-width: 720px;
    text-align: center;
    padding: 48px 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.chapter-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

h1.story-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2.chapter-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.story-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 400;
}

.story-byline {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
}

/* Media in Cards */
.card-media {
    margin: 20px -32px 20px -32px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.card-media img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.card-media img:hover {
    transform: scale(1.03);
}

.media-caption {
    padding: 10px 32px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Text & Content Elements */
.card-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.card-text p {
    margin-bottom: 14px;
}

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

.card-text strong {
    color: #fff;
}

.card-text a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-text a:hover {
    color: #bae6fd;
}

.card-text blockquote {
    background: rgba(30, 41, 59, 0.7);
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 16px 0;
    font-size: 0.92rem;
    color: #e2e8f0;
}

.card-text blockquote p:last-child {
    margin-bottom: 0;
}

.card-text ul,
.card-text ol {
    margin: 12px 0 16px 20px;
}

.card-text li {
    margin-bottom: 6px;
}

.card-text h3 {
    font-size: 1.15rem;
    color: #f8fafc;
    margin: 18px 0 8px 0;
}

.card-text h4 {
    font-size: 1.05rem;
    color: var(--accent);
    margin: 14px 0 6px 0;
}

.card-text hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 18px 0;
}

.card-text code {
    font-family: var(--font-mono);
    background: rgba(15, 23, 42, 0.8);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-text video {
    width: 100%;
    max-height: 420px;
    border-radius: var(--radius-sm, 6px);
    margin: 16px 0;
    background: #000;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Markdown Images & Lightbox Thumbnails */
.card-text img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    border-radius: var(--radius-sm, 6px);
    margin: 16px 0;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.card-text a > img,
.card-text a:has(img) img {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.card-text a:has(img) {
    display: block;
    position: relative;
    max-width: 100%;
    margin: 16px 0;
    border-radius: var(--radius-sm, 6px);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-text a:has(img):hover img {
    transform: scale(1.03);
    filter: brightness(1.08);
}

/* Video Lightbox Play Button Badge on Thumbnail */
.card-text a[href$=".mp4"]:has(img)::after,
.card-text a[href$=".webm"]:has(img)::after,
.card-text a[href*=".ia.mp4"]:has(img)::after,
.card-text a[href*="archive.org/download/"]:has(img)::after,
.card-text a[data-lightbox-video]:has(img)::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    padding-left: 4px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
    pointer-events: none;
    transition: all 0.25s ease;
}

.card-text a[href$=".mp4"]:has(img):hover::after,
.card-text a[href$=".webm"]:has(img):hover::after,
.card-text a[href*=".ia.mp4"]:has(img):hover::after,
.card-text a[href*="archive.org/download/"]:has(img):hover::after,
.card-text a[data-lightbox-video]:has(img):hover::after {
    background: rgba(14, 165, 233, 0.92);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.85);
}

/* Callout Boxes */
.callout-box {
    background: rgba(30, 41, 59, 0.7);
    border-left: 4px solid var(--primary);
    padding: 16px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 18px 0;
    font-size: 0.92rem;
}

.callout-box.accent {
    border-left-color: var(--accent);
    background: rgba(14, 116, 144, 0.2);
}

.callout-box ul {
    margin-left: 20px;
    margin-top: 8px;
}

.callout-box li {
    margin-bottom: 6px;
}

/* Notebook Facsimile Mini Gallery */
.notebook-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.notebook-gallery a img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.notebook-gallery a img:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* Custom Pulsing Markers on Map */
.map-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 0 15px var(--accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-marker.active {
    background-color: #f43f5e;
    box-shadow: 0 0 20px #f43f5e;
    transform: scale(1.3);
}

/* MapLibre Popup Dark Theme */
.maplibregl-popup {
    z-index: 30;
    max-width: 320px !important;
}

.maplibregl-popup-content {
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: var(--radius-md, 10px) !important;
    padding: 14px 18px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 15px rgba(56, 189, 248, 0.2) !important;
    font-family: var(--font-body) !important;
}

.maplibregl-popup-content strong {
    color: var(--accent, #38bdf8) !important;
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    line-height: 1.3;
}

.maplibregl-popup-content small,
.maplibregl-popup-content p,
.maplibregl-popup-content div {
    color: #cbd5e1 !important;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Rich Popup Content & Chapter Action */
.map-popup-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.map-popup-card .popup-category-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent, #38bdf8) !important;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.map-popup-card .popup-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #f8fafc !important;
}

.map-popup-card .popup-desc {
    font-size: 0.85rem;
    color: #cbd5e1 !important;
    line-height: 1.45;
}

.map-popup-card .popup-desc a {
    color: var(--accent, #38bdf8) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.popup-chapter-action {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-popup-chapter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a !important;
    background: var(--accent, #38bdf8);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: left;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
    font-family: inherit;
}

.btn-popup-chapter:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.6);
}

.btn-popup-chapter-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    color: #0f172a !important;
}

.maplibregl-popup-close-button {
    color: #94a3b8 !important;
    font-size: 1.2rem;
    padding: 4px 8px;
    top: 6px;
    right: 6px;
    transition: color 0.15s ease;
}

.maplibregl-popup-close-button:hover {
    color: #ffffff !important;
    background: transparent !important;
}

/* MapLibre Popup Tip Triangles */
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
    border-bottom-color: #0f172a !important;
}
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
    border-bottom-color: #0f172a !important;
}
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
    border-bottom-color: #0f172a !important;
}
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
    border-top-color: #0f172a !important;
}
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
    border-top-color: #0f172a !important;
}
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
    border-top-color: #0f172a !important;
}
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
    border-right-color: #0f172a !important;
}
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
    border-left-color: #0f172a !important;
}

/* Modal Lightbox */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-modal.open {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img,
.lightbox-video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.lightbox-video {
    width: 85vw;
    max-width: 960px;
    background: #000;
    outline: none;
}

.lightbox-caption {
    margin-top: 14px;
    color: #e2e8f0;
    font-size: 0.95rem;
    text-align: center;
    max-width: 700px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    color: #fff;
    font-size: 2.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Footer Section */
.story-footer {
    pointer-events: auto !important;
    width: 100%;
    max-width: var(--card-max-width, 720px);
    margin: 60px auto 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.footer-card {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
    text-align: center;
    color: var(--text-muted);
}

.footer-title {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-date {
    color: var(--accent, #38bdf8);
    font-weight: 500;
}

.footer-byline {
    margin: 8px 0 16px 0;
    font-size: 0.88rem;
    color: #94a3b8;
}

.footer-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.footer-text a {
    color: var(--accent, #38bdf8);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer-text a:hover {
    color: #7dd3fc;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent, #38bdf8);
    color: #ffffff;
    transform: translateY(-1px);
}

.partner-logos {
    max-width: 100%;
    margin: 24px 0;
    opacity: 0.85;
    border-radius: var(--radius-sm);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --header-height: 54px;
    }
    
    .top-nav {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 0 16px;
    }
    
    .brand {
        font-size: 0.9rem;
    }
    
    .chapter-nav-dots {
        display: none;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }
    
    .step.left, .step.right, .step.center {
        justify-content: center;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .story-card {
        padding: 24px 20px;
    }
    
    .card-media {
        margin: 16px -20px 16px -20px;
    }
    
    .media-caption {
        padding: 8px 20px;
    }
    
    h1.story-title {
        font-size: 1.9rem;
    }
    
    h2.chapter-title {
        font-size: 1.35rem;
    }
}
