
:root{color-scheme:light;--ink:#351318;--red:#991c28;--paper:#fbf8f2;--line:#dfd4c7}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:16px system-ui,sans-serif}
.cover{display:grid;grid-template-columns:1fr 1fr;min-height:100svh}
.emblem{display:grid;place-items:center;position:relative;background:radial-gradient(ellipse at 50% 42%,#831e28,#451019 82%);min-height:240px;padding:70px}
.emblem:before,.emblem:after{content:"";position:absolute;inset:24px;border:1px solid #f7dfb64d;pointer-events:none}
.emblem:after{inset:30px;border-color:#f7dfb623}
.emblem img{width:min(100%,465px);filter:drop-shadow(0 12px 24px #28061155)}
.entry{display:grid;place-items:center;padding:52px clamp(30px,6vw,100px)}
.content{width:min(100%,460px)}
.kicker{text-transform:uppercase;letter-spacing:.22em;font-size:.875rem;font-weight:650;color:var(--red)}
h1{font:normal clamp(3.5rem,6.6vw,7.5rem)/.89 Georgia,serif;letter-spacing:-.065em;margin:26px 0 32px}
h1 em{font-weight:normal}
.rule{width:54px;border:0;border-top:1px solid #a05550;margin:0 0 30px}
p{line-height:1.55;margin:0 0 24px}
label{display:block;font-size:.9rem;font-weight:650;margin-bottom:8px}
.field{display:flex;border:1px solid #bda99e;background:#fffdfa}
input{width:100%;min-width:0;border:0;background:none;padding:14px;color:inherit;font:inherit}
button{font:inherit;cursor:pointer}
.toggle{border:0;background:transparent;color:var(--ink);padding:0 13px;font-size:.875rem}
.primary{margin-top:12px;padding:14px 20px;border:1px solid var(--red);background:var(--red);color:white;width:100%;font-weight:650}
.primary:hover{background:#78151f}
:focus-visible{outline:2px solid #a04b41;outline-offset:3px}
.error{min-height:1.5em;margin:8px 0 0;color:#9c1824;font-size:.9rem}
.album{max-width:1280px;margin:auto;padding:44px clamp(22px,6vw,72px)}
.album header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:42px}
.album header button{border:1px solid var(--line);padding:8px 13px;color:inherit;background:transparent}
.album h1{font-size:clamp(2.6rem,7vw,6rem);overflow-wrap:anywhere;text-wrap:balance}
.frames{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:22px}
figure{margin:0;background:#fffdfa;border:1px solid var(--line);padding:12px 12px 18px}
.frame{display:grid;place-items:center;aspect-ratio:4/3;background:repeating-linear-gradient(135deg,#eee5da,#eee5da 1px,#f3ede5 1px,#f3ede5 12px);color:#67454a;font-size:.9rem}
figcaption{font:1.35rem Georgia,serif;margin-top:14px}
@media(max-width:680px){.cover{grid-template-columns:1fr;grid-template-rows:auto 1fr}.emblem{padding:52px;min-height:225px}.emblem img{width:185px}.emblem:before{inset:15px}.emblem:after{inset:20px}.entry{padding:36px 26px}.entry h1{font-size:clamp(3.55rem,11vw,5rem);margin:18px 0 22px}}

.album header form{margin:0}
figure img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
figure a{display:block}
.tll-pages,.tll-controls{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;margin-top:26px}
.tll-pages a,.tll-controls button,dialog form button{padding:8px 12px;border:1px solid var(--line);background:#fffdfa;color:var(--ink);border-radius:3px}
.tll-controls button:disabled{opacity:.48}
dialog{width:min(96vw,1100px);max-height:95dvh;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:12px}
dialog::backdrop{background:#190910d9}
dialog form{display:flex;justify-content:flex-end;margin-bottom:8px}
dialog figure{padding:0;border:0;background:transparent}
dialog figure img{width:100%;height:min(68dvh,690px);aspect-ratio:auto;object-fit:contain;background:#211215}
dialog figcaption{text-align:center;font-size:1rem;margin-top:7px}
dialog .tll-controls{margin-top:10px}
.tll-caption-edit,.tll-caption-status{font: .875rem/1.4 system-ui,sans-serif}
.tll-caption-edit{margin-top:8px}
.tll-caption-edit > summary{display:flex;align-items:baseline;gap:8px;cursor:pointer;min-height:28px;list-style:none}
.tll-caption-edit > summary::-webkit-details-marker{display:none}
.tll-caption-text{min-width:0;overflow-wrap:anywhere;font:1rem/1.45 Georgia,serif;color:var(--ink)}
.tll-caption-pencil{margin-left:auto;color:var(--red);font:1.1rem/1 system-ui,sans-serif}
.tll-caption-add{color:#74575a;font-size:.875rem}
.tll-caption-edit > summary:hover .tll-caption-text,.tll-caption-edit > summary:hover .tll-caption-add{text-decoration:underline}
.tll-caption-edit > summary:focus-visible{outline:2px solid var(--red);outline-offset:3px}
.tll-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.tll-caption-edit form{display:grid;gap:6px;margin-top:8px}
.tll-caption-edit input{border:1px solid var(--line);padding:8px;background:#fff}
.tll-caption-edit button{justify-self:start;border:1px solid var(--line);padding:6px 10px;background:#fff;color:var(--ink)}
.tll-caption-status{display:none;margin:8px 0 0}
figure:target .tll-caption-status{display:block}


#tll-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(18px, 2.8vw, 36px);
}
#tll-gallery > figure:nth-child(5n + 1) {
    grid-column: span 2;
}
#tll-gallery > figure:nth-child(5n + 1) > a > img {
    aspect-ratio: 16 / 10;
}
@media (min-width: 820px) {
    #tll-gallery {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: 0;
    }
    #tll-gallery > figure:nth-child(n) {
        grid-column: span 4;
        min-width: 0;
        margin-inline: clamp(10px, 1.5vw, 18px);
    }
    #tll-gallery > figure:nth-child(8n + 1) { grid-column: span 6; }
    #tll-gallery > figure:nth-child(8n + 2),
    #tll-gallery > figure:nth-child(8n + 3) { grid-column: span 3; }
    #tll-gallery > figure:nth-child(8n + 7) { grid-column: span 5; }
    #tll-gallery > figure:nth-child(8n + 8) { grid-column: span 7; }

    #tll-gallery > figure:nth-child(8n + 2):last-child,
    #tll-gallery > figure:nth-child(8n + 4):nth-last-child(2),
    #tll-gallery > figure:nth-child(8n + 5):last-child { grid-column: span 6; }

    #tll-gallery > figure:nth-child(n) > a > img {
        aspect-ratio: auto;
        height: clamp(170px, 22vw, 260px);
    }
    #tll-gallery > figure:nth-child(8n + 7) > a > img,
    #tll-gallery > figure:nth-child(8n + 8) > a > img {
        height: clamp(210px, 26vw, 300px);
    }
}
@media (max-width: 420px) {
    #tll-gallery { grid-template-columns: minmax(0, 1fr); }
    #tll-gallery > figure:nth-child(n) { grid-column: span 1; }
}

.tll-album-tools,.tll-search-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.tll-album-tools{justify-content:space-between;margin:0 0 26px}
.tll-search{flex:1 1 320px}
.tll-search label{margin-bottom:7px}
.tll-search input,.tll-upload-fields input{width:100%;max-width:340px;padding:10px 12px;border:1px solid var(--line);border-radius:3px;background:#fff;color:var(--ink)}
.tll-search input{flex:1 1 185px}
.tll-search button,.tll-tool-button{display:inline-block;border:1px solid var(--red);border-radius:3px;background:var(--red);color:#fff;padding:10px 15px;text-decoration:none;font:inherit}
.tll-tool-button:hover,.tll-search button:hover{filter:brightness(.9)}
.tll-search a,.tll-visitor-upload header a{color:var(--red)}
.tll-uploader{display:block;margin-top:6px;color:#74575a;font:.875rem/1.4 system-ui,sans-serif}
.tll-visitor-upload{max-width:900px}
.tll-upload-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:16px;margin-bottom:12px}
.tll-upload-fields input{display:block;margin-top:7px;max-width:none}
.tll-visitor-upload #tll-drop-zone{border:2px dashed #a47b80;border-radius:12px;padding:36px 16px 26px;text-align:center;background:#fffdf9;margin-bottom:18px}
.tll-visitor-upload #tll-drop-zone.tll-drag{background:#fbebee;border-color:var(--red)}
.tll-visitor-upload h2{font:normal 1.65rem Georgia,serif;margin:0 0 12px}
.tll-visitor-upload #tll-drop-zone p{margin:13px 0 0;color:#74575a}
.tll-visitor-upload #tll-drop-errors{overflow-wrap:anywhere}
.tll-visitor-upload #tll-drop-errors:empty{display:none}

.tll-photo-discipline{max-width:680px;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}
.tll-photo-discipline p{margin:0 0 10px}

#tll-welcome {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 22px;
    border: 0;
    background: radial-gradient(ellipse at 50% 44%, #8a2432, #40121b 78%);
    color: #f8e7c8;
    overflow: hidden;
}
#tll-welcome[open] {display: grid;place-items: center}
#tll-welcome::before {
    content: "";
    position: absolute;
    inset: clamp(12px, 3vw, 32px);
    border: 1px solid #f8e7c860;
    pointer-events: none;
}
.tll-welcome-content {text-align: center}
.tll-welcome-content img {
    display: block;
    width: min(48vw, 240px, 46vh);
    height: auto;
    margin: 0 auto 16px;
    animation: tll-duck-arrival 1.25s cubic-bezier(.2,.7,.25,1) both;
}
#tll-welcome-title {
    margin: 0 0 20px;
    font: normal clamp(2.8rem, 8vw, 6rem)/1 Georgia, serif;
    letter-spacing: -.045em;
    animation: tll-welcome-text .65s .6s ease-out both;
}
@keyframes tll-duck-arrival {
    0% {opacity: 0;transform: translate(58vw, 26px) rotate(-11deg) scale(.68)}
    65% {opacity: 1;transform: translate(-14px, -8px) rotate(4deg) scale(1.04)}
    100% {opacity: 1;transform: none}
}
@keyframes tll-welcome-text {
    from {opacity: 0;transform: translateY(12px)}
    to {opacity: 1;transform: none}
}
@media (prefers-reduced-motion: reduce) {
    .tll-welcome-content img, #tll-welcome-title {animation: none}
}

.tll-header-brand{display:flex;align-items:center;gap:12px}
.tll-header-brand img{display:block;flex:none;object-fit:contain;padding:7px;background:#641925;border-radius:4px}

.tll-remove-photo{margin-top:10px;color:var(--red);font:.875rem/1.4 system-ui,sans-serif}
.tll-remove-photo summary{display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--line);border-radius:4px;background:#fff;list-style:none;cursor:pointer}
.tll-remove-photo summary::-webkit-details-marker{display:none}
.tll-remove-photo summary:hover,.tll-remove-photo[open] summary{border-color:var(--red)}
.tll-remove-photo form p{margin:0}
.tll-remove-photo button{margin-top:8px;border:1px solid var(--red);border-radius:3px;padding:6px 10px;background:#fff;color:var(--red)}

.tll-upload-actions,.tll-selection{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#tll-confirm-upload{min-width:172px;font-weight:650;padding:12px 18px}
#tll-confirm-upload:disabled{opacity:1;background:#eee4e3;border-color:#d7c5c4;color:#60434a;filter:none}
.tll-selection p{margin:0}
.tll-selection button{border:0;background:transparent;color:var(--red);padding:4px;text-decoration:underline}
.tll-visitor-upload .tll-tool-button:disabled{opacity:.55;cursor:default}

.tll-like{margin:0 0 8px;font:.875rem/1.4 system-ui,sans-serif}
.tll-like-button{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:4px 10px;border:1px solid var(--line);border-radius:99px;background:#fbf8f2;color:var(--ink)}
.tll-like-button img{width:24px;height:18px;aspect-ratio:auto;object-fit:contain;filter:brightness(.42) sepia(.6)}
.tll-like-button[aria-pressed=true]{background:#681f2b;border-color:#681f2b;color:#fff6e8}
.tll-like-button[aria-pressed=true] img{filter:none}
.tll-like-button:disabled{cursor:wait}
.tll-like-error:not(:empty){display:block;color:var(--red);margin-top:5px}

.tll-album-nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.tll-album-nav a{color:var(--ink);font-weight:650;text-underline-offset:5px}
.tll-album-nav a[aria-current="page"]{color:var(--red);text-decoration-thickness:2px}
.tll-cohort-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(275px,1fr);gap:clamp(20px,4vw,44px);align-items:start}
.tll-cohort{margin:0 0 26px;scroll-margin-top:24px}
.tll-cohort h2{display:flex;gap:16px;align-items:baseline;margin:0 0 14px;font:normal clamp(1.5rem,3vw,2rem) Georgia,serif}
.tll-cohort h2::after{content:"";height:1px;background:var(--line);flex:1}
.tll-cohort-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#tll-gallery img.tll-album-align-top,.tll-cohort-photos img.tll-cohort-align-top{object-position:center top}
.tll-cohort-photos figure{padding:0;border:0;background:transparent;min-width:0}
.tll-cohort-photos figcaption{margin:8px 0 0;font:1rem Georgia,serif;overflow-wrap:anywhere}
.tll-cohort-upload{padding:20px;border:1px solid var(--line);border-radius:5px}
.tll-cohort-upload h2{margin:0 0 18px;font:1.85rem Georgia,serif}
.tll-cohort-upload label{margin:0 0 5px}
.tll-cohort-upload input{background:#fff;border:1px solid var(--line);border-radius:4px;padding:9px;margin-bottom:14px}
#cohort-drop{padding:12px;border:1px dashed #a47b80;border-radius:5px;margin-bottom:12px}
#cohort-drop input{margin:0}
.tll-cohort-upload button{width:100%}
.tll-cohort-upload p{margin:8px 0 0}
#cohort-progress:empty{display:none}
@media (max-width:760px){.tll-cohort-layout{grid-template-columns:1fr}.tll-cohort-upload{grid-row:1}}
@media (max-width:420px){.tll-cohort-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tll-cohort-edit{margin-top:6px;font:.875rem/1.4 system-ui,sans-serif}
.tll-cohort-edit > summary{display:grid;place-items:center;width:34px;height:34px;list-style:none;cursor:pointer;color:var(--red);border:1px solid var(--line);border-radius:4px;background:#fff}
.tll-cohort-edit > summary::-webkit-details-marker{display:none}
.tll-cohort-edit > form{margin-top:8px}
.tll-cohort-edit > form input{padding:6px;border:1px solid var(--line);background:#fff;margin-bottom:6px}

#lichting-25 > h2,
.tll-cohort-upload #cohort-number.tll-cohort-gold {
    color: #876200;
}
#lichting-25 > h2::after {
    background: #b99442;
}
.tll-cohort-upload #cohort-number.tll-cohort-gold {
    border-color: #b99442;
}
.tll-cohort-upload #cohort-number.tll-cohort-gold:focus-visible {
    outline-color: #876200;
}

.tll-caption-edit > .tll-remove-photo > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    padding: 6px 9px;
}
.tll-caption-edit > .tll-remove-photo > summary svg { flex: none; }

.tll-page-jump{flex:1 0 100%;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px}
.tll-page-jump label{margin:0}
.tll-page-jump input[type=number]{width:5rem;min-height:44px;padding:7px;border:1px solid var(--line);border-radius:4px;background:#fffdfa;color:var(--ink)}
.tll-page-jump button{min-height:44px;padding:7px 14px;border:1px solid var(--red);border-radius:4px;background:var(--red);color:#fff}
.album .tll-pages a{display:inline-flex;align-items:center;min-height:44px}

.tll-page-symbol { display: none; }
@media (max-width: 600px) {
    .album .tll-pages-quick { gap: 6px; }
    .album .tll-pages-quick a { min-width: 44px; justify-content: center; padding: 0 8px; }
    .tll-pages-quick .tll-page-label { display: none; }
    .tll-pages-quick .tll-page-symbol { display: inline; font-size: 1.4rem; line-height: 1; }
}

#cohort-selfie-controls { margin: 0 0 12px; }
#cohort-take-selfie {
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--red);
    border-radius: 5px;
    background: var(--paper);
    color: var(--red);
}

.tll-photo-reactions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:7px}
.tll-photo-reactions .tll-like{margin-bottom:0}
.tll-comments{max-width:100%;font:.875rem/1.45 system-ui,sans-serif}
.tll-comments[open]{flex:1 0 100%}
.tll-comment-toggle{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:4px 10px;border:1px solid var(--line);border-radius:99px;background:#fbf8f2;color:var(--ink);cursor:pointer;list-style:none}
.tll-comment-toggle::-webkit-details-marker{display:none}
.tll-comments[open] .tll-comment-toggle{border-color:var(--red)}
.tll-comment-panel{margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:5px}
.tll-comment-list{padding:0;margin:10px 0 0;list-style:none;font:.875rem/1.45 system-ui,sans-serif}
.tll-comment-list li{padding:6px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.tll-comment-panel p,.tll-comment-list p{margin:4px 0;white-space:pre-wrap}
.tll-comment-panel input:not([type=hidden]),.tll-comment-panel textarea{display:block;width:100%;margin-top:4px;padding:7px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit}
.tll-comment-panel button{overflow-wrap:anywhere}

.tll-comment-panel{padding:0;border:0}
.tll-comment-compose{padding:8px 10px;background:#eeebe7;border-radius:12px}
.tll-comment-compose label{margin:0}
.tll-comment-compose input:not([type=hidden]),.tll-comment-compose textarea{background:transparent;border:0}
.tll-comment-compose textarea{resize:vertical}
.tll-comment-compose button{min-height:40px}
.tll-comment-remove summary{display:inline-grid;place-items:center;min-width:36px;min-height:36px;cursor:pointer;list-style:none;color:var(--red)}
.tll-comment-remove summary::-webkit-details-marker{display:none}

.tll-tool-button.tll-shuffle{background:transparent;color:var(--red)}
.tll-tool-button.tll-shuffle.is-active{background:var(--red);color:#fff}

.tll-memoriam-content{max-width:46rem;margin-inline:auto}
.tll-memoriam h1{font-size:clamp(2.4rem,7vw,5rem)}
.tll-memoriam-content article{border-top:1px solid var(--line);padding:1.6rem 0;margin-top:1rem;scroll-margin-top:1rem}
.tll-memoriam-content h2{font:normal clamp(1.5rem,4vw,2.1rem) Georgia,serif;margin:0 0 .75rem}
.tll-memoriam-text{white-space:pre-wrap;overflow-wrap:anywhere;font:1.15rem/1.65 Georgia,serif;margin-bottom:1rem}
.tll-memoriam details>summary{cursor:pointer;color:var(--red);width:fit-content}
.tll-memoriam-form{display:grid;gap:.9rem;margin:1rem 0}
.tll-memoriam-form label{display:grid;gap:.4rem}
.tll-memoriam-form textarea,.tll-memoriam-form input{font:inherit;width:100%;padding:.65rem;border:1px solid var(--line);background:#fff;color:var(--ink)}
.tll-memoriam-form button{justify-self:start}
.tll-memoriam article details{margin-block:.65rem}
.tll-memoriam-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.8rem;margin:1rem 0}
.tll-memoriam-photos a{display:block;max-width:22rem}
.tll-memoriam-photos img{display:block;width:auto;height:auto;max-width:100%;max-height:28rem;border-radius:3px}
.tll-memoriam-content article{border:1px solid var(--line);padding:clamp(.9rem,3vw,1.5rem);background:#fffdfa}
.tll-memoriam-photos{margin:0 0 1rem}
.tll-memoriam .tll-remove-photo label{display:grid;gap:.35rem;margin-top:.65rem}
.tll-memoriam .tll-remove-photo select{font:inherit;max-width:100%;padding:.4rem;border:1px solid var(--line);background:#fff;color:var(--ink)}
.tll-memoriam .tll-cohort-edit>summary,.tll-memoriam .tll-remove-photo>summary{width:44px;height:44px}
.tll-memoriam-form button{appearance:none;border:1px solid var(--red);border-radius:4px;background:var(--red);color:white;padding:.55rem .9rem;font:inherit;cursor:pointer}
