/* Biltreff & Foto: samlet oppdatering 22.10.2026. Lastes sist.
   Kun lokal designjustering: ingen endringer i database, album eller foto. */

/* 2 + 3. Månedens bil / Siste nytt skal følge vanlig containerbredde på PC. */
@media (min-width:701px) {
  #hjem.btm-home .btm-featured-card,
  #hjem.btm-home .news-cards {width:100%;max-width:none;}
  #hjem.btm-home .btm-featured-card {
    grid-template-columns:minmax(0,1.38fr) minmax(0,1fr);
  }
  #hjem.btm-home .btm-featured-card > img {height:clamp(250px,27vw,360px);max-height:360px;}
  #hjem.btm-home .news-card-photo {width:190px;height:132px;object-fit:cover;}
}
@media (max-width:700px) {
  #hjem.btm-home .btm-featured-card {grid-template-columns:1fr;}
  #hjem.btm-home .news-card-photo {width:80px;height:76px;}
}

/* 8. Helgetreff: 1 / 2 kort sentreres; 3+ fyller raden pent. */
#hjem.btm-home .btm-weekend .community-cards {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  gap:13px;
}
#hjem.btm-home .btm-weekend .community-event-card {
  flex:0 1 calc((100% - 26px)/3);
  max-width:420px;
  min-width:0;
  width:auto;
}
@media (max-width:1100px) and (min-width:701px) {
  #hjem.btm-home .btm-weekend .community-event-card {flex-basis:calc((100% - 13px)/2);max-width:500px;}
}
@media (max-width:700px) {
  #hjem.btm-home .btm-weekend .community-event-card {flex-basis:100%;max-width:100%;}
}

/* 5 + 6. Stabilt bildeoppsett i historieartiklene. Ingen nested anchors,
   ingen reflow ved musepeker, reservebilde vises bare hvis bilde feiler. */
.amcar-hist-grid > .amcar-hist-card:hover,
.amcar-hist-grid > .amcar-hist-card:focus-visible,
.legends-grid > .legends-card:hover,
.v8-legend-grid > .v8-engine-card:hover {
  transform:none;
}
.legends-card:hover .legends-card-art img {transform:none;}
.mm-card .amcar-hist-card-image,.mm-card .mm-photo {min-width:0;}
.mm-photo {isolation:isolate;}
.mm-photo-fallback {display:none;}
.mm-photo.mm-photo-failed .mm-photo-fallback {display:flex;}
.mm-photo img[hidden] {display:none!important;}
.mm-card .mm-photo-credit {display:none;}
.mm-photo img {pointer-events:none;}
@media (prefers-reduced-motion:reduce) {
  .amcar-hist-grid > .amcar-hist-card {transition:none!important;}
}
