/* Featured event banner, shared by the home page and Events & Outreach (inc/event-feature.php).
   One event is a full banner (image beside the details); several sit side by side, image on top.
   (c) HAUS XXIV, LLC · Licensed to Long Beach Pride */

.ed-feat { display: grid; gap: clamp(20px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
.ed .ed-feat { margin-bottom: clamp(64px, 7vw, 112px); }
.ed-feat[data-n="2"], .ed-feat[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-feat:not([data-n="1"], [data-n="2"], [data-n="4"]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-feat > li { min-width: 0; }
.ed-fx { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r-lg, 28px); background: #170F2A; color: #fff; }
.ed-feat[data-n="1"] .ed-fx { display: grid; grid-template-columns: minmax(0, clamp(360px, 40%, 560px)) minmax(0, 1fr); }
.ed-fx-ph { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #241A3B; }
.ed-feat[data-n="1"] .ed-fx-ph { aspect-ratio: 1 / 1; height: 100%; }
.ed-fx-ph img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; }
.ed-fx-ph.is-fit::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) saturate(1.2) brightness(.8); transform: scale(1.1); }
html body main .ed-fx-ph.is-fit img:not(#_) { position: relative; object-fit: contain !important; object-position: 50% 50% !important; }
.ed-fx-tx { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: clamp(28px, 3vw, 40px); }
.ed-feat[data-n="1"] .ed-fx-tx { padding: clamp(32px, 5vw, 80px); }
.ed-fx-k { margin: 0 0 20px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C9B8F5; }
.ed-fx-t:not(#_) { margin: 0; font-family: var(--sans); font-size: clamp(24px, 2.2vw, 32px) !important; font-weight: 700; line-height: 1.12 !important; letter-spacing: -.025em; text-wrap: balance; }
.ed-feat[data-n="1"] .ed-fx-t:not(#_) { font-size: clamp(30px, 3.6vw, 54px) !important; line-height: 1.06 !important; letter-spacing: -.03em; }
.ed-fx-t a { color: #fff; text-decoration: none; }
.ed-fx-t a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ed-fx-t a:focus-visible, .ed-fx .btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 4px; }
.ed-fx .btn:focus-visible { border-radius: 999px; }
.ed-fx-facts { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.ed-fx-facts li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 500; line-height: 1.4; color: #fff; }
.ed-fx-facts svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #C9B8F5; }
.ed-fx-sum { max-width: 34em; margin: 20px 0 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.ed-fx-btns { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 30px; }
.ed-feat[data-n="1"] .ed-fx-btns { margin-top: 0; padding-top: 34px; }
.ed-fx .ed-share-btn.is-icon { width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.ed-fx .ed-share-btn.is-icon:hover, .ed-fx .ed-share-btn.is-icon[aria-expanded="true"] { border-color: #fff; background: rgba(255, 255, 255, .12); }
.ed-fx .ed-share-btn:focus-visible { outline-color: #fff; }

@media (max-width: 1100px) {
	.ed-feat:not([data-n="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.ed-feat:not([data-n="1"]) { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.ed-feat[data-n="1"] .ed-fx { display: flex; }
	.ed-feat[data-n="1"] .ed-fx-ph { height: auto; }
	.ed-feat[data-n="1"] .ed-fx-tx { padding: 28px 24px 32px; }
}
@media (min-width: 701px) and (max-width: 860px) {
	.ed-feat[data-n="1"] .ed-fx { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); }
	.ed-feat[data-n="1"] .ed-fx-tx { padding: 32px 28px; }
}

/* Share button and menu (events cards use these too; assets: events-directory/view.js) */
.ed-share-btn { position: relative; z-index: 5; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: var(--bone); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.ed-share-btn:hover, .ed-share-btn[aria-expanded="true"] { background: var(--bone-2, #E8E8EA); color: var(--ink); }
.ed-share-btn:focus-visible { outline: 2px solid var(--focus, #004DFF); outline-offset: 2px; }
.ed-share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ed-share-btn.is-icon { width: 36px; height: 36px; padding: 0; justify-content: center; background: transparent; }
.ed-share-btn.is-icon:hover { background: var(--bone); }
.ed-sharepop { position: absolute; z-index: 1000; width: 240px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 28px 64px -20px rgba(28, 16, 52, .38), 0 0 0 1px rgba(12, 12, 14, .07); }
.ed-sharepop[hidden] { display: none; }
.ed-sharepop-t { margin: 6px 10px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ed-sharepop ul { margin: 0; padding: 0; list-style: none; }
.ed-sharepop a, .ed-sharepop button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 14.5px; font-weight: 550; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.ed-sharepop a:hover, .ed-sharepop button:hover, .ed-sharepop a:focus-visible, .ed-sharepop button:focus-visible { background: var(--bone); outline: none; }
.ed-sharepop svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent-ink, #6D28D9); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
