/*
 * Art Gallery custom font + Divi 5 icon-picker integration.
 *
 * Codepoints: U+F800-F81D (relocated from the font's native U+F000-F01D to the
 * next reserved block above accountant's U+F621. See
 * scripts/relocate-font-codepoints.py).
 *
 * Two @font-face declarations:
 *
 * 1. `art-gallery` standalone family — used by the icon-picker grid and the
 *    `.ds-divi-icon-art-gallery` standalone class.
 *
 * 2. Re-declaring `ETmodules` limited to our `unicode-range`. CSS @font-face
 *    composes multiple sources for one family by unicode range, so the browser
 *    picks our font ONLY for our codepoints and falls back to Divi's original
 *    ETmodules everywhere else. Our range sits above Divi's ETmodules file
 *    coverage (<= U+E906), so rendering is deterministic.
 *
 * No FontAwesome redeclaration: our icons always resolve through the ETmodules
 * family, and Divi's FA font has real glyphs across U+E005-F8FF — redeclaring
 * it for our range would risk hijacking genuine FA icons.
 */

@font-face {
	font-family: 'art-gallery';
	src: url('../fonts/art-gallery.woff2?v=3') format('woff2'),
		url('../fonts/art-gallery.woff?v=3') format('woff'),
		url('../fonts/art-gallery.ttf?v=3') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

@font-face {
	font-family: 'ETmodules';
	src: url('../fonts/art-gallery.woff2?v=3') format('woff2'),
		url('../fonts/art-gallery.woff?v=3') format('woff'),
		url('../fonts/art-gallery.ttf?v=3') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: block;
	unicode-range: U+F800-F81D;
}

/* Icon-picker grid: render glyphs with the custom font directly. */
.et-vb-icon-picker-list button[data-type="art_gallery"]::after,
.et-vb-icon-picker-list button[data-type="art_gallery"]::before {
	font-family: 'art-gallery' !important;
	font-weight: 400 !important;
}

/* Standalone usage: paste
 * `<i class="ds-divi-icon ds-divi-icon-art-gallery">&#xf800;</i>` anywhere. The
 * class both renders the glyph via the custom family and triggers the conditional
 * front-end enqueue (ds_icons_used_slugs scans for it). */
.ds-divi-icon-art-gallery {
	font-family: 'art-gallery' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
