/* CIJE Photo Gallery 1.3
   Quick changes, all in the first block below:
   --cpg-bg          gallery background
   --cpg-accent      gold used for active buttons, years and focus rings
   --cpg-sticky-top  height of the site's sticky header, if it has one
   Sizes use px and em (not rem) so the theme's base font size can't shrink the gallery. */
.cpg {
  --cpg-bg: #0f2140;
  --cpg-panel: #17325d;
  --cpg-panel-hover: #1d3d70;
  --cpg-text: #f2f6fd;
  --cpg-muted: #b3c3de;
  --cpg-accent: #ffc247;
  --cpg-accent-ink: #1d1503;
  --cpg-line: rgba(255, 255, 255, .12);
  --cpg-glass: rgba(255, 255, 255, .08);
  --cpg-glass-2: rgba(255, 255, 255, .15);
  --cpg-sticky-top: 0px;
  --cpg-top: calc(var(--cpg-admin, 0px) + var(--cpg-sticky-top));
  --cpg-pad: clamp(16px, 3.4vw, 64px);
  --cpg-tile: 190px;
  --cpg-gap: 6px;
  --cpg-radius: 18px;
  --cpg-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --cpg-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  container-type: inline-size;
  position: relative;
  min-height: 100vh;
  margin: 0 0 32px;
  background: var(--cpg-bg);
  color: var(--cpg-text);
  font-family: var(--cpg-ui);
  font-size: 17px;
  line-height: 1.45;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .cpg { --cpg-admin: 32px; }
@media (max-width: 782px) { body.admin-bar .cpg { --cpg-admin: 46px; } }
@media (max-width: 600px) { body.admin-bar .cpg { --cpg-admin: 0px; } }

.cpg *, .cpg *::before, .cpg *::after,
.cpg-lb *, .cpg-lb *::before, .cpg-lb *::after { box-sizing: border-box; }
.cpg [hidden], .cpg-lb[hidden], .cpg-lb [hidden] { display: none !important; }

/* Shield the gallery from theme styles. No underlines anywhere. */
.cpg button, .cpg input[type="search"], .cpg-lb button, .cpg-lb a {
  all: unset;
  box-sizing: border-box;
  font: inherit;
  cursor: pointer;
}
.cpg a, .cpg a:hover, .cpg a:focus, .cpg a:visited,
.cpg-lb a, .cpg-lb a:hover, .cpg-lb a:focus {
  text-decoration: none !important;
  border-bottom: 0 !important;
  background-image: none;
}
.cpg svg, .cpg-lb svg { display: block; flex: none; }
.cpg :focus-visible, .cpg-lb :focus-visible { outline: 3px solid var(--cpg-accent, #ffc247); outline-offset: 3px; }
.cpg p { margin: 0; }

.cpg-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header: a slowly drifting wall of photos ---------- */
.cpg-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(280px, 42vh, 480px);
  overflow: hidden;
  isolation: isolate;
}
.cpg.is-album .cpg-hero, .cpg.is-event .cpg-hero { min-height: clamp(260px, 36vh, 420px); }
.cpg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 33, 64, .88) 0%, rgba(15, 33, 64, .45) 50%, rgba(15, 33, 64, .08) 100%),
    linear-gradient(180deg, rgba(15, 33, 64, .05) 0%, rgba(15, 33, 64, .5) 62%, var(--cpg-bg) 100%);
}
.cpg-mosaic {
  position: absolute;
  inset: -40% -10%;
  z-index: -2;
  display: flex;
  gap: 12px;
  transform: rotate(-8deg);
}
.cpg-col { flex: 1 1 0; min-width: 0; }
.cpg-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cpg-up 80s linear infinite;
  will-change: transform;
}
.cpg-col.is-down .cpg-track { animation-name: cpg-down; }
.cpg-hero.is-off .cpg-track { animation-play-state: paused; }
.cpg-mosaic span { display: block; flex: none; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--cpg-panel); }
.cpg .cpg-mosaic img {
  display: block; width: 100%; height: 100%; max-width: none; margin: 0;
  object-fit: cover; border: 0; border-radius: 0; box-shadow: none;
  animation: cpg-fade-in .8s ease both;
}
/* Each column holds its photos twice; moving it by half loops seamlessly. */
@keyframes cpg-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(-50% - 6px), 0); } }
@keyframes cpg-down { from { transform: translate3d(0, calc(-50% - 6px), 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes cpg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@container (max-width: 700px) { .cpg-col:nth-child(n+5) { display: none; } }

.cpg-hero-inner { width: 100%; padding: clamp(44px, 9vh, 110px) var(--cpg-pad) clamp(26px, 4vh, 42px); }
.cpg .cpg-title {
  margin: 0;
  padding: 0;
  max-width: 18ch;
  font-family: var(--cpg-display);
  font-size: clamp(2.8em, 7cqi, 6em);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: .95;
  letter-spacing: -0.035em;
  text-transform: none;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.cpg.is-album .cpg-title, .cpg.is-event .cpg-title { font-size: clamp(2.5em, 5.8cqi, 5em); }
.cpg-meta {
  margin-top: 16px !important;
  font-size: 1.2em;
  font-weight: 500;
  color: #dbe5f5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  font-variant-numeric: tabular-nums;
}
.cpg .cpg-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  margin-bottom: 24px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  background: rgba(15, 33, 64, .6);
  border: 1px solid var(--cpg-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 650;
  font-size: 1.05em;
  color: #fff;
}
.cpg .cpg-back:hover { background: var(--cpg-accent); border-color: var(--cpg-accent); color: var(--cpg-accent-ink); }

/* ---------- Toolbar (stays at the top while scrolling) ---------- */
.cpg-bar {
  position: sticky;
  top: var(--cpg-top);
  z-index: 20;
  background: rgba(15, 33, 64, .85);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--cpg-line);
}
.cpg-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px var(--cpg-pad); }

.cpg-search { position: relative; display: flex; align-items: center; flex: 1 1 300px; max-width: 620px; margin: 0; color: var(--cpg-muted); }
.cpg-search svg { position: absolute; inset-inline-start: 18px; width: 22px; height: 22px; pointer-events: none; }
.cpg .cpg-search input {
  width: 100%;
  height: 56px;
  padding-inline: 52px 20px;
  border: 1px solid var(--cpg-line);
  border-radius: 999px;
  background: var(--cpg-glass);
  color: var(--cpg-text);
  font-size: 1.15em;
  cursor: text;
  transition: background .2s, border-color .2s;
}
.cpg .cpg-search input::placeholder { color: var(--cpg-muted); opacity: 1; }
.cpg .cpg-search input:focus { background: var(--cpg-glass-2); border-color: var(--cpg-accent); outline: none; }
.cpg .cpg-search input::-webkit-search-cancel-button { filter: invert(1); }

.cpg-seg, .cpg-size {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--cpg-line);
  border-radius: 999px;
  background: var(--cpg-glass);
}
.cpg-seg { margin-inline-start: auto; }
.cpg .cpg-seg button, .cpg .cpg-size button, .cpg .cpg-whole, .cpg .cpg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 1.05em;
  font-weight: 650;
  white-space: nowrap;
  color: #d3def0;
  transition: background .15s, color .15s;
}
.cpg .cpg-seg button:hover, .cpg .cpg-size button:hover, .cpg .cpg-whole:hover { color: #fff; background: var(--cpg-glass-2); }
.cpg .cpg-seg button[aria-pressed="true"], .cpg .cpg-whole[aria-pressed="true"] { background: var(--cpg-accent); color: var(--cpg-accent-ink); }
.cpg .cpg-size button { width: 44px; padding: 0; }
.cpg .cpg-size svg { width: 20px; height: 20px; }
.cpg .cpg-size input[type="range"] { width: 110px; margin: 0 8px; background: none; accent-color: var(--cpg-accent); }
.cpg .cpg-whole { height: 56px; padding: 0 24px; border: 1px solid var(--cpg-line); background: var(--cpg-glass); }
.cpg .cpg-btn { margin-top: 20px; height: 50px; padding: 0 26px; background: var(--cpg-accent); color: var(--cpg-accent-ink); }

.cpg .cpg-whole { display: none; }
.cpg.is-album .cpg-whole { display: inline-flex; margin-inline-start: auto; }
.cpg.is-album .cpg-seg, .cpg.is-album .cpg-jump,
.cpg.is-event .cpg-seg, .cpg.is-event .cpg-jump { display: none; }
.cpg.is-event .cpg-size { margin-inline-start: auto; }

/* ---------- Jump to year ---------- */
.cpg-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 24px var(--cpg-pad) 0; }
.cpg-jump:empty { display: none; }
.cpg-jump-label { margin-inline-end: 4px; font-size: 1em; font-weight: 600; color: var(--cpg-muted); }
.cpg .cpg-jump button {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--cpg-glass);
  border: 1px solid var(--cpg-line);
  font-size: 1em;
  font-weight: 700;
  line-height: 38px;
  color: var(--cpg-text);
  font-variant-numeric: tabular-nums;
}
.cpg .cpg-jump button:hover { background: var(--cpg-accent); border-color: var(--cpg-accent); color: var(--cpg-accent-ink); }

/* ---------- Main area ---------- */
.cpg-main { padding: 30px var(--cpg-pad) 80px; }

.cpg-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(calc((var(--cpg-tile) + 120px) * var(--cpg-kc, 1)), 100%), 1fr));
  gap: 26px 20px;
}

/* Album card: picture on top, name on a solid strip below so it's always easy to read */
.cpg .cpg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--cpg-radius);
  background: var(--cpg-panel);
  color: #fff;
  scroll-margin-top: calc(var(--cpg-top) + 100px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 16px 32px -20px rgba(0, 0, 0, .8);
  transition: background .2s, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.cpg .cpg-card:hover { background: var(--cpg-panel-hover); transform: translateY(-3px); }
.cpg-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cpg-bg); }
.cpg .cpg-card-media > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.cpg .cpg-card:hover .cpg-card-media > img { transform: scale(1.06); }
.cpg-card-text { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 20px 18px; }
.cpg-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--cpg-display);
  font-size: clamp(1.25em, .9cqi + .85em, 1.6em);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}
.cpg-card-meta { font-size: 1em; color: var(--cpg-muted); font-variant-numeric: tabular-nums; }

/* Event card: a folder of albums, shown as a collage of their covers */
.cpg-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.cpg-collage.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cpg-collage.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.cpg-collage.n3 img:first-child { grid-row: span 2; }
.cpg .cpg-collage img {
  display: block; width: 100%; height: 100%; max-width: none; min-height: 0; margin: 0;
  object-fit: cover; border: 0; border-radius: 0; box-shadow: none;
}
.cpg .cpg-card.is-event:hover .cpg-collage { transform: scale(1.05); }
.cpg .cpg-card.is-event {
  box-shadow: 0 -8px 0 -3px rgba(255, 255, 255, .18), 0 -16px 0 -8px rgba(255, 255, 255, .09), 0 16px 32px -20px rgba(0, 0, 0, .8);
}
.cpg-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cpg-card-head .cpg-card-title { flex: 1 1 auto; min-width: 0; }
.cpg .cpg-card.is-event .cpg-card-text { border-top: 3px solid var(--cpg-accent); }
.cpg-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  height: 32px;
  margin-top: 1px;
  padding: 0 13px 0 10px;
  border-radius: 999px;
  background: var(--cpg-accent);
  color: var(--cpg-accent-ink);
  font-size: .9em;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6);
}
.cpg-badge svg { width: 20px; height: 20px; }

/* Hover: a streak of light races around the card */
@property --cpg-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cpg .cpg-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 4px;
  border-radius: inherit;
  background: conic-gradient(from var(--cpg-spin),
    transparent 0deg 60deg, rgba(255, 194, 71, .45) 115deg, #ffc247 158deg, #fff 177deg, transparent 180deg 240deg,
    rgba(127, 212, 255, .45) 295deg, #7fd4ff 338deg, #fff 357deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
@keyframes cpg-swirl { to { --cpg-spin: 360deg; } }
@media (hover: hover) {
  .cpg .cpg-card:hover::after { opacity: 1; animation: cpg-swirl .7s linear infinite; }
  .cpg .cpg-card:hover { box-shadow: 0 0 0 1px rgba(255, 194, 71, .3), 0 24px 50px -20px rgba(255, 194, 71, .4), 0 16px 32px -20px rgba(0, 0, 0, .8); }
  .cpg .cpg-card.is-event:hover { box-shadow: 0 -8px 0 -3px rgba(255, 255, 255, .18), 0 -16px 0 -8px rgba(255, 255, 255, .09), 0 0 0 1px rgba(255, 194, 71, .3), 0 24px 50px -20px rgba(255, 194, 71, .4); }
}

/* Pages open calmly: the title, cards and photos fade up a little, one after another */
.cpg-hero-inner.is-in { animation: cpg-rise 1.1s cubic-bezier(.22, 1, .36, 1) .1s backwards; }
.cpg-card.is-in { animation: cpg-rise 1.1s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 40ms + 150ms); }
.cpg-tile.is-in { animation: cpg-soft 1s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(var(--i, 0) * 15ms + 200ms); }
@keyframes cpg-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes cpg-soft { from { opacity: 0; transform: translateY(8px); } }

/* Calm page change: the page slowly zooms toward the card you clicked and dissolves into the next page.
   Going back does the reverse. Browsers without this feature simply switch pages. */
html.cpg-vt::view-transition-old(root),
html.cpg-vt::view-transition-new(root) {
  animation-duration: 1.4s;
  animation-timing-function: cubic-bezier(.45, 0, .25, 1);
  animation-fill-mode: both;
  transform-origin: var(--cpg-vt-x, 50%) var(--cpg-vt-y, 40%);
}
html.cpg-vt::view-transition-old(root) { animation-name: cpg-vt-out; }
html.cpg-vt::view-transition-new(root) { animation-name: cpg-vt-in; }
html.cpg-vt.cpg-vt-back::view-transition-old(root) { animation-name: cpg-vt-back-out; }
html.cpg-vt.cpg-vt-back::view-transition-new(root) { animation-name: cpg-vt-back-in; }
@keyframes cpg-vt-out { to { opacity: 0; transform: scale(1.08); filter: blur(6px); } }
@keyframes cpg-vt-in { from { opacity: 0; transform: scale(.97); } }
@keyframes cpg-vt-back-out { to { opacity: 0; transform: scale(.97); } }
@keyframes cpg-vt-back-in { from { opacity: 0; transform: scale(1.05); filter: blur(5px); } }

/* Year view */
.cpg-year { padding: 28px 0 36px; scroll-margin-top: calc(var(--cpg-top) + 90px); }
.cpg-year + .cpg-year { border-top: 1px solid var(--cpg-line); }
.cpg .cpg-year-label {
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--cpg-display);
  font-size: clamp(3.2em, 9cqi, 6em);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: .85;
  letter-spacing: -0.05em;
  text-transform: none;
  color: var(--cpg-accent);
  font-variant-numeric: lining-nums;
}
.cpg .cpg-year-label.is-long { font-size: clamp(2.4em, 5.5cqi, 3.6em); }
@container (min-width: 900px) {
  .cpg-year { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 28px; align-items: start; }
  .cpg .cpg-year-label { position: sticky; top: calc(var(--cpg-top) + 110px); margin: 0; }
}

/* ---------- Photos inside an album ---------- */
.cpg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(calc(var(--cpg-tile) * var(--cpg-k, 1)), 100%), 1fr));
  gap: var(--cpg-gap);
}
.cpg-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cpg-panel);
  content-visibility: auto;
  contain-intrinsic-size: auto var(--cpg-tile);
}
.cpg .cpg-open { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.cpg .cpg-grid img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .3s;
}
.cpg-tile:hover img { transform: scale(1.05); filter: brightness(1.08); }
.cpg .cpg-grid.is-whole img { object-fit: contain; }
.cpg .cpg-grid.is-whole .cpg-tile:hover img { transform: none; }
.cpg .cpg-dl {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 18, 38, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0;
  transition: opacity .2s, background .2s;
}
.cpg .cpg-dl:hover { background: var(--cpg-accent); color: var(--cpg-accent-ink); }
.cpg-tile:hover .cpg-dl, .cpg .cpg-dl:focus-visible { opacity: 1; }
@media (hover: none) { .cpg .cpg-dl { display: none; } }

/* Loading placeholders */
.cpg-skel {
  aspect-ratio: 4 / 3.9;
  border-radius: var(--cpg-radius);
  background: linear-gradient(100deg, var(--cpg-glass) 30%, var(--cpg-glass-2) 50%, var(--cpg-glass) 70%);
  background-size: 300% 100%;
  animation: cpg-shimmer 1.4s ease-in-out infinite;
}
.cpg-grid .cpg-skel { aspect-ratio: 1; border-radius: 8px; }
@keyframes cpg-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.cpg-note { padding: 80px 16px; text-align: center; font-size: 1.2em; color: var(--cpg-muted); }
.cpg-sentinel { height: 1px; }

/* Phones: smaller tiles so several photos fit across, and a toolbar that scrolls away */
@container (max-width: 640px) {
  .cpg-bar { position: static; }
  .cpg-search { flex-basis: 100%; max-width: none; }
  .cpg .cpg-search input { height: 52px; }
  .cpg-seg { margin-inline-start: 0; }
  .cpg .cpg-seg button { padding: 0 14px; font-size: 1em; }
  .cpg .cpg-size button { width: 40px; }
  .cpg .cpg-size input[type="range"] { display: none; }
  .cpg.is-event .cpg-size, .cpg.is-album .cpg-size { margin-inline-start: 0; }
  .cpg .cpg-whole { height: 54px; }
  .cpg-grid { --cpg-k: .55; --cpg-gap: 4px; }
  .cpg-albums { --cpg-kc: .8; gap: 20px 14px; }
  .cpg-main { padding-top: 22px; }
}

/* ---------- Full-screen viewer ---------- */
html.cpg-locked, html.cpg-locked body { overflow: hidden !important; }
.cpg-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  background: rgba(7, 16, 33, .97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-user-select: none;
  user-select: none;
}
.cpg-lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
}
.cpg-lb-info { display: flex; flex-direction: column; min-width: 0; font-size: 1em; }
.cpg-lb-count { color: #ffc247; font-weight: 700; font-variant-numeric: tabular-nums; }
.cpg-lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.cpg-lb-actions { display: flex; flex: none; gap: 8px; }
.cpg-lb .cpg-lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 1em;
  font-weight: 650;
}
.cpg-lb .cpg-lb-btn:hover { background: rgba(255, 255, 255, .2); }
.cpg-lb .cpg-lb-dl { background: #ffc247; color: #1d1503; }
.cpg-lb .cpg-lb-dl:hover { background: #ffd47a; }
.cpg-lb .cpg-lb-zoom[aria-pressed="true"] { background: #fff; color: #0f2140; }
.cpg-lb .cpg-lb-close { width: 46px; padding: 0; }

.cpg-lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-bottom: max(10px, env(safe-area-inset-bottom));
  overflow: hidden;
  touch-action: none;
}
.cpg-lb .cpg-lb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .25s ease;
  -webkit-user-drag: none;
}
.cpg-lb-stage.is-zoomed .cpg-lb-img { transform: scale(2.5); cursor: zoom-out; }
.cpg-lb:not([hidden]) .cpg-lb-stage { animation: cpg-lb-in .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes cpg-lb-in { from { opacity: 0; transform: scale(.98); } }

.cpg-lb .cpg-lb-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-top: -29px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.cpg-lb .cpg-lb-nav:hover { background: rgba(255, 255, 255, .22); }
.cpg-lb .cpg-lb-prev { left: 16px; }
.cpg-lb .cpg-lb-next { right: 16px; }

.cpg-lb-loading {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #ffc247;
  border-radius: 50%;
  opacity: 0;
  animation: cpg-show 0s .3s forwards, cpg-spin .8s linear infinite;
}
@keyframes cpg-show { to { opacity: 1; } }
@keyframes cpg-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .cpg-lb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cpg-lb .cpg-lb-btn { width: 46px; padding: 0; }
  .cpg-lb .cpg-lb-nav { width: 44px; height: 44px; margin-top: -22px; background: rgba(255, 255, 255, .08); }
}

/* Slower computers and "reduce motion" settings get a calm, still version */
.cpg-lite .cpg-track, .cpg-lite .cpg-card.is-in, .cpg-lite .cpg-tile.is-in, .cpg-lite .cpg-hero-inner.is-in { animation: none !important; }
.cpg-lite .cpg-card::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .cpg-track, .cpg .cpg-mosaic img, .cpg-card.is-in, .cpg-tile.is-in, .cpg-hero-inner.is-in, .cpg-lb-stage { animation: none !important; }
  html.cpg-vt::view-transition-old(root), html.cpg-vt::view-transition-new(root) { animation: none !important; }
  .cpg .cpg-card::after { display: none; }
  .cpg .cpg-card, .cpg .cpg-card-media > img, .cpg-collage, .cpg .cpg-grid img, .cpg-lb .cpg-lb-img { transition: none; }
  .cpg .cpg-card:hover, .cpg .cpg-card:hover .cpg-card-media > img, .cpg-tile:hover img, .cpg .cpg-card.is-event:hover .cpg-collage { transform: none; }
  .cpg-skel { animation: none; }
  .cpg-lb-loading { animation: cpg-show 0s .3s forwards; }
}
