/* Image display (v1.60.0). Loaded only while the image-display switch is on for the viewer (body.vm-imgfix).
   Focus points arrive as --vm-f (all screens) / --vm-fm (phones) on the image; centre when not set. */

/* 1. Photo slots (category heroes and other Elementor photo boxes): fill the box. Low priority on purpose (two
      classes), so Elementor's own Background Size / Position / Repeat settings for a page or device still win. */
.vm-imgfix .vm-ph{background-size:cover;background-position:50% 50%;background-repeat:no-repeat}

/* 2. Tour cards (4:3 frame kept) and the other cropped photos that follow the focus point. */
body.vm-imgfix .vm-card .vm-card__img,
body.vm-imgfix .elementor .vm-tile--img>.vm-tile__img,
body.vm-imgfix img.vm-dest-img,
body.vm-imgfix img.vm-pd__img,
body.vm-imgfix .vm-xcard__m img,
body.vm-imgfix img.vm-bl-img,
body.vm-imgfix img.vm-bl-card__img,
body.vm-imgfix img.vmw-card__img,
body.vm-imgfix img.vmw-dest__img,
body.vm-imgfix img.vmw-hero__img,
body.vm-imgfix .vmw-cat__img img{object-position:var(--vm-f,50% 50%)}

/* 3. Founder frames: a true 4:5 portrait (the height cap used to squash it to almost square and crop heads);
      team photos crop slightly above centre. */
body.vm-imgfix .vm-ph.vm-ph--founder{max-height:none;width:100%;max-width:352px;margin-left:auto;margin-right:auto}
body.vm-imgfix .vm-ph img.vm-team-photo{object-position:var(--vm-f,50% 20%)}

/* 4. Hotel cards in tour pages: the same 4:3 frame in the card and the row layouts; portrait photos show their upper part. */
body.vm-imgfix .vm-pd__acc.is-row .vm-pd__accimg{aspect-ratio:4/3;min-height:0;align-self:flex-start}
body.vm-imgfix .vm-pd__accimg img{object-position:var(--vm-f,50% 30%)}

/* 5. Header logo: whole logo, its own proportions. */
body.vm-imgfix .vm1h-logo img,body.vm-imgfix .vmw-logo img{height:auto;object-fit:contain}

/* Phones: the phone focus point when one is set. */
@media (max-width:767px){
	body.vm-imgfix .vm-card .vm-card__img,
	body.vm-imgfix .elementor .vm-tile--img>.vm-tile__img,
	body.vm-imgfix img.vm-dest-img,
	body.vm-imgfix img.vm-pd__img,
	body.vm-imgfix .vm-xcard__m img,
	body.vm-imgfix img.vm-bl-img,
	body.vm-imgfix img.vm-bl-card__img,
	body.vm-imgfix img.vmw-card__img,
	body.vm-imgfix img.vmw-dest__img,
	body.vm-imgfix img.vmw-hero__img,
	body.vm-imgfix .vmw-cat__img img{object-position:var(--vm-fm,var(--vm-f,50% 50%))}
	body.vm-imgfix .vm-ph img.vm-team-photo{object-position:var(--vm-fm,var(--vm-f,50% 20%))}
	body.vm-imgfix .vm-pd__accimg img{object-position:var(--vm-fm,var(--vm-f,50% 30%))}
	body.vm-imgfix .vm-ph.vm-ph--founder{max-width:336px}
}
