/* ---------------------------------------------------------------------------
   Ace Glove — Shared section background container

   One photo, one adjustable colour wash, everything else nested inside gets
   for free. Fixed background is opt-in and force-disabled on phones, where
   it is unreliable (notably iOS Safari).
--------------------------------------------------------------------------- */

.ags-section-bg {
	--ags-sbg-color: #ffffff;
	--ags-sbg-opacity: 0.55;

	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: var(--ags-white);
}

.ags-section-bg__photo {
	position: absolute;
	inset: 0;
	background-image: var(--ags-sbg-image);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.ags-section-bg--fixed .ags-section-bg__photo {
	background-attachment: fixed;
}

@media (max-width: 767px) {
	/* Fixed backgrounds are unreliable on phones (iOS Safari in particular) —
	   always scroll normally there regardless of the field's value. */
	.ags-section-bg--fixed .ags-section-bg__photo {
		background-attachment: scroll;
	}
}

.ags-section-bg__wash {
	position: absolute;
	inset: 0;
	background-color: var(--ags-sbg-color);
	opacity: var(--ags-sbg-opacity);
	pointer-events: none;
}

.ags-section-bg__content {
	position: relative;
	z-index: 1;
}
