/*
 * Sarwans Banner Desktop Size Fix - support styles.
 *
 * Almost all of the real work is done in fix.js (which measures the row
 * and applies equal sizing with inline styles, since every site's slider
 * markup is a little different). This file only carries a couple of
 * harmless safety rules that never fight with the theme or the main
 * "Sarwans Smart Promo Banner Manager" plugin.
 */

/* When this plugin marks a slide as "evened out", make sure its image
   always fills the box without stretching or squashing, no matter what
   aspect ratio the uploaded picture is. */
.sarwans-bdf-evened img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block !important;
}

/* Never touch mobile - this class is only ever added by fix.js when the
   screen is at/above the configured desktop breakpoint, but this extra
   guard keeps things safe even if a cached inline style lingers after a
   resize from desktop to mobile. */
@media (max-width: 782px) {
	.sarwans-bdf-evened {
		width: auto !important;
		height: auto !important;
		flex: initial !important;
	}
}
