/*
 * Project detail (single-project.php) styles.
 * Scoped to .pl-pd root; enqueued only on is_singular('project').
 *
 * Hand-ported from mockups/project-detail/index.html (Tailwind).
 * Brand tokens mirror the spectrum palette + bone backgrounds.
 */

.pl-pd {
    --pl-teal:        #40A3A1;
    --pl-teal-dark:   #2d7a78;
    --pl-ember:       #D16D32;
    --pl-ember-dark:  #b85d2a;
    --pl-orange:      #D16D32;
    --pl-bone-50:     #fbfaf6;
    --pl-bone-100:    #f5f2ea;
    --pl-neutral-50:  #f6f6f5;
    --pl-neutral-100: #e5e5e3;
    --pl-neutral-300: #c9c9c5;
    --pl-neutral-400: #9d9d9b;
    --pl-neutral-500: #757572;
    --pl-neutral-600: #616160;
    --pl-neutral-700: #4a4a48;
    --pl-neutral-800: #2b2b2a;
    --pl-neutral-900: #1a1a1a;

    background: var(--pl-bone-50);
    color: var(--pl-neutral-900);
    font-family: 'Cabin', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pl-pd a { color: inherit; }

/* ---------- Layout containers ---------- */
.pl-pd-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}
.pl-pd-container-wide   { max-width: 1152px; }
.pl-pd-container-narrow { max-width: 1024px; }

/* ---------- Breadcrumb ---------- */
.pl-pd-breadcrumb {
    background: var(--pl-bone-50);
    border-bottom: 1px solid var(--pl-neutral-100);
    font-size: 12px;
    color: var(--pl-neutral-600);
}
.pl-pd-breadcrumb .pl-pd-container {
    padding-top: 12px;
    padding-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.pl-pd-breadcrumb a { transition: color 0.15s ease; text-decoration: none; }
.pl-pd-breadcrumb a:hover { color: var(--pl-teal); }
.pl-pd-breadcrumb-sep { opacity: 0.4; }
.pl-pd-breadcrumb-current { color: var(--pl-neutral-900); font-weight: 500; }

/* ---------- Hero ---------- */
.pl-pd-hero {
    background: var(--pl-bone-50);
    padding: 48px 0 24px;
}
@media (min-width: 1024px) { .pl-pd-hero { padding: 64px 0 24px; } }

.pl-pd-hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pl-teal);
    font-weight: 600;
}
/* location stays teal like the rest of the eyebrow (whole row one colour) */
.pl-pd-dot { opacity: 0.4; }

.pl-pd-hero-title {
    margin-top: 16px;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.05;
    font-size: 36px;
    color: var(--pl-neutral-900);
}
@media (min-width: 640px)  { .pl-pd-hero-title { font-size: 48px; } }
@media (min-width: 1024px) { .pl-pd-hero-title { font-size: 60px; } }

.pl-pd-hero-summary {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 20px;
    line-height: 1.6;
    color: var(--pl-neutral-600);
    max-width: 768px;
}

/* ---------- Cover ---------- */
.pl-pd-cover-section {
    background: var(--pl-bone-50);
    padding-bottom: 0;
}
.pl-pd-cover {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--pl-neutral-900);
    border: 1px solid var(--pl-neutral-100);
    aspect-ratio: 16 / 9;
}
.pl-pd-cover-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Stat strip ---------- */
/* Flex-wrap (not grid) so a 2-3 tile row centers under the cover image
   instead of leaving empty grid tracks on the right (logo-strip pattern). */
.pl-pd-stats {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.pl-pd-stat { width: calc((100% - 16px) / 2); }
@media (min-width: 768px) { .pl-pd-stat { width: calc((100% - 48px) / 4); } }

.pl-pd-stat {
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    border-radius: 2px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.pl-pd-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--pl-teal);
    line-height: 1.1;
}
.pl-pd-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pl-neutral-600);
}

/* ---------- Body + sidebar ---------- */
.pl-pd-body { padding: 48px 0 64px; background: var(--pl-bone-50); }

.pl-pd-body-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 1024px) {
    .pl-pd-body-grid {
        grid-template-columns: 8fr 4fr;
        gap: 40px;
    }
}

.pl-pd-main > * + * { margin-top: 40px; }

.pl-pd-section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--pl-neutral-900);
    line-height: 1.25;
}
.pl-pd-section-body {
    margin-top: 0;
    color: var(--pl-neutral-600);
    font-size: 18px;
    line-height: 1.6;
}
/* only indent the body when a section heading sits above it, so a
   heading-less first section top-aligns with the sidebar card */
.pl-pd-section-title + .pl-pd-section-body { margin-top: 12px; }
.pl-pd-section-body p { margin: 0 0 16px; }
.pl-pd-section-body p:last-child { margin-bottom: 0; }
.pl-pd-section-body strong { color: var(--pl-neutral-900); }

/* Migrated / WYSIWYG headings inside a body section inherit the grey body
   colour by default (the body column sets color: --pl-neutral-600). Force
   them to near-black so they read as headings, matching the template-generated
   .pl-pd-section-title. Scoped to the body column only. */
.pl-pd-section-body h2,
.pl-pd-section-body h3,
.pl-pd-section-body h4,
.pl-pd-section-body h5,
.pl-pd-section-body h6 {
    color: var(--pl-neutral-900);
}

/* WYSIWYG <blockquote> in the body = pull-quote callout. Caelin drops a
   blockquote in the body editor and it renders as a highlighted teal-bordered
   callout (matching the sidebar .pl-pd-quote-card treatment), not plain
   indented grey text. Without this, migrated/customer quotes like GroHere's
   testimonial blended into the body paragraph. Teal not ember: teal is the
   primary content/structural accent; ember is reserved for hover states.
   Scoped to the body column so it never leaks elsewhere. */
.pl-pd-section-body blockquote {
    margin: 28px 0;
    padding: 8px 0 8px 24px;
    border-left: 4px solid var(--pl-teal);
}
.pl-pd-section-body blockquote > p {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--pl-neutral-900);
}
.pl-pd-section-body blockquote > p + p {
    margin-top: 12px;
}

/* Editorial links inside the body. The root `.pl-pd a { color: inherit }`
   rule (set so CTA buttons keep their own colours) was also silencing every
   migrated in-body link — 94 real links across 28 projects rendered as plain
   grey text with no underline. Scope the visible-link treatment to
   .pl-pd-section-body so it hits editorial copy but leaves the inline CTA,
   sidebar card, and related-card links (which live outside the body) on their
   own styling. Teal to match the article template canon. */
.pl-pd-section-body a[href]:not(.pl-pd-inlinecta-btn) {
    color: var(--pl-teal);
    text-decoration: none;
    transition: color 0.15s ease;
}
.pl-pd-section-body a[href]:not(.pl-pd-inlinecta-btn):hover {
    color: var(--pl-teal-dark);
}

.pl-pd-outcomes {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    color: var(--pl-neutral-600);
    font-size: 18px;
    line-height: 1.6;
}
.pl-pd-outcomes li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.pl-pd-outcomes li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.6em;
    width: 6px; height: 6px;
    background: var(--pl-teal);
    border-radius: 50%;
}
.pl-pd-outcomes strong { color: var(--pl-neutral-900); font-weight: 600; }
.pl-pd-section-footnote {
    margin: 16px 0 0;
    color: var(--pl-neutral-600);
    font-size: 18px;
    line-height: 1.6;
}

.pl-pd-quote {
    margin: 0;
    border-left: 4px solid var(--pl-teal);
    padding: 8px 0 8px 24px;
}
.pl-pd-quote-text {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: var(--pl-neutral-900);
    line-height: 1.35;
}
.pl-pd-quote-text::before { content: '"'; }
.pl-pd-quote-text::after  { content: '"'; }
.pl-pd-quote-attr {
    margin-top: 16px;
    font-size: 14px;
    color: var(--pl-neutral-600);
}

/* ---------- "Considering an LED retrofit?" CTA boxes ----------
   Shared recipe (07-15 call): project cover image bg + teal-cast overlay
   (static — no flat black, no shimmer), enlarged headline, smaller sub,
   Request a Light Plan as a real button. Two instances: mid-article
   (.pl-pd-inlinecta) + sidebar card (.pl-pd-card-cta). */
.pl-pd-boxcta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(15,42,44,0.92), rgba(15,42,44,0.62));
    z-index: -1;
}

/* Mid-article instance (inside the article column) */
.pl-pd-inlinecta {
    position: relative;
    margin: 36px 0;
    padding: 36px 32px;
    border-radius: 0;
    background: var(--pl-neutral-800);
    overflow: hidden;
    isolation: isolate;
}
.pl-pd-inlinecta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pl-boxcta-bg);
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.pl-pd-inlinecta-content { position: relative; }
.pl-pd-inlinecta-heading {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.pl-pd-inlinecta-sub {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}
.pl-pd-inlinecta-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
/* `.pl-pd a { color: inherit }` (0,1,1) beats a bare button class, so scope
   the button colours under .pl-pd-inlinecta (0,2,0) to keep the label white. */
.pl-pd-inlinecta .pl-pd-inlinecta-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pl-pd-inlinecta .pl-pd-inlinecta-btn-primary {
    background: var(--pl-teal);
    color: #fff;
    border: 1px solid var(--pl-teal);
}
.pl-pd-inlinecta .pl-pd-inlinecta-btn-primary:hover {
    background: var(--pl-ember-dark);
    border-color: var(--pl-ember-dark);
    color: #fff;
}
.pl-pd-inlinecta .pl-pd-inlinecta-btn-ghost {
    background: rgba(0,0,0,0);
    border: 1px solid rgba(255,255,255,0.55);
    color: #fff;
}
.pl-pd-inlinecta .pl-pd-inlinecta-btn-ghost:hover {
    background: rgba(0,0,0,0);
    border-color: #fff;
    color: #fff;
}

/* ---------- Customer quote card (sidebar) ---------- */
.pl-pd-quote-card {
    border-left: 3px solid var(--pl-teal);
}
.pl-pd-quote-card-text {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--pl-neutral-900);
}
.pl-pd-quote-card-text::before { content: '\201C'; }
.pl-pd-quote-card-text::after  { content: '\201D'; }
.pl-pd-quote-card-attr {
    margin-top: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pl-neutral-600);
    font-weight: 600;
}

/* ---------- Sidebar ---------- */
/* The column itself flows with the page (a long Project Details card on,
   e.g., B&G would clip if the whole aside were pinned). Only the LED-retrofit
   CTA card is sticky: once the reader scrolls past the info cards it follows
   them down the article (07-15 call). Requires the aside to stretch to the
   grid row height so the card has travel room — so no align-self: start. */
.pl-pd-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
@media (min-width: 1024px) {
    .pl-pd-aside .pl-pd-card-cta {
        position: sticky;
        top: 112px; /* 80px fixed header + 32px gap */
    }
    /* Logged-in: the 32px WP admin bar pushes the header down with it */
    .admin-bar .pl-pd-aside .pl-pd-card-cta {
        top: 144px;
    }
}

.pl-pd-card {
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    border-radius: 2px;
    padding: 24px;
}
/* Sidebar instance of the LED-retrofit CTA (shares .pl-pd-boxcta-overlay) */
.pl-pd-card-cta {
    position: relative;
    padding: 28px 24px;
    border: 0;
    background: var(--pl-neutral-800);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.pl-pd-card-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pl-boxcta-bg);
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.pl-pd-card-cta-content { position: relative; }
.pl-pd-card-cta-headline {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.pl-pd-card-cta-sub {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}
/* Scoped under .pl-pd-card-cta (0,2,0) so `.pl-pd a { color: inherit }`
   can't override the white label (same trick as the inline CTA buttons). */
.pl-pd-card-cta .pl-pd-card-cta-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    background: var(--pl-teal);
    color: #fff;
    border: 1px solid var(--pl-teal);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.pl-pd-card-cta .pl-pd-card-cta-btn:hover {
    background: var(--pl-ember-dark);
    border-color: var(--pl-ember-dark);
    color: #fff;
}

.pl-pd-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}
.pl-pd-eyebrow-teal  { color: var(--pl-teal); }
.pl-pd-eyebrow-muted { color: var(--pl-neutral-600); }

.pl-pd-fixtures {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pl-pd-fixture-link { text-decoration: none; display: block; transition: color 0.15s ease; }
.pl-pd-fixture-link:hover { color: var(--pl-teal); }
.pl-pd-fixture-name {
    display: block;
    font-weight: 600;
    color: var(--pl-neutral-900);
}
.pl-pd-fixture-role {
    display: block;
    font-size: 14px;
    color: var(--pl-neutral-600);
    margin-top: 2px;
}
.pl-pd-fixture-legacy { opacity: 0.7; }

.pl-pd-fixtures-spectrum {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pl-neutral-100);
}
.pl-pd-fixtures-spectrum-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pl-neutral-900);
}

.pl-pd-details {
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
}
.pl-pd-details-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.pl-pd-details-row dt { color: var(--pl-neutral-600); margin: 0; }
.pl-pd-details-row dd { font-weight: 600; color: var(--pl-neutral-900); margin: 0; text-align: right; }

/* ---------- Gallery ---------- */
.pl-pd-gallery-section { padding: 64px 0; background: var(--pl-bone-100); }
.pl-pd-gallery-title {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--pl-neutral-900);
}

.pl-pd-gallery {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px)  { .pl-pd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pl-pd-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pl-pd-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 0;
    border-radius: 2px;
    overflow: hidden;
    background: var(--pl-neutral-800);
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pl-pd-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-pd-tile:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(26,26,26,0.25); }

.pl-pd-tile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pl-neutral-400);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    text-align: center;
    padding: 16px;
}
.pl-pd-tile-placeholder:hover { transform: none; box-shadow: none; }

/* ---------- Related ---------- */
.pl-pd-related-section { padding: 64px 0; background: var(--pl-bone-50); }
.pl-pd-related-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.pl-pd-related-title {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--pl-neutral-900);
}
/* Section-scoped so the selector beats the kit's global `a` color
   (bare anchors inherit the kit link color at higher specificity). */
.pl-pd-related-section .pl-pd-related-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--pl-teal);
    text-decoration: none;
    transition: color 0.15s ease;
}
.pl-pd-related-section .pl-pd-related-all:hover { color: var(--pl-teal-dark); }

.pl-pd-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px)  { .pl-pd-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pl-pd-related-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pl-pd-related-card:hover { border-color: var(--pl-teal); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }

.pl-pd-related-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pl-neutral-800);
}
.pl-pd-related-cover img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.pl-pd-related-card:hover .pl-pd-related-cover img { transform: scale(1.05); }

.pl-pd-related-body { padding: 20px; }
.pl-pd-related-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pl-teal);
    font-weight: 600;
}
.pl-pd-related-name {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--pl-neutral-900);
    transition: color 0.15s ease;
}
.pl-pd-related-card:hover .pl-pd-related-name { color: var(--pl-teal); }
.pl-pd-related-sub {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--pl-neutral-600);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.pl-pd-related-cta {
    margin-top: 16px;
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--pl-teal);
    transition: color 0.15s ease;
}
.pl-pd-related-card:hover .pl-pd-related-cta { color: var(--pl-teal-dark); }

/* ---------- CTA ---------- */
.pl-pd-cta-section {
    position: relative;
    padding: 80px 0;
    background: var(--pl-neutral-800);
    color: var(--pl-bone-50);
    overflow: hidden;
    isolation: isolate;
}
.pl-pd-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pl-cta-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -2;
}
.pl-pd-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.8), rgba(26,26,26,0.3));
    z-index: -1;
}
.pl-pd-cta-content {
    position: relative;
    max-width: 1024px;
    text-align: center;
}
.pl-pd-cta-heading {
    margin: 0 auto;
    max-width: none;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pl-bone-50);
}
/* 32px matches the Elementor callout band; fits the standard headline on one line at desktop */
@media (min-width: 640px) { .pl-pd-cta-heading { font-size: 32px; } }

.pl-pd-cta-sub {
    margin: 16px auto 0;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(245,242,234,0.8);
    text-wrap: balance;
}

.pl-pd-cta-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.pl-pd-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.15s ease, color 0.15s ease;
}
.pl-pd-cta-btn-primary {
    background: var(--pl-teal);
    color: #fff;
}
.pl-pd-cta-btn-primary:hover { background: var(--pl-ember-dark); }

.pl-pd-cta-btn-ghost {
    background: rgba(0,0,0,0);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--pl-bone-50);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pl-pd-cta-btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}

/* ---------- Reveal animation ---------- */
.pl-pd-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.2,0.7,0.3,1),
                transform 0.7s cubic-bezier(0.2,0.7,0.3,1);
    transition-delay: var(--reveal-delay, 0ms);
}
.pl-pd-reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .pl-pd-reveal, .pl-pd-reveal.is-visible {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Migrated body images render full-column and stacked, never floated half-
   width (legacy [caption] shortcodes carried alignleft/aligncenter + fixed
   pixel widths, so some sat as small side-by-side thumbnails). Caelin:
   full-column images are more impactful than the small 2-col thumbnails. */
.pl-pd-section-body figure,
.pl-pd-section-body .wp-caption,
.pl-pd-section-body img {
    float: none !important;
    clear: both;
    display: block;
    height: auto !important;
    max-width: 100% !important;
    margin: 28px auto;
}
.pl-pd-section-body figure,
.pl-pd-section-body .wp-caption {
    width: 100% !important;
    border-radius: 2px;
}
.pl-pd-section-body img {
    width: 100% !important;
    border-radius: 2px;
    cursor: zoom-in;
}
.pl-pd-section-body figcaption,
.pl-pd-section-body .wp-caption-text {
    font-size: 14px;
    color: var(--pl-neutral-600);
    text-align: center;
    margin-top: 8px;
}
.pl-pd-section-body { overflow-wrap: break-word; }

/* Legacy pseudo-captions: migrated content (e.g. GroHere) uses right-aligned
   italic <p> blocks sitting under bare <img> tags as captions, instead of
   semantic <figure>/<figcaption>. The inline style="text-align: right" keeps
   them right-aligned; override to center so they read as captions under the
   now full-width images. !important beats the inline style. */
.pl-pd-section-body p[style*="text-align: right"],
.pl-pd-section-body p[style*="text-align:right"] {
    text-align: center !important;
}

/* Legacy content laid images out in multi-column <table>s, which forced them
   into small side-by-side thumbnails. Stack any image-bearing table to full
   column width (one image per row). :has() scopes this to image tables only,
   so genuine data tables keep their normal table layout. */
.pl-pd-section-body table:has(img),
.pl-pd-section-body table:has(img) > tbody,
.pl-pd-section-body table:has(img) > tbody > tr {
    display: block !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
}
.pl-pd-section-body table:has(img) > tbody > tr > td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    vertical-align: top;
}

/* ---------- Lightbox (gallery tiles + body images) ---------- */
.pl-pd-tile { cursor: zoom-in; }
.pl-pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(15, 15, 14, 0.92);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.pl-pd-lightbox.is-open { opacity: 1; }
.pl-pd-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    box-shadow: 0 24px 60px -12px rgba(0,0,0,0.6);
}
.pl-pd-lightbox-fig {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.pl-pd-lightbox-cap {
    color: rgba(245, 242, 234, 0.85);
    font-size: 14px;
    text-align: center;
    max-width: 720px;
}
.pl-pd-lightbox-btn {
    position: absolute;
    background: rgba(0,0,0,0);
    border: none;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 12px;
    font-size: 28px;
    opacity: 0.8;
    transition: opacity 0.15s ease, color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}
/* Hello Elementor's reset.css paints bare <button> hover/focus pink (#CC3366)
   with a white fill; out-specify it so the arrows stay transparent + on-brand. */
.pl-pd-lightbox-btn:hover,
.pl-pd-lightbox-btn:focus,
.pl-pd-lightbox-btn:active {
    background: rgba(0,0,0,0);
    border: none;
    box-shadow: none;
    color: var(--pl-teal);
    opacity: 1;
}
.pl-pd-lightbox-close { top: 12px; right: 16px; font-size: 36px; }
.pl-pd-lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.pl-pd-lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 44px; }
.pl-pd-lightbox-nav-hidden { display: none; }

/* CSS Grid items default to min-width: auto (= min-content), which makes
   them as wide as their widest unbreakable child. Oversized migrated
   figures were blowing the .pl-pd-main column past the grid track. */
.pl-pd-body-grid > * { min-width: 0; }
