/* Viking Ski Club — site styles */
:root {
  --night: #0f1f33;
  --fjord: #1d3a5c;
  --lake: #4b6c8f;
  --snow: #f6f8fb;
  --ice: #e3ebf3;
  --line: #d3dde8;
  --red: #b3262e;
  --red-dark: #8f1d24;
  --ink: #1a2433;
  --muted: #56647a;
  --radius: 12px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--fjord); }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--night); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; border-bottom: 4px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img.logo { height: 44px; width: auto; }
.brand .mark { flex: none; height: 52px; width: auto; }
.brand .name { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; line-height: 1.1; }
.brand .name small { display: block; margin-top: 5px; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #b9c8d9; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { display: block; color: #dfe8f2; text-decoration: none; font-size: .95rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
.nav a.members { background: var(--red); color: #fff; margin-left: 6px; }
.nav a.members:hover { background: var(--red-dark); }
.menu-btn { display: none; background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 7px 12px; font: 600 .95rem var(--sans); cursor: pointer; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 4px solid var(--red); padding: 8px 16px 16px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a.members { margin: 6px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, #0f1f33 0%, #1d3a5c 60%, #4b6c8f 100%); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,31,51,.85) 0%, rgba(15,31,51,.45) 60%, rgba(15,31,51,.2) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 120px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; max-width: 40ch; color: #e6eef6; }
.hero .eyebrow { color: #ffd9db; }
.hero .ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; }
.page-hero .wrap { padding-top: 64px; padding-bottom: 92px; }
.page-hero h1 { max-width: 22ch; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: .6em; }

.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--night); }
.btn-outline { border-color: var(--fjord); color: var(--fjord); }
.btn-outline:hover { background: var(--fjord); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--snow); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 52px 0; } }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse > :first-child { order: 0; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card .body p { color: var(--muted); }
.card .body .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.photo { position: relative; background: linear-gradient(160deg, var(--ice), #c9d7e6); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.card .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.missing img { display: none; }
.photo.missing::after { content: attr(data-alt); position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--lake); font-weight: 600; font-size: .9rem; }
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* Facts / stats */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.facts div { padding: 22px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--red); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Rooms */
.room h3 { margin-top: 14px; margin-bottom: 4px; }
.room p { color: var(--muted); margin: 0; }

/* Tables / rates */
table.rates { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.rates th, table.rates td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.rates th { background: var(--snow); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.rates td.amt { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--night); }
table.rates tr:last-child td { border-bottom: 0; }

/* Steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
ol.steps li { counter-increment: s; position: relative; padding: 18px 20px 18px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
ol.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--night); color: #fff; display: grid; place-items: center; font-weight: 700; }
ol.steps li strong { display: block; color: var(--night); }
ol.steps li span { color: var(--muted); }

ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
ul.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

.callout { background: var(--night); color: #e6eef6; border-radius: var(--radius); padding: 32px; }
.callout h2, .callout h3 { color: #fff; }
.callout a:not(.btn) { color: #ffd9db; }
.note { background: #fff7e6; border: 1px solid #f1d9a6; border-radius: 10px; padding: 14px 16px; color: #6b4e12; font-size: .95rem; }

/* Events */
.events { display: grid; gap: 12px; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.event .date { text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.event .date .m { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.event .date .d { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--night); }
.event h3 { margin: 0 0 2px; font-size: 1.1rem; }
.event p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--ice); color: var(--fjord); margin-left: 6px; vertical-align: 2px; }
.tag.social { background: #fde7e8; color: var(--red-dark); }
.tag.work { background: #e7f1e8; color: #2c5a33; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button { font: 600 .9rem var(--sans); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }

/* Link lists (conditions) */
.links-card h3 { display: flex; align-items: center; gap: 10px; }
.links-card ul { list-style: none; margin: 0; padding: 0; }
.links-card li { border-top: 1px solid var(--line); }
.links-card li:first-child { border-top: 0; }
.links-card li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; text-decoration: none; font-weight: 600; }
.links-card li a::after { content: "↗"; color: var(--muted); }
.links-card li small { display: block; color: var(--muted); font-weight: 400; }

/* Footer */
.site-footer { background: var(--night); color: #b9c8d9; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #dfe8f2; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Members area */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.doc-list a:hover { border-color: var(--fjord); }
.doc-list .icon { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--ice); color: var(--fjord); display: grid; place-items: center; font-weight: 800; font-size: .75rem; }
.doc-list strong { display: block; color: var(--night); }
.doc-list span { color: var(--muted); font-size: .92rem; }
.doc-list li.split { display: flex; gap: 10px; }
.doc-list li.split > a:first-child { flex: 1; min-width: 0; }
.doc-list li.split a.dl { flex: none; font-weight: 800; font-size: .85rem; color: var(--fjord); white-space: nowrap; }

@media (max-width: 420px) { .brand { gap: 9px; } .brand .name { font-size: 1.15rem; } .brand .name small { letter-spacing: .05em; font-size: .6rem; } .brand .mark { height: 42px; } }

/* Board list (members area) */
ul.board-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
ul.board-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
ul.board-list li strong { color: var(--night); }
ul.board-list li a { overflow-wrap: anywhere; }
@media (max-width: 640px) { ul.board-list { grid-template-columns: 1fr; } ul.board-list li { flex-direction: column; gap: 2px; } }
.card .body a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Nordic Gazette (members area) */
.gazette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px; }
.gz { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.gz img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 16px rgba(15,31,51,.08); transition: transform .15s, box-shadow .15s; }
.gz:hover img { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,31,51,.16); }
.gz-label { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; }
.gz-label strong { color: var(--night); }
.gz-label small { color: var(--muted); }

/* Gazette: latest issue + yearly archive */
.gz-latest { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.gz-latest img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; border: 2px solid var(--red); border-radius: 8px; box-shadow: 0 8px 20px rgba(15,31,51,.12); }
.gz-latest h3 { font-size: 1.4rem; margin-bottom: 6px; }
.gz-latest p { color: var(--muted); }
@media (max-width: 600px) { .gz-latest { grid-template-columns: 1fr; } .gz-latest img { max-width: 220px; } }
details.gz-year { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
details.gz-year > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; user-select: none; }
details.gz-year > summary::-webkit-details-marker { display: none; }
details.gz-year > summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--fjord); border-bottom: 2.5px solid var(--fjord); transform: rotate(-45deg); transition: transform .15s; flex: none; }
details.gz-year[open] > summary::before { transform: rotate(45deg); }
details.gz-year > summary:hover { background: var(--snow); }
details.gz-year .yr { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--night); }
details.gz-year .count { color: var(--muted); font-size: .92rem; margin-left: auto; }
details.gz-year .gazette-grid { padding: 6px 20px 24px; }

/* Zoom meeting card (members area) */
.zoom-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: #0f1f33; }

/* Photo popup (lightbox) */
.photo img { cursor: zoom-in; transition: transform .25s; }
.photo:hover img { transform: scale(1.03); }
.photo img:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; display: none; }
dialog.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
dialog.lightbox::backdrop { background: rgba(8, 16, 28, .95); }
.lightbox figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; padding: 56px 0 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #0f1f33; }
.lightbox figcaption { color: #dfe8f2; margin-top: 14px; text-align: center; font-size: .98rem; max-width: 70ch; padding: 0 12px; }
.lightbox button { background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; font: 400 2.2rem/1 var(--sans); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; justify-self: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { position: fixed; top: 14px; right: 16px; font-size: 2rem; z-index: 2; }
.lightbox .lb-prev { grid-column: 1; grid-row: 1; }
.lightbox .lb-next { grid-column: 3; grid-row: 1; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { visibility: hidden; }
@media (max-width: 640px) {
  dialog.lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { grid-column: 1; grid-row: 1; padding: 64px 8px 80px; }
  .lightbox img { max-height: calc(100vh - 190px); }
  .lightbox .lb-prev, .lightbox .lb-next { position: fixed; bottom: 18px; }
  .lightbox .lb-prev { left: calc(50% - 64px); }
  .lightbox .lb-next { right: calc(50% - 64px); }
}

/* Members area: archive link card */
.archive-card { display: block; text-decoration: none; }
.archive-card:hover { border-color: var(--fjord); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.pair > .card > .body { height: 100%; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }
.year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 16px; }
.year-grid .btn { display: flex; justify-content: center; text-align: center; padding-left: 0; padding-right: 0; }
.propane-bar { position: relative; height: 8px; border-radius: 99px; background: var(--ice); margin: 6px 0 6px; overflow: hidden; }
.propane-bar .full-mark { position: absolute; left: 80%; top: 0; bottom: 0; width: 2px; background: var(--night); opacity: .55; }
.propane-bar span { display: block; height: 100%; width: 0; background: #e2a23b; border-radius: 99px; transition: width .4s; }
.propane-bar span.low { background: var(--red, #b3202b); }
.propane-details-btn { font: inherit; font-size: .78rem; font-weight: 700; color: var(--fjord); background: #fff; border: 1px solid var(--fjord); border-radius: 99px; padding: 2px 10px; cursor: pointer; }
.propane-details-btn:hover { background: var(--ice); }
.propane-details { border-top: 1px solid var(--line); padding: 14px 22px 18px; }
.propane-note { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.propane-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.propane-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.propane-table td { padding: 6px; border-bottom: 1px solid var(--line); color: var(--night); }
.propane-table td:not(:first-child), .propane-table th:not(:first-child) { text-align: right; }

/* ---------- Propane graphs ---------- */
.propane-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.range-group { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--snow); }
.range-group button { font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: none; border: 0; border-radius: 99px; padding: 5px 14px; cursor: pointer; }
.range-group button[aria-pressed="true"] { background: #fff; color: var(--night); box-shadow: 0 1px 3px rgba(15,31,51,.15); }
.propane-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.propane-summary div { background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.propane-summary b { display: block; font-size: 1.4rem; color: var(--night); line-height: 1.2; }
.propane-summary span { font-size: .85rem; color: var(--muted); }
@media (max-width: 640px) { .propane-summary { grid-template-columns: repeat(2, 1fr); } }
.propane-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgba(15,31,51,.15); padding: 8px 10px; font-size: .85rem; color: var(--ink); white-space: nowrap; z-index: 5; }
.propane-tip strong { display: block; color: var(--night); margin-bottom: 2px; }
.propane-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.propane-tip small { color: var(--muted); }

/* ---------- Photo album (archive) ---------- */
.album-intro { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.album-intro p { max-width: 640px; margin: 0; }
.album-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.album-grid a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.album-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; background: var(--snow); border: 1px solid var(--line); transition: transform .15s; }
.album-grid a:hover img, .album-grid a:focus-visible img { transform: scale(1.02); }
.album-grid span { font-size: .85rem; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.album-grid b { color: var(--night); }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 14, 24, .97); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; width: min(88vw, 1400px); height: 100vh; padding: 20px 0 16px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lightbox img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { flex: none; color: #e8eef5; font-size: 1rem; line-height: 1.45; text-align: center; max-width: 900px; padding: 0 56px; }
.lightbox figcaption b { color: #fff; }
.lightbox figcaption small { color: #9fb0c4; margin-left: 8px; white-space: nowrap; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 99px; cursor: pointer; font-size: 1.8rem; line-height: 1; width: 48px; height: 48px; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255,255,255,.25); }
.lb-close { top: 16px; right: 16px; }
.lb-play { top: 16px; left: 16px; font-size: 1.1rem !important; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .album-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .album-grid img { height: 120px; } .lightbox figcaption { padding: 0 8px; font-size: .9rem; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }
.lightbox .lb-dl { position: absolute; top: 16px; right: 76px; color: #fff; background: rgba(255,255,255,.12); border-radius: 99px; padding: 0 16px; height: 48px; display: inline-flex; align-items: center; font-weight: 600; font-size: .95rem; text-decoration: none; }
.lightbox .lb-dl:hover, .lightbox .lb-dl:focus-visible { background: rgba(255,255,255,.25); }
@media (max-width: 640px) { .lightbox .lb-dl { right: 72px; font-size: .85rem; padding: 0 12px; } }
.doc-list .icon svg { display: block; }
.doc-list .kind { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--ice); color: var(--fjord); font-style: normal; font-weight: 700; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6; }
