/* =========================================================================
   TOUBKAL-MAROC — single tour gallery
   Balances the tile aspect ratio (was a fixed 360px height → over-cropped
   and very tall on mobile) and keeps the lightbox motion subtle.
   ========================================================================= */

#tour-gallery .bricks-layout-item,
#tour-gallery .bricks-layout-item figure,
#tour-gallery .bricks-layout-item a,
#tour-gallery img.bricks-layout-inner {
	height: auto !important;
}

/* Slightly portrait tiles (4:5): most gallery photos are 3:4, so they lose
   less of the subject than in squares, without making the row too tall. */
#tour-gallery img.bricks-layout-inner {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* Tighter gutter on phones so the 2 columns of tiles sit nicely. */
@media (max-width: 767px) {
	#tour-gallery {
		gap: 10px !important;
	}
}
