/*
 * Thames Herald – Father Thames Image Fit
 *
 * JS adds these classes only to the exact 1199×1312 artwork and the
 * existing element that is currently acting as its visible allocation.
 */

.th-father-thames-allocation {
    position: relative !important;
    overflow: hidden !important;
}

img.th-father-thames-fit {
    display: block !important;
    position: relative !important;
    inset: auto !important;

    /* Never stretch or crop the artwork. */
    object-fit: contain !important;
    object-position: 50% 50% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    /* The exact pixel dimensions are calculated by JS from the
       live allocation, so these remain unconstrained here. */
    max-width: none !important;
    max-height: none !important;

    margin: 0 auto !important;
    padding: 0 !important;
    transform: none !important;
}
