/*
Theme Name: Neve Child
Description: Child theme for Neve with custom styling and layout adjustments.
Template: neve
*/

/*body {
    border: 10px solid red !important;
}*/


:root {
    --text-scale: 1; /* default */
}

/* CSS for single post/page multi page content SEE functions.php

/* Container */
.post-pages-links.bottom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
    padding-top: 25px;
    border-top: 2px solid #34495e;
}

/* The "Page" label */
.post-pages-links.bottom-pagination .nav-label {
    font-weight: bold;
    color: #34495e;
    /*text-transform: uppercase;*/
    font-size: 1.2em;
    margin: 0 5px;
}

/* Clickable Buttons (Forest Green) */
.post-pages-links.bottom-pagination a .nav-button {
    background-color: #f8f9fa !important;
    color: #4d834c !important; /* Forest Green */
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
}

/* THE ACTIVE PAGE: White background, Blue Border/Text */
.post-pages-links.bottom-pagination > .nav-button {
    background-color: #ffffff !important; /* White Background */
    color: #34495e !important;           /* Slate Blue Text */
    border: 2px solid #34495e !important; /* Thicker Blue Border */
    padding: 7px 13px;                    /* Adjusted for border thickness */
    border-radius: 4px;
    font-weight: 800;                     /* Extra bold to stand out */
}

/* Hover effect for all links */
.post-pages-links.bottom-pagination a:hover .nav-button {
    background-color: #34495e !important; /* Fills with Blue on hover */
    color: #ffffff !important;
    border-color: #34495e !important;
}

/* Prev/Next buttons */
.prev-next-btn {
    min-width: 70px;
    text-align: center;
}








/* --- SKEENA RIVER HISTORY: PAGINATION OVERRIDE --- */

/* 1. Target the ACTIVE page number (The page you are on) */
.nv-index-posts ul.page-numbers li span.current {
    background-color: #34495e !important; /* Dark Slate Blue (Matches your navigation) */
    color: #ffffff !important;           /* White text */
    border: 1px solid #34495e !important;
    padding: 8px 15px !important;
    border-radius: 3px !important;
    display: inline-block !important;
}

/* 2. Target the OTHER page numbers (The ones you can click) */
.nv-index-posts ul.page-numbers li a.page-numbers {
    color: #4d834c !important;           /* Forest Green (Matches your site text) */
    background: #fdfdfd !important;      /* Off-white/Paper background */
    border: 1px solid #d1d1d1 !important;
    padding: 8px 15px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* 3. The Hover Effect (When the mouse touches a number) */
.nv-index-posts ul.page-numbers li a.page-numbers:hover {
    background-color: #34495e !important;
    color: #ffffff !important;
    border-color: #34495e !important;
}

/* 4. Fix for the "Next" and "Dots" (...) */
.nv-index-posts ul.page-numbers li .dots, 
.nv-index-posts ul.page-numbers li a.next {
    color: #34495e !important;
    font-weight: bold;
}






/* ==========================================================================
   2. CONTENT TYPOGRAPHY
   ========================================================================== */
.entry-content,
.entry-content p,
.entry-content li,
.entry-content span,
.entry-content div,
.entry-content table,
.entry-content blockquote {
    font-size: calc(1rem * var(--text-scale));
    line-height: calc(1.1 + (var(--text-scale) - 1) * 0.1);
}

/* MOBILE adjustments */
@media (max-width: 768px) {
    .entry-content,
    .entry-content p,
    .entry-content li,
    .entry-content span,
    .entry-content div,
    .entry-content table,
    .entry-content blockquote {
        font-size: calc(1rem * var(--text-scale)) !important;
        line-height: calc(1.15 + (var(--text-scale) - 1) * 0.1) !important;
    }
}
/* =============================
   Page Numbers (Pagination)
   ============================= */

.posts-wrapper .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 30px;
    font-size: 25px;
}

.posts-wrapper .nav-links .page-numbers {
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #444;
    margin: 0 4px;
}

.posts-wrapper .nav-links .page-numbers.current {
    background-color: #34495e;
    color: #fff;
    font-weight: bold;
}

.posts-wrapper .nav-links a.page-numbers:hover {
    background-color: #f0f0f0;
}


/* =============================
   Back to Top Button
   ============================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
}

.back-to-top img {
    width: 100%;
    height: auto;
    display: block;
}

.back-to-top img:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

.no-shadow {
    box-shadow: none !important;
    filter: none !important;
}






/* =============================
   Comment Form Styling
   ============================= */
.comment-form-comment textarea {
    background-color: #f5f5f5;
}

/* =============================
   Top Post Navigation (Custom)
   ============================= */
.post-nav.top {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

.post-nav.top .prev,
.post-nav.top .next {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: color 0.3s, background 0.3s;
    margin-top: -45px;
    margin-bottom: 10px;
}

.post-nav.top .prev:hover,
.post-nav.top .next:hover {
    color: #0073aa;
}

/* =============================
   FORCE OVERRIDE: Blog Pagination
   ============================= */

/* 1. Target the main container using body and wrapper classes */
body.blog .posts-wrapper .nv-pagination, 
body.blog .posts-wrapper .navigation.pagination {
    display: flex !important;
    justify-content: center !important;
    margin-top: 50px !important;
}

/* 2. Target the individual numbers and links */
body.blog .posts-wrapper .page-numbers {
    background-color: #f1f1f1 !important;
    color: #222 !important;
    padding: 10px 18px !important;
    border-radius: 4px !important;
    margin: 0 5px !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

/* 3. Target the HOVER and CURRENT page */
body.blog .posts-wrapper a.page-numbers:hover,
body.blog .posts-wrapper .page-numbers.current {
    background-color: #34495e !important;
    color: #ffffff !important;
}








/* Optional: Align text for small screens */
@media (max-width: 768px) {
    .nv-post-navigation {
        flex-direction: column;
        gap: 10px;
    }
    .nv-post-navigation .previous a,
    .nv-post-navigation .next a {
        width: 100%;
        text-align: center;
    }
}




@media (max-width: 768px) {
   .post-nav.top .prev,
   .post-nav.top .next {
    margin-top: -25px;
    margin-bottom: -20px;
    
}
}

.para-rem-ind {
    text-indent: 0;
}

.para-spacing p {
    
    line-height: 1 !important;
    margin-bottom: .7em !important;
    text-indent: 0 !important;
}

.postid-16522 p {
    text-indent: 0;
    
}

.page-id-624 p {
    text-indent: 0;
    line-height: 1 !important;
}

.page-id-2636 h1 {
    font-family: "Kaushan";
	font-size: 62px !important;
}
.head5left {
	color: black;
	font-size: 18px;
}

/* Make Gutenberg tables horizontally scrollable on small screens */
@media (max-width: 600px) {
  .wp-block-table {
    display: block;         /* allows overflow */
    width: 100%;            /* keep table full width */
    overflow-x: auto;       /* enable horizontal scroll */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  }

  .wp-block-table table {
    
    /*width: 150%; /* allow table to overflow the viewport */
    width: auto;            /* let table be as wide as needed */
    min-width: 1000px;       /* optional: force minimum table width */
  }
}

.dot-para-hang {
    position: relative;
    padding-left: 3.2em;   /* space for the bullet */
    text-indent: -.2em;   /* hanging indent */
}

.dot-para-hang::before {
    content: "●";          /* U+25CF black circle */
    font-size: 1em;
    position: absolute;
    left: 1.4em;
    top: 0em;            /* slight vertical alignment tweak */
}

/*///////////////For story marker in stories ///////////*/
.story-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    /*font-size: 100px;*/
    cursor: pointer;
    user-select: none;
    z-index: 9999; /* keeps marker above text */
    
}

/*//////////////////////////// Font theme: Liberation Serif */
/*//////////////////////////// --- FONT THEMES --- */

/* Liberation Serif — font-liberal */
.font-liberal .entry-content p,
.font-liberal .entry-content p * {
    font-family: "LiberationSerif" !important;
    font-size: 18px !important;
}

.font-liberal .entry-content h1,
.font-liberal .entry-content h2,
.font-liberal .entry-content h3,
.font-liberal .entry-content h4 {
    font-family: "LiberationSerif" !important;
}

.font-liberal .entry-content h1 { font-size: 45px !important; }
.font-liberal .entry-content h2 { font-size: 32px !important; }
.font-liberal .entry-content h3 { font-size: 26px !important; }
.font-liberal .entry-content h4 { font-size: 22px !important; }


/*////////////////////////////// GentiumBasic — font-gentiumb */
/* //////////  Steamboat Fight ///////////*/
.font-gentiumb .entry-content p,
.font-gentiumb .entry-content p * {
    font-family: "GentiumBasic" !important;
    font-size: 18px !important;
}

.font-gentiumb .entry-content h1,
.font-gentiumb .entry-content h2,
.font-gentiumb .entry-content h3,
.font-gentiumb .entry-content h4 {
    font-family: "GentiumBasic" !important;
}

.font-gentiumb .entry-content h1 { font-size: 45px !important; }
.font-gentiumb .entry-content h2 { font-size: 32px !important; }
.font-gentiumb .entry-content h3 { font-size: 26px !important; }
.font-gentiumb .entry-content h4 { font-size: 22px !important; }

@media (max-width: 768px) {
.font-gentiumb .entry-content p,
.font-gentiumb .entry-content p * {
    font-size: 20px !important;
    line-height: 1.5 !important;
    font-family: "GentiumBasic" !important;
}

.font-gentiumb .entry-content h1,
.font-gentiumb .entry-content h2,
.font-gentiumb .entry-content h3,
.font-gentiumb .entry-content h4 {
    font-family: "GentiumBasic" !important;
}

.font-gentiumb .entry-content h1 { font-size: 55px !important; }
.font-gentiumb .entry-content h2 { font-size: 32px !important; }
.font-gentiumb .entry-content h3 { font-size: 26px !important; }
.font-gentiumb .entry-content h4 { font-size: 22px !important; }
}

/*////////////////////// Roman Antique — font-romana */
.font-romana .entry-content p,
.font-romana .entry-content p * {
    font-family: "RomanAntique" !important;
    font-size: 22px !important;
}

.font-romana .entry-content h1,
.font-romana .entry-content h2,
.font-romana .entry-content h3,
.font-romana .entry-content h4 {
    font-family: "RomanAntique" !important;
}

.font-romana .entry-content h1 { font-size: 45px !important; }
.font-romana .entry-content h2 { font-size: 32px !important; }
.font-romana .entry-content h3 { font-size: 26px !important; }
.font-romana .entry-content h4 { font-size: 22px !important; }


/*////////////////////// MinionPro - font-minionp */
/* ///////       */

.font-minionp .entry-content p,
.font-minionp .entry-content p * {
    font-family: "MinionPro" !important;
    font-size: 26px !important;
    line-height: 1.5 !important;
}

.font-minionp .entry-content h1,
.font-minionp .entry-content h2,
.font-minionp .entry-content h3,
.font-minionp .entry-content h4 {
    font-family: "MinionPro" !important;
}
.font-minionp .entry-content h1 { font-size: 55px !important; }
.font-minionp .entry-content h2 { font-size: 32px !important; }
.font-minionp .entry-content h3 { font-size: 26px !important; }
.font-minionp .entry-content h4 { font-size: 22px !important; }

@media (max-width: 600px) {
.font-minionp .entry-content p,
.font-minionp .entry-content p * {
    font-family: "MinionPro" !important;
    font-size: 26px !important;
    line-height: 1.5 !important;
}
.font-minionp .entry-content h1,
.font-minionp .entry-content h2,
.font-minionp .entry-content h3,
.font-minionp .entry-content h4 {
    font-family: "MinionPro" !important;
}

.font-minionp .entry-content h1 { font-size: 55px !important; }
.font-minionp .entry-content h2 { font-size: 32px !important; }
.font-minionp .entry-content h3 { font-size: 26px !important; }
.font-minionp .entry-content h4 { font-size: 26px !important; }
}

/* ///////Up the Skeena, Joe Trulson, Misty Skeena Japanese   ////*/

.font-bonanova .entry-content p,
.font-bonanova .entry-content p * {
    font-family: "BonaNova" !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
}

.font-bonanova .entry-content h1,
.font-bonanova .entry-content h2,
.font-bonanova .entry-content h3,
.font-bonanova .entry-content h4 {
    font-family: "BonaNova" !important;
}

.font-bonanova .entry-content h1 { font-size: 45px !important; }
.font-bonanova .entry-content h2 { font-size: 32px !important; }
.font-bonanova .entry-content h3 { font-size: 26px !important; }
.font-bonanova .entry-content h4 { font-size: 26px !important; }

/* /////// six good men   ////*/

.font-averia .entry-content p,
.font-averia .entry-content p * {
    font-family: "AveriaLibre" !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
}

.font-averia .entry-content h1,
.font-averia .entry-content h2,
.font-averia .entry-content h3,
.font-averia .entry-content h4 {
    font-family: "AveriaLibre" !important;
}

.font-averia .entry-content h1 { font-size: 45px !important; }
.font-averia .entry-content h2 { font-size: 32px !important; }
.font-averia .entry-content h3 { font-size: 26px !important; }
.font-averia .entry-content h4 { font-size: 26px !important; }

@media (max-width: 768px) {
.font-averia .entry-content p,
.font-averia .entry-content p * {
    font-size: 20px !important;
    line-height: 1 !important;
    font-family: "AveriaLibre" !important;
}
.font-averia .entry-content h1,
.font-averia .entry-content h2,
.font-averia .entry-content h3,
.font-averia .entry-content h4 {
    font-family: "AveriaLibre" !important;
}
.font-averia .entry-content h1 { font-size: 45px !important; }
.font-averia .entry-content h2 { font-size: 32px !important; }
.font-averia .entry-content h3 { font-size: 26px !important; }
.font-averia .entry-content h4 { font-size: 26px !important; }
}
/*/////////////  Ballad Skeena     //////////////*/
.font-cantaneo .entry-content p,
.font-cantaneo .entry-content p * {
    font-family: "Cantaneo" !important;
    font-size: 22px !important;
    text-indent: 0 !important;
    padding-left: 14em !important;
}
.font-cantaneo .entry-content h1,
.font-cantaneo .entry-content h2,
.font-cantaneo .entry-content h3,
.font-cantaneo .entry-content h4 {
    font-family: "Cantaneo" !important;
}
.font-cantaneo .entry-content h1 { font-size: 45px !important; text-align: center; }
.font-cantaneo .entry-content h2 { font-size: 32px !important; }
.font-cantaneo .entry-content h3 { font-size: 26px !important; }
.font-cantaneo .entry-content h4 { font-size: 22px !important; }

@media (max-width: 768px) {
.font-cantaneo .entry-content p,
.font-cantaneo .entry-content p * {
    font-family: "Cantaneo" !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    padding-left: .5em !important;
    text-indent: 0;
}
.font-cantaneo .entry-content h1,
.font-cantaneo .entry-content h2,
.font-cantaneo .entry-content h3,
.font-cantaneo .entry-content h4 {
    font-family: "Cantaneo" !important;
}
.font-cantaneo .entry-content h1 { font-size: 45px !important; text-align: left; }
.font-cantaneo .entry-content h2 { font-size: 32px !important; }
.font-cantaneo .entry-content h3 { font-size: 26px !important; }
.font-cantaneo .entry-content h4 { font-size: 22px !important; }
}


/* Show dotted underline for words with definitions */
.dictionary-term {
    border-bottom: 3px dotted #333; /* dotted underline */
    cursor: help; /* shows a hint cursor */
}

/* -------------------------------------------
   FEATURE STORY — DESKTOP LEFT/RIGHT LAYOUT
   ------------------------------------------- */
/* ---------------------------------------------------
   RESET GUTENBERG COLUMNS (very important)
--------------------------------------------------- */
.feature-parent {
    display: block !important;    /* let Gutenberg grid work */
    max-width: 1200px;
    margin: 0 auto;
}

.feature-parent > .wp-block-column {
    display: block !important;    /* prevent flex-breaking */
    padding: 20px !important;
}


/* ---------------------------------------------------
   INNER FEATURE STORY LAYOUT (this is your real layout)
--------------------------------------------------- */
.feature-column {
    display: flex;
    flex-direction: row;          /* image left, text right */
    align-items: center;
    gap: 25px;
    padding: 20px 0;
    background: #f1f1f1;
    border: 3px solid #7f7f7f;
    border-radius: 10px;
}


/* IMAGE BLOCK */
.feature-column .feature-thumb {
    flex-shrink: 0;
}

.feature-column .feature-thumb img {
    width: 180px;
    height: auto;
    display: block;
    margin: 20px;
}


/* TEXT BLOCK (story-text wrapper) */
.feature-column .story-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-column .story-text h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #008000;
    text-align: left;
}

.feature-column .story-text h3 a {
    color: inherit;
    text-decoration: none !important;
}

.feature-column .story-text p {
    margin: 0;
    text-indent: 0;
}
/* Target the group inside story-wrapper */
.story-wrapper .wp-block-group__inner-container {
    max-width: 1200px;    /* match your columns width */
    margin: 0 auto;        /* centers the group in the page */
    padding: 0 20px;       /* optional horizontal padding */
}

/* Center the H2 text */
.story-wrapper .wp-block-group__inner-container h2.wp-block-heading {
    text-align: left;
    margin-bottom: 30px;   /* spacing below heading */
}


/* ---------------------------------------------------
   MOBILE STACKING
--------------------------------------------------- */
@media (max-width: 700px) {
    .feature-column {
        flex-direction: column;
        text-align: center;
    }

    .feature-column .story-text h3 {
        text-align: center;
    }

    .feature-column .feature-thumb img {
        margin: 0 auto;
    }
}

/* 1. Completely disable Neve hover-open behavior on third level menu */
.nv-nav-wrap ul li:hover > .sub-menu,
.nv-nav-wrap ul li:focus-within > .sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. Our controlled click-open class */
.nv-nav-wrap ul li.open > .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* Increase caret size in Sternwheeler menu*/
.caret-wrap .caret svg {
    width: 20px;
    height: 20px;
}


/* Tablet view: 80% width for the group wrapper */
/*@media (min-width: 701px) and (max-width: 1024px) {
    .story-wrapper {
        width: 80% !important;       /* container width */
  /*      max-width: 80% !important;   /* force max-width */
    /*    margin-left: auto !important; /* center horizontally */
     /*   margin-right: auto !important;
        padding-left: 0 !important;   /* optional: remove inner padding */
     /*   padding-right: 0 !important;
    }

     /* Also constrain the inner container if needed */
/*    .story-wrapper .wp-block-group__inner-container {
        width: 100% !important;      /* fill parent width */
  /*      max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
}*/

/* Mobile view: full width */
@media (max-width: 700px) {
    .story-wrapper .wp-block-group__inner-container {
        max-width: 100%;
        padding: 0 10px;    /* optional padding for smaller phones */
    }
}    




