/* Fancy America Partner System -- Partner Gallery
   A calm, static, evenly-spaced gallery. Nothing rotates, slides, expands,
   or contracts. There is no track, no navigation, no active/inactive
   state -- every partner's artwork (logo or full advertisement) simply
   floats on the dark stage as the sole visual focus, with its supporting
   information (designation, name, socials) kept quiet until a visitor
   hovers or tabs to that item. The grid re-flows automatically as Partner
   records are added, removed, or reordered -- no markup changes required.
   Reuses the site's existing brand tokens with safe fallbacks. */

.fa-p-gallery {
	--fa-p-gold: var(--fa-gold, #EEBB58);
	--fa-p-onyx: var(--fa-onyx, #0A0A0C);
	--fa-p-ivory: var(--fa-ivory, #F7F1E7);
	position: relative;
	margin: 0;
	padding: clamp(72px, 10vh, 120px) 0 clamp(88px, 11vh, 130px);
	overflow: hidden;
	/* Layered tonal background: a warm brown-black undertone blended into
	   charcoal, deliberately a touch lighter than the produced-by section
	   above it so the page has quiet rhythm as you scroll, not one flat
	   black slab. No texture, grain, or pattern -- only tone. */
	background:
		radial-gradient(ellipse 65% 50% at 50% 0%, rgba(238, 187, 88, .05), transparent 65%),
		linear-gradient(165deg, #1A1611 0%, #16151A 45%, #0E0E10 100%);
	border-top: 1px solid rgba(238, 187, 88, .16);
}
.fa-p-gallery::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 40% 35% at 15% 85%, rgba(238, 187, 88, .04), transparent 70%);
}

.fa-p-gallery__head {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 680px;
	margin: 0 auto clamp(56px, 7vh, 88px);
	padding: 0 24px;
}
.fa-p-gallery__heading {
	font-family: "Playfair Display", serif;
	font-size: clamp(32px, 4vw, 50px);
	line-height: 1.12;
	color: var(--fa-p-ivory);
	margin: 0 0 14px;
}
.fa-p-gallery__sub {
	font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(247, 241, 231, .62);
	margin: 0;
}

/* Flexbox, not CSS Grid, is deliberate here: with a wide (double-width)
   advertisement item mixed in among regular logo items, a fixed-track
   grid can leave a lone item stranded on its own row with a large empty
   gap beside it once the row math doesn't divide evenly (exactly the
   "awkward empty area" this design is meant to avoid). A wrapping flex
   row justifies each line independently, so a partially-filled last
   line simply centers itself instead of leaving dead space. */
.fa-p-gallery__grid {
	position: relative;
	z-index: 1;
	list-style: none;
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 64px);
	max-width: 1600px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	column-gap: clamp(28px, 4vw, 64px);
	row-gap: clamp(56px, 6vw, 84px);
}

.fa-p-gallery__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 0 1 21%;
	min-width: 160px;
}
.fa-p-gallery__item--wide {
	flex: 0 1 45%;
	min-width: 340px;
}

/* The artwork itself -- no card, no border, no white or dark mounting
   box. A logo floats directly on the dark stage with a soft drop shadow
   for lift; the Full Advertisement keeps its own inherent white
   background (it's part of the artwork itself, not a container we add),
   and simply sits on the page with the same gentle lift. */
.fa-p-gallery__art {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 18px;
}
.fa-p-gallery__art img {
	display: block;
	max-width: 100%;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}
.fa-p-gallery__art.is-logo img {
	width: auto;
	height: auto;
	max-height: clamp(96px, 11vw, 168px);
	object-fit: contain;
	filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .45));
}
.fa-p-gallery__art.is-ad img {
	width: 100%;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 20px 46px rgba(0, 0, 0, .5));
}

/* Subtle interaction only: a small lift, a touch more brightness, and a
   restrained warm-gold glow -- nothing shifts, resizes, or moves any
   other item on the page. Keyboard focus (tabbing to a social icon)
   triggers the identical treatment via :focus-within. */
.fa-p-gallery__item:hover .fa-p-gallery__art img,
.fa-p-gallery__item:focus-within .fa-p-gallery__art img {
	transform: translateY(-3px);
}
.fa-p-gallery__item:hover .fa-p-gallery__art.is-logo img,
.fa-p-gallery__item:focus-within .fa-p-gallery__art.is-logo img {
	filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .5)) drop-shadow(0 0 24px rgba(238, 187, 88, .16)) brightness(1.06);
}
.fa-p-gallery__item:hover .fa-p-gallery__art.is-ad img,
.fa-p-gallery__item:focus-within .fa-p-gallery__art.is-ad img {
	filter: drop-shadow(0 26px 54px rgba(0, 0, 0, .55)) drop-shadow(0 0 28px rgba(238, 187, 88, .14)) brightness(1.03);
}

/* Kicker + designation + socials reserve their layout space at all
   times (so revealing them never shifts this item's height, and never
   resizes or nudges any neighboring grid item) but stay quiet -- opacity
   only -- until the item is hovered or focused. The name stays always
   visible at a subordinate weight and simply strengthens slightly on
   the same interaction. */
.fa-p-gallery__kicker {
	font-family: Inter, sans-serif;
	font-size: 10.5px;
	letter-spacing: 2.6px;
	text-transform: uppercase;
	color: rgba(238, 187, 88, .65);
	margin: 0 0 4px;
	opacity: 0;
	transition: opacity .35s ease;
}
.fa-p-gallery__designation {
	font-family: Inter, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--fa-p-gold);
	margin: 0 0 8px;
	opacity: 0;
	transition: opacity .35s ease;
}
.fa-p-gallery__item:hover .fa-p-gallery__kicker,
.fa-p-gallery__item:focus-within .fa-p-gallery__kicker,
.fa-p-gallery__item:hover .fa-p-gallery__designation,
.fa-p-gallery__item:focus-within .fa-p-gallery__designation {
	opacity: 1;
}

.fa-p-gallery__name {
	font-family: "Playfair Display", serif;
	font-size: clamp(15px, 1.3vw, 19px);
	line-height: 1.3;
	color: rgba(247, 241, 231, .78);
	margin: 0;
	transition: color .35s ease;
}
.fa-p-gallery__item:hover .fa-p-gallery__name,
.fa-p-gallery__item:focus-within .fa-p-gallery__name {
	color: var(--fa-p-ivory);
}

.fa-p-gallery__desc {
	font-family: Inter, sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(247, 241, 231, .55);
	max-width: 32ch;
	margin: 8px 0 0;
	opacity: 0;
	transition: opacity .35s ease;
}
.fa-p-gallery__item:hover .fa-p-gallery__desc,
.fa-p-gallery__item:focus-within .fa-p-gallery__desc {
	opacity: 1;
}

.fa-p-gallery__socials {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
	opacity: 0;
	transition: opacity .35s ease;
}
.fa-p-gallery__item:hover .fa-p-gallery__socials,
.fa-p-gallery__item:focus-within .fa-p-gallery__socials {
	opacity: 1;
}
.fa-p-gallery__social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(238, 187, 88, .35);
	color: rgba(238, 187, 88, .8);
	transition: border-color .3s ease, color .3s ease, transform .3s ease;
	flex: 0 0 auto;
}
.fa-p-gallery__social svg {
	width: 13px;
	height: 13px;
}
.fa-p-gallery__social:hover,
.fa-p-gallery__social:focus-visible {
	border-color: var(--fa-p-gold);
	color: var(--fa-p-ivory);
	transform: translateY(-2px);
	outline: none;
}

@media (max-width: 1080px) {
	.fa-p-gallery__item { flex-basis: 29%; min-width: 190px; }
	.fa-p-gallery__item--wide { flex-basis: 62%; min-width: 340px; }
}
@media (max-width: 780px) {
	.fa-p-gallery__item { flex-basis: 45%; min-width: 150px; }
	.fa-p-gallery__item--wide { flex-basis: 94%; min-width: 0; }
}
@media (max-width: 480px) {
	.fa-p-gallery__item,
	.fa-p-gallery__item--wide { flex-basis: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.fa-p-gallery__art img,
	.fa-p-gallery__kicker,
	.fa-p-gallery__designation,
	.fa-p-gallery__name,
	.fa-p-gallery__desc,
	.fa-p-gallery__socials,
	.fa-p-gallery__social {
		transition: none !important;
	}
}


/* =====================================================================
   v1.8.0 -- Luxury editorial sponsor wall
   ---------------------------------------------------------------------
   Replaces the earlier v1.6.x width/composition pass. The released width
   work is kept (sections released from the theme's 800px content column,
   grid at 90% / 1660px). The composition is rebuilt so the LOGOS are the
   subject: no card container, no shared artwork box, no tile background,
   and no positional stagger.

   Scale is driven by the v1.7.0 display-rank classes printed on each item
   (--r10 Core Event Partners ... --r50 Program Advertisers, --r900
   unranked), so presence follows the sponsor hierarchy and a newly added
   record inherits the correct treatment automatically instead of
   depending on its position in the row.

   Logos are normalised OPTICALLY: height is the primary cap and width is
   capped just above it, so a square source file cannot tower over a wide
   wordmark simply because of its raw proportions.

   Append-only: deleting from this comment to the end of the file restores
   the stock v1.5.0 stylesheet.
   ===================================================================== */

.entry-content > .fa-p-gallery,
.entry-content > .fa-p-produced,
.wp-block-post-content > .fa-p-gallery,
.wp-block-post-content > .fa-p-produced {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.fa-p-gallery {
    padding: clamp(52px, 6.5vh, 88px) 0 clamp(56px, 7vh, 96px);
}

.fa-p-gallery__grid {
    width: 90%;
    max-width: 1660px;
    align-items: flex-start;
    justify-content: center;
    column-gap: clamp(30px, 3.2vw, 74px);
    row-gap: clamp(40px, 3.6vw, 68px);
    padding: 0;
}

/* The item is alignment and rhythm only -- never a card. */
.fa-p-gallery__item {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 340px;
    padding: 0;
    border: 0;
    background: none;
    transform: none;
}

.fa-p-gallery__art {
    /* Fixed artwork band per rank: every logo in a group shares one
       baseline, so names line up instead of cascading. */
    height: var(--fa-p-h, 92px);
    min-height: 0;
    margin: 0 0 13px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: none;
    border: 0;
}

.fa-p-gallery__art.is-logo img,
.fa-p-gallery__art.is-ad img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: var(--fa-p-w, 230px);
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .4));
}

/* Display-rank scale. Core Event Partners fund the event, so they carry
   the most presence; weight tapers down the hierarchy. */
.fa-p-gallery__item--r10  { --fa-p-h: clamp(78px, 8vw, 134px);   --fa-p-w: clamp(196px, 20vw, 336px); }
.fa-p-gallery__item--r20  { --fa-p-h: clamp(68px, 6.8vw, 112px); --fa-p-w: clamp(172px, 17vw, 282px); }
.fa-p-gallery__item--r30,
.fa-p-gallery__item--r40  { --fa-p-h: clamp(58px, 5.8vw, 94px);  --fa-p-w: clamp(152px, 15vw, 244px); }
.fa-p-gallery__item--r50,
.fa-p-gallery__item--r900 { --fa-p-h: clamp(50px, 5vw, 80px);    --fa-p-w: clamp(140px, 13vw, 212px); }

/* A genuine full-page advertisement keeps its own wide slot. */
.fa-p-gallery__item--wide { max-width: 700px; --fa-p-w: clamp(320px, 42vw, 680px); }
.fa-p-gallery__item--wide .fa-p-gallery__art.is-ad img { max-height: none; }

/* Supporting text stays quiet and secondary to the artwork. */
.fa-p-gallery__name { font-size: clamp(13px, 1vw, 16px); margin: 0; }
.fa-p-gallery__desc { max-width: 27ch; margin: 6px auto 0; }
.fa-p-gallery__designation { margin: 0 0 6px; }
.fa-p-gallery__socials { margin-top: 9px; }

@media (max-width: 1080px) {
    .fa-p-gallery__grid { width: 92%; column-gap: clamp(26px, 3vw, 52px); }
    .fa-p-gallery__item { max-width: 290px; }
    .fa-p-gallery__item--wide { max-width: 620px; }
}

@media (max-width: 780px) {
    .fa-p-gallery__grid { width: 92%; column-gap: 30px; row-gap: 40px; }
    .fa-p-gallery__item { max-width: 232px; }
    .fa-p-gallery__item--wide { max-width: 100%; }
    .fa-p-gallery__item--r10  { --fa-p-h: 88px; --fa-p-w: 210px; }
    .fa-p-gallery__item--r20  { --fa-p-h: 78px; --fa-p-w: 190px; }
    .fa-p-gallery__item--r30,
    .fa-p-gallery__item--r40  { --fa-p-h: 68px; --fa-p-w: 170px; }
    .fa-p-gallery__item--r50,
    .fa-p-gallery__item--r900 { --fa-p-h: 60px; --fa-p-w: 156px; }
}

@media (max-width: 480px) {
    .fa-p-gallery { padding: 44px 0 48px; }
    .fa-p-gallery__grid { width: 86%; flex-direction: column; align-items: center; row-gap: 34px; }
    .fa-p-gallery__item,
    .fa-p-gallery__item--wide { max-width: 100%; width: 100%; }
    .fa-p-gallery__item--r10  { --fa-p-h: 84px; --fa-p-w: 200px; }
    .fa-p-gallery__item--r20  { --fa-p-h: 74px; --fa-p-w: 184px; }
    .fa-p-gallery__item--r30,
    .fa-p-gallery__item--r40  { --fa-p-h: 66px; --fa-p-w: 168px; }
    .fa-p-gallery__item--r50,
    .fa-p-gallery__item--r900 { --fa-p-h: 58px; --fa-p-w: 152px; }
}

/* ---------------------------------------------------------------------
   v1.8.2 -- Reclaim the vertical dead space.
   The description and social row are hidden until hover/focus, but they
   were still reserving their full height in the layout, which forced a
   large empty band under every row. Collapsing them means the wall sits
   tight to the logos and expands only on interaction.
   --------------------------------------------------------------------- */
.fa-p-gallery__desc,
.fa-p-gallery__socials {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease, margin-top .35s ease;
}
.fa-p-gallery__item:hover .fa-p-gallery__desc,
.fa-p-gallery__item:focus-within .fa-p-gallery__desc {
    max-height: 140px;
    margin-top: 6px;
}
.fa-p-gallery__item:hover .fa-p-gallery__socials,
.fa-p-gallery__item:focus-within .fa-p-gallery__socials {
    max-height: 64px;
    margin-top: 9px;
}
@media (prefers-reduced-motion: reduce) {
    .fa-p-gallery__desc,
    .fa-p-gallery__socials { transition: none !important; }
}

/* =====================================================================
   v1.9.0 -- Compact sponsor strip
   ---------------------------------------------------------------------
   The wall is a logo strip near the foot of the page, not a full content
   section. Padding, artwork scale and row rhythm are all tightened, and
   the hidden description / social row no longer expand on hover so they
   can never reintroduce vertical space. Hierarchy is preserved: rank 10
   still reads largest, rank 50 smallest, just at a smaller overall scale.
   Wrapping stays centred flex-wrap so the last row self-centres and new
   sponsors reflow automatically.
   ===================================================================== */

.fa-p-gallery {
    padding: clamp(30px, 3.4vh, 46px) 0 clamp(32px, 3.6vh, 50px);
}

.fa-p-gallery__head {
    margin-bottom: clamp(20px, 2.2vw, 34px);
}

.fa-p-gallery__grid {
    width: 92%;
    max-width: 1500px;
    column-gap: clamp(26px, 2.6vw, 56px);
    row-gap: clamp(24px, 2.2vw, 40px);
}

.fa-p-gallery__item {
    max-width: 230px;
}

.fa-p-gallery__art {
    margin: 0 0 10px;
}

/* Tightened rank scale. */
.fa-p-gallery__item--r10  { --fa-p-h: clamp(58px, 5.2vw, 92px);  --fa-p-w: clamp(140px, 13vw, 220px); }
.fa-p-gallery__item--r20  { --fa-p-h: clamp(52px, 4.6vw, 80px);  --fa-p-w: clamp(128px, 11.5vw, 196px); }
.fa-p-gallery__item--r30,
.fa-p-gallery__item--r40  { --fa-p-h: clamp(46px, 4vw, 70px);    --fa-p-w: clamp(118px, 10vw, 176px); }
.fa-p-gallery__item--r50,
.fa-p-gallery__item--r900 { --fa-p-h: clamp(40px, 3.4vw, 60px);  --fa-p-w: clamp(108px, 9vw, 158px); }

/* Supporting copy stays collapsed at every state on the wall. */
.fa-p-gallery__desc,
.fa-p-gallery__socials,
.fa-p-gallery__item:hover .fa-p-gallery__desc,
.fa-p-gallery__item:hover .fa-p-gallery__socials,
.fa-p-gallery__item:focus-within .fa-p-gallery__desc,
.fa-p-gallery__item:focus-within .fa-p-gallery__socials {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
}

.fa-p-gallery__name { font-size: clamp(12px, .85vw, 14px); }
.fa-p-gallery__designation { margin: 0 0 4px; }

@media (max-width: 780px) {
    .fa-p-gallery { padding: 30px 0 32px; }
    .fa-p-gallery__grid { width: 92%; column-gap: 26px; row-gap: 26px; }
    .fa-p-gallery__item { max-width: 168px; }
    .fa-p-gallery__item--r10  { --fa-p-h: 62px; --fa-p-w: 150px; }
    .fa-p-gallery__item--r20  { --fa-p-h: 56px; --fa-p-w: 138px; }
    .fa-p-gallery__item--r30,
    .fa-p-gallery__item--r40  { --fa-p-h: 50px; --fa-p-w: 126px; }
    .fa-p-gallery__item--r50,
    .fa-p-gallery__item--r900 { --fa-p-h: 44px; --fa-p-w: 116px; }
}

@media (max-width: 480px) {
    .fa-p-gallery__grid { flex-direction: row; width: 90%; column-gap: 22px; row-gap: 22px; }
    .fa-p-gallery__item,
    .fa-p-gallery__item--wide { max-width: 132px; width: auto; }
    .fa-p-gallery__item--r10  { --fa-p-h: 54px; --fa-p-w: 124px; }
    .fa-p-gallery__item--r20  { --fa-p-h: 48px; --fa-p-w: 114px; }
    .fa-p-gallery__item--r30,
    .fa-p-gallery__item--r40  { --fa-p-h: 44px; --fa-p-w: 106px; }
    .fa-p-gallery__item--r50,
    .fa-p-gallery__item--r900 { --fa-p-h: 40px; --fa-p-w: 100px; }
}

/* ---------------------------------------------------------------------
   v1.9.1 -- Final height trim.
   The kicker and designation lines are hidden until hover but were still
   reserving ~44px in every row, and the heading block carried more space
   than a footer-level logo strip needs. Both are tightened here.
   --------------------------------------------------------------------- */
.fa-p-gallery__kicker,
.fa-p-gallery__designation,
.fa-p-gallery__item:hover .fa-p-gallery__kicker,
.fa-p-gallery__item:hover .fa-p-gallery__designation,
.fa-p-gallery__item:focus-within .fa-p-gallery__kicker,
.fa-p-gallery__item:focus-within .fa-p-gallery__designation {
    max-height: 0;
    margin: 0;
    overflow: hidden;
}
.fa-p-gallery__head {
    margin-bottom: clamp(14px, 1.6vw, 24px);
}
.fa-p-gallery__heading {
    font-size: clamp(24px, 2.4vw, 36px);
    margin: 0 0 6px;
}
.fa-p-gallery__sub {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}
.fa-p-gallery__item {
    max-width: 200px;
}

/* =====================================================================
   v1.10.0 -- Sponsors celebrated, not compacted
   ---------------------------------------------------------------------
   Correction to v1.9.x: the height saving must come from removing empty
   containers, padding and hidden-content reservations -- NOT from
   shrinking the logos. These businesses funded the production and their
   marks are the point of the section.

   The collapsed kicker/designation/description/socials from v1.9.x are
   kept (that was genuine wasted space). The artwork scale is restored to
   a generous, editorial size and the item width is set so seven sponsors
   fall into two balanced rows rather than one cramped line.

   The rank taper is deliberately gentle: a Program Advertiser still gets
   a substantial, professional presentation, just slightly less presence
   than a Core Event Partner.
   ===================================================================== */

.fa-p-gallery {
    padding: clamp(40px, 4.4vh, 60px) 0 clamp(42px, 4.6vh, 64px);
}

.fa-p-gallery__head {
    margin-bottom: clamp(20px, 2vw, 32px);
}

.fa-p-gallery__heading {
    font-size: clamp(26px, 2.5vw, 40px);
    margin: 0 0 8px;
}

.fa-p-gallery__sub {
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.fa-p-gallery__grid {
    width: 92%;
    max-width: 1560px;
    column-gap: clamp(30px, 3vw, 62px);
    row-gap: clamp(32px, 3vw, 54px);
}

/* Wide enough for a proud logo, narrow enough that 7 sponsors settle
   into two balanced centred rows instead of one thin strip. */
.fa-p-gallery__item {
    max-width: 292px;
}

.fa-p-gallery__art {
    margin: 0 0 14px;
}

/* Generous scale. Height leads, width caps just above it, so wide,
   square and portrait marks all read as comparably prominent. */
.fa-p-gallery__item--r10  { --fa-p-h: clamp(112px, 10vw, 164px);   --fa-p-w: clamp(212px, 19vw, 292px); }
.fa-p-gallery__item--r20  { --fa-p-h: clamp(104px, 9.2vw, 150px);  --fa-p-w: clamp(200px, 17.5vw, 274px); }
.fa-p-gallery__item--r30,
.fa-p-gallery__item--r40  { --fa-p-h: clamp(98px, 8.6vw, 140px);   --fa-p-w: clamp(190px, 16.5vw, 258px); }
.fa-p-gallery__item--r50,
.fa-p-gallery__item--r900 { --fa-p-h: clamp(92px, 8vw, 130px);     --fa-p-w: clamp(180px, 15.5vw, 244px); }

.fa-p-gallery__name { font-size: clamp(13px, .95vw, 15px); }

@media (max-width: 1080px) {
    .fa-p-gallery__grid { width: 94%; column-gap: clamp(26px, 3vw, 46px); }
    .fa-p-gallery__item { max-width: 250px; }
}

@media (max-width: 780px) {
    .fa-p-gallery { padding: 38px 0 40px; }
    .fa-p-gallery__grid { width: 94%; column-gap: 28px; row-gap: 34px; }
    .fa-p-gallery__item { max-width: 210px; }
    .fa-p-gallery__item--r10  { --fa-p-h: 116px; --fa-p-w: 196px; }
    .fa-p-gallery__item--r20  { --fa-p-h: 108px; --fa-p-w: 186px; }
    .fa-p-gallery__item--r30,
    .fa-p-gallery__item--r40  { --fa-p-h: 102px; --fa-p-w: 178px; }
    .fa-p-gallery__item--r50,
    .fa-p-gallery__item--r900 { --fa-p-h: 96px;  --fa-p-w: 170px; }
}

@media (max-width: 480px) {
    .fa-p-gallery__grid { width: 90%; column-gap: 24px; row-gap: 30px; }
    .fa-p-gallery__item,
    .fa-p-gallery__item--wide { max-width: 180px; width: auto; }
    .fa-p-gallery__item--r10  { --fa-p-h: 104px; --fa-p-w: 168px; }
    .fa-p-gallery__item--r20  { --fa-p-h: 98px;  --fa-p-w: 160px; }
    .fa-p-gallery__item--r30,
    .fa-p-gallery__item--r40  { --fa-p-h: 92px;  --fa-p-w: 154px; }
    .fa-p-gallery__item--r50,
    .fa-p-gallery__item--r900 { --fa-p-h: 88px;  --fa-p-w: 148px; }
}

/* =====================================================================
   v1.11.0 -- Restore website + social exposure
   ---------------------------------------------------------------------
   Logos and names become links wherever the Partner record has a URL.
   The homepage wall (--compact) stays exactly as approved: no visible
   description, designation or icons, no extra vertical space. The
   Partners page (--full) shows the supporting detail permanently rather
   than on hover, so it works on touch devices.

   No sizing, spacing, hierarchy or layout values are altered here.
   ===================================================================== */

/* Links are invisible wrappers -- they must not change logo scale. */
.fa-p-gallery__link {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    color: inherit;
    text-decoration: none;
    border: 0;
    background: none;
}
.fa-p-gallery__name .fa-p-gallery__link {
    line-height: inherit;
}
.fa-p-gallery__art .fa-p-gallery__link img {
    max-height: 100%;
    max-width: var(--fa-p-w, 230px);
}
.fa-p-gallery__link:hover img,
.fa-p-gallery__link:focus-visible img {
    transform: translateY(-3px);
}
.fa-p-gallery__name .fa-p-gallery__link:hover,
.fa-p-gallery__name .fa-p-gallery__link:focus-visible {
    color: var(--fa-p-gold);
}

/* ---- Partners page: reveal the record detail permanently ---- */
.fa-p-gallery--full .fa-p-gallery__designation,
.fa-p-gallery--full .fa-p-gallery__kicker {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin: 0 0 6px;
}
.fa-p-gallery--full .fa-p-gallery__desc {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin: 8px auto 0;
}
.fa-p-gallery--full .fa-p-gallery__socials {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 12px;
}
.fa-p-gallery--full .fa-p-gallery__visit {
    margin: 12px 0 0;
}
.fa-p-gallery--full .fa-p-gallery__visit a {
    font-family: Inter, sans-serif;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--fa-p-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(238, 187, 88, .38);
    padding-bottom: 2px;
    transition: border-color .3s ease, color .3s ease;
}
.fa-p-gallery--full .fa-p-gallery__visit a:hover,
.fa-p-gallery--full .fa-p-gallery__visit a:focus-visible {
    color: var(--fa-p-ivory);
    border-bottom-color: var(--fa-p-ivory);
}

/* Homepage wall keeps the approved silence. */
.fa-p-gallery--compact .fa-p-gallery__desc,
.fa-p-gallery--compact .fa-p-gallery__socials,
.fa-p-gallery--compact .fa-p-gallery__kicker,
.fa-p-gallery--compact .fa-p-gallery__designation {
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

/* =====================================================================
   v1.12.0 -- Containment fix (regression from v1.11.0)
   ---------------------------------------------------------------------
   CAUSE: v1.11.0 wrapped each logo in an inline-block <a>. The img rule
   used max-height:100%, which resolves against that anchor -- and the
   anchor has no height -- so the cap was ignored and images rendered at
   natural size (e.g. 274px) inside a 144px artwork band, spilling up
   into the row above and across neighbouring sponsors.

   FIX: the anchor becomes a full-height flex box, and the image cap is
   an explicit length (the rank variable) instead of a percentage, with
   max-width:100% as a hard backstop. Every logo is now contained by its
   own item in normal document flow. No negative margins, no positioning
   transforms, no absolute positioning anywhere in this block.
   ===================================================================== */

.fa-p-gallery__art .fa-p-gallery__link {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    line-height: 0;
}

/* Explicit caps: never a percentage against an auto-height ancestor. */
.fa-p-gallery__art img,
.fa-p-gallery__art.is-logo img,
.fa-p-gallery__art.is-ad img,
.fa-p-gallery__art .fa-p-gallery__link img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, var(--fa-p-w, 230px));
    max-height: var(--fa-p-h, 92px);
    object-fit: contain;
}

/* Containment: artwork can never escape its own item. */
.fa-p-gallery__item {
    position: relative;
    overflow: hidden;
    min-width: 0;
}
.fa-p-gallery__art {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* No CSS-created tiles, cards, borders or shadows behind artwork.
   Colour baked into a sponsor's own image file is untouched. */
.fa-p-gallery__item,
.fa-p-gallery__art,
.fa-p-gallery__art .fa-p-gallery__link {
    background: none;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Balanced 4 + 3 on desktop; final row centres naturally. */
.fa-p-gallery__item { max-width: 252px; }
.fa-p-gallery__item--r10  { --fa-p-w: clamp(180px, 16vw, 236px); }
.fa-p-gallery__item--r20  { --fa-p-w: clamp(170px, 15vw, 224px); }
.fa-p-gallery__item--r30,
.fa-p-gallery__item--r40  { --fa-p-w: clamp(160px, 14vw, 212px); }
.fa-p-gallery__item--r50,
.fa-p-gallery__item--r900 { --fa-p-w: clamp(150px, 13vw, 200px); }
.fa-p-gallery__item--wide { max-width: 520px; --fa-p-w: clamp(280px, 34vw, 500px); }

@media (max-width: 1080px) {
    .fa-p-gallery__item { max-width: 226px; }
}
@media (max-width: 780px) {
    .fa-p-gallery__item { max-width: 200px; }
    .fa-p-gallery__item--wide { max-width: 100%; }
}
@media (max-width: 480px) {
    .fa-p-gallery__item,
    .fa-p-gallery__item--wide { max-width: 170px; }
}
