/*
Theme Name: Herald Theme
Theme URI: https://example.com
Description: A responsive news theme for multisite WordPress with ACF options
Version: 1.0
Author: Your Name
Author URI: https://example.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: herald-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --red-primary: #DC2626;
    --red-hover: #B91C1C;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}
a,
a:hover,
a:visited {
    color: var(--red-primary);
}
@media (min-width: 1200px) {
    .h3, h3 {
        font-size: 1.25rem;
    }
}
.btn {
      transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover {
    transform: translateY(-1px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  filter: brightness(1.02);
}
.serif-font {
    font-family: "miller-text", Georgia, serif !important;
    font-weight: 400;
    font-style: normal;
}

.article-body {
    font-family: "miller-text", serif;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #1a1a1a;
}
.article-body p {
    max-width: 85% !important;
    margin: 1.5rem auto !important;
}

.article-body:first-of-type p:first-of-type:first-letter {
    font-size: 4rem;
    font-weight: 700;
    float: left;
    line-height: 0.9;
    margin-right: 0.5rem;
    margin-top: 0.15rem;
    color: var(--red-primary);
}

.section-header {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: none;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.red-rule {
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--red-primary);
}

.red-rule-full {
    position: relative;
    padding-bottom: 0.5rem;
}

.red-rule-full::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--red-primary);
}

.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 60px;
    width: auto;
}

/* Header buttons */
.btn-subscribe {
    background-color: var(--red-primary);
    color: #fff;
    border: 2px solid var(--red-primary);
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.btn-subscribe:hover {
    background-color: #a00;
    border-color: #a00;
    color: #fff;
}

.btn-login {
    background-color: #000;
    color: #fff;
    border: 2px solid var(--red-primary);
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.btn-login:hover {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #c00;
}

/* Tablet responsive fixes — prevent header crunch at md breakpoint */
@media (min-width: 768px) and (max-width: 991px) {
    .logo-img {
        height: 44px;
    }
    /* Shrink social icons slightly */
    header .d-none.d-md-flex .fab,
    header .d-none.d-md-flex .fas {
        font-size: 0.95rem !important;
    }
    /* Tighten social gap */
    header .d-none.d-md-flex.gap-3 {
        gap: 0.6rem !important;
    }
    /* Nav links smaller */
    header nav .nav-item a {
        font-size: 0.75rem;
        padding-left: 0.4rem;
        padding-right: 0.4rem;
    }
    header nav .nav.gap-3 {
        gap: 0.25rem !important;
    }
    header nav .nav.gap-lg-4 {
        gap: 0.25rem !important;
    }
}

@media (max-width: 767px) {
    .logo-img {
        height: 40px;
    }
}

.columnist-photo {
    filter: grayscale(100%);
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

.bg-red-600 {
    background-color: var(--red-primary) !important;
}

.bg-red-700:hover {
    background-color: var(--red-hover) !important;
}

.text-red-600,
a.text-red-600,
a.text-red-600:hover,
a.text-red-600:visited,
span.text-red-600 {
    color: #DC2626 !important;
}

.text-red-500 {
    color: #EF4444 !important;
}

.hover-text-red:hover {
    color: var(--red-primary) !important;
}

header,
footer {
    background-color: #000 !important;
}

.bg-black {
    background-color: #000 !important;
}

.nav-link-custom,
.nav-link-custom:visited,
nav a.nav-link-custom,
nav a.nav-link-custom:visited {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link-custom:hover,
.nav-link-custom:focus,
nav a.nav-link-custom:hover,
nav a.nav-link-custom:focus {
    color: var(--red-primary) !important;
}

.dropdown-menu-dark {
    background-color: #000;
    border: 1px solid #4B5563;
}

.dropdown-item-dark {
    color: #fff;
    padding: 0.5rem 1rem;
}

.dropdown-item-dark:hover {
    background-color: #1F2937;
    color: #fff;
}

.mobile-menu-collapse {
    background-color: #000;
}

/* Mobile menu links — white, no underline, override global red */
.mobile-menu-collapse a,
.mobile-menu-collapse a:hover,
.mobile-menu-collapse a:visited,
.mobile-menu-collapse .nav-link-custom,
.mobile-menu-collapse .nav-link-custom:hover {
    color: #fff !important;
    text-decoration: none !important;
}
.mobile-menu-collapse .nav-link-custom:hover {
    opacity: 0.8;
}
/* Dropdown child links inside mobile menu */
.mobile-menu-collapse .dropdown-item,
.mobile-menu-collapse .dropdown-item:hover,
.mobile-menu-collapse .dropdown-item:visited {
    color: #fff !important;
    text-decoration: none !important;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0.8), transparent);
    padding: 2rem;
}
.hero-media {
    overflow: hidden;
    width: 100%;
    height: 500px;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
@media (max-width: 767px) {
    .hero-media {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

.hero-bar{
    background: #fff;
    padding: 1.5rem 2rem;
}

/* Optional: a subtle fade that sits BELOW the image (on the bar only) */
.hero-bar{
    position: relative;
}
.hero-bar::before{
    content:"";
    position:absolute;
    left:0; right:0;
    top:-18px;
    height:18px;
/*    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));*/
}
.article-body p { font-size: 1.25rem; margin-bottom: 0.9rem; line-height: 1.5; }
.article-body figure { margin: 1.25rem 0; }
.article-body figure img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.article-body figure figcaption,
.article-body figure .caption,
.article-body figure figcaption .caption { font-size: 0.875rem; color: #6c757d; margin-top: 0.4rem; font-style: italic; display: block; }
.article-body figure figcaption .credit { font-size: 0.8rem; color: #999; margin-top: 0.2rem; display: block; }

/* Featured image — centered block with constrained caption */
.naviga-inline-image {
    display: block;
    margin: 0 auto 1.25rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
}
.naviga-inline-image .naviga-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* On mobile: crop image to landscape, caption sits below in normal flow */
@media (max-width: 767px) {
    .naviga-inline-image {
        overflow: visible;
        position: static;
        width: 100%;
        height: auto;
        padding-bottom: 0;
        margin-bottom: 0.5rem;
    }
    .naviga-inline-image .naviga-image {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: center top;
    }
    .naviga-inline-image figcaption {
        position: static;
        background: none;
        color: #6c757d;
        font-size: 0.8rem;
        font-style: italic;
        padding: 0.35rem 0 0;
        text-align: left;
        margin: 0;
    }
    .naviga-inline-image figcaption .photo-credit {
        color: #999;
        font-size: 0.75rem;
        margin-top: 0.1rem;
    }
}
.naviga-inline-image figcaption {
    display: block;
    max-width: 800px;
    margin: 0.4rem auto 0;
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    text-align: left;
    line-height: 1.45;
}
.naviga-inline-image figcaption .caption { display: block; }
.naviga-inline-image figcaption .photo-credit {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.2rem;
}
.article-body img { max-width: 100%; height: auto; }
.article-body strong { font-weight: 700; }
.article-body .naviga-section-header { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #6c757d; margin: 1.75rem 0 0.2rem; padding-bottom: 0.35rem; border-bottom: 2px solid #dee2e6; }
.article-body .naviga-scoreboard { background: #f8f9fa; border-left: 4px solid #dee2e6; padding: 1rem 1.25rem; margin: 1.25rem 0; font-size: 0.95rem; }
.article-body .naviga-scoreboard .scoreboard-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.article-body object { display: none; } /* fallback: hide unconverted Naviga objects */

/* Naviga CMS article body paragraph class (double-underscore variant) */
.article-body p.article__body,
.article-body .article__body {
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: inherit;
}

/* Naviga article deck/summary */
.article-body .article-summary,
.article-summary {
    font-size: 1.15rem;
    font-weight: 500;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Naviga inline image-container (old markup style) */
.article-body .image-container {
    margin: 1.5rem 0;
    cursor: pointer;
}
.article-body .image-container .image {
    width: 100%;
    overflow: hidden;
}
.article-body .image-container img.image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
.article-body .image-container .bottom-container {
    padding: 0.4rem 0 0;
}
.article-body .image-container .caption {
    font-size: 0.875rem;
    color: #6c757d;
    font-style: italic;
    line-height: 1.4;
    display: block;
}
.article-body .image-container .byline {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.15rem;
    display: block;
}
/* Hide the expand icon and modal trigger affordance */
.article-body .image-container .expand { display: none; }

/* Share button */
.article-body .share-button-container {
    margin: 1.5rem 0;
}
.article-body .share-button-link {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #900;
    color: #900;
    background: transparent;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}
.article-body .share-button-link:hover {
    background: #900;
    color: #fff;
}
@media (max-width: 767px) {
    .hero-overlay {
        padding: 1.5rem;
    }
}

/* ── WordPress block editor overrides ────────────────────────────────────────
   Strip dark/coloured backgrounds that editors accidentally apply via Cover or
   Group blocks — keeps page templates clean and on-brand.                   */
.entry-content .wp-block-cover,
.entry-content .wp-block-group.has-background,
.entry-content [class*="has-"][class*="-background-color"] {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    min-height: 0 !important;
}
.entry-content .wp-block-cover__inner-container,
.entry-content .wp-block-group__inner-container {
    color: inherit !important;
}
/* Section headings inside page content should match site style */
.entry-content h1:first-child {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111;
}

/* ── Homepage column cards ────────────────────────────────────────────────── */
.column-card {
    padding: 1rem 0;
}
.column-card__photo {
    width: 100px;
    height: 100px;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.card-img-fixed {
    height: 250px;
    object-fit: cover;
    object-position: top center; /* or: center top; */
}

/* ── Shared share button base ─────────────────────────────────────────────── */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    border-radius: 3px;
    transition: opacity 0.15s, transform 0.15s;
    color: #fff !important;
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.share-btn--facebook { background: #1877f2; }
.share-btn--twitter  { background: #000; }
.share-btn--email    { background: var(--red-primary, #c00); }

/* ── Desktop fixed sidebar ────────────────────────────────────────────────── */
.share-fixed {
    position: fixed;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.share-fixed__label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.share-fixed .share-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1rem;
}

/* ── Mobile horizontal bar ────────────────────────────────────────────────── */
.share-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin: 0.75rem 0 1.25rem;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}
.share-mobile--bottom {
    margin-top: 1.5rem;
    margin-bottom: 0;
}
.share-mobile__label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #888;
    text-transform: uppercase;
    margin-right: 0.25rem;
    flex-shrink: 0;
}
.share-mobile .share-btn {
    padding: 0.45rem 0.9rem;
    border-radius: 3px;
    font-size: 0.78rem;
}
/* =====================================================
   PAGINATION (WP page-numbers + Bootstrap pagination)
   ===================================================== */

/* Container spacing + centering */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    flex-wrap: wrap;
}

/* WP default links: .page-numbers */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}

.page-numbers:hover {
    border-color: var(--red-primary);
    color: var(--red-primary);
    transform: translateY(-1px);
}

.page-numbers.current,
.page-numbers.current:hover {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
    cursor: default;
    transform: none;
}

.page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: #6c757d;
    min-width: auto;
    padding: 0 0.25rem;
}

/* Prev/Next buttons (WP uses .prev/.next) */
.page-numbers.prev,
.page-numbers.next {
    padding: 0 0.9rem;
}

/* Bootstrap pagination support if you output it that way */
.pagination .page-link {
    color: #111;
    border-radius: 0.375rem;
    font-weight: 600;
}

.pagination .page-link:hover {
    color: var(--red-primary);
    border-color: var(--red-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--red-primary);
    border-color: var(--red-primary);
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
}
/* =====================================================
   PRIMARY NAV DROPDOWN FIX (your links use .nav-link-custom)
   ===================================================== */

/* Menu panel */
nav .dropdown-menu.dropdown-menu-dark {
    background-color: #000 !important;
    border: 1px solid #4B5563 !important;
    border-radius: 0.75rem;
    padding: 0.4rem 0;
    min-width: 16rem;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
}

/* Reset list items inside dropdown (your markup uses .nav-item li) */
nav .dropdown-menu.dropdown-menu-dark li {
    margin: 0;
    padding: 0;
}

/* The actual dropdown links (currently .nav-link-custom) */
nav .dropdown-menu.dropdown-menu-dark a.nav-link-custom {
    display: block;                 /* make full-width clickable rows */
    width: 100%;
    padding: 0.6rem 1rem;           /* proper menu spacing */
    color: #fff !important;
    font-size: 0.875rem;            /* normal dropdown size */
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;           /* stop the “shouty” look if inherited */
    line-height: 1.2;
    text-decoration: none;
    border-radius: 0;               /* keeps the row edges clean */
}

/* Hover/Focus */
nav .dropdown-menu.dropdown-menu-dark a.nav-link-custom:hover,
nav .dropdown-menu.dropdown-menu-dark a.nav-link-custom:focus {
    background-color: #1F2937;
    color: #fff !important;
}

/* Current item (WP often adds current-menu-item on the <li>) */
nav .dropdown-menu.dropdown-menu-dark li.current-menu-item > a.nav-link-custom {
    background-color: var(--red-primary);
    color: #fff !important;
}

/* Optional: tighten the dropdown toggle caret alignment */
nav a.dropdown-toggle.nav-link-custom::after {h
    margin-left: 0.45rem;
    vertical-align: 0.12rem;
}
/* ── Header Search ─────────────�������───────────────────────────────────────────── */
.herald-search-toggle {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    line-height: 1;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
}
.herald-search-toggle:hover,
.herald-search-toggle[aria-expanded="true"] {
    color: #fff;
}

.herald-search-bar {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 95vw);
    background: #fff;
    border-top: 3px solid #c00;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    z-index: 1050;
    padding: 0.875rem 1rem;
    border-radius: 0 0 4px 4px;
}

.herald-search-form {
    display: flex;
    gap: 0.5rem;
}

.herald-search-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    color: #222;
}
.herald-search-input:focus {
    border-color: #c00;
    box-shadow: 0 0 0 2px rgba(200,0,0,0.12);
}

.herald-search-submit {
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.herald-search-submit:hover { background: #a00; }

/* ── Search Results Page ───────────────────────────────────────────────────── */
.search-results-header {
    border-bottom: 3px solid #c00;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}
.search-results-count {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}
/* New search box above the refine bar */
.search-new-query .input-group .form-control {
    border-color: #ddd;
    font-size: 1rem;
}
.search-new-query .input-group .form-control:focus {
    border-color: var(--red-primary);
    box-shadow: none;
}

.search-refine-bar {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

/* Each label+select pair stays together and wraps as a unit */
.sr-filter-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 1 auto;
    min-width: 0;
}

.sr-filter-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.sr-filter-group select {
    font-size: 0.8125rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 0.3rem 0.5rem;
    background: #fff;
    color: #222;
    cursor: pointer;
    max-width: 100%;
    min-width: 0;
}
.sr-filter-group select:focus { outline: none; border-color: #c00; }

.sr-clear {
    white-space: nowrap;
    margin-left: auto;
}

/* On mobile, each filter group takes full width */
@media (max-width: 575px) {
    .sr-filter-group {
        width: 100%;
    }
    .sr-filter-group select {
        flex: 1;
    }
    .sr-clear {
        margin-left: 0;
    }
}
.search-result-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    background: #f1f3f5;
}
.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.search-result-thumb .no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c00;
    margin-bottom: 0.25rem;
}
.search-result-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.3rem;
    color: #111;
}
.search-result-title a {
    color: inherit;
    text-decoration: none;
}
.search-result-title a:hover { color: #c00; }
.search-result-meta {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.35rem;
}
.search-result-excerpt {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}
.search-no-results .search-icon-lg { font-size: 3rem; color: #ddd; margin-bottom: 1rem; }
@media (max-width: 575px) {
    .search-result-thumb { width: 90px; height: 65px; }
    .search-result-title { font-size: 0.9375rem; }
}

/* Card image frame */
.card-img-frame {
  height: 160px;
  overflow: hidden;
  background: #f1f3f5;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Default: fill the frame (center crop) */
.card-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Portrait: show entire image, no cropping */
.card-img-frame.is-portrait img {
  object-fit: contain;
}
.object-fit-cover {
    object-position: top center;
}

/* =====================================================
   WEATHER PAGE  ��� immersive, light, editorial
   ===================================================== */

/* ── Temp colours ───────────────────────────────────── */
.weather-temp--hot    { color: #b91c1c; }
.weather-temp--warm   { color: #d97706; }
.weather-temp--mild   { color: #16a34a; }
.weather-temp--cool   { color: #0369a1; }
.weather-temp--cold   { color: #1d4ed8; }
.weather-temp--freeze { color: #6d28d9; }

/* ══ PAGE ════════════════════════════════════════════ */
.wx-page { background: #eef2f7; min-height: 60vh; }

/* ══ HERO WRAP ═══════════════════════════════════════ */
.wx-hero-wrap { background: #fff; }

.wx-hero-sky {
    background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 40%, #e0f2fe 100%);
    padding: 2.5rem 0 2rem;
}

.wx-hero-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Main temp card ─────────────────────────────────── */
.wx-hero-main {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.85);
    padding: 1.75rem 1.75rem 1.25rem;
    box-shadow: 0 4px 24px rgba(30,64,175,0.1);
}

.wx-hero-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.2rem;
}
.wx-hero-location i { color: var(--red-primary); }

.wx-zip-pill {
    display: inline-block;
    background: rgba(30,64,175,0.1);
    color: #1e40af;
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 99px;
    letter-spacing: 0.04em;
    vertical-align: middle;
}
.wx-zip-pill--sm { font-size: 0.58rem; padding: 0.08rem 0.35rem; background: #e2e8f0; color: #475569; }

.wx-hero-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #475569;
    margin-bottom: 1rem;
}

.wx-hero-condition {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.wx-hero-icon-wrap i {
    font-size: 4.5rem;
    color: #f59e0b;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(245,158,11,.35));
}
.wx-hero-icon-wrap .fa-cloud     { color: #94a3b8; }
.wx-hero-icon-wrap .fa-cloud-sun { color: #f59e0b; }
.wx-hero-icon-wrap .fa-cloud-rain{ color: #3b82f6; }
.wx-hero-icon-wrap .fa-snowflake { color: #7dd3fc; }
.wx-hero-icon-wrap .fa-bolt      { color: #eab308; }
.wx-hero-icon-wrap .fa-smog      { color: #9ca3af; }
.wx-hero-icon-wrap .fa-wind      { color: #64748b; }
.wx-hero-icon-wrap .fa-moon      { color: #818cf8; }

.wx-hero-temp {
    font-family: 'Inter', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: #1e293b;
}
.wx-hero-temp sup {
    font-size: 2rem;
    font-weight: 600;
    vertical-align: super;
    opacity: 0.55;
}
.wx-hero-desc-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #334155;
    margin-top: 0.15rem;
}
.wx-hero-feels {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.2rem;
}

.wx-hero-hilow {
    display: flex;
    gap: 0.4rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.wx-hi-badge, .wx-lo-badge, .wx-pop-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.wx-hi-badge  { background: #fee2e2; color: #b91c1c; }
.wx-lo-badge  { background: #dbeafe; color: #1e40af; }
.wx-pop-badge { background: #e0f2fe; color: #0369a1; }
.wx-hi  { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1rem;   color: #b91c1c; }
.wx-lo  { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.85rem; color: #64748b; }

.wx-hero-refresh {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.wx-hero-refresh a { color: #64748b; text-decoration: underline; }
.wx-hero-refresh a:hover { color: var(--red-primary); }

/* ── Tiles grid ─────────────────────────────────────── */
.wx-hero-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    align-content: start;
}

.wx-tile {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 14px;
    padding: 0.9rem 0.85rem 0.8rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(30,64,175,0.07);
    transition: transform .12s, box-shadow .12s;
}
.wx-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(30,64,175,0.12); }

.wx-tile-icon {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
    line-height: 1;
}
.wx-tile-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}
.wx-tile-value {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
}

/* ���������� BODY ════════════════════════════════════════════ */
/* ── Today's forecast description strip ─────────────── */
.wx-hero-forecast-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}
.wx-hfs-item {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 14px;
    padding: 1rem 1.1rem 0.9rem;
    box-shadow: 0 2px 10px rgba(30,64,175,0.07);
}
.wx-hfs-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e40af;
    margin-bottom: 0.35rem;
}
.wx-hfs-label i { color: var(--red-primary); }
.wx-hfs-short {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #334155;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.1rem;
}
.wx-hfs-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.83rem;
    color: #334155;
    line-height: 1.55;
    margin: 0;
}

/* ── Extra zips 2-column grid ───────────────────────── */
.wx-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* ── Skeleton shimmer ───────────────────────────────── */
@keyframes wx-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.wx-extra-skeleton { min-height: 260px; }

.wx-skel {
    border-radius: 6px;
    background: linear-gradient(90deg, #e8edf2 25%, #f4f6f8 50%, #e8edf2 75%);
    background-size: 600px 100%;
    animation: wx-shimmer 1.4s infinite linear;
}
.wx-skel-icon  { width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0; }
.wx-skel-title { height: 13px; width: 60%; margin-bottom: 0.55rem; }
.wx-skel-temp  { height: 20px; width: 40%; margin-bottom: 0.5rem;  }
.wx-skel-meta  { height: 11px; width: 75%; }
.wx-skel-row   { height: 11px; margin-bottom: 0.55rem; }
.wx-skel-row:last-child { margin-bottom: 0; }

.wx-body-wrap { padding: 2rem 0 3rem; }

.wx-section { margin-bottom: 2.5rem; }

.wx-section-head {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.wx-sh-bar {
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--red-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Temperature line graph ─────────────────────────── */
.wx-graph-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1rem 0.5rem;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.wx-graph-legend {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #64748b;
}
.wx-legend-temp span, .wx-legend-rain span {
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 0.3rem;
}
.wx-legend-temp span { background: #900; }
.wx-legend-rain span { background: rgba(59,130,246,0.35); height: 10px; border-radius: 2px; }

.wx-temp-graph {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
.wx-graph-temp {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    fill: #1e293b;
    text-anchor: middle;
}
.wx-graph-time {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    fill: #64748b;
    text-anchor: middle;
}
.wx-graph-pop {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    fill: #3b82f6;
    text-anchor: middle;
}
.wx-graph-dot {
    fill: #fff;
    stroke: #900;
    stroke-width: 2;
}

/* ── 7-day individual cards ─���─���─���───────────────────── */
.wx-7day-cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
}

.wx-7day-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s, transform .15s;
}
.wx-7day-card:hover {
    box-shadow: 0 6px 22px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.wx-7day-card--today {
    border-top: 3px solid var(--red-primary);
}

.wx-7day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem 0.6rem;
    border-bottom: 1px solid #f1f5f9;
}
.wx-7day-date { line-height: 1.2; }
.wx-7day-dow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    color: #1e293b;
}
.wx-7day-mdate {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: #94a3b8;
}
.wx-7day-temps {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}
.wx-7day-temps .wx-hi {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.wx-7day-temps .wx-lo {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.wx-7day-temps .wx-hi i, .wx-7day-temps .wx-lo i { font-size: 0.6rem; }

.wx-7day-half {
    padding: 0.75rem 0.85rem;
    flex: 1;
}
.wx-7day-half--day { background: #fff; }
.wx-7day-half--night {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
}

.wx-7day-half-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.4rem;
}
.wx-7day-icon {
    font-size: 1.6rem;
    color: #f59e0b;
    flex-shrink: 0;
    line-height: 1;
}
.wx-7day-icon.fa-cloud     { color: #94a3b8; }
.wx-7day-icon.fa-cloud-sun { color: #f59e0b; }
.wx-7day-icon.fa-cloud-rain{ color: #3b82f6; }
.wx-7day-icon.fa-snowflake { color: #7dd3fc; }
.wx-7day-icon.fa-bolt      { color: #eab308; }
.wx-7day-icon.fa-smog      { color: #9ca3af; }
.wx-7day-icon.fa-moon      { color: #818cf8; }

.wx-7day-period-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
}
.wx-7day-short {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.3;
}
.wx-7day-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0.4rem 0 0.5rem;
}
.wx-7day-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #64748b;
}
.wx-7day-meta i { color: var(--red-primary); margin-right: 0.15rem; }

/* ── Compact day rows (for extra zip cards) ─────────── */
.wx-7day-list { display: flex; flex-direction: column; }

.wx-day-row {
    display: grid;
    grid-template-columns: 90px 60px 1fr 72px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background .1s;
}
.wx-day-row:last-child { border-bottom: none; }
.wx-day-row:hover { background: #f8fafc; }
.wx-day-row--today { background: #f0f7ff; }
.wx-day-row--compact { padding: 0.55rem 1rem; }

.wx-day-dow {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e293b;
    display: block;
}
.wx-day-mday {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #94a3b8;
    display: block;
}

.wx-day-row-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.wx-day-row-icon i {
    font-size: 1.5rem;
    color: #f59e0b;
}
.wx-day-row-icon .fa-cloud     { color: #94a3b8; }
.wx-day-row-icon .fa-cloud-sun { color: #f59e0b; }
.wx-day-row-icon .fa-cloud-rain{ color: #3b82f6; }
.wx-day-row-icon .fa-snowflake { color: #7dd3fc; }
.wx-day-row-icon .fa-bolt      { color: #eab308; }
.wx-day-row-icon .fa-smog      { color: #9ca3af; }
.wx-day-row-icon .fa-moon      { color: #818cf8; }
.wx-day-row-pop {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.wx-day-row-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.3;
}

.wx-day-row-temps {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: baseline;
}

/* ── Extra location cards ───────────────────────────── */
.wx-extra-stack { display: flex; flex-direction: column; gap: 1rem; }

.wx-extra-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.04);
}
.wx-extra-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.wx-extra-icon {
    font-size: 2.25rem;
    color: #f59e0b;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1rem;
}
.wx-extra-info { flex: 1; }
.wx-extra-city {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.3rem;
}
.wx-extra-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.wx-extra-temp {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
}
.wx-extra-cond-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #475569;
}
.wx-extra-meta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #94a3b8;
}
.wx-extra-updated { margin-left: auto; }

/* ── Extra zip 5-day forecast grid (wxe-*) ──────────── */
.wxe-forecast {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #edf2f7;
}

.wxe-col {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #edf2f7;
    min-width: 0;
}
.wxe-col:last-child { border-right: none; }
.wxe-col--today { background: #fafcff; }

/* Column header — day name, date, hi/lo */
.wxe-col-head {
    padding: 0.65rem 0.75rem 0.5rem;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}
.wxe-col--today .wxe-col-head { background: #f0f5ff; }

.wxe-dow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wxe-col--today .wxe-dow { color: #1e40af; }

.wxe-date {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.wxe-hilo {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.wxe-hi {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red-primary, #b91c1c);
}
.wxe-lo {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #3b82f6;
}
.wxe-hi i, .wxe-lo i { font-size: 0.6rem; }

/* Day / Night period blocks */
.wxe-period {
    padding: 0.6rem 0.75rem;
    flex: 1;
}
.wxe-period--day   { background: #fff; }
.wxe-period--night {
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
}

.wxe-period-head {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.wxe-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.wxe-period--day   .wxe-icon { color: #f59e0b; }
.wxe-period--night .wxe-icon { color: #6366f1; }

.wxe-period-labels { min-width: 0; }

.wxe-period-tag {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    line-height: 1.2;
}

.wxe-period-cond {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wxe-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 0.35rem;
}

.wxe-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.wxe-meta span {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.wxe-meta i { color: var(--red-primary, #b91c1c); font-size: 0.6rem; }

/* ── Credit ─────────────────────────────────────────── */
.wx-credit {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 1rem;
}
.wx-credit a { color: #64748b; text-decoration: underline; }
.wx-credit a:hover { color: var(--red-primary); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1280px) {
    .wx-7day-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    .wx-hero-tiles { grid-template-columns: repeat(4, 1fr); }
    .wx-7day-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .wx-hero-grid { grid-template-columns: 1fr; }
    .wx-hero-tiles { grid-template-columns: repeat(4, 1fr); }
    .wx-7day-cards { grid-template-columns: repeat(3, 1fr); }
    .wx-extra-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .wx-hero-temp { font-size: 3.75rem; }
    .wx-hero-icon-wrap i { font-size: 3.5rem; }
    .wx-hero-tiles { grid-template-columns: repeat(3, 1fr); }
    .wx-7day-cards { grid-template-columns: repeat(2, 1fr); }
    .wx-hero-forecast-strip { grid-template-columns: 1fr; }
    .wx-day-row { grid-template-columns: 72px 52px 1fr 64px; padding: 0.65rem 0.9rem; }
}
@media (max-width: 480px) {
    .wx-hero-tiles { grid-template-columns: repeat(2, 1fr); }
    .wx-hero-temp { font-size: 3rem; }
    .wx-7day-cards { grid-template-columns: 1fr 1fr; }
    .wx-day-row-desc { display: none; }
    .wx-day-row { grid-template-columns: 72px 52px 1fr; }
}

/* =====================================================
   NAVIGA GALLERY SLIDER  (.gallery-slider markup)
   ===================================================== */
.gallery-slider {
    margin: 1.5rem auto;
    max-width: 900px;
}

.naviga-slider {
    background: #e8e8e8; /* light grey background */
    position: relative;
    outline: none;
}

.naviga-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e8e8e8; /* light grey */
    display: flex;
    align-items: center;
    justify-content: center;
}

.naviga-slider-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* fit, no crop or stretch */
    display: block;
    margin: 0 auto; /* center image */
    transition: opacity 0.2s ease;
}

/* Controls bar */
.naviga-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8e8e8; /* light grey */
    padding: 0.5rem 1rem;
}

/* Arrows */
.naviga-slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 1;
}

.naviga-slider-arrow svg {
    width: 32px;
    height: 32px;
    display: block;
}

.naviga-slider-arrow:hover {
    color: #c00;
    transform: scale(1.1);
}

.naviga-slider-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

/* Counter */
.naviga-slider-counter {
    color: #222; /* dark text */
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Caption / byline bar */
.naviga-slider-caption-bar {
    background: #e8e8e8; /* light grey */
    padding: 0.5rem 1rem 0.75rem;
    max-width: 800px; /* constrain caption width */
    margin: 0 auto; /* center the caption block */
}

.naviga-slider-caption {
    font-size: 0.8125rem;
    color: #222; /* dark text */
    font-style: italic;
    margin: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.naviga-slider-byline {
    font-size: 0.75rem;
    color: #555; /* slightly lighter for credit */
    font-style: normal;
    font-weight: 600;
    margin: 0.25rem 0 0;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 600px) {
    .naviga-slider-arrow svg {
        width: 26px;
        height: 26px;
    }
}

p.subheadline1 {
    font-weight: 600;
    font-size: 22px;
    color: #900;
}

div#everlit-audio-embed-container {
    max-width: 700px;
    width: 90%;
    margin: auto;
}
