/* Lions Klub Vrhnika. Official Lions Clubs International colours: blue PMS 287 (#00338d)
   and gold PMS 7406 (#ebb700), with Cool Gray 11 (#55565a). Gold on white fails contrast (1.9:1),
   so gold is only ever a fill or text on blue/ink, never text on white. */

@font-face { font-family: "Source Sans 3"; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-sans-3-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-weight: 200 900; font-display: swap;
  src: url(fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #00338d; --blue-deep: #002466; --gold: #ebb700; --ink: #1d2433; --gray: #55565a;
  --soft: #f3f5f9; --line: #dde2ec; --paper: #fff;
  --f-head: "Source Serif 4", Georgia, serif; --f-body: "Source Sans 3", system-ui, sans-serif;
  --wrap: 74rem; --gut: clamp(1rem, 4vw, 2.5rem); --band: clamp(3rem, 7vw, 5.5rem); --r: .6rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 650; color: var(--blue); letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 3.5vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem); }
h3 { font-size: 1.2rem; }
.h-sm { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap.narrow { max-width: 48rem; }
.wrap.wide { max-width: 64rem; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 60; background: var(--gold); color: var(--ink); padding: .5rem 1rem; font-weight: 700; }
.skip:focus { left: .5rem; }
.demo-bar { background: var(--gold); color: var(--ink); text-align: center; padding: .4rem 1rem; font-size: .9rem; font-weight: 600; }
.demo-bar a { color: var(--ink); }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 3px solid var(--gold); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--blue); line-height: 1.15; font-family: var(--f-head); font-size: 1.1rem; flex: none; }
.brand img { width: 3.25rem; height: 3.25rem; }
.brand strong { display: block; font-size: 1.3rem; }
/* the club's own seal (Cankar in a circle, "Lions klub Vrhnika" around it) right of the name, in the club's blue (the file
   itself is coloured: the original is black line art). The Lions emblem on the left stays unaltered, as Lions rules require. */
.brand .brand-club { width: auto; height: 3.4rem; margin-left: .35rem; }
/* on the smallest phones both logos, the name and the menu button do not fit at full size */
@media (max-width: 23em) { .top-in { gap: .75rem; } .brand { gap: .5rem; } .brand img { width: 2.6rem; height: 2.6rem; } .brand .brand-club { height: 2.75rem; margin-left: .15rem; } .brand strong { font-size: 1.15rem; } }
.nav { margin-left: auto; }
.nav ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .15rem .85rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--gold); }
.menu { display: none; margin-left: auto; }
@media (max-width: 74em) {                    /* 12 entries and two logos need ~1185px in one row; below that, the compact menu */
  .nav { display: none; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; width: 3rem; height: 3rem; display: grid; place-items: center; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span, .menu summary span::before, .menu summary span::after { content: ""; display: block; width: 1.5rem; height: 2px; background: var(--blue); position: relative; transition: transform .2s; }
  .menu summary span::before { position: absolute; top: -7px; } .menu summary span::after { position: absolute; top: 7px; }
  .menu[open] summary span { background: transparent; }
  .menu[open] summary span::before { transform: translateY(7px) rotate(45deg); }
  .menu[open] summary span::after { transform: translateY(-7px) rotate(-45deg); }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 3px solid var(--gold); padding: .5rem var(--gut) 1rem; box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .3); max-height: calc(100vh - 6rem); overflow-y: auto; }
  .menu nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.1rem; }
  .menu nav a[aria-current="page"] { color: var(--blue); }
}

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffcd1a; color: var(--ink); }
.btn-line { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-line:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* hero: club photo with a blue wash */
.hero { position: relative; color: #fff; background: var(--blue); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 36, 102, .94) 0%, rgba(0, 51, 141, .8) 38%, rgba(0, 46, 128, .9) 62%, rgba(0, 36, 102, .97) 100%); }
@media (max-width: 52em) { .hero-shade { background: linear-gradient(180deg, rgba(0, 36, 102, .93) 0%, rgba(0, 41, 115, .86) 62%, rgba(0, 36, 102, .72) 100%); } }
/* Ivan Cankar, the writer from Vrhnika, as a line drawing (the old site's header art). Sits bottom right,
   inside the page width, over the blue wash; the text stays on the left. Decorative, so hidden from readers. */
.hero-art { position: absolute; inset: 0; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); pointer-events: none; }
.hero-art img { position: absolute; right: var(--gut); bottom: 0; height: 92%; width: auto; max-width: 40%; object-fit: contain; object-position: right bottom; }
.hero-in { position: relative; padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(4rem, 10vw, 8rem); }
.hero h1 { color: #fff; max-width: 16ch; }
/* On narrow screens the drawing sits top right, beside the heading, and the heading is narrowed to leave it room. Its height
   follows the screen width (--art-h), and the heading's width is whatever is left after the drawing's width (height x 0.745,
   the picture's proportions) and a gap, so the two cannot meet however small the phone. Below the heading the text is full width. */
@media (max-width: 52em) {
  .hero { --art-h: clamp(7.5rem, 30vw, 10rem); }
  .hero-art img { top: clamp(4rem, 10vw, 8rem); bottom: auto; height: var(--art-h); width: auto; max-width: none; right: var(--gut); }
  .hero h1 { max-width: min(16ch, calc(100% - var(--art-h) * .745 - 1rem)); }
}
/* The longest word ("Združujemo") has to fit beside the drawing too: on the very smallest phones both shrink a little, because a
   word cannot wrap and would otherwise run under the picture. */
@media (max-width: 23em) {
  .hero { --art-h: 6.25rem; }
  .hero h1 { font-size: 2rem; }
}
.hero-kicker { color: var(--gold); font-weight: 700; letter-spacing: .02em; margin-bottom: .75rem; }
.hero .lede { color: #e6ecf7; font-size: 1.25rem; max-width: 46ch; }
/* the slogan under the buttons, in quotes: gold on the blue wash (contrast ok there, unlike gold on white). The quote
   marks come from <q>, so the editor's field holds only the words and an empty slogan shows no stray quotes. */
.hero-slogan { margin: 1.75rem 0 0; max-width: none; color: var(--gold); font: italic 600 1.35rem/1.2 var(--f-head); letter-spacing: .01em; }
.hero-slogan q { quotes: "\201C" "\201D"; }

/* bands */
.band { padding: var(--band) 0; }
.band-tight { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.band-soft { background: var(--soft); }
.band-blue { background: var(--blue); color: #fff; }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.head-row h2 { margin: 0; }
.more { font-weight: 700; }
.stats { padding: 2rem 0; }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; }
.stats strong { display: block; font: 700 clamp(2rem, 3vw + 1rem, 2.8rem)/1 var(--f-head); color: var(--gold); }
.stats span { color: #dbe3f3; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem 4rem; align-items: center; }
@media (max-width: 52em) { .split { grid-template-columns: 1fr; } }
.lede-dark { font-size: 1.2rem; line-height: 1.55; }
.link { font-weight: 700; }
.mission { text-align: left; }
.mission .lede-dark { max-width: 52rem; }

/* report cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 30px -18px rgba(0, 36, 102, .45); transform: translateY(-2px); }
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-img, .card-noimg { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .card-photo { position: relative; object-fit: contain; }                /* shown whole, not cropped */
.card-img .card-back { position: absolute; inset: 0; filter: blur(16px) brightness(.92); transform: scale(1.2); }
.card-noimg { background: var(--blue) url(lions-emblem.png) center / 4.5rem no-repeat; }
.card-body { padding: 1rem 1.15rem 1.25rem; }
.card time { color: var(--gray); font-size: .9rem; }
.card h3 { margin: .3rem 0 .5rem; }
.card p { color: var(--gray); margin: 0; font-size: .98rem; }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; justify-content: center; }
.pager a { min-width: 2.6rem; text-align: center; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: .4rem; text-decoration: none; font-weight: 600; }
.pager a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* link pages (Povezave): site.link_cards turns plain lists of links into these cards */
.links-page { max-width: 64rem; }
.links-page > h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.links-page > h2:first-child { margin-top: 0; }
.links-page > h2::before { content: ""; width: .35rem; height: 1.35rem; border-radius: 2px; background: var(--gold); flex: none; }
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.link-card { position: relative; display: flex; align-items: flex-start; gap: 1rem; height: 100%; padding: 1.1rem 2.6rem 1.15rem 1.1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s; }
.link-card::after { content: "↗"; position: absolute; top: 1rem; right: 1.1rem; color: var(--blue); font-weight: 700; transition: transform .2s; }
.link-card:hover { border-color: var(--blue); box-shadow: 0 14px 30px -18px rgba(0, 36, 102, .45); transform: translateY(-2px); color: var(--ink); }
.link-card:hover::after { transform: translate(2px, -2px); }
.link-mark { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .7rem; background: var(--blue);
  color: #fff; box-shadow: inset 0 -4px 0 var(--gold); }
.link-mark svg { width: 1.55rem; height: 1.55rem; }
.link-mark-lions { background: #fff; border: 1px solid var(--line); box-shadow: inset 0 -4px 0 var(--gold); }
.link-mark-lions img { width: 2.1rem; height: 2.1rem; }
/* the first list (the club's own) stands out as a blue banner */
.link-cards-featured { grid-template-columns: 1fr; }
.link-cards-featured .link-card { background: var(--blue); border-color: var(--blue); padding: 1.5rem 3rem 1.5rem 1.5rem; align-items: center; }
.link-cards-featured .link-card::after { color: var(--gold); top: 50%; translate: 0 -50%; font-size: 1.3rem; }
.link-cards-featured .link-card:hover { border-color: var(--blue-deep); background: var(--blue-deep); }
.link-cards-featured .link-mark { background: #fff; color: var(--blue); width: 3.5rem; height: 3.5rem; }
.link-cards-featured .link-text strong { color: #fff; font-size: 1.3rem; }
.link-cards-featured .link-text span, .link-cards-featured .link-text small { color: #dfe6f5; }
.link-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.link-text strong { color: var(--blue); font-family: var(--f-head); font-size: 1.12rem; line-height: 1.25; }
.link-text span { color: var(--gray); font-size: .97rem; line-height: 1.4; }
.link-text small { color: var(--gray); font-size: .85rem; letter-spacing: .01em; overflow-wrap: anywhere; }

/* single report and pages */
.page-head, .post-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head .lede { color: var(--gray); font-size: 1.2rem; }
.post-head time { color: var(--gray); font-weight: 600; }
.crumbs { margin: 0 0 .5rem; font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a::before { content: "‹ "; }
.post-cover { width: 100%; border-radius: var(--r); margin-top: 2rem; aspect-ratio: 16 / 9; object-fit: cover; }
/* cover modes chosen per post in the admin: whole photo in a 16:9 frame (plain or blurred backdrop), natural size, or beside the text */
.cover-frame { position: relative; margin-top: 2rem; aspect-ratio: 16 / 9; max-height: 38rem; width: 100%; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.cover-frame .cover-img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.cover-frame .cover-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.9); transform: scale(1.2); }
.cover-natural { margin-top: 2rem; }
.cover-natural img { margin: 0 auto; width: auto; max-height: 42rem; border-radius: var(--r); }
.cover-side { float: right; width: min(20rem, 42%); margin: .4rem 0 1rem 1.75rem; }
.cover-side img { width: 100%; margin: 0; border-radius: var(--r); }
@media (max-width: 40em) { .cover-side { float: none; width: 100%; margin: 0 0 1.25rem; } }
.prose { display: flow-root; padding-top: 2rem; padding-bottom: 1rem; font-size: 1.1rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: var(--r); margin: 1.5rem 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--gold); color: var(--gray); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.gallery { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(45%, 11rem), 1fr)); gap: .6rem; }
.gallery img { border-radius: .4rem; aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery .whole { grid-column: span 2; }
.gallery .whole img { aspect-ratio: auto; object-fit: contain; max-height: 22rem; background: var(--soft); }
.gallery a:hover img { filter: brightness(1.05); }
.siblings { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.5rem; padding-bottom: 3rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.sib { text-decoration: none; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; }
.sib span { display: block; color: var(--gray); font-weight: 400; font-size: .9rem; }
.sib-next { text-align: right; grid-column: 2; }
@media (max-width: 40em) { .siblings { grid-template-columns: 1fr; } .sib-next { grid-column: auto; text-align: left; } }

/* sponsor logos in their own colours: several have dark backgrounds, which a greyscale filter turns into grey blocks */
.sponsors { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1rem; }
.sponsors li { display: grid; place-items: center; height: 5.5rem; padding: .75rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: .5rem; }
.sponsors img { max-height: 3.5rem; max-width: 100%; width: auto; object-fit: contain; }
.sponsors a { display: grid; place-items: center; width: 100%; height: 100%; }
.sponsors a:hover img { opacity: .8; }
.sponsor-name { font-weight: 600; text-align: center; color: var(--ink); line-height: 1.2; }

/* gallery index: albums as small fanned stacks of their first three photos; the first album is featured */
.al-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 2.5rem 1.75rem; }
.al-card a { display: block; color: #fff; text-decoration: none; }
.al-stack { position: relative; display: block; aspect-ratio: 4 / 3; margin: 0 .6rem; }
.al-stack > span { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: .4rem; background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .75); transition: transform .35s ease; }
.al-stack img { display: block; width: 100%; height: 100%; margin: 0; }
.al-stack .gal-photo { position: absolute; inset: 0; z-index: 1; transition: none; }
.al-stack .gal-back { position: absolute; inset: 0; z-index: 0; }
.al-stack .st-0 { z-index: 3; }
.al-stack .st-1 { z-index: 2; transform: rotate(-4deg) translate(-.5rem, .15rem); }
.al-stack .st-2 { z-index: 1; transform: rotate(5deg) translate(.6rem, .3rem); }
.al-card a:hover .st-0, .al-card a:focus-visible .st-0 { transform: translateY(-.3rem); }
.al-card a:hover .st-1, .al-card a:focus-visible .st-1 { transform: rotate(-7deg) translate(-1rem, .15rem); }
.al-card a:hover .st-2, .al-card a:focus-visible .st-2 { transform: rotate(8deg) translate(1.1rem, .3rem); }
.al-name { display: grid; gap: .1rem; margin-top: 1.1rem; text-align: center; }
.al-name strong { font: 650 1.2rem/1.2 var(--f-head); }
.al-name small { color: #dbe3f3; font-size: .95rem; }
.al-card a:hover strong { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .25em; text-decoration-thickness: 2px; }
/* the featured album takes the whole first row: a banner-wide stack, then the others in rows of three. (Spanning two of
   three columns left a hole beside it, because the other cards flow around it.) */
@media (min-width: 52em) {
  .al-grid { grid-template-columns: repeat(3, 1fr); }
  .al-feat { grid-column: 1 / -1; }
  .al-feat .al-stack { aspect-ratio: 16 / 7; margin: 0 auto; max-width: 52rem; }
  .al-feat .al-name strong { font-size: 1.6rem; }
}

/* album header: the first photo under the hero's blue wash, name in white, a gold rule under it */
.album-head { position: relative; background: var(--blue); color: #fff; overflow: hidden; border-bottom: 4px solid var(--gold); }
.ah-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ah-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 36, 102, .95) 0%, rgba(0, 46, 128, .82) 55%, rgba(0, 36, 102, .6) 100%); }
.ah-in { position: relative; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2.25rem, 6vw, 4rem); }
.ah-in h1 { color: #fff; margin: 0; max-width: 20ch; }
.ah-in .crumbs a { color: var(--gold); }
.ah-count { margin: .75rem 0 0; color: #dbe3f3; font-size: 1.15rem; }
.ah-count::before { content: ""; display: block; width: 3rem; height: 3px; background: var(--gold); margin-bottom: .9rem; }
@media (max-width: 52em) { .ah-shade { background: linear-gradient(180deg, rgba(0, 36, 102, .88), rgba(0, 46, 128, .8)); } }

/* gallery. Album page: justified rows. Each item is as wide as its photo's shape (--ar, set by an ar-NN class because inline
   styles are blocked by the public policy) times the row height, and grows to fill the row; the empty ::after absorbs the
   last row so it is not stretched. */
.gal { background: var(--blue-deep); color: #fff; padding: var(--band) 0; }
.jr { --jr-h: 15rem; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jr::after { content: ""; flex-grow: 100000; }
.jr-item { flex-grow: calc(var(--ar) * 100); flex-shrink: 1; flex-basis: calc(var(--ar) * var(--jr-h)); min-width: 0;
  max-width: calc(var(--ar) * var(--jr-h) * 1.7); }          /* a photo alone in its row may grow 70% at most, not fill the screen */
.jr-frame { position: relative; display: block; overflow: hidden; border-radius: .35rem; background: var(--blue); color: #fff; text-decoration: none; }
.jr-frame::before { content: ""; display: block; padding-bottom: calc(100% / var(--ar)); }
.jr-img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .5s ease; }
.jr-frame:hover .jr-img, .jr-frame:focus-visible .jr-img { transform: scale(1.04); }
.jr-frame .gal-cap { padding: 2rem .8rem .6rem; font-size: .95rem; }
@media (hover: hover) { .jr-frame .gal-cap { opacity: 0; transition: opacity .25s; } .jr-frame:hover .gal-cap, .jr-frame:focus-visible .gal-cap { opacity: 1; } }
@media (max-width: 40em) { .jr { --jr-h: 10rem; gap: .35rem; } }
/* album index tiles (4:3) */
.gal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.1rem; }
.gal-frame { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--blue); color: #fff; text-decoration: none; }
.gal-frame img { display: block; margin: 0; }
.gal-frame:hover .gal-photo, .gal-frame:focus-visible .gal-photo { transform: scale(1.04); }
.gal-photo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-whole { object-fit: contain; }
.gal-back { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.8); transform: scale(1.2); }
.gal-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 2.4rem 1rem .8rem; display: grid; gap: .1rem;
  background: linear-gradient(to top, rgba(0, 20, 60, .88), rgba(0, 20, 60, 0)); font-weight: 600; line-height: 1.25; }
.gal-cap strong { font: 650 1.2rem/1.2 var(--f-head); }
.gal-cap small { font-size: .9rem; font-weight: 400; color: #dbe3f3; }

/* shapes, 0.05 steps */
.ar-40 { --ar: 0.4; }
.ar-45 { --ar: 0.45; }
.ar-50 { --ar: 0.5; }
.ar-55 { --ar: 0.55; }
.ar-60 { --ar: 0.6; }
.ar-65 { --ar: 0.65; }
.ar-70 { --ar: 0.7; }
.ar-75 { --ar: 0.75; }
.ar-80 { --ar: 0.8; }
.ar-85 { --ar: 0.85; }
.ar-90 { --ar: 0.9; }
.ar-95 { --ar: 0.95; }
.ar-100 { --ar: 1; }
.ar-105 { --ar: 1.05; }
.ar-110 { --ar: 1.1; }
.ar-115 { --ar: 1.15; }
.ar-120 { --ar: 1.2; }
.ar-125 { --ar: 1.25; }
.ar-130 { --ar: 1.3; }
.ar-135 { --ar: 1.35; }
.ar-140 { --ar: 1.4; }
.ar-145 { --ar: 1.45; }
.ar-150 { --ar: 1.5; }
.ar-155 { --ar: 1.55; }
.ar-160 { --ar: 1.6; }
.ar-165 { --ar: 1.65; }
.ar-170 { --ar: 1.7; }
.ar-175 { --ar: 1.75; }
.ar-180 { --ar: 1.8; }
.ar-185 { --ar: 1.85; }
.ar-190 { --ar: 1.9; }
.ar-195 { --ar: 1.95; }
.ar-200 { --ar: 2; }
.ar-205 { --ar: 2.05; }
.ar-210 { --ar: 2.1; }
.ar-215 { --ar: 2.15; }
.ar-220 { --ar: 2.2; }
.ar-225 { --ar: 2.25; }
.ar-230 { --ar: 2.3; }
.ar-235 { --ar: 2.35; }
.ar-240 { --ar: 2.4; }
.ar-245 { --ar: 2.45; }
.ar-250 { --ar: 2.5; }
.ar-255 { --ar: 2.55; }
.ar-260 { --ar: 2.6; }
.ar-265 { --ar: 2.65; }
.ar-270 { --ar: 2.7; }
.ar-275 { --ar: 2.75; }
.ar-280 { --ar: 2.8; }
.ar-285 { --ar: 2.85; }
.ar-290 { --ar: 2.9; }
.ar-295 { --ar: 2.95; }
.ar-300 { --ar: 3; }

/* events page: upcoming cards, a month calendar in the dark band, a quiet archive */
.btn-sm { padding: .5rem 1.1rem; font-size: .95rem; }
.ev-sub { margin: 1rem 0 0; }
.ev-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.ev-card a { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--r); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.ev-card a:hover, .ev-card a:focus-visible { box-shadow: 0 16px 30px -18px rgba(0, 36, 102, .5); transform: translateY(-2px); }
.ev-badge { display: grid; place-items: center; align-content: center; min-width: 4.2rem; padding: .5rem .6rem; background: var(--blue); color: #fff; border-radius: .5rem; line-height: 1; text-align: center; }
.ev-badge strong { font: 700 1.9rem/1 var(--f-head); color: var(--gold); }
.ev-badge span { margin-top: .25rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.ev-body { display: grid; gap: .2rem; min-width: 0; }
.ev-title { font: 650 1.25rem/1.25 var(--f-head); color: var(--blue); }
.ev-meta { color: var(--gray); }
.ev-in { justify-self: start; margin-top: .25rem; padding: .1rem .7rem; background: var(--gold); color: var(--ink); border-radius: 999px; font-size: .85rem; font-weight: 700; }
.ev-pic { position: relative; display: block; width: 9rem; aspect-ratio: 4 / 3; overflow: hidden; border-radius: .4rem; background: var(--blue); }
.ev-pic img { display: block; width: 100%; height: 100%; margin: 0; }
.ev-pic .gal-photo { position: absolute; inset: 0; transition: none; }
.ev-pic .gal-back { position: absolute; inset: 0; }
.ev-next:first-child a { border-left-width: 10px; }
.ev-past a { border-left-color: var(--line); background: #fbfcfe; }
.ev-past .ev-badge { background: #6b7384; }
.ev-past .ev-badge strong { color: #fff; }
.ev-past .ev-title { color: var(--ink); font-size: 1.1rem; }
.ev-empty { margin: 0; padding: 1.25rem; background: var(--soft); border-radius: var(--r); font-size: 1.1rem; }
.ev-year { margin: 1.5rem 0 .75rem; font-size: 1.15rem; color: var(--gray); }
.ev-cal-band h2 { color: #fff; margin: 0 0 1.5rem; }
@media (max-width: 40em) { .ev-card a { grid-template-columns: auto 1fr; } .ev-pic { display: none; } }

.cal { max-width: 46rem; margin: 0 auto; }
.cal-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.cal-title { flex: 1; margin: 0; color: #fff; text-align: center; text-transform: capitalize; font-size: 1.5rem; }
.cal-nav, .cal-today { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; cursor: pointer; font: 600 1rem/1 var(--f-body); }
.cal-nav { width: 2.6rem; height: 2.6rem; font-size: 1.5rem; }
.cal-today { padding: .65rem 1.1rem; }
.cal-nav:hover, .cal-today:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal-dow { padding: .3rem 0; text-align: center; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9fb3d9; }
.cal-day { position: relative; display: grid; align-content: start; justify-items: center; gap: .25rem; min-height: 4.2rem; padding: .5rem .2rem; border: 0; border-radius: .6rem;
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; }
.cal-day.out { opacity: .3; }
.cal-num { font-weight: 600; }
.cal-day.today { box-shadow: inset 0 0 0 2px #fff; }
.cal-day.has { background: rgba(235, 183, 0, .16); cursor: pointer; }
.cal-day.has:hover, .cal-day.has:focus-visible, .cal-day.sel { background: var(--gold); color: var(--ink); }
.cal-day.has.past { background: rgba(255, 255, 255, .12); }
.cal-dots { display: flex; gap: .2rem; }
.cal-dots i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); }
.cal-day.sel .cal-dots i, .cal-day.has:hover .cal-dots i { background: var(--ink); }
.cal-day.past .cal-dots i { background: #9fb3d9; }
.cal-detail { display: grid; gap: .6rem; margin-top: 1.1rem; min-height: 1rem; }
.cal-ev { display: grid; gap: .1rem; padding: .8rem 1rem; background: #fff; color: var(--ink); border-left: 6px solid var(--gold); border-radius: .5rem; text-decoration: none; }
.cal-ev strong { font: 650 1.1rem/1.3 var(--f-head); color: var(--blue); }
.cal-ev:hover strong { text-decoration: underline; }
@media (max-width: 40em) { .cal-day { min-height: 3.2rem; } .cal-title { font-size: 1.2rem; } }

/* single event page */
.evp-top { display: flex; gap: 1.25rem; align-items: center; }
.ev-badge-lg { min-width: 5.5rem; padding: .8rem; } .ev-badge-lg strong { font-size: 2.6rem; }
.ev-done { margin: .5rem 0 0; color: var(--gray); font-weight: 600; }
.evp-grid { display: grid; grid-template-columns: 1fr minmax(0, 26rem); gap: 2.5rem; align-items: start; }
.evp-facts { margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.evp-facts div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.evp-facts dt { color: var(--gray); font-weight: 600; } .evp-facts dd { margin: 0; font-weight: 600; font-size: 1.1rem; }
.evp-pic { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--blue); }
.evp-pic img { display: block; width: 100%; height: 100%; margin: 0; }
.evp-pic .gal-photo { position: absolute; inset: 0; transition: none; } .evp-pic .gal-back { position: absolute; inset: 0; }
.evp-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn-line-dark { border-color: var(--blue); color: var(--blue); } .btn-line-dark:hover { background: var(--blue); color: #fff; }
@media (max-width: 52em) { .evp-grid { grid-template-columns: 1fr; } }

/* lightbox: the photo, a counter, a slideshow button and a strip of thumbnails along the bottom, over a dark backdrop */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 45, .94); }
.lightbox img { max-width: 92vw; max-height: 70vh; width: auto; border-radius: .4rem; }
.lb-btn, .lb-close { position: fixed; background: #fff; color: var(--ink); border: 0; border-radius: 50%; width: 3rem; height: 3rem; font: 600 1.75rem/1 var(--f-body); cursor: pointer; }
.lb-prev { left: 1rem; top: 45%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 45%; transform: translateY(-50%); }
.lb-close { top: 1rem; right: 1rem; }
.lb-foot { position: fixed; left: 0; right: 0; bottom: 0; display: grid; gap: .5rem; justify-items: center; padding: 2rem 1rem .8rem; background: linear-gradient(to top, rgba(10, 20, 45, .95) 60%, rgba(10, 20, 45, 0)); }
.lb-cap { margin: 0; max-width: min(92vw, 44rem); color: #fff; text-align: center; font-weight: 600; }
.lb-bar { display: flex; align-items: center; gap: 1rem; color: #dbe3f3; font-size: .95rem; }
.lb-play { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: .25rem .9rem; font: 600 .9rem/1.2 var(--f-body); cursor: pointer; }
.lb-play:hover, .lb-play[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lb-strip { display: flex; gap: .4rem; max-width: min(96vw, 60rem); overflow-x: auto; padding: .25rem; scrollbar-width: thin; }
.lb-strip button { flex: none; width: 4.5rem; height: 3.2rem; padding: 0; border: 2px solid transparent; border-radius: .3rem; overflow: hidden; background: var(--blue); cursor: pointer; opacity: .6; }
.lb-strip button:hover, .lb-strip button[aria-current="true"] { opacity: 1; }
.lb-strip button[aria-current="true"] { border-color: var(--gold); }
.lb-strip img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; object-fit: cover; }
/* open and close fade (opacity only: a transform on the dialog would turn its fixed children into children of the dialog box
   while it animates). With a view transition (album pages) the browser animates the photo itself, so the fade is off. */
.lightbox[open] { animation: lb-in .25s ease; }
.lightbox[open]::backdrop { animation: lb-back-in .25s ease; }
.lightbox.closing { animation: lb-out .22s ease forwards; }
.lightbox.closing::backdrop { animation: lb-back-out .22s ease forwards; }
.lightbox.vt, .lightbox.vt::backdrop { animation: none; }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }
@keyframes lb-back-in { from { opacity: 0; } }
@keyframes lb-back-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lightbox[open], .lightbox[open]::backdrop { animation: none; } }
::view-transition-group(lbphoto) { animation-duration: .35s; animation-timing-function: ease; }
@media (max-width: 40em) { .lightbox img { max-height: 62vh; } .lb-strip button { width: 3.4rem; height: 2.5rem; } }

/* gallery items fade up when scrolled into view (site.js adds rv-hide only to items below the screen) */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.rv-hide { opacity: 0; transform: translateY(1.25rem); }
.jr-item:nth-child(3n + 2).reveal, .al-card:nth-child(3n + 2).reveal { transition-delay: .06s; }
.jr-item:nth-child(3n).reveal, .al-card:nth-child(3n).reveal { transition-delay: .12s; }

/* footer */
.foot { background: var(--blue-deep); color: #c9d4ea; padding: 3rem 0 2rem; margin-top: 0; border-top: 4px solid var(--gold); }
.foot-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5rem 3rem; }
.foot-id { display: flex; gap: 1rem; align-items: flex-start; }
.foot-id img { flex: none; }
.foot strong { color: #fff; }
.foot a { color: #fff; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; align-content: start; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.25rem; margin: .5rem 0 0; max-width: none; font-size: .9rem; }
@media (max-width: 52em) { .foot-in { grid-template-columns: 1fr; } }

/* club e-mail in the top bar: address with icon on wide screens, icon only next to the compact menu (and the address
   again at the top of the opened menu) */
.top-mail { display: inline-flex; align-items: center; gap: .4rem; flex: none; color: var(--blue); font-weight: 600; font-size: .95rem; text-decoration: none; }
.top-mail svg { flex: none; }
.top-mail:hover span { text-decoration: underline; }
.top-mail-icon { display: none; color: var(--blue); }
.menu .top-mail { display: flex; padding: .6rem 0; margin-bottom: .25rem; border-bottom: 1px solid var(--line); }
@media (max-width: 74em) {
  .top > .top-in > .top-mail { display: none; }
  .top-mail-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-left: auto; border-radius: .5rem; }
  .top-mail-icon:hover { background: var(--soft); }
  .top-mail-icon + .menu { margin-left: 0; }
}
