/* Focus adjustments only. Original image files, product views and historical
   portraits remain unchanged. Load after site.css and the native styles. */

/* Keep the trainer and the seated athlete together in the narrow hero. */
.tg-site .tg-splitimg img[src$="/variety-recovery-begeleiding.webp"] {
    object-position: 75% 50%;
}

/* The GRAVITY athlete occupies the left half of the source photograph. */
.tg-site .tg-splitimg img[src$="/gravity-hero-side.webp"] {
    object-position: 0% 50%;
}

@media (min-width: 751px) and (max-width: 1050px) {
    /* Narrow two-column heroes cannot retain the full seated GTS athlete.
       Stack at tablet widths and preserve the source proportions where possible. */
    .tg-site .tg-innerhero .tg-split {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .tg-site .tg-innerhero .tg-splitcopy {
        padding: 34px 0 30px;
    }
    .tg-site .tg-innerhero .tg-splitimg {
        min-height: 0;
        aspect-ratio: 16 / 9;
        margin: 0;
    }
    .tg-site .tg-innerhero .tg-splitimg:has(img[src$="/gravity-hero-side.webp"]) {
        aspect-ratio: 3 / 2;
    }
    .tg-site .tg-innerhero .tg-homehero-image {
        aspect-ratio: 1.55;
    }
    .tg-site .tg-homehero-image img {
        object-position: 95% 50%;
    }
    .tg-site .tg-splitimg img[src$="/variety-elevate-bovenlichaam.webp"] {
        object-position: 50% 0%;
    }
}

@media (max-width: 750px) {
    /* The mobile hero is tall, so the athlete needs a horizontal focal point. */
    .tg-site .tg-hero .tg-herobg[src$="/hero.webp"] {
        object-position: 80% 25%;
    }

    /* At 2.24:1 the two square source photos lose their faces. A taller frame
       retains heads, hands and seated posture, with the original card text. */
    .tg-site .tg-sectimg {
        aspect-ratio: 1.55;
    }
    .tg-site .tg-sectimg img {
        object-position: 50% 15%;
    }

    /* This source is already a close-up touching the top edge. */
    .tg-site .tg-splitimg img[src$="/variety-elevate-bovenlichaam.webp"] {
        object-position: 50% 0%;
    }
}

/* Only updated native photo backgrounds are addressed. The filename guard
   keeps original photos intact if the replacement script does not run. */

/* The prone body spans almost the full width, so shifting cannot preserve it. */
body.tg-restyled .fl-node-5d82392c67372 > .fl-col-content[style*="variety-elevate-press-training.webp"],
body.tg-restyled .fl-node-59ba3ac3977d7 > .fl-col-content[style*="variety-home-bovenlichaam.webp"] {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: #20231f;
}

/* Wide banners crop vertically. Keep faces near the upper edge visible. */
body.tg-restyled .fl-node-59ba3b3c280a2 > .fl-row-content-wrap[style*="variety-home-rowing.webp"],
body.tg-restyled .fl-node-5e74aa9d39fa6 > .fl-row-content-wrap[style*="variety-home-rowing.webp"] {
    background-position: 50% 10% !important;
}
body.tg-restyled .fl-node-59ba3bf5def75 > .fl-row-content-wrap[style*="fysio.webp"] {
    background-position: 70% 0% !important;
}
body.tg-restyled .fl-node-5d80d8da2af39 > .fl-row-content-wrap[style*="gravity-hero-side.webp"] {
    background-position: 25% 10% !important;
}
