/* =========================================================
   UL ARTICLE BODY — all article body styling in one place
   Applies to any Text Editor widget with the class "ul-article-body".
   Replaces: the template's Advanced > Custom CSS, and code snippets 1, 2 and 3.

   CHANGE LOG (newest first)
   ---------------------------------------------------------
   2026-10-16 (Cloud High, pm)
   - Section 4: embedded Instagram posts are capped at 540px wide (Instagram's usual
     size), aligned left. They were filling the 720px column, so each post was very tall.
   - 28px space below an embedded Instagram post (was Instagram's 12px), the same as
     between paragraphs.

   2026-10-16 (Cloud High)
   - Section 1: less space above H2/H3 headings – 1.25em instead of 2em (desktop
     H2 56px -> 35px, H3 48px -> 30px; mobile 45px -> 35px). The gap between a
     paragraph and the next heading was reading as a section break.
   - Section 4: an H2 straight after another H2 or an H3 (e.g. area label
     "BRUNSWICK STREET:" then the venue name) now sits 12px under it instead of 56px.
   - Section 4: Instagram embed leftovers (a blockquote holding "View this post on
     Instagram" / "A post shared by ..." links) sit flush left – no 40px indent – with
     the two lines 6px apart. The links are plain underlined links (the link helpers JS
     no longer makes Instagram links into buttons).

   2026-10-13 (am, 2)
   - Section 5: CTA buttons (Read More / See More / Book Now) now sit 14px under the
     paragraph above them instead of 38px (that paragraph's 28px bottom margin plus
     the button's 10px top padding), so the button reads as part of the paragraph
     rather than floating in its own space. Space below the button is unchanged.
   - Section 8: now also covers H3s followed by internal links only (e.g.
     "Want more festive goodness? Check out:") – marked .ul-yml by the JS snippet.
     No CSS rule change; comment updated.

   2026-10-13
   - Section 2: body images capped at 728px wide (same as theurbanlist.com) and
     never taller than the screen (max 640px / 80% of the window). Previously they
     filled the 954px column, so landscape photos showed at 954 x 763 and portrait
     ones at 954 x 1193 – taller than the screen. Now 728 x 582 and 512 x 640.
   - Section 8 (new): "You Might Also Like" sections. Everything under a
     "You Might Also Like" heading, up to the next H1/H2/H3, shows as plain
     underlined links with a 6px gap – not Book Now buttons. The section is
     marked .ul-yml by the companion JS snippet (UL Article Body – link helpers).

   2026-10-07
   - Section 4: tightened the gap between an H3 and an H4 straight after it
     (venue name > address) from ~31px to 6px.
   - Section 5: booking links pasted without a class ("Book Online",
     "Book A Tour" etc.) now get the Book Now button style. They are tagged
     by the companion JS snippet (ul-article-cta-tagger.js), which needs to
     be active for this to work.
   - Section 5: CTA spacing (10px above, 28px below) now applies to Book Now
     buttons as well as Find Out More / See More.
   ========================================================= */


/* ---------- 1. Body copy ----------
   Short-form editorial migration spec (2026-08-24):
   720px measure, 20px Hanken at 1.55, one face for the whole read,
   H2/H3 subheads with real air above them, H4 as a small olive label.
   Font sizes are left to the widget's own responsive typography. */

.elementor .ul-article-body p { line-height: 1.55; margin: 0 0 1.4em; }
.elementor .ul-article-body p:last-child { margin-bottom: 0; }

.elementor .ul-article-body h2,
.elementor .ul-article-body h3 { line-height: 1.2; margin: 1.25em 0 .6em; }   /* was 2em (2026-10-16) */
.elementor .ul-article-body h2:first-child,
.elementor .ul-article-body h3:first-child { margin-top: 0; }

.elementor .ul-article-body h4 {
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5A5A3F;
    margin: 1.8em 0 .35em;
}

.elementor .ul-article-body ul,
.elementor .ul-article-body ol { line-height: 1.55; margin: 0 0 1.4em; padding-left: 1.25em; }
.elementor .ul-article-body li { margin-bottom: .5em; }
.elementor .ul-article-body li:last-child { margin-bottom: 0; }

.elementor .ul-article-body figure { margin: 2.4em 0; }
.elementor .ul-article-body figure img { width: auto; max-width: 100%; height: auto; display: block; }
.elementor .ul-article-body figcaption { font-size: 14px; line-height: 1.45; margin-top: .6em; }

@media (max-width: 600px) {
    .elementor .ul-article-body h2,
    .elementor .ul-article-body h3 { font-size: 22px; margin: 1.25em 0 .5em; }   /* was 1.6em (2026-10-16) */
    .elementor .ul-article-body p,
    .elementor .ul-article-body ul,
    .elementor .ul-article-body ol { margin-bottom: 1.2em; }
}


/* ---------- 2. Images and image credits ----------
   The clean-up snippet puts each image in its own p.ul-article-image and marks
   "Image Credit: …" lines as p.ul-image-credit. Images sit flush in the column
   with no background; the credit reads as a small caption tucked under the
   image; the next heading keeps its normal space above (like the current site). */

.elementor .ul-article-body p.ul-article-image,
.elementor .ul-article-body p:has(> img) {
    display: block !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    color: inherit !important;
}

/* Show images at their own size, never stretched past it (stretching a 728px
   image to the 980px column made it fuzzy). They still shrink to fit on phones.
   2026-10-13: capped at 728px wide (as on theurbanlist.com) and never taller than
   the screen, so portrait photos don't fill more than a screen. */
.elementor .ul-article-body .ul-article-image img,
.elementor .ul-article-body p > img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    display: block;
}

/* 2026-10-27: body column 728px like theurbanlist.com, left-aligned in the article column.
   Images fill the column at their natural height, so they're all the same width and never
   stretched. Full width below 728px.
   The sidebar keeps the same gap from the body as when the body was centred; the spare space
   (half of what the content column has beyond 728px: 77px at 1440px+, 16px at 1280px, none
   at 1100px) goes to the right of the sidebar. The content column is 90% of the main column,
   which is the row minus the 300px sidebar and 80px gap, so spare = 0.45 x row - 535px. */
.elementor .ul-article-body {
    max-width: 728px !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: auto !important;
}
@media (min-width: 1025px) {
    .elementor-location-single .e-con-inner:has(> .e-con .ul-article-body) {
        container-type: inline-size;
    }
    .elementor-location-single .e-con-inner:has(> .e-con .ul-article-body) > .e-con:last-child:not(:first-child) {
        margin-right: max(0px, calc(45cqw - 535px));
    }
}

.elementor .ul-article-body p.ul-image-credit {
    display: block !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 0 1.4em !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    font-style: italic;
    color: #6B6B63 !important;
}
.elementor .ul-article-body p.ul-image-credit em { font-style: inherit; }


/* "Jump to" links: stop the heading landing under the fixed site header
   (115px header, plus a 60px bar on tablet/mobile) */
.elementor .ul-article-body [id] { scroll-margin-top: 140px; }
@media (max-width: 1024px) {
    .elementor .ul-article-body [id] { scroll-margin-top: 195px; }
}


/* ---------- 3. Lists of links: no bullets, no indent ---------- */

.elementor .ul-article-body li:has(a)::marker { content: ""; }

.elementor .ul-article-body ul:has(li a),
.elementor .ul-article-body ul:has(li a) > li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}


/* ---------- 4. Conditional spacing ---------- */

/* H2 immediately followed by another H2 or an H3 (area label > venue name) — 12px gap (2026-10-16) */
.ul-article-body h2:has(+ h2, + h3) { margin-bottom: 12px !important; }
.ul-article-body h2 + h2,
.ul-article-body h2 + h3 { margin-top: 0 !important; }

/* Instagram embed leftovers: flush left, lines close together (2026-10-16) */
.ul-article-body blockquote:has(a[href*="instagram.com"]) { margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; border: 0 !important; }
.ul-article-body blockquote:has(a[href*="instagram.com"]) > p { margin-bottom: 6px !important; }
.ul-article-body blockquote:has(a[href*="instagram.com"]) > p:last-child { margin-bottom: 0 !important; }

/* Embedded Instagram posts: 540px max, aligned left (2026-10-16) */
.ul-article-body iframe.instagram-media,
.ul-article-body blockquote.instagram-media { max-width: 540px !important; margin-left: 0 !important; margin-right: 0 !important; margin-bottom: 28px !important; }

/* H2 immediately followed by H4 — 10px gap */
.ul-article-body h2:has(+ h4) { margin-bottom: 10px !important; }
.ul-article-body h2 + h4 { margin-top: 0 !important; }

/* H3 immediately followed by H4 (venue name > address) — 6px gap.
   Without this the H4's own 1.8em top margin left ~31px. */
.ul-article-body h3:has(+ h4) { margin-bottom: 6px !important; }
.ul-article-body h3 + h4 { margin-top: 0 !important; }

/* H4 followed by at least three paragraphs — 10px gaps */
.ul-article-body h4:has(+ p + p + p) { margin-bottom: 10px !important; }
.ul-article-body h4:has(+ p + p + p) + p,
.ul-article-body h4:has(+ p + p + p) + p + p { margin-top: 0 !important; margin-bottom: 10px !important; }
.ul-article-body h4:has(+ p + p + p) + p + p + p { margin-top: 0 !important; }

/* Text straight after an image or its credit sits close; headings keep their space */
.ul-article-body p:has(> img) + p,
.ul-article-body figure:has(img) + p { margin-top: 0 !important; }


/* ---------- 5. CTA buttons (Book Now, Find Out More / See More) ----------
   Standalone links pasted without a class ("Book Online", "Book A Tour" etc.)
   are given "ul-article-cta ul-article-book-now" by the companion JS snippet
   (ul-article-cta-tagger.js), so they pick up these styles too. */

.ul-article-body a.ul-article-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;

    font-family: var(--e-global-typography-3b8d1cf-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-3b8d1cf-font-size) !important;
    font-weight: var(--e-global-typography-3b8d1cf-font-weight) !important;
    text-transform: var(--e-global-typography-3b8d1cf-text-transform) !important;
    line-height: var(--e-global-typography-3b8d1cf-line-height) !important;
    letter-spacing: var(--e-global-typography-3b8d1cf-letter-spacing) !important;

    border-style: solid !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: color 0.12s ease-out, background-color 0.12s ease-out, border-color 0.12s ease-out !important;
}

/* Book Now — matches the venue page button ("The U:L verdict" Book Now):
   #5A5A3F, hover #43432D, white text, no border, 17px 24px padding */
.ul-article-body a.ul-article-book-now {
    background-color: #5A5A3F !important;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    border-width: 0 !important;
    padding: 17px 24px !important;
}
.ul-article-body a.ul-article-book-now:hover,
.ul-article-body a.ul-article-book-now:focus {
    background-color: #43432D !important;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Find Out More Here / See More — same styling as Book Now */
.ul-article-body a.ul-article-see-more {
    background-color: #5A5A3F !important;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
    border-width: 0 !important;
    padding: 17px 24px !important;
}
.ul-article-body a.ul-article-see-more:hover,
.ul-article-body a.ul-article-see-more:focus {
    background-color: #43432D !important;
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* CTA button paragraphs (Book Now / Book Online and Find Out More / See More):
   10px above, 28px below */
.ul-article-body p:has(a.ul-article-see-more),
.ul-article-body p:has(a.ul-article-book-now) {
    padding-top: 10px !important;
    padding-bottom: 28px !important;
    margin-bottom: 0 !important;
}

/* 2026-10-13: a CTA straight after a paragraph sits 14px under it (was 38px:
   the paragraph's 28px bottom margin + the 10px above). Keeps the button with
   the text it belongs to. Headings or images before a CTA are unaffected. */
.elementor .ul-article-body p:has(+ p > a.ul-article-cta:only-child) { margin-bottom: 0 !important; }
.ul-article-body p:has(+ p > a.ul-article-cta:only-child) + p:has(> a.ul-article-cta) { padding-top: 14px !important; }


/* ---------- 6. Google ads: keep the ad frame at the ad's own size so it centres ----------
   Elementor makes every iframe width:100%, which stretched the ad frame and pushed
   the ad to the left. */
.gam-ad-slot iframe[width="970"] { width: 970px !important; }
.gam-ad-slot iframe[width="728"] { width: 728px !important; }
.gam-ad-slot iframe[width="320"] { width: 320px !important; }
.gam-ad-slot iframe[width="300"] { width: 300px !important; }
.gam-ad-slot iframe { max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; display: block !important; }


/* ---------- 7. Hero photo credit on tablet: sit on the bottom edge of the image ----------
   The widget had a fixed 605px bottom offset at tablet sizes, which only lined up at
   one width (on an iPad it floated 104px above the image). */
@media (max-width: 1024px) {
    .elementor-14779 .elementor-element.elementor-element-1472bec {
        top: auto !important;
        bottom: 0 !important;
    }
}


/* ---------- 8. Related-article links (added 2026-10-13) ----------
   The link-helpers JS marks these with .ul-yml and leaves them out of the
   Book Now button tagging:
   - everything under a "You Might Also Like" heading, up to the next H1/H2/H3;
   - under any H3, internal-link-only paragraphs/lists straight after it
     (e.g. "Want more festive goodness? Check out:").
   Show them as plain underlined links, tightly spaced.
   (Bullets/indent are already removed by section 3.) */

.elementor .ul-article-body .ul-yml { margin: 0 0 28px !important; }
.elementor .ul-article-body .ul-yml li { margin: 0 0 6px !important; padding: 0 !important; }
.elementor .ul-article-body .ul-yml li:last-child { margin-bottom: 0 !important; }
.elementor .ul-article-body .ul-yml p,
.elementor .ul-article-body p.ul-yml { margin: 0 !important; padding: 0 !important; }
.elementor .ul-article-body p.ul-yml + p.ul-yml { margin-top: 6px !important; }

.elementor .ul-article-body .ul-yml a,
.elementor .ul-article-body .ul-yml a.ul-article-cta,
.elementor .ul-article-body .ul-yml a.ul-article-book-now {
    display: inline !important;
    background: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: normal !important;
    font: inherit !important;
    color: inherit !important;
    text-transform: none !important;
    letter-spacing: inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
.elementor .ul-article-body .ul-yml a:hover,
.elementor .ul-article-body .ul-yml a:focus-visible { text-decoration-thickness: 2px !important; }
