/* =========================================================
   ECF INDIVIDUAL MINISTRY PAGE
========================================================= */

.ecf-ministry-page {
    overflow: hidden;
    background: #f7f8f3;
    color: #202817;
}

.ministry-detail-container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}


/* HERO */

.ministry-detail-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background-position: center;
    background-size: cover;
    color: white;
}

.ministry-detail-hero-content {
    width: min(850px, calc(100% - 30px));
    animation: ministryDetailHero 1s ease both;
}

.ministry-detail-hero span,
.ministry-detail-label {
    color: #b79a55;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ministry-detail-hero h1 {
    margin: 20px 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(52px, 8vw, 95px);
    line-height: .9;
}

.ministry-detail-hero p {
    max-width: 650px;
    margin: auto;
    color: rgba(255,255,255,.85);
    font-size: 17px;
    line-height: 1.8;
}


/* CONTENT */

.ministry-detail-content {
    padding: 110px 0;
    background: white;
}

.ministry-detail-intro {
    max-width: 800px;
}

.ministry-detail-intro h2,
.ministry-gallery-heading h2 {
    margin: 15px 0 20px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(45px, 6vw, 70px);
    line-height: 1;
}

.ministry-detail-line {
    width: 65px;
    height: 3px;
    background: #b79a55;
}

.ministry-description {
    max-width: 900px;
    margin-top: 50px;
}

.ministry-description p {
    margin-bottom: 22px;
    color: #68705d;
    font-size: 16px;
    line-height: 1.95;
}


/* DETAILS */

.ministry-detail-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 60px;
}

.ministry-detail-box {
    padding: 28px;
    border-left: 3px solid #526b24;
    background: #f1f3eb;
}

.ministry-detail-box span {
    display: block;
    margin-bottom: 8px;
    color: #526b24;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ministry-detail-box strong {
    font-size: 15px;
    line-height: 1.5;
}


/* GALLERY */

.ministry-gallery-section {
    padding: 110px 0;
    background: #f1f3eb;
}

.ministry-gallery-heading {
    margin-bottom: 55px;
}

.ministry-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ministry-gallery-item {
    position: relative;
    padding: 0;
    height: 300px;
    overflow: hidden;
    border: 0;
    cursor: pointer;
    background: #ddd;
}

.ministry-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.ministry-gallery-item:hover img {
    transform: scale(1.08);
}

.ministry-gallery-item > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,15,5,.35);
    opacity: 0;
    transition: opacity .3s ease;
}

.ministry-gallery-item:hover > span {
    opacity: 1;
}

.ministry-gallery-item i {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: #526b24;
}


/* CTA */

.ministry-detail-cta {
    padding: 110px 20px;
    text-align: center;
    background: #526b24;
    color: white;
}

.ministry-detail-cta span {
    color: #d3bc7d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
}

.ministry-detail-cta h2 {
    margin: 15px 0 30px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(48px, 7vw, 80px);
}

.ministry-detail-cta a {
    display: inline-flex;
    gap: 15px;
    padding: 15px 25px;
    background: white;
    color: #101704;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}


/* LIGHTBOX */

.ministry-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0,0,0,.92);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.ministry-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.ministry-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: 0;
    background: rgba(255,255,255,.12);
    color: white;

    font-size: 35px;
    line-height: 1;

    cursor: pointer;
}


/* REVEAL */

.ministry-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s ease,
        transform .8s ease;
}

.ministry-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


@keyframes ministryDetailHero {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* TABLET */

@media (max-width: 850px) {

    .ministry-detail-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .ministry-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* MOBILE */

@media (max-width: 600px) {

    .ministry-detail-container {
        width: calc(100% - 28px);
    }

    .ministry-detail-hero {
        min-height: 500px;
    }

    .ministry-detail-hero h1 {
        font-size: 52px;
    }

    .ministry-detail-content,
    .ministry-gallery-section {
        padding: 75px 0;
    }

    .ministry-detail-boxes,
    .ministry-gallery {
        grid-template-columns: 1fr;
    }

    .ministry-gallery-item {
        height: 280px;
    }

    .ministry-detail-cta {
        padding: 80px 20px;
    }

}