
/* ==================================================
   RETIRE TO EXPLORE
   PREMIUM TRAVEL JOURNAL
   WordPress + Hello Elementor Child
   ================================================== */

/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/*
   NEWSPRINT FONT

   If you have the Newsprint font file,
   place it in:

   hello-elementor-child/fonts/newsprint.woff2

   Update the filename if necessary.
*/

@font-face {
    font-family: "Newsprint";
    src: url("fonts/newsprint.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==================================================
   VARIABLES
================================================== */

:root {
    --rte-primary: #0284C7;
    --rte-dark: #0F172A;
    --rte-light: #F8FAFC;

    --rte-text: #334155;
    --rte-muted: #64748B;
    --rte-border: #E2E8F0;

    --rte-soft-blue: #E0F2FE;
    --rte-blue-hover: #0369A1;

    --rte-heading-font: "Newsprint", Georgia, serif;
    --rte-body-font: "Plus Jakarta Sans", sans-serif;
}

/* ==================================================
   MAIN PAGE
================================================== */

body.single-post {
    margin: 0;
    background: var(--rte-light);
    color: var(--rte-dark);
    font-family: var(--rte-body-font);
}

.rte-single {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.rte-article {
    margin: 0;
    padding: 0;
}

/* ==================================================
   CINEMATIC HERO
================================================== */

.rte-hero {
    position: relative;
    width: 100%;
    min-height: 650px;
    height: 82vh;
    max-height: 900px;

    display: flex;
    align-items: center;

    background: var(--rte-primary);
    overflow: hidden;
    isolation: isolate;
}

.rte-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.rte-hero-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    max-height: 650px !important;
}

.rte-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(15,23,42,.92) 0%,
        rgba(15,23,42,.55) 48%,
        rgba(15,23,42,.12) 100%
    );
}

.rte-hero-content {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1300px;

    margin: 0 auto;
    padding: 100px 60px;
    text-align: left;
}

.rte-hero-category {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 30px;

    font-family: var(--rte-body-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;

    color: var(--rte-light);
}

.rte-hero-category::after {
    content: "";
    width: 70px;
    height: 1px;
    background: rgba(255,255,255,.75);
}

.rte-hero-category a {
    color: inherit;
    text-decoration: none;
}

.rte-hero-category a:hover {
    color: #7DD3FC;
}

.rte-hero-title {
    max-width: 1120px;
    margin: 0 0 30px;

    font-family: var(--rte-heading-font);
    font-size: clamp(48px, 6.5vw, 92px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -1.5px;

    color: #FFFFFF;
}

.rte-hero-subtitle {
    max-width: 650px;
    margin: 0 0 30px;

    font-family: var(--rte-body-font);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;

    color: #E2E8F0;
}

.rte-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;

    font-family: var(--rte-body-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .5px;

    color: #E2E8F0;
}

.rte-meta-divider {
    color: #38BDF8;
}

/* ==================================================
   JOURNAL CONTAINER
================================================== */

.rte-journal-wrapper {
    position: relative;
    z-index: 2;

    max-width: 1160px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.rte-journal-content {
    position: relative;

    background: #FFFFFF;
    padding: 90px 105px 95px;

    box-shadow:
        0 20px 70px rgba(15,23,42,.05);
}

/* JOURNAL TOP EDGE */

.rte-journal-content::before {
    content: "";
    position: absolute;

    top: -16px;
    left: 0;

    width: 100%;
    height: 20px;

    background: #FFFFFF;

    clip-path: polygon(
        0 60%, 5% 30%, 10% 70%,
        15% 25%, 20% 60%, 25% 35%,
        30% 70%, 35% 30%, 40% 60%,
        45% 25%, 50% 70%, 55% 30%,
        60% 60%, 65% 25%, 70% 65%,
        75% 30%, 80% 70%, 85% 35%,
        90% 60%, 95% 25%, 100% 65%,
        100% 100%, 0 100%
    );
}

/* ==================================================
   JOURNAL LABEL
================================================== */

.rte-journal-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-bottom: 55px;

    font-family: var(--rte-body-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;

    color: var(--rte-primary);
}

.rte-label-line {
    width: 55px;
    height: 1px;
    background: var(--rte-primary);
}

/* ==================================================
   JOURNAL INTRODUCTION
================================================== */

.rte-journal-intro {
    font-family: var(--rte-heading-font);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.7;

    color: var(--rte-dark);

    margin-bottom: 65px;
    padding-bottom: 45px;

    border-bottom: 1px solid var(--rte-border);
}

.rte-journal-intro::first-letter {
    float: left;

    font-size: 4.2em;
    line-height: .85;

    padding: 8px 15px 0 0;

    color: var(--rte-primary);
}

/* ==================================================
   ARTICLE TYPOGRAPHY
================================================== */

.rte-article-body {
    font-family: var(--rte-body-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.95;

    color: var(--rte-text);
}

.rte-article-body p {
    margin: 0 0 28px;
    color: inherit;
}

.rte-article-body h2 {
    position: relative;

    font-family: var(--rte-heading-font);
    font-size: clamp(31px, 4vw, 43px);
    font-weight: 400;
    line-height: 1.3;

    color: var(--rte-dark);

    margin: 75px 0 28px;
    padding-bottom: 18px;
}

.rte-article-body h2::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 55px;
    height: 3px;

    background: var(--rte-primary);
}

.rte-article-body h3 {
    font-family: var(--rte-heading-font);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;

    color: var(--rte-dark);

    margin: 45px 0 20px;
}

.rte-article-body h4 {
    font-family: var(--rte-body-font);
    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 2px;

    color: var(--rte-primary);

    margin: 35px 0 18px;
}

.rte-article-body a {
    color: var(--rte-primary);
    text-decoration: underline;
    text-underline-offset: 5px;
    transition: color .2s ease;
}

.rte-article-body a:hover {
    color: var(--rte-blue-hover);
}

/* ==================================================
   IMAGES
================================================== */

.rte-article-body figure {
    margin: 45px 0;
}

.rte-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.rte-article-body figcaption {
    font-family: var(--rte-body-font);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;

    color: var(--rte-muted);

    text-align: center;
    margin-top: 12px;
}

/* WIDE IMAGE */

.rte-article-body .alignwide {
    width: calc(100% + 100px);
    max-width: none;
    margin-left: -50px;
}

/* FULL WIDTH IMAGE */

.rte-article-body .alignfull {
    width: calc(100% + 210px);
    max-width: none;
    margin-left: -105px;
}

/* ==================================================
   POLAROID IMAGES
   Class: rte-polaroid
================================================== */

.rte-article-body .rte-polaroid {
    display: table;

    max-width: min(100%, 420px);

    margin: 50px auto;
    padding: 12px 12px 0;

    background: #FFFFFF;

    box-shadow:
        0 15px 35px rgba(15,23,42,.14),
        0 3px 8px rgba(15,23,42,.05);

    transform: rotate(-2deg);
    transition: transform .3s ease;
}

.rte-article-body .rte-polaroid:hover {
    transform: rotate(0deg) translateY(-5px);
}

.rte-article-body .rte-polaroid img {
    width: 100%;
    border-radius: 0;
}

.rte-article-body .rte-polaroid figcaption {
    padding: 16px 10px 22px;

    font-family: var(--rte-heading-font);
    font-size: 18px;

    color: var(--rte-dark);
}

/* FLOATING IMAGES */

.rte-article-body .rte-photo-right {
    float: right;
    width: 43%;
    margin: 5px 0 30px 35px;
}

.rte-article-body .rte-photo-left {
    float: left;
    width: 43%;
    margin: 5px 35px 30px 0;
}


/* ==========================================
   RETIRE TO EXPLORE
   RESPONSIVE TWO-COLUMN PHOTO GALLERY
========================================== */

/* Gallery container */
.rte-article-body .wp-block-gallery,
.rte-article-body .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100%;
    max-width: 100%;
    margin: 45px 0;
    padding: 0;
    list-style: none;
    align-items: start;
}

/* Each gallery image */
.rte-article-body .wp-block-gallery > .wp-block-image,
.rte-article-body .blocks-gallery-grid > .blocks-gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
    display: block !important;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Image dimensions */
.rte-article-body .wp-block-gallery > .wp-block-image img,
.rte-article-body .blocks-gallery-item img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3;
    object-fit: cover !important;
    object-position: center;
    display: block;
    border-radius: 8px;
    transition: transform .4s ease;
}

/* Hover effect */
@media (hover: hover) {
    .rte-article-body .wp-block-gallery > .wp-block-image:hover img,
    .rte-article-body .blocks-gallery-item:hover img {
        transform: scale(1.04);
    }
}

/* Captions */
.rte-article-body .wp-block-gallery figcaption,
.rte-article-body .blocks-gallery-item figcaption {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {
    .rte-article-body .wp-block-gallery,
    .rte-article-body .blocks-gallery-grid {
        gap: 14px !important;
    }
}

/* ==========================================
   MOBILE
   Keep two images side by side
========================================== */

@media (max-width: 767px) {
    .rte-article-body .wp-block-gallery,
    .rte-article-body .blocks-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin: 30px 0;
    }

    .rte-article-body .wp-block-gallery > .wp-block-image,
    .rte-article-body .blocks-gallery-item {
        border-radius: 5px;
    }

    .rte-article-body .wp-block-gallery > .wp-block-image img,
    .rte-article-body .blocks-gallery-item img {
        aspect-ratio: 1 / 1;
        border-radius: 5px;
    }
}

/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 380px) {
    .rte-article-body .wp-block-gallery,
    .rte-article-body .blocks-gallery-grid {
        gap: 6px !important;
    }
}


/* ==================================================
   QUOTES
================================================== */

.rte-article-body blockquote {
    position: relative;

    background: var(--rte-soft-blue);
    border: none;
    border-radius: 6px;

    padding: 55px 60px 45px 100px;
    margin: 60px 0;

    color: var(--rte-dark);
}

.rte-article-body blockquote::before {
    content: "“";

    position: absolute;
    left: 28px;
    top: 5px;

    font-family: Georgia, serif;
    font-size: 125px;
    line-height: 1;

    color: var(--rte-primary);
}

.rte-article-body blockquote p {
    font-family: var(--rte-heading-font);
    font-size: 24px;
    font-style: italic;
    line-height: 1.6;

    color: var(--rte-dark);

    margin-bottom: 12px;
}

.rte-article-body blockquote cite {
    display: block;

    font-family: var(--rte-body-font);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 3px;

    color: var(--rte-primary);
}

/* ==================================================
   TRAVEL TIP
   Class: rte-travel-tip
================================================== */

.rte-article-body .rte-travel-tip {
    position: relative;

    margin: 50px 0;
    padding: 35px 40px 35px 100px;

    background: var(--rte-soft-blue);
    border: 1px solid #BAE6FD;
    border-radius: 6px;
}

.rte-travel-tip::before {
    content: "✧";

    position: absolute;
    top: 22px;
    left: 30px;

    font-size: 48px;
    color: var(--rte-primary);
}

.rte-travel-tip h3,
.rte-travel-tip h4 {
    margin: 0 0 12px;
    color: var(--rte-dark);
}

.rte-travel-tip p:last-child {
    margin-bottom: 0;
}

/* ==================================================
   LISTS & DIVIDERS
================================================== */

.rte-article-body ul,
.rte-article-body ol {
    margin: 25px 0 35px;
    padding-left: 30px;
}

.rte-article-body li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.rte-article-body li::marker {
    color: var(--rte-primary);
}

.rte-article-body hr {
    border: none;
    border-top: 1px solid var(--rte-border);
    margin: 60px 0;
}

/* ==================================================
   END OF JOURNAL
================================================== */

.rte-journal-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    margin: 90px 0 65px;

    font-size: 28px;
    color: var(--rte-primary);
}

.rte-end-line {
    width: 90px;
    height: 1px;
    background: #BAE6FD;
}

/* ==================================================
   PREVIOUS / NEXT STORIES
================================================== */

.rte-post-navigation {
    padding-top: 40px;
    border-top: 1px solid var(--rte-border);
}

.rte-post-navigation .nav-links {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
}

.rte-post-navigation .nav-previous,
.rte-post-navigation .nav-next {
    min-width: 0;
    width: 50%;
}

.rte-post-navigation .nav-next {
    text-align: right;
    float: right;
}

.rte-post-navigation a {
    display: block;
    text-decoration: none;
    color: var(--rte-dark);
    transition: color .2s ease;
}

.rte-post-navigation a:hover {
    color: var(--rte-primary);
}

.rte-post-navigation small {
    display: block;

    margin-bottom: 12px;

    font-family: var(--rte-body-font);
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
    color: var(--rte-primary);
}

.rte-post-navigation strong {
    display: block;

    font-family: var(--rte-heading-font);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;

    color: inherit;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {
    .rte-hero {
        min-height: 580px;
        height: 62vh;
    }

    .rte-hero-content {
        padding: 80px 45px;
    }

    .rte-journal-content {
        padding: 70px 65px;
    }

    .rte-article-body .alignfull {
        width: calc(100% + 130px);
        margin-left: -65px;
    }

    .rte-article-body .alignwide {
        width: 100%;
        margin-left: 0;
    }
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {
    .rte-hero {
        min-height: 520px;
        height: 62svh;
        align-items: flex-end;
    }

    .rte-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(15,23,42,.12) 0%,
            rgba(15,23,42,.4) 40%,
            rgba(15,23,42,.92) 100%
        );
    }

    .rte-hero-content {
        padding: 60px 25px 80px;
    }

    .rte-hero-title {
        font-size: clamp(38px, 10vw, 54px);
        letter-spacing: -1px;
    }

    .rte-hero-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }

    .rte-hero-category {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .rte-hero-meta {
        font-size: 11px;
        gap: 10px;
    }

    .rte-journal-wrapper {
        padding: 0;
        margin-bottom: 50px;
    }

    .rte-journal-content {
        padding: 55px 24px 65px;
    }

    .rte-journal-label {
        font-size: 9px;
        letter-spacing: 2px;
        gap: 10px;
        margin-bottom: 35px;
    }

    .rte-label-line {
        width: 25px;
    }

    .rte-journal-intro {
        font-size: 22px;
        margin-bottom: 45px;
        padding-bottom: 35px;
    }

    .rte-journal-intro::first-letter {
        font-size: 3.7em;
    }

    .rte-article-body {
        font-size: 15px;
        line-height: 1.9;
    }

    .rte-article-body h2 {
        font-size: 30px;
        margin-top: 55px;
    }

    .rte-article-body h3 {
        font-size: 24px;
    }

    .rte-article-body .alignfull {
        width: calc(100% + 48px);
        margin-left: -24px;
    }

    .rte-article-body .alignwide {
        width: 100%;
        margin-left: 0;
    }

    .rte-article-body .rte-photo-right,
    .rte-article-body .rte-photo-left {
        float: none;
        width: 100%;
        margin: 35px 0;
    }

    .rte-article-body blockquote {
        padding: 65px 25px 30px;
    }

    .rte-article-body blockquote::before {
        top: 5px;
        left: 20px;
        font-size: 95px;
    }

    .rte-article-body blockquote p {
        font-size: 21px;
    }

    .rte-article-body .rte-travel-tip {
        padding: 75px 25px 30px;
    }

    .rte-travel-tip::before {
        top: 12px;
        left: 22px;
    }

    .rte-post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rte-post-navigation .nav-next {
        text-align: left;
    }

    .rte-post-navigation strong {
        font-size: 19px;
    }
}

/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 380px) {
    .rte-hero-title {
        font-size: 35px;
    }

    .rte-journal-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .rte-article-body .alignfull {
        width: calc(100% + 36px);
        margin-left: -18px;
    }
}



/* ==========================================
   RETIRE TO EXPLORE
   TEXT JUSTIFICATION & IMAGE ALIGNMENT
========================================== */

/* JUSTIFY ARTICLE TEXT */
.rte-article-body p,
.rte-article-body li,
.rte-journal-intro {
    text-align: justify;
    text-justify: inter-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* KEEP HEADINGS LEFT ALIGNED */
.rte-article-body h2,
.rte-article-body h3,
.rte-article-body h4 {
    text-align: left;
}

/* CENTER ALL ARTICLE IMAGES */
.rte-article-body > img,
.rte-article-body p > img,
.rte-article-body figure:not(.wp-block-gallery figure) {
    margin-left: auto;
    margin-right: auto;
}

/* CENTER IMAGE BLOCKS */
.rte-article-body .wp-block-image {
    text-align: center;
}

.rte-article-body .wp-block-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* CENTER FIGURES */
.rte-article-body figure {
    text-align: center;
}

/* CENTER IMAGE CAPTIONS */
.rte-article-body figcaption {
    text-align: center;
}

/* KEEP TWO-COLUMN GALLERY */
.rte-article-body .wp-block-gallery {
    justify-content: center;
    justify-items: center;
}

/* CENTER GALLERY IMAGES */
.rte-article-body .wp-block-gallery img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* CENTER WIDE AND FULL IMAGES */
.rte-article-body .alignwide,
.rte-article-body .alignfull {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
}

/* CENTER QUOTE TEXT */
.rte-article-body blockquote p {
    text-align: justify;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .rte-article-body p,
    .rte-article-body li {
        text-align: justify;
        hyphens: auto;
    }

    .rte-article-body img {
        max-width: 100%;
        height: auto;
    }
}
