/* =========================================================
   GIFT design: a calm, open layout after the Elton John AIDS Foundation's website, with movement
   after Global's (photo tiles that zoom gently, huge outlined words drifting behind a band). Built on
   the Union design: the page wears .d-union and .d-gift, and this sheet loads after union.css, so
   every rule here starts with .d-gift (or .x-gift) and wins over Union's. Colours, fonts and logos
   come from each site's settings. Layout follows the width of the page itself (container queries).
   ========================================================= */

.site.d-gift, .x-gift {
  --gf-navy: var(--c-main, #0F2740);
  --gf-gold: var(--c-accent, #FAD82C);
  --gf-slate: var(--c-support, #568195);
  --gf-pale: var(--c-tint, #C5DAF4);
  /* The highlight, from the blue ribbon in Giddo's logo: the headline's last line, the badge and small
     touches on navy. The buttons keep the yellow, so the page carries both ribbons. */
  --gf-blue: var(--c-highlight, #1C92CF);
  /* Between the pale blue and the second colour: the band of drifting words, like Global's sky blue. */
  --gf-sky: color-mix(in srgb, var(--gf-pale) 58%, var(--gf-slate));
  /* Corners follow the site's Corners setting (square for Giddo's Gift). The films keep the rounded
     shape of a phone whatever it is. */
  --gf-radius: var(--radius, 0px);
  /* The lettering: narrow capitals and square buttons, as on the Elton John site. A site whose
     heading font is not Oswald gets .gf-soft (gift.js), which turns these back. */
  --gf-case: uppercase;
  --gf-hw: 700;
  --gf-label: var(--f-head);
  --gf-btn-radius: 0;
  /* Union's colours, retuned. Its "deep accent" carries white words, so here it is the navy. */
  --un-accent-deep: var(--gf-navy);
  --un-grey: #F2F6FB;
  --un-ink: #12233A;
  --un-soft: #4A5B6E;
  --un-line: #DAE3EE;
  --un-foot: var(--gf-navy);
  --tl-accent: var(--gf-navy);
}
.site.d-gift { font-size: 18px; line-height: 1.62; color: var(--un-ink); }
.d-gift .un-texture { display: none; }
:where(.d-gift .un) :is(h1, h2, h3) { text-wrap: balance; }

/* ---------- Headings and words ---------- */
/* The Elton John site's type: headings, menu, labels and buttons in a tall, narrow bold face, all in
   capitals and set tight; everything else in plain Helvetica. */
.d-gift .gf-h2, .d-gift .un-h2 { font: var(--gf-hw) clamp(36px, 4.6cqi, 66px)/.94 var(--f-head); letter-spacing: -.01em; text-transform: var(--gf-case); color: var(--gf-navy); }
.d-gift :is(.un-bg-main, .un-bg-support) :is(.gf-h2, .un-h2) { color: #fff; }
.d-gift .gf-head { max-width: 760px; margin-bottom: clamp(30px, 4cqi, 48px); }
.d-gift .gf-head.gf-centre { margin-inline: auto; text-align: center; }
.d-gift .gf-intro { margin-top: 14px; font-size: clamp(19px, 1.8cqi, 22px); line-height: 1.5; color: var(--un-soft); }
.d-gift :is(.un-bg-main, .un-bg-support) .gf-intro { color: inherit; opacity: .9; }
.d-gift .gf-kicker { margin-bottom: 14px; font: 600 18px/1.2 var(--gf-label); letter-spacing: .04em; text-transform: uppercase; color: var(--gf-slate); }
.d-gift :is(.un-bg-main, .un-bg-support) .gf-kicker { color: var(--gf-gold); }
.d-gift .un-bg-main .gf-kicker { color: var(--gf-blue); }
.d-gift .gf-prose, .d-gift .un-prose { font-size: 18.5px; line-height: 1.72; }
.d-gift .un-prose a { color: var(--gf-navy); text-decoration-color: var(--gf-gold); text-decoration-thickness: 2px; }
.d-gift :is(.un-bg-main, .un-bg-support) .un-prose a { color: #fff; }
.d-gift .un-prose ul { padding-inline-start: 1.2em; }
.d-gift .un-prose li::marker { color: var(--gf-slate); }

/* ---------- Buttons: square, in capitals, with a small arrow, as on the Elton John site ---------- */
.d-gift .btn.un-pill, .x-gift .btn.un-pill { min-height: 52px; gap: 10px; padding: 13px 22px 12px; border-radius: var(--gf-btn-radius); font: 600 19px/1 var(--gf-label); letter-spacing: .03em; text-transform: var(--gf-case); }
.d-gift .btn.un-pill::after, .x-gift .btn.un-pill::after { content: ""; flex-shrink: 0; width: .6em; height: .6em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M2.5 13.5 13 3M4.5 3H13v8.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M2.5 13.5 13 3M4.5 3H13v8.5'/%3E%3C/svg%3E") center / contain no-repeat; }
/* In a right-to-left language the arrow points up and to the left. */
[dir="rtl"] .d-gift .btn.un-pill::after, [dir="rtl"] .x-gift .btn.un-pill::after { scale: -1 1; }
/* The header's Donate button needs no arrow, and Union's own small arrows give way to this one. */
.d-gift .un-head .btn.un-pill::after, .d-gift .btn.un-pill .un-chev { display: none; }
.x-gift .btn.sw-navy, .d-gift .sw-form-preview .btn.sw-navy { border-radius: var(--gf-btn-radius); font: 600 19px/1 var(--gf-label); letter-spacing: .03em; text-transform: var(--gf-case); }
.d-gift .btn.gf-navy, .x-gift .btn.gf-navy { background: var(--gf-navy); color: #fff; }
.d-gift .btn.gf-navy:hover { background: var(--gf-slate); }
.d-gift .btn.gf-gold, .x-gift .btn.gf-gold { background: var(--gf-gold); color: var(--gf-navy); }
.d-gift .btn.gf-gold:hover { background: #fff; }
.d-gift .btn.un-fill:hover { background: var(--gf-slate); }
/* The Donate button in the header is the brand's yellow. */
.d-gift .un-head .btn.un-fill { background: var(--gf-gold); color: var(--gf-navy); }
.d-gift .un-head .btn.un-fill:hover { background: var(--gf-navy); color: #fff; }

/* ---------- Bands of colour ---------- */
.d-gift .un-bg-accent { background: var(--gf-gold); color: var(--gf-navy); }
.d-gift .un-bg-accent :is(.un-h2, .gf-h2) { color: var(--gf-navy); }
.d-gift .un-bg-accent .btn.un-white { background: var(--gf-navy); color: #fff; }
.d-gift .un-bg-accent .btn.un-line-white { color: var(--gf-navy); box-shadow: inset 0 0 0 1.5px var(--gf-navy); }
.d-gift .un-bg-tint { background: var(--gf-pale); }
.d-gift .un-bg-support { background: var(--gf-slate); }

/* ---------- Header: a white bar, the round logo, a yellow Donate button ---------- */
.d-gift .un-top { background: var(--gf-navy); }
.d-gift .un-bar { border-bottom: 0; box-shadow: 0 1px 0 var(--un-line); }
.d-gift .un-bar-row { padding-block: 12px; }
.d-gift .un-brand img { height: 64px; }
/* Kept close enough that the whole menu, the tools and the Donate button fit on one line at full width. */
.d-gift .un-nav-links { gap: 16px; font: 600 17px/1 var(--gf-label); letter-spacing: .03em; text-transform: var(--gf-case); }
.d-gift .un-nav-links a:hover { color: var(--gf-navy); border-bottom-color: var(--gf-gold); }
/* The "10 years" seal, in the highlight blue with navy words. */
.d-gift .un-badge { --un-accent: var(--gf-blue); }
.d-gift .un-badge text { fill: var(--gf-navy); }
.d-gift .un-badge circle { stroke: var(--gf-navy); }
@container site (max-width: 700px) { .d-gift .un-brand img { height: 52px; } }

/* ---------- Big photo banner ---------- */
.d-gift .gf-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: var(--gf-navy); }
.d-gift .gf-hero-home { min-height: clamp(540px, 52cqi, 720px); }
.d-gift .gf-hero-page { min-height: clamp(400px, 40cqi, 560px); }
.d-gift .gf-hero-title { min-height: 0; }
.d-gift .gf-hero.gf-tone-support { background: var(--gf-slate); }
.d-gift .gf-hero.gf-tone-accent { background: var(--gf-gold); color: var(--gf-navy); }
.d-gift .gf-hero.gf-tone-tint { background: var(--gf-pale); color: var(--gf-navy); }
.d-gift .gf-hero-bg { position: absolute; inset: -12% 0 -12% 0; z-index: -2; will-change: transform; }
.d-gift .gf-hero-bg img, .d-gift .gf-hero-bg > .ed-img-ph { width: 100%; height: 100%; object-fit: cover; }
/* Like the Elton John site: the words sit on the left, over a shade that clears towards the right. */
.d-gift .gf-hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(calc(90deg * var(--mirror, 1)), color-mix(in srgb, var(--gf-navy) 86%, transparent) 0%, color-mix(in srgb, var(--gf-navy) 50%, transparent) 42%, transparent 78%),
    linear-gradient(0deg, color-mix(in srgb, var(--gf-navy) 70%, transparent) 0%, transparent 46%); }
.d-gift .gf-tone-support .gf-hero-shade { background: linear-gradient(calc(90deg * var(--mirror, 1)), color-mix(in srgb, var(--gf-slate) 90%, #000 10%) 0%, color-mix(in srgb, var(--gf-slate) 55%, transparent) 45%, transparent 80%), linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 50%); }
.d-gift .gf-has-photo.gf-tone-accent, .d-gift .gf-has-photo.gf-tone-tint { color: #fff; }
.d-gift .gf-hero-body { position: relative; padding-block: clamp(72px, 9cqi, 120px) clamp(56px, 7cqi, 96px); }
.d-gift .gf-hero-title .gf-hero-body { padding-block: 40px clamp(48px, 6cqi, 76px); }
.d-gift .gf-h1 { max-width: 15ch; margin: 0; font: var(--gf-hw) clamp(52px, 7.6cqi, 124px)/.9 var(--f-head); letter-spacing: -.015em; text-transform: var(--gf-case); text-wrap: balance; }
.d-gift .gf-hero-page .gf-h1, .d-gift .gf-hero-title .gf-h1 { font-size: clamp(46px, 6.2cqi, 96px); max-width: 18ch; }
.d-gift .gf-stack .gf-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.d-gift .gf-stack .gf-line > span { display: inline-block; }
/* The last line of a stacked headline in the highlight blue. */
.d-gift .gf-hero:is(.gf-tone-main, .gf-tone-support, .gf-has-photo) .gf-stack .gf-line:last-child > span { color: var(--gf-blue); }
.d-gift .gf-lead { max-width: 44ch; margin-top: 24px; font-size: clamp(19px, 1.9cqi, 23px); line-height: 1.45; }
.d-gift .gf-hero .un-pills { margin-top: 34px; }
.d-gift .gf-hero .gf-kicker { color: inherit; opacity: .9; }
.d-gift .gf-crumbs { margin-bottom: 22px; opacity: .92; }
.d-gift .gf-hero.gf-no-photo:is(.gf-tone-tint, .gf-tone-accent) .btn.gf-navy { background: var(--gf-navy); color: #fff; }

/* ---------- Layered photos with text ---------- */
.d-gift .gf-collage { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 7cqi, 110px); align-items: center; }
.d-gift .gf-collage.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.d-gift .gf-collage.flip > .gf-layers { order: 2; }
.d-gift .gf-layers { position: relative; aspect-ratio: 1 / 1.02; }
.d-gift .gf-layer { position: absolute; overflow: hidden; border-radius: var(--gf-radius); background: var(--un-grey); will-change: transform; }
.d-gift .gf-layer img, .d-gift .gf-layer > .ed-img-ph { width: 100%; height: 100%; object-fit: cover; }
.d-gift .gf-layer-1 { inset-inline-start: 0; top: 0; width: 70%; aspect-ratio: 4 / 5; }
.d-gift .gf-layer-2 { inset-inline-end: 0; bottom: 0; width: 50%; aspect-ratio: 4 / 5; box-shadow: 0 0 0 8px #fff, 0 24px 50px rgba(15, 39, 64, .25); }
.d-gift .gf-layer-3 { inset-inline-end: 6%; top: 4%; width: 30%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 14px 30px rgba(15, 39, 64, .2); }
.d-gift .gf-layers.n-1 .gf-layer-1 { width: 100%; }
.d-gift :is(.un-bg-grey) .gf-layer-2 { box-shadow: 0 0 0 8px var(--un-grey), 0 24px 50px rgba(15, 39, 64, .25); }
.d-gift :is(.un-bg-tint) .gf-layer-2 { box-shadow: 0 0 0 8px var(--gf-pale), 0 24px 50px rgba(15, 39, 64, .25); }
.d-gift .gf-collage-copy .un-prose { margin-top: 20px; }

/* ---------- Photo tiles, after Global's ---------- */
.d-gift .gf-tiles { display: grid; gap: 22px; }
.d-gift .gf-tiles-feature { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-auto-rows: minmax(280px, 1fr); }
.d-gift .gf-tiles-feature > :first-child { grid-row: span 2; min-height: 600px; }
.d-gift .gf-tiles-feature.n-1 { grid-template-columns: 1fr; }
.d-gift .gf-tiles-feature.n-2 > :first-child { grid-row: auto; }
.d-gift .gf-tiles-feature > :nth-child(n + 4) { grid-column: span 1; }
.d-gift .gf-tiles-row { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 400px; }
.d-gift .gf-tiles-row.n-2, .d-gift .gf-tiles-row.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d-gift .gf-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; min-height: 280px; border-radius: var(--gf-radius); color: #fff; background: var(--gf-navy); text-decoration: none; }
.d-gift .gf-tile-img { position: absolute; inset: 0; z-index: -2; }
.d-gift .gf-tile-img img, .d-gift .gf-tile-img > .ed-img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.d-gift .gf-tile-shade { position: absolute; inset: 0; z-index: -1; transition: opacity .6s ease; }
.d-gift .gf-tile-shade::before, .d-gift .gf-tile-shade::after { content: ""; position: absolute; inset: 0; transition: opacity .6s ease; }
/* A shade that is darkest at the foot of the tile, where the title sits, and a wash of colour over it. */
.d-gift .gf-tile-shade::before { background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--tile) 88%, #000) 100%); }
.d-gift .gf-tile-shade::after { background: var(--tile); mix-blend-mode: multiply; opacity: .35; }
.d-gift .gf-tint-main { --tile: var(--gf-navy); }
.d-gift .gf-tint-support { --tile: var(--gf-slate); }
/* Yellow muddies a dark photo, so the accent tile keeps its photo clear and warms only its foot. */
.d-gift .gf-tint-accent { --tile: #2a2205; }
.d-gift .gf-tint-accent .gf-tile-shade::after { background: linear-gradient(180deg, transparent 45%, var(--gf-gold) 140%); mix-blend-mode: normal; opacity: .7; }
.d-gift a.gf-tile.gf-tint-accent:hover .gf-tile-shade::after { opacity: 1; }
.d-gift .gf-tint-tint { --tile: color-mix(in srgb, var(--gf-pale) 50%, var(--gf-slate)); }
.d-gift .gf-tile-body { position: relative; width: 100%; padding: clamp(22px, 2.6cqi, 36px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.d-gift .gf-tile-title { margin: 0; font: 700 clamp(34px, 3.6cqi, 52px)/.98 var(--f-body); letter-spacing: -.035em; text-transform: lowercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.d-gift .gf-tiles-feature > :first-child .gf-tile-title { font-size: clamp(44px, 6cqi, 86px); }
.d-gift .gf-tile-text { max-width: 36ch; margin-top: 10px; font-size: 17px; line-height: 1.45; opacity: .95; }
.d-gift .gf-tile-more { display: inline-block; margin-top: 18px; padding: 12px 22px; background: var(--gf-pale); color: var(--gf-navy); font: 600 17px/1 var(--gf-label); letter-spacing: .03em; text-transform: uppercase; transition: background-color .25s, color .25s; }
.d-gift a.gf-tile:hover .gf-tile-img img { transform: scale(1.07); }
.d-gift a.gf-tile:hover .gf-tile-shade::after { opacity: .62; }
.d-gift a.gf-tile:hover .gf-tile-body { transform: translateY(-6px); }
.d-gift a.gf-tile:hover .gf-tile-more { background: var(--gf-gold); }
.d-gift a.gf-tile:focus-visible { outline: 3px solid var(--gf-gold); outline-offset: 4px; }

/* ---------- Band of drifting words, after Global's careers band ---------- */
.d-gift .gf-marquee { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(44px, 6cqi, 70px); background: var(--gf-sky); color: var(--gf-navy); }
.d-gift .gf-band-tint { background: var(--gf-sky); }
.d-gift .gf-band-accent { background: var(--gf-gold); }
.d-gift .gf-band-main { background: var(--gf-navy); color: #fff; }
.d-gift .gf-band-support { background: var(--gf-slate); color: #fff; }
.d-gift .gf-marquee-words { position: absolute; inset: 0; z-index: -1; display: flex; align-items: center; overflow: hidden; pointer-events: none; }
.d-gift .gf-marquee-run { display: flex; flex-shrink: 0; white-space: nowrap; }
.d-gift .gf-marquee-run > span { padding-inline-end: .3em; font: 700 clamp(110px, 15cqi, 230px)/1 var(--f-body); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .78); }
.d-gift .gf-band-accent .gf-marquee-run > span { -webkit-text-stroke-color: rgba(255, 255, 255, .9); }
.d-gift :is(.gf-band-main, .gf-band-support) .gf-marquee-run > span { -webkit-text-stroke-color: rgba(255, 255, 255, .22); }
.d-gift .gf-marquee-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 64px; text-align: center; }
.d-gift .gf-marquee-text { max-width: 30ch; font-size: clamp(21px, 2.1cqi, 27px); font-weight: 700; line-height: 1.3; }
/* On the pale band the button is the yellow, turning navy under the mouse. */
.d-gift .gf-band-tint .btn.gf-navy { background: var(--gf-gold); color: var(--gf-navy); }
.d-gift .gf-band-tint .btn.gf-navy:hover { background: var(--gf-navy); color: #fff; }
.d-gift .gf-edit-note { margin-top: 18px; font-size: 15px; }

/* ---------- Numbered list ---------- */
.d-gift .gf-numbered { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; margin: 0; padding: 0; list-style: none; }
.d-gift .gf-numbered-item { display: block; padding-top: 20px; border-top: 1px solid var(--un-line); color: inherit; }
.d-gift .gf-num { display: block; margin-bottom: 8px; font: var(--gf-hw) clamp(56px, 6cqi, 84px)/1 var(--f-head); color: transparent; -webkit-text-stroke: 2px var(--gf-slate); transition: color .5s ease, -webkit-text-stroke-color .5s; }
.d-gift .gf-numbered-item h3 { font: var(--gf-hw) clamp(24px, 2.2cqi, 30px)/1 var(--f-head); text-transform: var(--gf-case); color: var(--gf-navy); }
.d-gift .gf-numbered-item p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--un-soft); }
.d-gift .gf-numbered-item:hover .gf-num, .d-gift .gf-numbered-item:focus-within .gf-num { color: var(--gf-blue); -webkit-text-stroke-color: var(--gf-blue); }
.d-gift a.gf-numbered-item:hover h3 { text-decoration: underline; text-decoration-color: var(--gf-gold); text-underline-offset: 5px; }
.d-gift :is(.un-bg-main, .un-bg-support) .gf-numbered-item { border-top-color: rgba(255, 255, 255, .2); }
.d-gift :is(.un-bg-main, .un-bg-support) .gf-num { -webkit-text-stroke-color: var(--gf-blue); }
.d-gift :is(.un-bg-main, .un-bg-support) .gf-numbered-item :is(h3, p) { color: #fff; }

/* ---------- Short films, as phones ---------- */
.d-gift .gf-films { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 22px; }
.d-gift .gf-films.n-3 { --n: 3; } .d-gift .gf-films.n-4 { --n: 4; } .d-gift .gf-films.n-5 { --n: 5; } .d-gift .gf-films.n-2 { --n: 2; } .d-gift .gf-films.n-1 { --n: 1; max-width: 340px; }
.d-gift .gf-films-square { --n: 4; }
.d-gift .gf-film { margin: 0; }
.d-gift .gf-film-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; text-align: start; }
.d-gift .gf-film-media { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 30px; background: #0b1b2c; box-shadow: 0 0 0 6px #0b1b2c, 0 22px 40px rgba(15, 39, 64, .22); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.d-gift .gf-films-phone .gf-film-media::before { content: ""; position: absolute; z-index: 3; top: 9px; left: 50%; width: 30%; height: 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); transform: translateX(-50%); }
.d-gift .gf-films-square .gf-film-media { aspect-ratio: 1; border-radius: var(--gf-radius); box-shadow: 0 18px 36px rgba(15, 39, 64, .16); }
.d-gift .gf-film-media img, .d-gift .gf-film-media > .ed-img-ph, .d-gift .gf-film-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-gift .gf-film-preview { z-index: 1; }
/* In the bottom corner, clear of the faces and titles that most films show in the middle. */
.d-gift .gf-play { position: absolute; z-index: 2; inset-inline-end: 14px; bottom: 14px; display: grid; place-items: center; width: 56px; height: 56px; padding-inline-start: 4px; box-sizing: border-box; border-radius: 50%; background: var(--gf-gold); color: var(--gf-navy); box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.d-gift .gf-film-btn:hover .gf-film-media, .d-gift .gf-film-btn:focus-visible .gf-film-media { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 0 0 6px #0b1b2c, 0 32px 50px rgba(15, 39, 64, .3); }
.d-gift .gf-films-square .gf-film-btn:hover .gf-film-media { box-shadow: 0 28px 46px rgba(15, 39, 64, .24); }
.d-gift .gf-films-phone .gf-play { top: 24px; bottom: auto; width: 50px; height: 50px; }
.d-gift .gf-film-btn:hover .gf-play { transform: scale(1.12); }
.d-gift .gf-film-btn:has(.gf-film-preview) .gf-play { opacity: 0; }
.d-gift .gf-film-btn:focus-visible { outline: none; }
.d-gift .gf-film-btn:focus-visible .gf-film-media { outline: 3px solid var(--gf-gold); outline-offset: 8px; }
.d-gift .gf-film figcaption h3 { margin-top: 20px; font: var(--gf-hw) 22px/1.05 var(--f-head); text-transform: var(--gf-case); color: inherit; }
.d-gift .gf-film figcaption p { margin-top: 6px; font-size: 15.5px; line-height: 1.45; color: var(--un-soft); }
.d-gift :is(.un-bg-main, .un-bg-support) .gf-film figcaption p { color: inherit; opacity: .85; }

/* The window that plays a film or shows a picture larger. */
.gf-box { max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; font-family: var(--f-body, system-ui); }
.gf-box::backdrop { background: rgba(6, 16, 28, .9); backdrop-filter: blur(4px); }
.gf-box-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; padding: 56px 16px 24px; box-sizing: border-box; }
.gf-box-stage { display: grid; place-items: center; max-width: 100%; min-height: 0; flex: 1; }
.gf-box-stage video, .gf-box-stage img { display: block; max-width: min(92vw, 1100px); max-height: calc(100vh - 140px); border-radius: 16px; background: #000; }
.gf-box-title { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.gf-box-close { position: absolute; top: 14px; inset-inline-end: 16px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: #0F2740; font: 400 30px/1 system-ui, sans-serif; cursor: pointer; }
.gf-box-close:hover { background: #FAD82C; }
.gf-box-close:focus-visible { outline: 3px solid #FAD82C; outline-offset: 3px; }

/* ---------- Cards with buttons ---------- */
.d-gift .gf-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.d-gift .gf-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-gift .gf-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--gf-radius); background: #fff; color: var(--un-ink); box-shadow: 0 0 0 1px var(--un-line); }
.d-gift .un-bg-white .gf-card { background: var(--un-grey); box-shadow: none; }
.d-gift .gf-card-img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--gf-pale); }
.d-gift .gf-card-img img, .d-gift .gf-card-img > .ed-img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.d-gift .gf-card:hover .gf-card-img img { transform: scale(1.04); }
.d-gift .gf-cards-round .gf-card-img { width: 168px; aspect-ratio: 1; margin: 30px 30px 0; border-radius: 50%; background: transparent; }
.d-gift .gf-cards-round .gf-card-img img { object-fit: contain; }
.d-gift .gf-card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 28px 30px 30px; }
.d-gift .gf-card h3 { font: var(--gf-hw) clamp(28px, 2.6cqi, 38px)/.98 var(--f-head); text-transform: var(--gf-case); color: var(--gf-navy); }
.d-gift .gf-card-text { font-size: 17px; line-height: 1.6; color: var(--un-soft); }
.d-gift .gf-card-text p + p { margin-top: .8em; }
.d-gift .gf-card-go { margin-top: auto; padding-top: 10px; }
.d-gift .gf-card-go:empty { display: none; }
/* The cards' buttons match the photo tiles' ones: pale blue, turning yellow under the mouse. */
.d-gift .gf-card-go .btn.gf-navy { background: var(--gf-pale); color: var(--gf-navy); }
.d-gift .gf-card-go .btn.gf-navy:hover { background: var(--gf-gold); }

/* ---------- Picture grid ---------- */
.d-gift .gf-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.d-gift .gf-gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.d-gift .gf-gallery.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.d-gift .gf-pic-item { display: flex; flex-direction: column; min-width: 0; }
.d-gift .gf-pic-open { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: zoom-in; }
.d-gift a.gf-pic-open { cursor: pointer; }
.d-gift .gf-pic { display: block; overflow: hidden; border-radius: var(--gf-radius); background: var(--un-grey); }
.d-gift .gf-pic img, .d-gift .gf-pic > .ed-img-ph { display: block; width: 100%; height: 100%; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.d-gift .gf-gallery-photos .gf-pic { aspect-ratio: 1; }
.d-gift .gf-gallery-photos .gf-pic img { object-fit: cover; }
.d-gift .gf-gallery-posters .gf-pic img { height: auto; }
.d-gift .gf-gallery-hearts .gf-pic { background: transparent; border-radius: 0; }
.d-gift .gf-gallery-hearts .gf-pic img { height: auto; }
.d-gift .gf-pic-open:hover .gf-pic img { transform: scale(1.04); }
.d-gift .gf-gallery-hearts .gf-pic-open:hover .gf-pic img { transform: scale(1.08) rotate(-2deg); }
.d-gift .gf-pic-open:focus-visible { outline: 3px solid var(--gf-gold); outline-offset: 4px; }
.d-gift .gf-pic-title { display: block; margin-top: 12px; font-weight: 600; font-size: 17px; line-height: 1.3; }
.d-gift .gf-pic-text { display: block; margin-top: 4px; font-size: 15.5px; color: var(--un-soft); }
/* Things to buy: each on a white card, the picture whole on the pale blue. */
.d-gift .gf-shop-item { padding: 16px 16px 20px; border-radius: var(--gf-radius); background: #fff; box-shadow: 0 0 0 1px var(--un-line); }
.d-gift .gf-shop-item .gf-pic { aspect-ratio: 1; background: var(--gf-pale); }
.d-gift .gf-shop-item .gf-pic img { object-fit: contain; padding: 8%; box-sizing: border-box; }
.d-gift .gf-shop-item:hover .gf-pic img { transform: scale(1.05) rotate(-2deg); }
.d-gift .gf-shop-item .gf-pic-text { font-size: 19px; font-weight: 700; color: var(--gf-navy); }
/* The button sits at the foot of every card, so a row's buttons line up; whatever comes before it keeps
   a little room above it. */
.d-gift .gf-shop-item .btn { align-self: flex-start; margin-top: auto; }
.d-gift .gf-shop-item:has(> .btn) > :nth-last-child(2) { margin-bottom: 14px; }
/* Names take two lines at most and always that much room, so the prices line up too (shopNames in gift.js). */
.d-gift .gf-shop-item .gf-pic-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.6em; }
.d-gift .gf-shop-item .gf-pic-title.is-cut { cursor: pointer; }
.d-gift .gf-shop-item .gf-pic-title.is-open { display: block; -webkit-line-clamp: none; }
.d-gift .gf-post-gallery { margin-top: 40px; }

/* ---------- People with stories ---------- */
.d-gift .gf-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 26px; align-items: start; }
.d-gift .gf-people.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-gift .gf-person-img { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--gf-radius); background: var(--gf-pale); }
.d-gift .gf-person-img img, .d-gift .gf-person-img > .ed-img-ph { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.d-gift .gf-person:hover .gf-person-img img { transform: scale(1.04); }
.d-gift .gf-person h3 { margin-top: 18px; font: var(--gf-hw) 28px/1 var(--f-head); text-transform: var(--gf-case); color: var(--gf-navy); }
.d-gift .gf-person-role { margin-top: 6px; font: 600 16px/1.2 var(--gf-label); letter-spacing: .04em; text-transform: uppercase; color: var(--gf-slate); }
.d-gift .gf-person-text { margin-top: 10px; font-size: 16.5px; line-height: 1.55; color: var(--un-soft); }
.d-gift .gf-person-more { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--un-soft); }
.d-gift .gf-person-more summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-weight: 600; color: var(--gf-navy); text-decoration: underline; text-decoration-color: var(--gf-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.d-gift .gf-person-more summary::-webkit-details-marker { display: none; }
.d-gift .gf-person-more summary::after { content: "+"; font-size: 20px; line-height: 1; text-decoration: none; }
.d-gift .gf-person-more[open] summary::after { content: "–"; }
.d-gift .gf-person-more p { margin-top: .8em; }

/* ---------- Supporters' logos ---------- */
.d-gift .gf-logos-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.d-gift .gf-logos-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.d-gift .gf-logo-item { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--gf-radius); background: #fff; color: var(--un-ink); box-shadow: 0 0 0 1px var(--un-line); transition: box-shadow .3s, transform .3s; }
.d-gift a.gf-logo-item:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--un-line), 0 14px 30px rgba(15, 39, 64, .12); }
.d-gift .gf-logo { display: grid; place-items: center; height: 130px; padding: 18px 24px; box-sizing: border-box; background: #fff; }
.d-gift .gf-logo.is-dark { background: var(--gf-navy); }
.d-gift .gf-logo img { max-width: 100%; max-height: 94px; width: auto; height: auto; object-fit: contain; }
.d-gift .gf-logos-wall .gf-logo img { max-height: 66px; }
.d-gift .gf-strip .gf-logo img { max-height: 70px; }
.d-gift .gf-logo > .ed-img-ph { width: 100%; height: 100%; }
.d-gift .gf-logos-wall .gf-logo { height: 96px; padding: 14px; }
.d-gift .gf-logo-body { padding: 20px 24px 24px; border-top: 1px solid var(--un-line); }
.d-gift .gf-logo-body h3 { font: 600 20px/1.25 var(--f-body); color: var(--gf-navy); }
.d-gift .gf-logo-body p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--un-soft); }
.d-gift .gf-logo-name { padding: 0 10px 12px; font-size: 13.5px; line-height: 1.3; text-align: center; color: var(--un-soft); }
/* The strip: two copies side by side, sliding along one copy's width, so it never ends. */
.d-gift .gf-logo-strip { overflow: hidden; }
.d-gift .gf-strip { display: flex; width: max-content; }
.d-gift .gf-strip-run { display: flex; flex-shrink: 0; align-items: center; gap: 22px; margin: 0; padding: 0 11px; list-style: none; }
.d-gift .gf-strip .gf-logo { width: 190px; height: 100px; border-radius: var(--gf-radius); box-shadow: 0 0 0 1px var(--un-line); }

/* ---------- Centred words ---------- */
.d-gift .gf-words { max-width: 820px; text-align: center; }
.d-gift .gf-words-text { margin-top: 18px; font-size: clamp(19px, 1.9cqi, 23px); line-height: 1.75; color: var(--gf-navy); }
.d-gift :is(.un-bg-main, .un-bg-support) .gf-words-text { color: #fff; }
.d-gift .gf-words-text p + p { margin-top: 1em; }
.d-gift .gf-words-by { margin-top: 22px; font: 600 18px/1.2 var(--gf-label); letter-spacing: .04em; text-transform: uppercase; color: var(--gf-slate); }
.d-gift .gf-words-img { width: min(300px, 70%); margin: 0 auto 26px; }
.d-gift .gf-words-img img { width: 100%; height: auto; }
/* A small heart in the highlight blue, drawn with two rounded squares. */
.d-gift .gf-heart { position: relative; display: block; width: 30px; height: 30px; margin: 0 auto 22px; transform: rotate(-45deg); background: var(--gf-blue); }
.d-gift .gf-heart::before, .d-gift .gf-heart::after { content: ""; position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--gf-blue); }
.d-gift .gf-heart::before { top: -15px; inset-inline-start: 0; }
.d-gift .gf-heart::after { top: 0; inset-inline-start: 15px; }

/* ---------- Words ---------- */
.d-gift .gf-text { max-width: 860px; }
.d-gift .gf-text.has-pic { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6cqi, 90px); align-items: start; max-width: var(--wrap); }
.d-gift .gf-text .gf-prose { margin-top: 20px; }
.d-gift .gf-text-pic { margin: 0; }
.d-gift .gf-text-pic img, .d-gift .gf-text-pic > .ed-img-ph { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--gf-radius); }
.d-gift .gf-text-pic figcaption { margin-top: 12px; font-size: 15px; color: var(--un-soft); }
.d-gift .gf-text .un-pills:not(:has(*)) { display: none; }

/* ---------- Sections that open ---------- */
.d-gift .gf-folds-wrap { max-width: 940px; }
.d-gift .gf-folds { border-top: 1px solid var(--un-line); }
.d-gift .gf-fold { border-bottom: 1px solid var(--un-line); }
.d-gift .gf-fold-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; list-style: none; cursor: pointer; font: var(--gf-hw) clamp(22px, 2.2cqi, 28px)/1.05 var(--f-head); text-transform: var(--gf-case); color: var(--gf-navy); }
.d-gift .gf-fold-title::-webkit-details-marker { display: none; }
.d-gift .gf-fold-title:hover { color: var(--gf-slate); }
.d-gift .gf-plus { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--gf-pale); transition: background-color .25s, transform .35s; }
.d-gift .gf-plus::before, .d-gift .gf-plus::after { content: ""; position: absolute; inset-inline-start: 10px; inset-inline-end: 10px; top: 16px; height: 2px; background: var(--gf-navy); }
.d-gift .gf-plus::after { transform: rotate(90deg); transition: transform .35s; }
.d-gift .gf-fold[open] .gf-plus { background: var(--gf-gold); }
.d-gift .gf-fold[open] .gf-plus::after { transform: rotate(0); }
.d-gift .gf-fold > .gf-prose { padding: 0 0 28px; max-width: 72ch; }
.d-gift .gf-fold.is-open .gf-fold-title { cursor: text; }

/* ---------- Union's blocks, softened to match ---------- */
.d-gift .un-post-card .un-card-img, .d-gift .un-news-pic, .d-gift .un-shape-cut, .d-gift .un-shape-arch { border-radius: var(--gf-radius); clip-path: none; }
.d-gift .un-post-card h3 { font: var(--gf-hw) 26px/1 var(--f-head); text-transform: var(--gf-case); color: var(--gf-navy); }
.d-gift .un-news-item h3 { font-family: var(--f-head); font-weight: var(--gf-hw); text-transform: var(--gf-case); text-decoration-color: var(--gf-gold); }
.d-gift .un-row, .d-gift .un-event, .d-gift .un-contact-card { border-radius: var(--gf-radius); overflow: hidden; }
.d-gift .un-tile { color: var(--gf-navy); }
.d-gift .un-tile .d { font-family: var(--f-head); }
.d-gift .un-event h3 { font-family: var(--f-head); font-weight: var(--gf-hw); text-transform: var(--gf-case); line-height: 1.05; }
.d-gift .un-kind { color: var(--gf-slate); }
.d-gift .un-big-link { font-family: var(--f-head); font-weight: var(--gf-hw); text-transform: var(--gf-case); }
.d-gift .un-mail { color: var(--gf-navy); text-decoration-color: var(--gf-gold); }
.d-gift .un-doc-icon { background: var(--gf-slate); border-radius: 4px; }
.d-gift .un-fig b { font-weight: var(--gf-hw); letter-spacing: 0; font-size: clamp(38px, 4.3cqi, 62px); }
.d-gift .un-bg-main .un-fig b { color: var(--gf-blue); }
.d-gift .un-fig { border-inline-start-color: color-mix(in srgb, currentColor 22%, transparent); }
.d-gift .un-fig span { font-size: 18px; }
.d-gift .un-filter h2 { font-family: var(--f-head); font-weight: var(--gf-hw); text-transform: var(--gf-case); }
.d-gift .un-past summary { font-family: var(--gf-label); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.d-gift .un-foot { background: var(--gf-navy); }
.d-gift .un-foot-brand img { height: 92px; }
.d-gift .un-foot-help h2 { font-family: var(--f-head); font-weight: var(--gf-hw); text-transform: var(--gf-case); color: var(--gf-blue); }
.d-gift .un-foot .btn.un-fill { background: var(--gf-gold); color: var(--gf-navy); }
.d-gift .un-foot .btn.un-fill:hover { background: #fff; }

/* ---------- The rounded look, for a heading font other than Oswald (such as Lilita One) ---------- */
.site.d-gift.gf-soft, .x-gift.gf-soft { --gf-case: none; --gf-hw: 400; --gf-label: var(--f-body); --gf-btn-radius: 999px; }
.d-gift.gf-soft .btn.un-pill::after, .x-gift.gf-soft .btn.un-pill::after { display: none; }
.d-gift.gf-soft .btn.un-pill, .x-gift.gf-soft .btn.un-pill { font-size: 17px; letter-spacing: .01em; }
.d-gift.gf-soft .un-nav-links { font-size: 17px; letter-spacing: 0; }
.d-gift.gf-soft .gf-h1 { font-size: clamp(46px, 7cqi, 104px); line-height: .96; letter-spacing: 0; }
.d-gift.gf-soft :is(.gf-hero-page, .gf-hero-title) .gf-h1 { font-size: clamp(42px, 5.6cqi, 80px); }
.d-gift.gf-soft :is(.gf-h2, .un-h2) { font-size: clamp(32px, 4cqi, 52px); line-height: 1.06; letter-spacing: 0; }
.d-gift.gf-soft :is(.gf-kicker, .gf-person-role, .gf-words-by) { font-size: 14px; letter-spacing: .14em; }
.d-gift.gf-soft :is(.gf-numbered-item h3, .gf-film figcaption h3, .un-post-card h3, .un-news-item h3, .un-event h3, .gf-fold-title) { font-family: var(--f-body); font-weight: 600; line-height: 1.25; }

/* ---------- Narrower screens ---------- */
@container site (max-width: 1100px) {
  .d-gift .gf-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-gift .gf-logos-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .d-gift .gf-gallery.cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Films become a row that scrolls sideways. */
  .d-gift .gf-films { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 30%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 8px 28px; margin: -8px -8px 0; scrollbar-width: thin; }
  .d-gift .gf-films-square { grid-auto-columns: 40%; }
  .d-gift .gf-film { scroll-snap-align: start; }
}
@container site (max-width: 980px) {
  .d-gift .gf-collage, .d-gift .gf-collage.flip { grid-template-columns: 1fr; }
  .d-gift .gf-collage.flip > .gf-layers { order: 0; }
  .d-gift .gf-layers { width: min(100%, 560px); }
  .d-gift .gf-tiles-feature { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
  .d-gift .gf-tiles-feature > :first-child { grid-column: 1 / -1; grid-row: auto; min-height: 420px; }
  .d-gift .gf-tiles-row { grid-template-columns: 1fr 1fr; grid-auto-rows: 320px; }
  .d-gift .gf-numbered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-gift .gf-cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-gift .gf-gallery, .d-gift .gf-gallery.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-gift .gf-logos-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-gift .gf-text.has-pic { grid-template-columns: 1fr; }
  .d-gift .gf-text-pic { max-width: 400px; }
  .d-gift .gf-films { grid-auto-columns: 40%; }
}
@container site (max-width: 700px) {
  .d-gift .gf-hero-home { min-height: 600px; }
  /* Room for the anniversary badge, which hangs over the top of the home banner. */
  .d-gift .gf-hero-home .gf-hero-body { padding-top: 150px; }
  .d-gift .gf-hero-shade { background: linear-gradient(0deg, color-mix(in srgb, var(--gf-navy) 92%, transparent) 0%, color-mix(in srgb, var(--gf-navy) 55%, transparent) 55%, color-mix(in srgb, var(--gf-navy) 20%, transparent) 100%); }
  .d-gift .gf-tiles-feature, .d-gift .gf-tiles-row { grid-template-columns: 1fr; grid-auto-rows: minmax(280px, auto); }
  .d-gift .gf-tiles-feature > :first-child { min-height: 380px; }
  .d-gift .gf-numbered { grid-template-columns: 1fr; gap: 30px; }
  .d-gift .gf-cards, .d-gift .gf-cards.cols-3 { grid-template-columns: 1fr; }
  .d-gift .gf-people, .d-gift .gf-people.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .d-gift .gf-person h3 { font-size: 22px; }
  .d-gift .gf-gallery, .d-gift .gf-gallery.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .d-gift .gf-gallery.cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .d-gift .gf-logos-cards { grid-template-columns: 1fr; }
  .d-gift .gf-logos-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-gift .gf-films, .d-gift .gf-films-square { grid-auto-columns: 62%; }
  .d-gift .gf-marquee-row { flex-direction: column; gap: 22px; }
  .d-gift .gf-film-media { border-radius: 24px; }
}
@container site (max-width: 440px) {
  .d-gift .gf-people, .d-gift .gf-people.cols-3 { grid-template-columns: 1fr; }
  .d-gift .gf-person-img { max-width: 320px; }
}

/* ---------- High contrast, chosen in the header panel ---------- */
html.a11y-contrast .site.d-gift { --gf-navy: #000; --gf-slate: #1b1b1b; --gf-pale: #fff; --gf-sky: #fff; --un-line: #000; }
html.a11y-contrast .site.d-gift .gf-hero-shade, html.a11y-contrast .site.d-gift .gf-tile-shade::before { background: rgba(0, 0, 0, .78); }
html.a11y-contrast .site.d-gift .gf-tile-shade::after { display: none; }
html.a11y-contrast .site.d-gift .gf-marquee-run > span { -webkit-text-stroke-color: rgba(0, 0, 0, .25); }
html.a11y-contrast .site.d-gift :is(.gf-card, .gf-shop-item, .gf-logo-item) { box-shadow: 0 0 0 2px #000; }
html.a11y-contrast .site.d-gift .gf-marquee { border-block: 2px solid #000; }

/* ---------- Motion on the public site only (the editor never adds .motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The banner photo settles from a slight zoom, and the headline rises a line at a time. */
  .motion .d-gift .gf-hero-bg img { animation: gf-settle 2.6s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes gf-settle { from { transform: scale(1.12); } to { transform: scale(1); } }
  .motion .d-gift .gf-stack .gf-line > span { transition: transform 1.05s cubic-bezier(.2, .75, .2, 1); transition-delay: calc(150ms + var(--i, 0) * 140ms); }
  .motion .d-gift .gf-stack:not(.in) .gf-line > span { transform: translateY(112%); }
  /* Tiles are uncovered from the foot upwards as they come into view, their photos settling. */
  .motion .d-gift .gf-tile { transition: clip-path 1.2s cubic-bezier(.65, .05, .25, 1); transition-delay: var(--d, 0ms); }
  .motion .d-gift .gf-tile:not(.in) { clip-path: inset(100% 0 0 0); }
  .motion .d-gift .gf-tile:not(.in) .gf-tile-img img { transform: scale(1.18); }
  .motion .d-gift .gf-tile:not(.in) .gf-tile-body { transform: translateY(30px); opacity: 0; }
  .motion .d-gift .gf-tile .gf-tile-body { transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .8s; transition-delay: calc(var(--d, 0ms) + 500ms); }
  .motion .d-gift a.gf-tile.in:hover .gf-tile-body { transition-delay: 0ms; }
  /* Layered photos fade up as they arrive; scrolling then moves them apart (gift.js). */
  .motion .d-gift .gf-layer img { transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
  .motion .d-gift .gf-layer:not(.in) img { transform: scale(1.14); }
  /* The outlined words and the supporters' strip drift slowly, for as long as the page is open. */
  /* The run holds the words twice, so moving it by half loops without a gap. */
  .motion .d-gift .gf-marquee-run { animation: gf-slide-half 45s linear infinite; }
  .motion .d-gift .gf-rtl .gf-marquee-run { animation-direction: reverse; }
  .motion .d-gift .gf-strip { animation: gf-slide 70s linear infinite; }
  .motion .d-gift .gf-strip:hover { animation-play-state: paused; }
  @keyframes gf-slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }
  .motion .d-gift .gf-strip { animation-name: gf-slide-half; }
  @keyframes gf-slide-half { from { transform: translateX(0); } to { transform: translateX(-50%); } }
}

/* ---------- The public-site extras (forms, phone menu), in this design's colours ---------- */
.x-gift .sw-to-top { background: var(--gf-navy); }
.x-gift .sw-to-top:hover { background: var(--gf-slate); }
.x-gift .sw-modal-head h2 { font-family: var(--f-head); font-weight: var(--gf-hw); letter-spacing: 0; text-transform: var(--gf-case); }
