/* ==========================================================================
   EHPJT Marly — styles du thème
   Couleurs : voir theme.json (anthracite #1B191E, or #A88B65, sable #997E60)
   ========================================================================== */

:root {
	--ehpjt-ink: var(--wp--preset--color--ink, #1B191E);
	--ehpjt-surface: var(--wp--preset--color--surface, #26232A);
	--ehpjt-line: var(--wp--preset--color--line, #3A3540);
	--ehpjt-gold: var(--wp--preset--color--gold, #A88B65);
	--ehpjt-sand: var(--wp--preset--color--sand, #997E60);
	--ehpjt-light: var(--wp--preset--color--light, #F2EEE8);
	--ehpjt-muted: var(--wp--preset--color--muted, #CFC8BE);
	--ehpjt-radius: 10px;
}

body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks { overflow-x: clip; }
img { height: auto; }

/* ---------- Titres ---------- */
.is-style-ehpjt-script,
h1.is-style-ehpjt-script,
h2.is-style-ehpjt-script {
	font-family: var(--wp--preset--font-family--script) !important;
	font-weight: 400 !important;
	text-transform: none !important;
	font-size: var(--wp--preset--font-size--script);
	line-height: 1.1;
}
.ehpjt-accent { color: var(--ehpjt-gold); }
.ehpjt-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--ehpjt-gold);
}
.ehpjt-lead { font-size: 1.15rem; color: var(--ehpjt-muted); }
.ehpjt-muted { color: var(--ehpjt-muted); }

/* ---------- En-tête ---------- */
.ehpjt-header {
	border-bottom: 1px solid #2E2A33;
	position: relative;
	z-index: 50;
	background: var(--ehpjt-ink);
}
.ehpjt-header .wp-block-site-logo img { max-height: 54px; width: auto; }
.ehpjt-header .wp-block-navigation a { text-decoration: none; padding: 10px 6px; }
.ehpjt-header .wp-block-navigation .current-menu-item > a,
.ehpjt-header .wp-block-navigation a[aria-current="page"] { color: var(--ehpjt-gold); }
.ehpjt-header .wp-block-navigation__submenu-container {
	background: var(--ehpjt-surface) !important;
	border: 1px solid var(--ehpjt-line) !important;
	border-radius: 8px;
	padding: 6px 0;
}
.ehpjt-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--ehpjt-ink) !important;
	color: var(--ehpjt-light) !important;
	padding: 24px;
}

/* ---------- Boutons ---------- */
.wp-block-button__link { text-decoration: none; }
.wp-block-button.is-style-ehpjt-ghost .wp-block-button__link {
	background: transparent;
	color: var(--ehpjt-light);
	border: 2px solid var(--ehpjt-gold);
}
.wp-block-button.is-style-ehpjt-ghost .wp-block-button__link:hover {
	background: var(--ehpjt-gold);
	color: var(--ehpjt-ink);
}

/* ---------- Cartes ---------- */
.is-style-ehpjt-card,
.is-style-ehpjt-card-gold {
	background: var(--ehpjt-surface);
	border-radius: var(--ehpjt-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
}
.is-style-ehpjt-card-gold { border-top: 4px solid var(--ehpjt-gold); }
.is-style-ehpjt-outline {
	border: 1px solid var(--ehpjt-gold);
	border-radius: var(--ehpjt-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
}
.is-style-ehpjt-card > :first-child,
.is-style-ehpjt-card-gold > :first-child,
.is-style-ehpjt-outline > :first-child { margin-top: 0; }
.ehpjt-card-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.35rem;
	text-transform: uppercase;
	color: var(--ehpjt-gold);
	margin: 0;
}
.ehpjt-big-number {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(2.2rem, 4vw, 3rem);
	line-height: 1;
	margin: 0;
}

/* ---------- Images ---------- */
.is-style-ehpjt-rounded img { border-radius: var(--ehpjt-radius); }
.wp-block-image.is-style-ehpjt-oval img {
	border-radius: 50% / 50%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	width: 170px;
	filter: grayscale(1);
}
.wp-block-image.is-style-ehpjt-oval { display: flex; justify-content: center; }
.ehpjt-fullbleed img { width: 100%; display: block; }
.ehpjt-photo-band img { width: 100%; height: clamp(320px, 45vw, 620px); object-fit: cover; display: block; }

/* ---------- Plaque nom / étiquettes ---------- */
p.is-style-ehpjt-plate {
	display: inline-block;
	background: var(--ehpjt-gold);
	color: var(--ehpjt-ink);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.45rem 1.1rem;
	margin: 0 auto;
}
p.is-style-ehpjt-tag,
.ehpjt-badge,
.ehpjt-terms a {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 4px;
	background: var(--ehpjt-gold);
	color: var(--ehpjt-ink) !important;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-decoration: none;
	margin: 0 6px 0 0;
}
.ehpjt-terms { margin: 0; }
.ehpjt-terms .wp-block-post-terms__separator { display: none; }

/* ---------- Personnes (comité, joueurs, coachs) ---------- */
.ehpjt-person { text-align: center; gap: 0.75rem !important; }
.ehpjt-person p { margin: 0; }
.ehpjt-person .ehpjt-role { color: var(--ehpjt-muted); font-size: 0.95rem; }
.ehpjt-player {
	border: 2px solid #8C7556;
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
	background: var(--ehpjt-surface);
	gap: 0 !important;
}
.ehpjt-player .wp-block-image { margin: 0; }
.ehpjt-player .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; display: block; }
.ehpjt-player p {
	margin: 0;
	padding: 0.7rem 0.9rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.05rem;
}

/* ---------- Écussons des équipes ---------- */
.ehpjt-badges { justify-content: center; gap: 1.5rem 3.5rem !important; }
.ehpjt-badges .wp-block-image { margin: 0; text-align: center; }
.ehpjt-badges .wp-block-image img { height: 140px; width: auto; transition: transform .15s ease; }
.ehpjt-badges .wp-block-image a:hover img { transform: translateY(-4px); }
.ehpjt-badges .wp-element-caption {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.1rem;
	text-transform: uppercase;
	color: var(--ehpjt-light);
	margin-top: 0.6rem;
}
.ehpjt-badges--small .wp-block-image img { height: 72px; }
.ehpjt-badges--small .wp-element-caption { font-size: 0.85rem; }

/* ---------- Actualités / cartes d'articles ---------- */
.ehpjt-news-featured {
	background: var(--ehpjt-surface);
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
}
.ehpjt-news-featured .wp-block-post-featured-image { margin: 0; height: 100%; }
.ehpjt-news-featured .wp-block-post-featured-image img { height: 100%; min-height: 320px; object-fit: cover; }
.ehpjt-news-featured .wp-block-column:last-child { padding: clamp(1.5rem, 3vw, 2.5rem); align-self: center; }
.ehpjt-news-grid .wp-block-post,
.ehpjt-album-grid .wp-block-post {
	background: var(--ehpjt-surface);
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.ehpjt-news-grid .wp-block-post-featured-image,
.ehpjt-album-grid .wp-block-post-featured-image { margin: 0; }
.ehpjt-news-grid .wp-block-post-featured-image img { aspect-ratio: 16 / 10; object-fit: cover; }
.ehpjt-album-grid .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.ehpjt-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.ehpjt-card-body > * { margin-top: 0.5rem !important; }
.ehpjt-card-body > :first-child { margin-top: 0 !important; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover { color: var(--ehpjt-gold); }
.wp-block-post-date { color: var(--ehpjt-muted); font-size: 0.9rem; }
.wp-block-post-excerpt__excerpt { color: var(--ehpjt-muted); }
.wp-block-post-excerpt__more-link { font-weight: 700; color: var(--ehpjt-gold); text-decoration: none; }
.wp-block-query-pagination a { text-decoration: none; }

/* ---------- Filtres de la page Photos ---------- */
.ehpjt-filters { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.ehpjt-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ehpjt-filters__label { font-size: 0.9rem; font-weight: 600; color: var(--ehpjt-muted); min-width: 64px; }
.ehpjt-chip {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	border: 1px solid #4A4450;
	color: var(--ehpjt-light) !important;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}
.ehpjt-chip:hover { border-color: var(--ehpjt-gold); }
.ehpjt-chip.is-active { background: var(--ehpjt-gold); border-color: var(--ehpjt-gold); color: var(--ehpjt-ink) !important; font-weight: 700; }

/* ---------- Galerie d'un album ---------- */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 6px; }

/* ---------- Questions fréquentes ---------- */
.wp-block-details {
	border-bottom: 1px solid var(--ehpjt-line);
	padding: 1rem 0.25rem;
	margin: 0 !important;
}
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.wp-block-details[open] summary { color: var(--ehpjt-gold); }
.wp-block-details > p { color: var(--ehpjt-muted); }

/* ---------- Événements (Manifestations) ---------- */
.ehpjt-event { gap: 1.5rem !important; align-items: flex-start !important; }
.ehpjt-date {
	flex: none;
	width: 84px;
	min-height: 92px;
	border: 1px solid var(--ehpjt-gold);
	border-radius: 8px;
	background: var(--ehpjt-ink);
	text-align: center;
	gap: 0 !important;
	justify-content: center;
	padding: 0.5rem 0;
}
.ehpjt-date p { margin: 0; }
.ehpjt-date .ehpjt-date__day { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 2.3rem; line-height: 1; }
.ehpjt-date .ehpjt-date__month { color: var(--ehpjt-gold); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.ehpjt-event--past { opacity: 0.55; }

/* ---------- Sponsors ---------- */
.ehpjt-sponsors-strip { background: #fff; color: var(--ehpjt-ink); }
.ehpjt-sponsors-strip .wp-block-image { margin: 0; display: flex; align-items: center; justify-content: center; }
.ehpjt-sponsors-strip .wp-block-image img { max-height: 64px; width: auto; object-fit: contain; }
.ehpjt-sponsor-grid .wp-block-image {
	background: #fff;
	border-radius: 12px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	aspect-ratio: 16 / 9;
}
.ehpjt-sponsor-grid .wp-block-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ehpjt-sponsor-grid--platine .wp-block-image { max-width: 440px; margin: 0 auto; }

/* ---------- Pied de page ---------- */
.ehpjt-footer { background: var(--ehpjt-sand); color: var(--ehpjt-ink); }
.ehpjt-footer a { color: var(--ehpjt-ink); }
.ehpjt-footer a:hover { color: #fff; }
.ehpjt-footer h2, .ehpjt-footer h3 { color: var(--ehpjt-ink); font-size: 1.4rem; margin: 0 0 0.5rem; }
.ehpjt-footer .wp-block-social-links .wp-social-link { background: var(--ehpjt-ink) !important; color: var(--ehpjt-light) !important; }
.ehpjt-footer__bottom { border-top: 1px solid #7E6750; font-size: 0.85rem; }

/* ---------- Formulaires (Contact Form 7) ---------- */
.wpcf7 form { display: flex; flex-direction: column; gap: 1.25rem; }
.wpcf7 fieldset {
	margin: 0;
	border: none;
	border-radius: var(--ehpjt-radius);
	background: var(--ehpjt-surface);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.wpcf7 legend {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: 0.25rem;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.35rem;
	text-transform: uppercase;
}
.wpcf7 legend span { color: var(--ehpjt-gold); }
.wpcf7 label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; }
.wpcf7 .ehpjt-help { display: block; font-weight: 400; font-size: 0.85rem; color: #B9B2A8; }
.wpcf7 .ehpjt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.wpcf7 .ehpjt-row-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 48px;
	padding: 0.6rem 0.9rem;
	border-radius: 6px;
	border: 1px solid #4A4450;
	background: var(--ehpjt-ink);
	color: var(--ehpjt-light);
	font: inherit;
	font-weight: 400;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--ehpjt-gold); outline-offset: 1px; border-color: var(--ehpjt-gold); }
.wpcf7 .wpcf7-checkbox, .wpcf7 .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wpcf7 .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7 .wpcf7-radio .wpcf7-list-item label {
	flex-direction: row;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	border-radius: 6px;
	border: 1px solid #4A4450;
	background: var(--ehpjt-ink);
	font-weight: 500;
	cursor: pointer;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label { flex-direction: row; align-items: flex-start; gap: 0.7rem; font-weight: 400; color: var(--ehpjt-muted); }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { accent-color: var(--ehpjt-gold); width: 18px; height: 18px; margin: 0; flex: none; }
.wpcf7 input[type="submit"] {
	align-self: flex-start;
	min-height: 52px;
	padding: 0 2rem;
	border: none;
	border-radius: 6px;
	background: var(--ehpjt-gold);
	color: var(--ehpjt-ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--ehpjt-light); }
.wpcf7 .wpcf7-not-valid-tip { color: #FF8A80; font-size: 0.85rem; font-weight: 500; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 6px; padding: 0.8rem 1rem; }
.ehpjt-note { font-size: 0.85rem; color: #B9B2A8; }

/* ---------- WooCommerce (boutique) ---------- */
.woocommerce ul.products li.product,
.wc-block-grid__product,
.wc-block-product {
	background: var(--ehpjt-surface);
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
	padding-bottom: 1rem;
}
.woocommerce ul.products li.product a img,
.wc-block-components-product-image img { background: #fff; object-fit: contain; aspect-ratio: 1; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	color: var(--ehpjt-light);
	padding: 0 1rem;
}
.woocommerce ul.products li.product .price,
.wc-block-components-product-price { color: var(--ehpjt-gold) !important; font-weight: 700; padding: 0 1rem; }
.woocommerce span.onsale { background: #B3261E; border-radius: 4px; min-height: 0; line-height: 1.6; padding: 0.15rem 0.6rem; }
.woocommerce .button, .wc-block-components-button {
	background: var(--ehpjt-gold) !important;
	color: var(--ehpjt-ink) !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
}
.woocommerce-store-notice, p.demo_store { background: var(--ehpjt-gold); color: var(--ehpjt-ink); }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.ehpjt-badges { gap: 1rem 1.5rem !important; }
	.ehpjt-badges .wp-block-image img { height: 96px; }
	.wpcf7 .ehpjt-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ehpjt-event { flex-direction: column; }
}

/* ---------- Mise en page générale ---------- */
.ehpjt-header-inner { padding-block: 14px; }
.ehpjt-header-nav { gap: 0.75rem 1.25rem; }
.ehpjt-main { padding-bottom: clamp(3rem, 6vw, 6rem); }
.ehpjt-page-title { margin-top: clamp(2.5rem, 5vw, 4rem) !important; margin-bottom: 1.5rem !important; }
.ehpjt-main section.wp-block-group,
main section.wp-block-group { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.ehpjt-banner { margin: 0 !important; }
.ehpjt-welcome { text-align: center; max-width: 760px; margin-inline: auto !important; }
.ehpjt-home-title { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.ehpjt-photo-band { margin-top: clamp(2.5rem, 5vw, 4rem) !important; }
.ehpjt-section-head { align-items: baseline; margin-bottom: 1.5rem; }
.ehpjt-section-head h2 { margin: 0; }
.ehpjt-section-head p a { font-weight: 600; text-decoration: none; }
.ehpjt-news-featured { margin-bottom: 1.5rem; gap: 0 !important; }
.ehpjt-subnav { justify-content: center; margin-top: 0.5rem; padding-bottom: 1rem; border-bottom: 1px solid #2E2A33; }
.ehpjt-subnav p { margin: 0; }
.ehpjt-subnav .ehpjt-chip { border: none; font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; font-size: 1.05rem; }
.ehpjt-team-title { font-size: clamp(3rem, 7vw, 4.5rem); margin-bottom: 0.25rem; }
.ehpjt-stat { text-align: center; }
.ehpjt-people { row-gap: 3rem !important; }
.ehpjt-roster { gap: 1.25rem !important; }

/* Bouton foncé (pied de page doré) */
.wp-block-button.is-style-ehpjt-dark .wp-block-button__link { background: var(--ehpjt-ink); color: var(--ehpjt-light); }
.wp-block-button.is-style-ehpjt-dark .wp-block-button__link:hover { background: #fff; color: var(--ehpjt-ink); }

/* Bande sponsors */
.ehpjt-sponsors-strip { padding-block: 1.75rem; margin-top: clamp(3rem, 6vw, 5rem) !important; }
.ehpjt-sponsors-title { margin: 0 0 1rem; font-family: var(--wp--preset--font-family--heading); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.ehpjt-sponsors-title a { color: #5A5560; text-decoration: none; }
.ehpjt-logos.wp-block-gallery { align-items: center; }
.ehpjt-logos.wp-block-gallery figure.wp-block-image { justify-content: center; }
.ehpjt-logos.wp-block-gallery figure.wp-block-image img { max-height: 64px; width: auto !important; object-fit: contain; margin: 0 auto; }

/* Pied de page */
.ehpjt-footer { padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: 1.25rem; }
.ehpjt-footer-cols { gap: 2rem; }
.ehpjt-footer p { font-size: 0.95rem; }
.ehpjt-footer__bottom { padding-top: 1rem; margin-top: 1.5rem; }

/* ---------- Téléphones (la majorité des visiteurs) ---------- */
@media (max-width: 600px) {
	:root { --wp--style--root--padding-left: 16px; --wp--style--root--padding-right: 16px; }
	.is-style-ehpjt-script, h1.is-style-ehpjt-script, h2.is-style-ehpjt-script { font-size: clamp(2.4rem, 11vw, 3.4rem); overflow-wrap: break-word; }
	h2, .wp-block-heading { overflow-wrap: break-word; hyphens: auto; }
	.ehpjt-header-inner { padding-block: 10px; }
	.ehpjt-header .wp-block-site-logo img { max-height: 44px; }
	.ehpjt-header-nav { gap: 0.5rem; }
	.ehpjt-header .wp-block-button__link { padding: 0.6rem 0.9rem; font-size: 0.9rem; }
	.ehpjt-photo-band img { height: 240px; }
	.ehpjt-news-featured .wp-block-post-featured-image img { min-height: 200px; aspect-ratio: 16 / 10; }
	.ehpjt-badges { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; }
	.ehpjt-badges--small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem !important; }
	.ehpjt-badges--small .wp-block-image img { height: 56px; }
	.ehpjt-badges--small .wp-element-caption { font-size: 0.7rem; }
	.ehpjt-people { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; row-gap: 2rem !important; }
	.wp-block-image.is-style-ehpjt-oval img { width: 120px; }
	p.is-style-ehpjt-plate { font-size: 0.9rem; padding: 0.35rem 0.7rem; }
	.ehpjt-roster { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.75rem !important; }
	.ehpjt-player p { font-size: 0.9rem; padding: 0.5rem 0.6rem; }
	.ehpjt-filters__row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.ehpjt-chip { white-space: nowrap; }
	.ehpjt-logos.wp-block-gallery figure.wp-block-image { width: calc(33.33% - var(--wp--style--gallery-gap-default, 16px)) !important; }
	.ehpjt-logos.wp-block-gallery figure.wp-block-image img { max-height: 44px; }
	.wpcf7 fieldset { padding: 1rem; }
	.wpcf7 input[type="submit"] { width: 100%; }
	.is-style-ehpjt-card, .is-style-ehpjt-card-gold, .is-style-ehpjt-outline { padding: 1.1rem; }
	iframe { max-width: 100%; }
}

/* Galerie des joueurs / coachs (pages d'équipe) */
.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image {
	border: 2px solid #8C7556;
	border-radius: var(--ehpjt-radius);
	overflow: hidden;
	background: var(--ehpjt-surface);
}
.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; }
.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image figcaption {
	background: var(--ehpjt-surface);
	position: static;
	color: var(--ehpjt-light);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1rem;
	padding: 0.5rem;
	max-height: none;
	text-shadow: none;
	text-align: center;
}
@media (max-width: 600px) {
	.ehpjt-roster-gallery.wp-block-gallery figure.wp-block-image { width: calc(50% - var(--wp--style--gallery-gap-default, 16px) / 2) !important; }
}
/* Le petit mode d'emploi n'apparaît que dans l'éditeur */
body:not(.block-editor-page):not(.editor-styles-wrapper) .ehpjt-editor-hint { display: none; }
