/*
Theme Name: Wild-World - Child
Author: Artureanec
Author URI: http://artureanec.com
Description: -
Version: 1.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: wild-world
*/
body {
  display:block !important;
}

/*
.wildworld_header {
    position:relative !important;
}*/

/*
 * Page-title hero scrim - added 2026-10-22.
 *
 * The page-title block prints the post's featured image as the hero background
 * with a white <h1> over it (page_title_color #ffffff, the theme's own default).
 * That reads perfectly on a dark photo - the grebe shot, for instance - but a
 * great many of the 1,393 bird photos are bright sky, and on those, and on the
 * wild-travel-main.jpg fallback that pages without a featured image fall back to,
 * white on pale blue is barely readable.
 *
 * A top-weighted gradient darkens only the band the title actually sits in and
 * leaves the rest of the photo alone. The container is already position:relative
 * and overflow:hidden, and neither it nor its .container child used a
 * pseudo-element before, so nothing is being overridden here.
 */
.wildworld_page_title_container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.55) 0,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0) 75%);
    pointer-events: none;
}

.wildworld_page_title_container > .container {
    position: relative;
    z-index: 1;
}

/*
 * No text-shadow rule here on purpose: the Customizer's Additional CSS already
 * sets one on .wildworld_page_title and is enqueued after this file, so a rule
 * here would never apply. The scrim above is what makes the difference.
 */

/* ===========================================================================
 * About pages (trid 117: 97 en, 87 fr, 92 ro, 43018 de) - added 2026-10-22.
 *
 * These were a wall of fully-bold paragraphs with four images floated
 * left/right through the middle of them. The markup is now a lead paragraph
 * plus two person cards; this gives those cards a layout.
 *
 * Everything is scoped under .wt-about so it cannot reach any other page.
 *
 * Deliberately NOT styled here: the 1px green border and the zoom-in cursor on
 * .wt-image. Those come from the wt-lightbox mu-plugin and the user asked for
 * the green highlight to stay, so the rules below leave it alone and add the
 * white ring and shadow around it rather than replacing it.
 *
 * Accent is #3dcff7, the site's own main_color theme mod - the same cyan the
 * page-title divider uses - not the theme's stock yellow.
 * ======================================================================== */

.wt-about {
    --wt-accent: #3dcff7;
    --wt-ink: #1d2b32;
    --wt-muted: #5a6b73;
    --wt-panel: #f5fafc;
    max-width: 68rem;
    margin-inline: auto;
}

/* ---------- the opening paragraph(s) ---------- */

.wt-about__lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--wt-muted);
    max-width: 48rem;
    margin: 0 0 1rem;
    padding-left: 1.125rem;
    border-left: 3px solid var(--wt-accent);
}

.wt-about__lead + .wt-about__lead {
    border-left-color: transparent;
}

.wt-about__lead em {
    font-style: normal;
}

/* ---------- a person card ---------- */

.wt-person {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: start;
    margin-top: 3.5rem;
    padding: 2.25rem;
    border-radius: 1.25rem;
    background: var(--wt-panel);
}

/* the second card mirrors the first: text left, photographs right */
.wt-person--reverse .wt-person__media {
    order: 2;
}

/* ---------- the photographs ---------- */

.wt-person__media {
    position: relative;
}

/* the lightbox stylesheet puts 1em block margins on every .wt-figure */
.wt-person__fig {
    margin: 0;
}

.wt-person__fig img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
}

.wt-person__fig--1 img {
    aspect-ratio: 4 / 3;
    box-shadow: 0 1.25rem 2.5rem -1rem rgba(14, 42, 52, 0.45);
}

/* the smaller frame tucks under the first one and overlaps it */
.wt-person__fig--2 {
    width: 62%;
    margin-top: -3.25rem;
    margin-left: auto;
    position: relative;
    z-index: 2;
}

.wt-person--reverse .wt-person__fig--2 {
    margin-left: 0;
    margin-right: auto;
}

.wt-person__fig--2 img {
    aspect-ratio: 1 / 1;
    box-shadow: 0 0 0 0.4rem #fff, 0 1.25rem 2.5rem -1rem rgba(14, 42, 52, 0.45);
}

/* ---------- the text ---------- */

.wt-person__name {
    margin: 0 0 1.25rem;
    font-size: 2.25rem;
    line-height: 1.15;
    color: var(--wt-ink);
    position: relative;
    padding-bottom: 0.75rem;
}

.wt-person__name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3.25rem;
    height: 3px;
    background: var(--wt-accent);
    border-radius: 2px;
}

.wt-person__body p {
    margin: 0 0 0.9rem;
    line-height: 1.75;
    color: var(--wt-muted);
}

.wt-person__role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wt-ink) !important;
}

/* the "speaks X, Y and Z" line, which every language ends its card with */
.wt-person__langs {
    margin-top: 1.25rem !important;
    padding: 0.55rem 0.9rem;
    display: inline-block;
    border: 1px solid rgba(61, 207, 247, 0.5);
    border-radius: 2rem;
    background: #fff;
    font-size: 0.92rem;
    color: var(--wt-ink) !important;
}

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
    .wt-person {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 1.5rem;
        margin-top: 2.5rem;
    }

    /* keep the photographs above the text on both cards */
    .wt-person--reverse .wt-person__media {
        order: 0;
    }

    .wt-person__name {
        font-size: 1.75rem;
    }

    .wt-about__lead {
        font-size: 1.08rem;
    }
}

@media (max-width: 480px) {
    .wt-person__fig--2 {
        width: 72%;
        margin-top: -2rem;
    }
}

/* ===========================================================================
 * Content rhythm - added 2026-10-22, site-wide.
 *
 * Headings and paragraphs in the body copy had almost no vertical separation:
 * a paragraph in .wildworld_content_wrapper computed to margin 0 0 4.8px, and
 * inside an Elementor text-editor widget it was margin 0 flat.
 *
 * Scope is the two places prose actually lives:
 *   .wildworld_content_wrapper      - classic pages, posts and every CPT single
 *   .elementor-widget-text-editor   - prose blocks inside Elementor pages
 *
 * Standalone .elementor-widget-heading widgets are NOT touched. Those are laid
 * out by Elementor's own per-widget spacing, and adding margins to them would
 * move designed sections (hero kickers, section titles) rather than body copy.
 *
 * Selectors are written out longhand rather than with :is(), so that the
 * Merge+Minify+Refresh pass has nothing unusual to parse.
 * ======================================================================== */

.wildworld_content_wrapper h1,
.wildworld_content_wrapper h2,
.wildworld_content_wrapper h3,
.wildworld_content_wrapper h4,
.wildworld_content_wrapper h5,
.wildworld_content_wrapper h6,
.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5,
.elementor-widget-text-editor h6 {
    margin: 1.1em 0 0.45em 0;
}

.wildworld_content_wrapper p,
.elementor-widget-text-editor p {
    margin-bottom: 1.1em;
}

/* A leading heading should not push the whole content block down - the air is
   wanted BETWEEN blocks, not above the first one. */
.wildworld_content_wrapper > h1:first-child,
.wildworld_content_wrapper > h2:first-child,
.wildworld_content_wrapper > h3:first-child,
.wildworld_content_wrapper > h4:first-child,
.wildworld_content_wrapper > h5:first-child,
.wildworld_content_wrapper > h6:first-child,
.elementor-widget-text-editor h1:first-child,
.elementor-widget-text-editor h2:first-child,
.elementor-widget-text-editor h3:first-child,
.elementor-widget-text-editor h4:first-child,
.elementor-widget-text-editor h5:first-child,
.elementor-widget-text-editor h6:first-child {
    margin-top: 0;
}

/* The About cards set their own rhythm: their <h2> is a card title sitting at
   the top of a padded panel, where a 1.1em top margin reads as a misalignment.
   Paragraphs inside them do take the site-wide 1.1em. */
.wt-about .wt-person__name {
    margin: 0 0 1.25rem;
}

/* The trailing paragraph of a block gets the same 1.1em as the rest - 2026-10-22.
 *
 * Something earlier in the cascade sets `p:last-of-type { margin-bottom: 0 }` at
 * specificity (0,0,1,1), identical to the `.wildworld_content_wrapper p` rule above
 * and loaded after it, so it was winning and flattening the last paragraph of every
 * block. Adding the pseudo-class to our own scoped selectors takes it to (0,0,2,1),
 * which wins on specificity rather than on order - no !important needed.
 *
 * :last-child is included alongside :last-of-type because a block whose final
 * element is an <img> or <figure> leaves the last <p> as last-of-type but not
 * last-child, and vice versa. */

.wildworld_content_wrapper p:last-of-type,
.wildworld_content_wrapper p:last-child,
.elementor-widget-text-editor p:last-of-type,
.elementor-widget-text-editor p:last-child {
    margin-bottom: 1.1em;
}

/* ===========================================================================
 * Front-page hero slider - left-alignment gutter, 2026-10-22.
 *
 * The slides are now left-aligned (content_align: flex-start), but the hero is
 * full-bleed and nothing in the slide's chain carries any horizontal padding,
 * so the headline sat hard against the window edge - measured at x = -5 while
 * the logo and all body copy start at x = 10.
 *
 * This gives the slide's content container the same box the rest of the page
 * uses: capped at the Elementor kit's content width and centred, with the same
 * 10px inner gutter above that width, so the hero headline lines up exactly
 * with the logo, the section kickers and the body copy beneath it.
 * ======================================================================== */

.wildworld_content_slide .wildworld_content_container {
    width: 100%;
    max-width: 64rem; /* 1024px - the Elementor kit's content width */
    margin-inline: auto;
    padding-inline: 1.5rem;
}

@media (min-width: 64rem) {
    .wildworld_content_slide .wildworld_content_container {
        padding-inline: 0.625rem; /* 10px, where the logo and body copy begin */
    }
}

/* The theme pulls the slide title 5px to the left to optically compensate for
   its -1px letter-spacing. That was invisible while the text was centred; with
   the text left-aligned it just breaks the alignment, so it is zeroed here. */
.wildworld_content_slider_wrapper .wildworld_content_slide .wildworld_content_slider_title {
    margin-left: 0;
}

/* ---------------------------------------------------------------------------
 * Front-page hero slider - restore the mobile type scale, 2026-10-22.
 *
 * The theme ships a sensible responsive scale for the slide title:
 *     base            36px
 *     >= 768px        60px
 *     >= 1200px      100px
 *
 * But the per-slide typography set in Elementor emits a flat
 * `font-size: 66px` with NO media query, from a selector like
 * `.elementor-21063 .elementor-element-37d934a8 .elementor-repeater-item-XXXX`,
 * so a desktop size was being applied on phones as well. At 375px that made
 * "We run only slow tours" wrap to three lines 140px tall and collide with the
 * logo and the language flags.
 *
 * This is pre-existing - verified by reverting the left-alignment rules in the
 * live DOM and re-measuring: the size and vertical position were identical.
 *
 * Six classes deep so it outranks Elementor's three-class per-slide rule,
 * which is FIVE classes deep (.elementor-<id> .elementor-element
 * .elementor-element-<node> .elementor-repeater-item-<slide> .wildworld_content_slider_title)
 * and is emitted after this stylesheet. Fixing it in Elementor's own data would
 * mean adding a mobile font size to 16 slides across four languages; this is one
 * rule. Page-agnostic, so it covers all four
 * homepages (each has its own .elementor-<id> override).
 * ------------------------------------------------------------------------ */

@media (max-width: 767px) {
    .wildworld_content_slider_wrapper .wildworld_content_slide .wildworld_content_slide_wrapper .wildworld_content_container .wildworld_content_wrapper_1 .wildworld_content_slider_title,
    .wildworld_content_slider_wrapper .wildworld_content_slide .wildworld_content_slide_wrapper .wildworld_content_container .wildworld_content_wrapper_1 .wildworld_content_slider_title span {
        font-size: 2.25rem; /* 36px - the theme's own mobile size */
        line-height: 1.12;
        letter-spacing: -0.02em; /* the theme pairs 36px with -5px, which crushes it */
    }
}

/* Front-page hero - put the mobile slide text back at the bottom, 2026-10-22.
 *
 * .wildworld_content_slide_wrapper is display:flex with align-items:flex-end,
 * which is how the text sits at the bottom of the hero on desktop. On mobile
 * that wrapper is only as tall as its own content (129px) inside a 715px
 * slide, so flex-end had nothing to push against and the headline rendered at
 * the TOP of the hero, behind the logo and the language flags.
 *
 * The slide is already position:relative and gets its height independently of
 * this content (min-height is 1px, yet it measures 715px), so pinning the
 * wrapper to the bottom is safe and leaves the slick carousel's own layout,
 * widths and background images untouched - which changing the slide to
 * display:flex would not.
 *
 * bottom clears the slider dots. */

@media (max-width: 767px) {
    .wildworld_content_slider_wrapper .wildworld_content_slide .wildworld_content_slide_wrapper {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 4.5rem;
    }

    /* ro/fr/de render an extra Bootstrap .col-12 wrapper that English did not
       (the theme varies its markup with content_width_type), and its 15px side
       padding stacked on top of the gutter below, giving 39px there against
       24px on English. Zeroed so every language lands on the same gutter. */
    .wildworld_content_slider_wrapper .wildworld_content_slide .col-12 {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Prototype Elementor Slides hero (English homepage) - 2026-10-22.
 *
 * Caps and centres the slide's content block on the same 64rem column the rest
 * of the page uses, with the same 10px inner gutter, so the hero headline lines
 * up with the logo and the body copy exactly as the theme slider now does.
 *
 * Targets .swiper-slide-contents, NOT .swiper-slide-inner: the slide background
 * lives on .swiper-slide-bg, but constraining the inner wrapper would also box
 * in the overlay. */

.elementor-widget-slides .swiper-slide-contents {
    width: 100%;
    max-width: 75rem;
    margin-inline: auto;
    /* 10px, which is where the body copy starts at EVERY width below the column -
       measured at 375, 800 and 980. An earlier 1.5rem base put the hero 14px
       inboard of everything else between 768 and 1024. */
    padding-inline: 0.625rem;
}

/* Past the column width the 75rem box is centred and the body copy sits flush
   to its edge, so the hero must not add a gutter of its own or it lands 10px
   inboard of everything else. Below that width the column fills the viewport
   and the 10px above matches the body's own gutter. */
@media (min-width: 75rem) {
    .elementor-widget-slides .swiper-slide-contents {
        padding-inline: 0;
    }
}

/* ===========================================================================
 * Front-page hero (Elementor Slides prototype) - polish, 2026-10-22.
 *
 * The swap left the type correct but bare: plain white on a photo with a flat
 * 33% black wash over the whole frame. This dresses it in the vocabulary the
 * rest of the site already uses, rather than inventing a new one:
 *
 *   - the short cyan rule, as on the section kickers ("— BIRDS IN THE DANUBE
 *     DELTA"), the page-title divider and the About card headings
 *   - #3dcff7, the site's own main_color theme mod
 *   - a bottom-weighted scrim, the same idea as the page-title hero's, since
 *     the slide content sits at the bottom
 *
 * Scoped to .elementor-widget-slides so it cannot reach any other widget.
 * ======================================================================== */

/* --- the scrim ---------------------------------------------------------
 * background-image composites over the flat overlay colour Elementor writes
 * from background_overlay_color, so this needs no specificity fight with the
 * per-slide rule, and a light wash survives even if this file fails to load. */

.elementor-widget-slides .elementor-background-overlay {
    background-image: linear-gradient(
        to top,
        rgba(4, 20, 26, 0.72) 0%,
        rgba(4, 20, 26, 0.42) 32%,
        rgba(4, 20, 26, 0.08) 62%,
        rgba(4, 20, 26, 0.30) 100%
    );
}

/* --- the accent rule above the headline -------------------------------- */

.elementor-widget-slides .swiper-slide-contents::before {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3px;
    margin-bottom: 1.25rem;
    border-radius: 2px;
    background: #3dcff7;
    transform-origin: left center;
    animation: wt-hero-rule 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wt-hero-rule {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

/* --- the headline ------------------------------------------------------ */

.elementor-widget-slides .elementor-slide-heading {
    text-wrap: balance;
    text-shadow: 0 0.08em 0.5em rgba(0, 0, 0, 0.45);
}

/* --- the supporting line ----------------------------------------------- */

.elementor-widget-slides .elementor-slide-description {
    max-width: 44rem;
    text-shadow: 0 0.08em 0.5em rgba(0, 0, 0, 0.45);
}

/* --- the dots ----------------------------------------------------------
 * Elementor draws round bullets; these become short bars matching the accent
 * rule above, with the active one widened. */

.elementor-widget-slides .swiper-pagination-bullet {
    width: 1.5rem;
    height: 3px;
    border-radius: 2px;
    opacity: 1;
    transition: width 0.35s ease, background-color 0.35s ease;
}

.elementor-widget-slides .swiper-pagination-bullet-active {
    width: 3.5rem;
}

@media (max-width: 767px) {
    .elementor-widget-slides .swiper-slide-contents::before {
        width: 2.5rem;
        margin-bottom: 0.85rem;
    }

    .elementor-widget-slides .swiper-pagination-bullet {
        width: 1.1rem;
    }

    .elementor-widget-slides .swiper-pagination-bullet-active {
        width: 2.5rem;
    }
}

/* Someone who prefers less motion still gets the rule, just without the wipe. */
@media (prefers-reduced-motion: reduce) {
    .elementor-widget-slides .swiper-slide-contents::before {
        animation: none;
    }
}

/* --- content wrapper rhythm ------------------------------------------------
   The theme gives both content wrappers 80px / 100px / 100px / 150px of
   vertical padding as the viewport grows (wild-world/css/theme.css ~2625).
   150px top and bottom was doing nothing on desktop but pushing the page down,
   so the ladder is rescaled to 2.5 / 3 / 4em. Both wrappers were measured
   running at the 16px root font size, so 4em is exactly the 64px asked for.

   Both selectors are listed because the theme splits the same decision in two:
   page.php / index.php / search.php / category.php render
   .wildworld_page_content_wrapper, while single.php - every one of the ~1,390
   bird pages - renders .wildworld_blog_content_wrapper. The theme keeps their
   values identical at every breakpoint and so does this.

   Why `body` is in the selector: this child stylesheet is enqueued BEFORE the
   parent's theme.css (child-style depends only on the parent's style.css, and a
   child functions.php registers its hook first - measured, the child's rules
   land at byte 74k of the merged bundle against the theme's 294k). An
   equal-specificity rule would therefore lose. `body .x` is (0,1,1) and beats
   the theme's (0,1,0) rules; because specificity outranks source order, it wins
   inside the theme's 768/992/1200 media queries too, which is why only the
   steps actually wanted are written out below.

   It deliberately stops short of (0,2,0) so the theme's own opt-outs -
   .wildworld_page_without_top_padding, .wildworld_page_without_bottom_padding
   and .wildworld_top_padding_off - still zero the padding exactly as before. */
body .wildworld_page_content_wrapper,
body .wildworld_blog_content_wrapper {
	padding: 2.5em 0;
}

@media only screen and (min-width: 768px) {
	body .wildworld_page_content_wrapper,
	body .wildworld_blog_content_wrapper {
		padding: 3em 0;
	}
}

@media only screen and (min-width: 1200px) {
	body .wildworld_page_content_wrapper,
	body .wildworld_blog_content_wrapper {
		padding: 4em 0;
	}
}
/* --- content wrapper rhythm end --- */
