/* ------------------------------------------------------------------
   Gallery: uniform square thumbnails

   The gem photos range from 0.55 (tall portrait) to 1.78 (wide
   landscape) in aspect ratio. Isotope's "fitRows" layout floats tiles
   of differing heights, so that spread broke the grid into ragged rows
   with uneven gaps.

   Locking each thumbnail to a square and cropping to fill keeps every
   row aligned. Nothing is lost to the visitor: the lightbox still
   opens the full, uncropped image.

   Scoped to .portfolio so it only affects the gallery page, not the
   category teasers on the homepage.
   ------------------------------------------------------------------ */
.portfolio .p-element .image-style-one img {
	display: block;        /* removes the inline baseline gap under the image */
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;     /* fill the square, centre-crop the overflow */
	object-position: center;
}

/* ------------------------------------------------------------------
   Hero carousel: consistent 16:9 slides

   Slides 1 and 3 are 960x540 (16:9) but slide 2 is 528x960 portrait,
   so the hero changed shape and height as it cycled. Forcing every
   slide to 16:9 and cropping to fill keeps the hero a fixed size.

   The two landscape shots are already exactly 16:9, so they are not
   cropped at all — only the portrait one is. Its crop is biased just
   above centre to favour the jewellery display and the table of
   rings rather than the floor and bags at the bottom.
   ------------------------------------------------------------------ */
.slim-slider .carousel-inner > .item img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center 40%;
}
