/* Loaded only on pages whose content (or a synced block it references) uses this component: inc/assets.php mma_css_modules(). */
/* ===== C14 team (synced 165 Home teaser, 166 About full roster) =====
   Andrae, Nov 15: one card per artist who has a Google Photos portfolio in Notion "Artist Licensing".
   Card = core/gallery is-style-artist (photo 2 cross-fades in on hover) + H3 name link + role eyebrow. The name link is
   stretched over the whole card and opens the artist's portfolio on this site. Hover (fine pointer) and keyboard focus: soft gold edge
   glow + a light centered "View profile" label. Touch: a small persistent "View profile" pill. Reduced motion: no
   transitions, same states. About adds a CSS-only filter (radio chips, :has()); without :has() all cards stay visible. */

.mma-team-grid { --cols: 2; --gx: 12px; display: flex !important; flex-wrap: wrap; justify-content: center; gap: 36px var(--gx); }
.mma-team-grid > .mma-team-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gx)) / var(--cols)); min-width: 0; margin: 0 !important; }
@media (min-width: 782px) { .mma-team-grid { --cols: 3; --gx: 24px; row-gap: 52px; } }
@media (min-width: 1100px) { .mma-team-grid { --cols: 4; --gx: 28px; } }

.mma-team-card { position: relative; text-align: center; }
.mma-team-card .wp-block-gallery.is-style-artist { position: relative; isolation: isolate; margin: 0; background: var(--wp--preset--color--cream); box-shadow: 0 0 0 1px rgba(190, 155, 108, 0), 0 0 0 0 rgba(190, 155, 108, 0); transition: box-shadow .5s var(--mma-ease); }
.mma-team-card .is-style-artist > figure img { object-position: 50% 24%; transform: scale(1.001); transition: transform 1.1s var(--mma-ease); }
/* Per-cover framing (Megan, Nov 24 note): Yana = bride centered; Miranda = head sits a little higher. */
.mma-team-card .is-style-artist > figure img[src*="AF1QipMV4Og6A7zmACAXDHVYggoD-6l8QPUJtkn7KPeB"] { object-position: 45% 24%; }
.mma-team-card .is-style-artist > figure img[src*="AF1QipM2-RQs4JqXjDMy4Rv6g-bnh2bgvjBpHgQEgUnM"] { object-position: 50% 58%; }
/* Edge glow (inset, painted over the photo) + a faint veil so the label reads on any photo. */
.mma-team-card .is-style-artist::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(31, 27, 24, .06), rgba(31, 27, 24, .22)); box-shadow: inset 0 0 0 1px rgba(214, 184, 140, .95), inset 0 0 38px 4px rgba(190, 155, 108, .6); transition: opacity .45s var(--mma-ease); }
/* "View profile" label (decorative: the link's accessible name says where it goes). */
.mma-team-card .is-style-artist::after { content: "View profile"; position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; transform: translate(-50%, -30%); padding: 11px 20px 10px; white-space: nowrap; font: 400 12px/1 var(--mma-sans); letter-spacing: .26em; text-transform: uppercase; color: #fff; background: rgba(31, 27, 24, .22); border: 1px solid rgba(255, 255, 255, .75); text-shadow: 0 1px 8px rgba(31, 27, 24, .45); opacity: 0; transition: opacity .45s var(--mma-ease), transform .45s var(--mma-ease); }

.mma-team-card h3.wp-block-heading a { color: inherit; text-decoration: none; }
.mma-team-card h3.wp-block-heading a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.mma-team-card h3.wp-block-heading a:focus-visible { outline: none; }

/* Hover (mouse / trackpad) and keyboard focus share one look. */
@media (hover: hover) and (pointer: fine) {
	.mma-team-card:hover .is-style-artist { box-shadow: 0 0 0 1px rgba(190, 155, 108, .55), 0 14px 44px -8px rgba(190, 155, 108, .6); }
	.mma-team-card:hover .is-style-artist::before, .mma-team-card:hover .is-style-artist::after { opacity: 1; }
	.mma-team-card:hover .is-style-artist::after { transform: translate(-50%, -50%); }
	.mma-team-card:hover .is-style-artist > figure:nth-child(2) { opacity: 1; }
	.mma-team-card:hover .is-style-artist > figure img { transform: scale(1.035); }
	.mma-team-card:hover h3.wp-block-heading a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
}
.mma-team-card:focus-within .is-style-artist { box-shadow: 0 0 0 1px rgba(190, 155, 108, .55), 0 14px 44px -8px rgba(190, 155, 108, .6); outline: 2px solid var(--wp--preset--color--gold-deep); outline-offset: 4px; }
.mma-team-card:focus-within .is-style-artist::before, .mma-team-card:focus-within .is-style-artist::after { opacity: 1; }
.mma-team-card:focus-within .is-style-artist::after { transform: translate(-50%, -50%); }
.mma-team-card:focus-within .is-style-artist > figure:nth-child(2) { opacity: 1; }

/* Touch: no hover, so a small persistent pill marks the card as a link; a press shows the glow. */
@media (hover: none), (pointer: coarse) {
	.mma-team-card .is-style-artist::after { top: auto; bottom: 10px; transform: translateX(-50%); opacity: 1; padding: 6px 11px 5px; font-size: 9px; letter-spacing: .18em; color: var(--wp--preset--color--ink); background: rgba(255, 255, 255, .8); backdrop-filter: blur(4px); border: 0; border-radius: 999px; text-shadow: none; }
	.mma-team-card:focus-within .is-style-artist::after { transform: translateX(-50%); }
	.mma-team-card:active .is-style-artist::before { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.mma-team-card .is-style-artist, .mma-team-card .is-style-artist::before, .mma-team-card .is-style-artist::after, .mma-team-card .is-style-artist > figure, .mma-team-card .is-style-artist > figure img { transition: none !important; }
	.mma-team-card:hover .is-style-artist > figure img { transform: none; }
}

/* Home teaser: a swipe rail on phones (cards peek past the edge), the 4 x 2 grid from 782px. */
@media (max-width: 781px) {
	.mma-team-grid--rail { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--mma-gutter)) !important; padding: 4px var(--mma-gutter) 8px; scroll-padding-inline: var(--mma-gutter); }
	.mma-team-grid--rail::-webkit-scrollbar { display: none; }
	.mma-team-grid--rail > .mma-team-card { flex: 0 0 60%; scroll-snap-align: start; }
}
@media (min-width: 782px) and (max-width: 1099px) { .mma-team-grid--rail { --cols: 4; --gx: 16px; } }

/* About: specialty filter chips (radio inputs; CSS only). */
.mma-team-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 40px !important; padding: 0; border: 0; min-width: 0; }
.mma-team-filter legend { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mma-team-filter input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mma-team-filter label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--wp--preset--color--gold-deep); border-radius: 999px; background: #fff; font: 600 12px/1 var(--mma-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--gold-ink); cursor: pointer; transition: background-color .3s var(--mma-ease), color .3s var(--mma-ease); }
.mma-team-filter label:hover { background: var(--wp--preset--color--cream); }
.mma-team-filter input:checked + label { background: var(--wp--preset--color--gold-ink); border-color: var(--wp--preset--color--gold-ink); color: #fff; }
.mma-team-filter input:focus-visible + label { outline: 2px solid var(--wp--preset--color--gold-deep); outline-offset: 3px; }
.mma-team:has(#mma-tf-hair:checked) .mma-team-card:not(.mma-role-hair),
.mma-team:has(#mma-tf-makeup:checked) .mma-team-card:not(.mma-role-makeup) { display: none; }
@media (max-width: 781px) { .mma-team-filter { margin-bottom: 28px !important; } .mma-team-filter label { padding: 0 18px; } }
