.image-text-section {
    position: relative;
    display: grid;
    place-items: center;
    width: calc(100% - 1rem);
    min-height: 40lvh;
    height: clamp(25vh, 60vh, 80vw);
    margin: 3rem auto;
    overflow: visible;
    text-align: center;
    view-timeline-name: --image-section;
    view-timeline-axis: block;


    img {
        transform: scale(1);
        transform-origin: center;
        will-change: transform;

        animation: image-scale linear both;
        animation-timeline: --image-section;
        animation-range: entry 20% exit 80%;

        position: absolute;

        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(.8);
        border-radius: var(--border-radius-s);
        transition: transform 120ms ease;
    }


    p {
        position: relative;
        z-index: 1;
        max-width: 52rem;
        margin: 0;
        padding: 1rem;
        font-family: var(--font-serif), serif;
        font-size: var(--font-size-image);
        font-weight: 500;
        line-height: 1.18;
        color: white;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 1);
    }
}

@keyframes image-scale {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}