/* Photos from the children's ministry: keep faces visible at every screen size. */
.hero-slider {
    height: clamp(560px, calc(100svh - 84px), 960px);
    min-height: 0;
    background: #141a27;
}

.hero-slider .slider-container {
    height: 100%;
    min-height: 0;
}

.hero-slider .slide {
    position: absolute;
    height: 100%;
    min-height: 0;
    align-items: flex-end;
    pointer-events: none;
}

.hero-slider .slide.active {
    z-index: 1;
    pointer-events: auto;
}

.hero-slider .hero-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-slider .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.hero-slider .slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(20, 26, 39, .22) 60%, rgba(20, 26, 39, .9));
    pointer-events: none;
}

.hero-slider .slide-content {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 850px;
    min-height: 0;
    padding: 2rem 2rem 5rem;
}

.hero-slider .hero-caption {
    padding: 0;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.hero-slider .hero-caption h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.35;
    margin-bottom: .65rem;
    color: #fff;
}

.hero-slider .hero-caption p {
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: #fff;
}

.hero-slider .hero-actions .btn {
    padding: .75rem 1.65rem;
    font-size: 1rem;
    text-shadow: none;
}

.hero-slider .hero-actions .btn-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, .8);
}

.hero-slider .slider-btn,
.hero-slider .slider-dots {
    z-index: 3;
}

.hero-slider .slider-btn {
    color: #fff;
}

[dir="ltr"] .hero-slider .slider-btn i {
    transform: scaleX(-1);
}

.hero-slider .slider-dot.active {
    background: #fff;
}

.children-services .service-image img {
    height: auto;
    aspect-ratio: 3 / 2;
    object-position: center;
}

.children-card-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.children-gallery {
    padding: 0 0 4rem;
}

.children-photo-grid {
    columns: 3;
    column-gap: 1.25rem;
}

.children-photo-grid figure {
    margin: 0 0 1.25rem;
    break-inside: avoid;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface-alt);
}

.children-photo-grid img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero-slider {
        height: calc(66.6667vw + 280px);
        min-height: 0;
    }

    .hero-slider .hero-photo {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .hero-slider .hero-photo img {
        object-fit: contain;
    }

    .hero-slider .slide::before {
        height: calc(66.6667vw + 1px);
        background: linear-gradient(180deg, transparent 65%, #141a27);
    }

    .hero-slider .slide-content {
        padding: 0 1.5rem 4rem;
    }

    .hero-slider .hero-caption h1 {
        font-size: 1.85rem;
    }

    .hero-slider .hero-caption p {
        font-size: 1rem;
    }

    .hero-slider .hero-actions {
        gap: .75rem;
    }

    .hero-slider .hero-actions .btn {
        padding: .7rem 1.25rem;
    }

    .hero-slider .slider-btn {
        top: 33.3333vw;
    }

    .hero-slider .slider-dots {
        bottom: 1.5rem;
    }

    .children-photo-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .children-photo-grid {
        columns: 1;
    }
}
