/* Tour and service photos keep their intrinsic proportions. */
.tour-img{position:relative;display:block;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;background:none!important;padding:0!important;line-height:0;align-self:start;border:0;box-shadow:none}
.tour-img>img,.tour-card img,.card img,.bt-gallery img,.bt-card-img img,.gallery-slide img,.roots-gallery img,.gallery img,.g-card img,.exp-img img,.service-photo,.hero-figure img,#book img,#transfers img,.journey img,.modal img{display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:fill!important;aspect-ratio:auto!important;transform:none!important;background:transparent!important}
.tour-img>img{position:relative!important;inset:auto!important;object-position:center!important}
.tour-img>img[hidden]{display:none!important}
.tour-row,#popular-cards,.bt-gallery,.roots-gallery,.gallery-track,.gallery-grid,.book-grid{align-items:start}
/* Allow the photo to follow the reader within a desktop detail row. */
.tour-row{overflow:visible;background:none!important;box-shadow:none!important}
.tour-img .tour-badge{z-index:2;line-height:normal}
.tour-thumbs,.tour-img .thumbs{position:relative!important;inset:auto!important;display:flex;gap:6px;height:auto!important;padding:8px 0!important;overflow-x:auto;background:none!important;line-height:normal}
.tour-thumbs button,.tour-img .thumbs button{flex:none;width:auto!important;height:auto!important;padding:0;border:2px solid transparent;border-radius:4px;background:none;cursor:pointer;opacity:.75}
.tour-thumbs button.on{border-color:var(--gold);opacity:1}
.tour-thumbs img,.tour-img .thumbs img{display:block;height:44px!important;width:auto!important;max-width:none;max-height:none!important;object-fit:fill!important;aspect-ratio:auto!important;transform:none!important}
.gallery-slide,.bt-card-img,.hero-figure,.exp-img,.book-card-img{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;align-self:start;background:none!important}
.gallery-slide picture,.hero-figure picture{display:block;width:100%}
.gallery-caption{z-index:2}
/* Full-width top banners retain their original overlays and cover treatment. */
.hero-img{background-size:cover!important;background-position:center 40%!important;background-repeat:no-repeat!important;transform:none!important}
.hero>img,.hero>.hero-media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center 40%!important}
@media(min-width:901px){.tour-row>.tour-img{position:sticky;top:96px}#popular-cards .tour-img{position:relative;top:auto}}
@media(max-width:900px){.tour-row{grid-template-columns:1fr!important}.tour-row>.tour-img{position:relative!important;top:auto!important;width:100%;order:0!important}}
