/* Original media dimensions, with the existing True Canadian Mortgages layout. */
.reference-image {display:block;max-width:100%;height:auto}
.home-3d .reference-media-slot {overflow:hidden;min-width:0}
.home-3d .reference-media-slot > lottie-player {display:block;width:100%;max-width:620px;margin:auto;min-height:220px}
.home-3d .reference-media-slot > .rive-animation {position:relative;width:100%;aspect-ratio:1;min-height:240px;overflow:hidden}
.home-3d .reference-media-slot .rive-canvas {display:block!important;position:absolute!important;inset:0;width:100%!important;height:100%!important;transform:none!important}
.home-3d .reference-media-slot > img {width:100%;height:auto;object-fit:contain;filter:none;transform:none}
.home-3d .reference-media-slot lottie-player svg {display:block;width:100%!important;height:100%!important;overflow:visible}
.home-3d .reference-media-slot .tnm-calculator-holder svg {display:block;max-width:100%;height:auto}
.home-3d .agent-cta__photo-wrapper > img.reference-image {display:block;width:100%;height:auto;max-width:400px;object-fit:contain;margin:auto}
.home-3d #image-with-text-1106 .text-with-image--full__background-image {min-height:420px;background-size:cover!important;background-position:center!important;padding:0}
.home-3d .section-cards__image > img.reference-image {width:100%;height:100%;object-fit:cover;filter:none}
.home-3d .reference-about-art {padding:0!important;display:block;overflow:hidden;background:#fff;aspect-ratio:1.9;height:auto!important}
.home-3d .reference-about-art > img {display:block;width:100%;height:100%;object-fit:cover;transform:none;filter:none;border-radius:0}
.sol-page .sol-art {animation:none;background:#fff}
.sol-page .sol-art > img.reference-image {width:100%;height:auto;max-height:100%;object-fit:contain}
.sol-page .sol-copy-illustration > img.reference-image {display:block;width:100%;height:auto;max-height:360px;object-fit:contain}
.sol-page .reference-animation-slot {padding:10px;background:#fff;overflow:hidden}
.sol-page .reference-animation-slot lottie-player {display:block;width:100%;height:auto;min-height:240px}
.sol-page .sol-video-frame {display:block;position:relative;width:100%;height:auto;min-height:0;aspect-ratio:16/9;background:#111;overflow:hidden;padding:0}
.sol-page .sol-video-frame iframe {display:block;position:absolute;inset:0;width:100%;height:100%;border:0}
.reference-resource-grid,.reference-location-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:28px}
.reference-resource-card,.reference-location-card {margin:0;min-width:0;border-radius:20px;background:#fff;border:1px solid #e6e7e7;overflow:hidden;box-shadow:0 12px 30px #243c3b0c}
.reference-resource-card img {width:100%;aspect-ratio:1.9;object-fit:cover}
.reference-resource-card figcaption,.reference-location-card figcaption {padding:18px 20px;font-size:17px;font-weight:700;line-height:1.4;color:#303a3c}
.reference-location-card {display:flex;flex-direction:column}
.reference-location-card img {width:100%;height:220px;order:-1;object-fit:cover;background:#f6f7f7;image-rendering:auto}
.reference-location-link {display:inline-block;margin-inline-start:18px}
@media(max-width:900px){.reference-resource-grid,.reference-location-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.reference-resource-grid,.reference-location-grid {grid-template-columns:1fr;gap:20px}.home-3d #image-with-text-1106 .text-with-image--full__background-image {min-height:290px}.home-3d .reference-media-slot {padding:14px}.reference-location-card img {height:auto;aspect-ratio:1.5}.sol-page .sol-art {aspect-ratio:1.5}.reference-resource-card figcaption {font-size:16px}}

.home-3d .nav-main > li.reference-locations-nav > a {font-family:inherit;color:#163440;font-size:13px;font-weight:800;text-transform:uppercase;text-decoration:none}
.home-3d .agent-cta__text-wrapper {background:transparent!important}
.home-3d .agent-cta__text-wrapper h2,.home-3d .agent-cta__text-wrapper p {color:#fff!important;background:transparent!important}

.home-3d .reference-media-slot,.home-3d .reference-media-slot .rive-animation {transform:none!important;transform-style:flat!important;perspective:none!important}

.home-3d .reference-media-slot .rive-canvas {position:relative!important;inset:auto!important;height:auto!important;aspect-ratio:1}

.home-3d .reference-rive-frame{display:block;width:100%;height:100%;position:absolute;inset:0;border:0;background:transparent}
