/* RC30: approved artwork contains lettering at the top and bottom.
 * Keep that lettering visible in the six Home / Munich network slots.
 * These selectors deliberately beat legacy hover/144% crop rules in page CSS.
 * Target the network component classes so later approved Media Manager
 * replacements retain the same complete-image layout.
 */
body #valterra-home .vt-path-card__visual--international {
    --vt-network-image-zoom: 1;
}
body #valterra-home .vt-path-card__visual--international::after {
    content: none !important;
}
body #valterra-home .vt-path-card__visual--international > img.vt142-network-image,
body #valterra-home .vt-path-card__visual--international:hover > img.vt142-network-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

/* The service description stays below the bitmap, including its footer line. */
body #valterra-home .vt-service-card.vt142-service-network {
    --vt-network-image-zoom: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0 !important;
    height: auto;
    background: #0b241f;
}
body #valterra-home .vt-service-card.vt142-service-network::after {
    content: none !important;
}
body #valterra-home .vt-service-card.vt142-service-network > img.vt142-network-image,
body #valterra-home .vt-service-card.vt142-service-network:hover > img.vt142-network-image {
    display: block !important;
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    margin: 0 !important;
}
body #valterra-home .vt-service-card.vt142-service-network > .vt-service-card__content {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    width: 100%;
    background: #0b241f;
}

/* Munich: neutralise the old 144% absolute crop at every width and on hover. */
body #valterra-munich .vtm-reach__image.vt17-network-frame {
    box-sizing: border-box;
    display: block;
    align-self: center;
    width: 100%;
    height: auto !important;
    min-width: 0;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    background: #0b241f;
}
body #valterra-munich .vtm-reach__image.vt17-network-frame > img.vt17-network-image,
body #valterra-munich .vtm-reach__image.vt17-network-frame:hover > img.vt17-network-image {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* RC36 | Home DE/EN: international pathway artwork in a 4:3 card.
 * The approved source is square and contains essential top/bottom lettering.
 * Never use cover, crop, stretching or the old 116% zoom on the real image.
 * A second, softly dimmed background fill eliminates the green side bars
 * without sacrificing the lettering or distorting the eXp/map artwork.
 * The background URL is provided through wp_add_inline_style by network-media.php;
 * it follows wp_upload_dir() through the staging -> production migration.
 * Other pathway cards and Munich / service network images stay unchanged.
 */
body #valterra-home .vt-path-card__visual--international {
    isolation: isolate;
    background: #252625 !important;
}
body #valterra-home .vt-path-card__visual--international::before {
    content: "" !important;
    position: absolute;
    inset: -14px;
    z-index: 0;
    display: block;
    pointer-events: none;
    background-color: #242524;
    background-image: linear-gradient(rgba(18, 23, 21, .27), rgba(18, 23, 21, .27)), var(--vt-rc36-network-art, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(.72);
    transform: translateZ(0);
}
body #valterra-home .vt-path-card__visual--international::after {
    content: none !important;
}
body #valterra-home .vt-path-card__visual--international > img.vt142-network-image,
body #valterra-home .vt-path-card__visual--international:hover > img.vt142-network-image {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    z-index: 1;
    box-sizing: border-box;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    /* Soften only the edge transition: lettering is inside the opaque center. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
body #valterra-home .vt-path-card__visual--international > .vt-path-card__number {
    z-index: 3;
}
