/* v0.1.11: image framing only. The approved white car stays a background
   layer behind real HTML. Do not use full-width cover: it crops the plate.
   The office picture keeps its complete 4:3 source frame. */
.bam-home-hero {
    min-height: 410px;
    background: #fff;
}
.bam-home-hero > .bam-hero-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}
.bam-home-hero .bam-hero-picture img {
    position: absolute;
    inset: auto 0 50% auto;
    width: auto;
    height: calc(100% + 80px);
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: translateY(50%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
    mask-image: linear-gradient(90deg, transparent, #000 24%);
}
.bam-home-hero::before {
    display: block;
    background: linear-gradient(90deg, #fff 0%, #ffffffed 26%,
        #ffffffb8 38%, #ffffff55 49%, #ffffff00 61%);
}
.bam-home-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 18px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(transparent, #f8fbff);
}
.bam-home-hero-inner {
    padding-top: 36px;
    padding-bottom: 42px;
}
.bam-location {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(140px, .72fr);
    align-items: stretch;
}
.bam-location-image {
    min-width: 0;
    min-height: 0;
    height: auto;
    padding: 12px;
    display: flex;
    align-items: center;
    background: #f0f6fc;
}
.bam-location-photo-link {
    display: block;
    width: 100%;
    color: #173759;
    border-radius: 10px;
}
.bam-location-photo-link picture {
    display: block;
    width: 100%;
}
.bam-location-photo-link img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    border-radius: 9px;
}
.bam-location-photo-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 10px;
    padding: 10px 2px 0;
    font-size: 12px;
    line-height: 1.4;
}
.bam-location-photo-caption > span { color: #006cbd; }
.bam-location-photo-link:hover { text-decoration: none; }
.bam-location-photo-link:hover .bam-location-photo-caption > span { text-decoration: underline; }
.bam-location-photo-link:focus-visible { outline: 3px solid #006cbd; outline-offset: 4px; }
.bam-location-details { min-width: 0; padding-inline: 16px; }
.bam-map-note { min-width: 0; grid-column: auto; margin: 14px 14px 14px 0; }
@media (min-width: 761px) and (max-width: 1120px) {
    .bam-home-hero::before {
        background: linear-gradient(90deg, #fff 0%, #fffffff5 28%,
            #ffffffba 43%, #ffffff66 57%, #ffffff00 76%);
    }
}
@media (max-width: 1120px) {
    .bam-bottom-grid { grid-template-columns: minmax(0, 1fr); }
    .bam-location { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(140px, .72fr); }
}
@media (max-width: 760px) {
    .bam-home-hero {
        --bam-mobile-scene-height: calc(100vw * 0.5625);
        display: block;
        min-height: 0;
    }
    .bam-home-hero-inner {
        padding-top: 30px;
        padding-bottom: calc(var(--bam-mobile-scene-height) + 8px);
    }
    .bam-home-hero .bam-hero-picture img {
        inset: auto 0 0;
        width: 100%;
        height: var(--bam-mobile-scene-height);
        object-fit: contain;
        object-position: center;
        transform: none;
        -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%);
        mask-image: linear-gradient(180deg, transparent, #000 15%);
    }
    .bam-home-hero::before { display: none; }
    .bam-home-hero .bam-hero-picture::after { content: none; }
    .bam-location { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
    .bam-map-note { grid-column: 1 / -1; margin: 0 12px 12px; min-height: 135px; }
}
@media (max-width: 540px) {
    .bam-location { grid-template-columns: minmax(0, 1fr); }
    .bam-location-image { min-height: 0; height: auto; }
    .bam-location-details { padding: 8px 18px; }
    .bam-map-note { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .bam-location-photo-link { transition: none; }
}
