/* ===== BES Project Single ===== */
.bes-project-single {
    --bes-navy: #0f1c38;
    --bes-gold: #c8a84b;
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- HERO ---------- */
.bes-project-single .bes-pj-hero {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bes-navy);
}

/* ---------- BREADCRUMBS ---------- */
.bes-project-single .bes-pj-breadcrumbs-wrap {
    max-width: 1500px;
    margin: 20px auto 0;
    padding: 0 40px;
}
.bes-project-single .bes-pj-breadcrumbs {
    font-size: 13px;
    color: #999;
}
.bes-project-single .bes-pj-breadcrumbs a {
    color: #999;
    text-decoration: none;
}
.bes-project-single .bes-pj-breadcrumbs a:hover { color: var(--bes-navy); }
.bes-project-single .bes-pj-sep { margin: 0 8px; color: #ccc; }
.bes-project-single .bes-pj-breadcrumbs .current {
    color: var(--bes-navy);
    font-weight: 600;
}

/* ---------- HEADLINE + DESCRIPTION ---------- */
.bes-project-single .bes-pj-intro {
    max-width: 1500px;
    margin: 30px auto 150px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: start;
}
.bes-project-single .bes-pj-headline {
    font-family: 'The Seasons' !important;
    color: var(--bes-navy);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.35;
    text-transform: uppercase;
    margin: 0;
}
.bes-project-single .bes-pj-description p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 12px;
}

/* ---------- INTRO WITH FACTS & FIGURES (two side-by-side text blocks) ---------- */
.bes-project-single .bes-pj-intro.bes-pj-intro-has-facts {
    grid-template-columns: 1.7fr 1fr;
    gap: 80px;
}
.bes-project-single .bes-pj-intro-has-facts .bes-pj-headline {
    margin: 0 0 26px;
}
.bes-project-single .bes-pj-facts {
    padding-top: 6px;
}
.bes-project-single .bes-pj-facts-title {
    color: var(--bes-navy);
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 16px;
}
.bes-project-single .bes-pj-fact {
    color: #555;
    font-size: 13px;
    line-height: 1.75;
    margin: 0 0 4px;
}
.bes-project-single .bes-pj-fact strong {
    color: var(--bes-navy);
    font-weight: 700;
}

/* ---------- GALLERY SLIDER (fully independent from Related Projects — full-bleed) ---------- */
.bes-project-single .bes-pj-gallery {
    margin: 0 0 150px;
    overflow: hidden; /* contain the full-bleed breakout so it doesn't cause page-wide horizontal scroll */
}
.bes-project-single .bes-pj-gallery-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.bes-project-single .bes-pj-gallery-track {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.bes-project-single .bes-pj-gallery-track::-webkit-scrollbar { display: none; }
.bes-project-single .bes-pj-gallery-slide {
    flex: 0 0 auto;
    height: 460px;
}
.bes-project-single .bes-pj-gallery-slide img {
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bes-project-single button.bes-pj-gallery-arrow {
    display: block !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    border-radius:1px !important;
    background-color: rgba(255,255,255,0.9) !important;
    background-image: none !important;
    color: var(--bes-navy) !important;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}
.bes-project-single button.bes-pj-gallery-prev { left: 16px; }
.bes-project-single button.bes-pj-gallery-next { right: 16px; }
.bes-project-single button.bes-pj-gallery-arrow:hover,
.bes-project-single button.bes-pj-gallery-arrow:focus,
.bes-project-single button.bes-pj-gallery-arrow:active {
    background-color: var(--bes-navy) !important;
    color: #fff !important;
}

/* ---------- SKETCH + TITLE/DESCRIPTION ---------- */
.bes-project-single .bes-pj-sketch {
    max-width: 1500px;
    margin: 0 auto 150px;
    padding: 0 40px;
}
.bes-project-single .bes-pj-sketch.bes-pj-sketch-has-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.bes-project-single .bes-pj-sketch-image img {
    width: 100%;
    height: auto;
    display: block;
}
.bes-project-single .bes-pj-sketch-title {
    color: var(--bes-navy);
    font-size: 22px;
    font-weight: 500 !important;
    margin: 0 0 14px;
    font-family: 'FiraGO', sans-serif !important;
    text-transform: uppercase;
}
.bes-project-single .bes-pj-quote {
    color: var(--bes-navy);
}
.bes-project-single .bes-pj-quote p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 10px;
}

/* Text-only variant (no sketch image) — alignment is chosen in the admin */
.bes-project-single .bes-pj-sketch-no-image .bes-pj-sketch-text {
    max-width: 760px;
}
.bes-project-single .bes-pj-sketch-no-image.bes-pj-align-left .bes-pj-sketch-text {
    margin: 0;
    text-align: left;
}
.bes-project-single .bes-pj-sketch-no-image.bes-pj-align-center .bes-pj-sketch-text {
    margin: 0 auto;
    text-align: center;
}
.bes-project-single .bes-pj-sketch-no-image.bes-pj-align-right .bes-pj-sketch-text {
    margin: 0 0 0 auto;
    text-align: right;
}

/* ---------- RELATED PROJECTS (title + spacing only — cards/slider styles come from service-single.css) ---------- */
.bes-project-single .bes-pj-related {
    margin-bottom: 150px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .bes-project-single .bes-pj-hero { height: 260px; }
    .bes-project-single .bes-pj-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 90px; }
    .bes-project-single .bes-pj-intro.bes-pj-intro-has-facts { grid-template-columns: 1fr; gap: 30px; }
    .bes-project-single .bes-pj-gallery { margin-bottom: 90px; }
    .bes-project-single .bes-pj-sketch { margin-bottom: 90px; }
    .bes-project-single .bes-pj-sketch.bes-pj-sketch-has-image { grid-template-columns: 1fr; gap: 24px; }
    .bes-project-single .bes-pj-gallery-slide { height: 280px; }
    .bes-project-single .bes-pj-related { margin-bottom: 90px; }
}

@media (max-width: 640px) {
    .bes-project-single .bes-pj-hero { height: 200px; }

    .bes-project-single .bes-pj-breadcrumbs-wrap { padding: 0 16px; }
    .bes-project-single .bes-pj-breadcrumbs { font-size: 12px; }

    .bes-project-single .bes-pj-intro { padding: 0 16px; margin: 20px auto 60px; }
    .bes-project-single .bes-pj-headline { font-size: 20px; }
    .bes-project-single .bes-pj-description p { font-size: 13px; }

    .bes-project-single .bes-pj-gallery { margin-bottom: 60px; }
    .bes-project-single .bes-pj-gallery-slide { height: 220px; }

    .bes-project-single .bes-pj-sketch { padding: 0 16px; margin-bottom: 60px; }
    .bes-project-single .bes-pj-sketch-title { font-size: 19px; }
    .bes-project-single .bes-pj-quote p { font-size: 15px; }
    .bes-project-single .bes-pj-sketch-no-image .bes-pj-sketch-text { max-width: 100%; }

    .bes-project-single .bes-pj-related { margin-bottom: 60px; }
}
