/* ============================================
   REPATRIATING 38 GAMBIAN WOMEN — Shared Story Theme
   Uses the Sweden-Protests visual system
   ============================================ */

/* Keep the same page baseline as Sweden Protests */
body.story-page.project-page {
    background: #fff;
    color: var(--color-text);
}

.project-main {
    padding-bottom: 80px;
}

/* Hero focal point: center on the people in the protest image */
body.project-page .project-hero .s-hero__bg {
    object-position: center 65%;
}

/* Lower the hero text slightly */
body.project-page .project-hero .s-hero__content {
    padding-bottom: clamp(32px, 5vh, 56px);
}

/* ============================================
   ARTICLE LAYOUT BRIDGE
   The base story stylesheet expects .s-narrow wrappers.
   This page keeps semantic direct children, so we bridge spacing.
   ============================================ */
.project-content {
    padding: 0 0 12px;
}

.project-article.s-article {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

.project-article p:last-child {
    margin-bottom: 0;
}

/* ============================================
   FIGURES + GALLERIES
   ============================================ */
.project-figure.s-figure {
    margin-top: 30px;
}

/* Make the lead Action for Humanity photo smaller while keeping it centered */
.project-article > .project-figure:first-of-type {
    width: min(100%, 760px);
    margin-left: auto;
    margin-right: auto;
}

.project-gallery.fade-up {
    margin-top: 30px;
    margin-bottom: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-gallery-item {
    margin: 0;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(153, 90, 59, 0.1);
    box-shadow: 0 6px 24px rgba(23, 17, 10, 0.06);
    overflow: hidden;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-gallery-item:hover {
    box-shadow: 0 12px 36px rgba(23, 17, 10, 0.12);
    transform: translateY(-3px);
}

.project-gallery-item a {
    display: block;
    text-decoration: none;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f4f4f4;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.project-gallery-item figcaption {
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.55;
    color: #8a7a6a;
    padding: 12px 14px 14px;
    min-height: 48px;
    display: flex;
    align-items: flex-start;
}

/* National Assembly statement image — constrain width */
.project-article > .project-figure:last-of-type {
    width: min(100%, 480px);
    margin-left: auto;
    margin-right: auto;
}

.project-closing-visual.s-figure--bleed {
    max-width: 960px;
    margin: 44px auto 48px;
    padding: 0 24px;
}

.project-closing-visual.s-figure--bleed img {
    border-radius: 14px;
}

/* Keep long source URLs from overflowing in the reading list component */
.project-article .s-resources__list a span {
    overflow-wrap: anywhere;
}

/* ============================================
   CTA SECTION — matches addressing page exactly
   Overrides home.css .cta-section (bg image, overlays)
   ============================================ */
.project-article .cta-section {
    padding: 40px 0 100px 0 !important;
    min-height: auto !important;
    background-color: transparent !important;
    background-image: none !important;
    align-items: center !important;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 44px 0 0;
}

.project-article .cta-section::before,
.project-article .cta-section::after {
    display: none !important;
    content: none !important;
}

.project-article .cta-section .brxe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 56px;
    text-align: center;
    background: linear-gradient(135deg, #995A3B 0%, #BD9450 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(153, 90, 59, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-article .cta-section .brxe-heading {
    font-family: "Playfair Display", serif;
    font-weight: 900;
    font-size: clamp(44px, 5vw, 64px);
    line-height: 1.1;
    color: #fff;
    margin: 0 0 12px 0;
}

.project-article .cta-section .brxe-text p {
    font-family: "Inter", sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #fff;
    margin: 0 0 12px 0;
}

.project-article .cta-section .brxe-text p span {
    color: #fff;
}

.cta-contact-row {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.cta-contact-row .brxe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: "Inter Tight", sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    background-color: #fff;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    min-width: 180px;
}

.cta-contact-row .brxe-button:hover {
    background-color: #2d4a3e !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-buttons {
    display: flex !important;
    gap: 20px;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    margin-top: -10px;
    width: 100% !important;
    position: relative;
    left: 0 !important;
    transform: translateX(0) !important;
    text-align: center !important;
}

.cta-buttons .brxe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: "Inter", sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    background-color: #fff !important;
    color: #1a1a1a !important;
    border: none !important;
    outline: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 250px !important;
    flex: none !important;
}

.cta-buttons .brxe-button:hover {
    background-color: #E8D5B7 !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .project-gallery.fade-up {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-main {
        padding-bottom: 68px;
    }

    .project-article.s-article {
        padding: 44px 24px 0;
    }

    .project-gallery.fade-up {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-article .cta-section {
        margin: 30px 0 0;
        padding: 60px 0 !important;
    }

    .project-article .cta-section .brxe-container {
        padding: 0 20px;
    }

    .project-article .cta-section .brxe-heading {
        font-size: 32px;
    }

    .project-article .cta-section .brxe-text p {
        font-size: 16px;
    }

    .cta-contact-row {
        margin: 0 0 12px 0 !important;
        width: 100%;
    }

    .cta-contact-row .brxe-button {
        width: 100% !important;
        min-width: unset;
        margin: 0 !important;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px !important;
        margin: 0 !important;
    }

    .cta-buttons .brxe-button {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .project-article.s-article {
        padding: 36px 20px 0;
    }

    .project-article .cta-section {
        margin: 24px 0 0;
    }
}

