/* Ajustement photographique local : hauteur -23 %, sans toucher aux animations. */
.vbt-service-card .wp-block-image{height:254px!important;min-height:0!important}
.vbt-service-card .wp-block-image img{width:100%;height:100%;object-fit:cover;object-position:50% 56%}
.vbt-service-card:nth-child(2) img{object-position:50% 62%}
.vbt-service-card:nth-child(3) img{object-position:50% 100%}
.vbt-service-card:nth-child(5) img{object-position:50% 72%}
.vbt-service-card:nth-child(4) img,.vbt-service-card:nth-child(6) img{object-position:50% 50%}
.vbt-service-card:first-child,.vbt-service-card:last-child{min-height:338px}
.vbt-service-card:first-child .wp-block-image,.vbt-service-card:last-child .wp-block-image{position:relative;height:auto!important;min-height:0!important;aspect-ratio:auto!important;align-self:stretch}
.vbt-service-card:first-child .wp-block-image img,.vbt-service-card:last-child .wp-block-image img{position:absolute;inset:0;width:100%;height:100%}
.vbt-service-card:first-child img{object-position:50% 45%}
.vbt-service-card .vbt-card-body{padding:26px 30px 30px!important}
.vbt-service-card:first-child .vbt-card-body,.vbt-service-card:last-child .vbt-card-body{padding:28px!important}
.vbt-service-card:first-child .vbt-card-link,.vbt-service-card:last-child .vbt-card-link{grid-row:1;align-self:center;margin-top:0!important}
.vbt-service-card:first-child .vbt-service-code,.vbt-service-card:last-child .vbt-service-code{grid-column:1!important;align-self:center}
.vbt-page-hero-visual{height:clamp(320px,28vw,420px)!important;min-height:0!important;align-self:center!important}
.vbt-page-hero-visual figure{height:100%;margin:0!important}
.vbt-page-hero-visual img{width:100%;height:100%;object-fit:cover;object-position:50% 55%}
.vbt-realisation-card figure{height:277px!important}
.vbt-realisation-card img{object-fit:cover;object-position:center}
/* Cadres adaptés aux portails complets : éviter la bande panoramique qui
   tronquait les vantaux et les motorisations sur la page Réalisations. */
body.sec-realisations .vbt-realisation-card figure{height:auto!important;aspect-ratio:1.85}
body.sec-realisations .vbt-realisation-card img{width:100%;height:100%;object-position:50% 42%}
body.sec-realisations .vbt-realisation-card img[src*="IMG_3035"]{object-position:50% 59%}
body.sec-realisations .vbt-realisation-card img[src*="IMG_3328"]{object-position:50% 40%}
@media(max-width:1100px) and (min-width:782px){
 .vbt-service-card:first-child .vbt-card-body,.vbt-service-card:last-child .vbt-card-body{padding:24px!important}
 .vbt-page-hero-visual{height:340px!important}
}
@media(max-width:781px){
 .vbt-service-card:first-child,.vbt-service-card:last-child{min-height:0}
 .vbt-service-card .wp-block-image,.vbt-service-card:first-child .wp-block-image,.vbt-service-card:last-child .wp-block-image{height:192px!important;min-height:0!important}
 .vbt-service-card:first-child .wp-block-image img,.vbt-service-card:last-child .wp-block-image img{position:static}
 .vbt-service-card .vbt-card-body,.vbt-service-card:first-child .vbt-card-body,.vbt-service-card:last-child .vbt-card-body{padding:24px!important}
 .vbt-page-hero-visual{height:231px!important;min-height:0!important}
 .vbt-realisation-card figure{height:200px!important}
 body.sec-realisations .vbt-realisation-card figure{height:auto!important;aspect-ratio:1.65}
 .vbt-hero-visual{min-height:277px!important}
}
