/* Spolek 0.9.171 — scoped gallery index, independent of legacy gallery styles. */
#sp-gallery-years {
    --gy-green: #245a40;
    --gy-ink: #142c30;
    --gy-muted: #5e686e;
    --gy-line: #dfe5e2;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 26px 0 30px;
    color: var(--gy-ink);
    font-size: 15px;
    line-height: 1.45;
}
#sp-gallery-years * { box-sizing: border-box; }
#sp-gallery-years [hidden] { display: none !important; }
#sp-gallery-years a { text-decoration: none; }
#sp-gallery-years a:focus-visible, #sp-gallery-years summary:focus-visible, #sp-gallery-years button:focus-visible {
    outline: 3px solid #418864; outline-offset: 3px;
}
#sp-gallery-years .gy-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
#sp-gallery-years .gy-intro h1 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.025em; color: var(--gy-ink); }
#sp-gallery-years .gy-intro p { margin: 7px 0 0; color: var(--gy-muted); font-size: 17px; }
#sp-gallery-years .gy-total { color: var(--gy-muted); white-space: nowrap; font-size: 13px; }
#sp-gallery-years .gy-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 27px; padding: 0; }
#sp-gallery-years .gy-filter { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 19px; border: 1px solid var(--gy-line); border-radius: 9px; background: #fff; color: var(--gy-ink); font-size: 14px; font-weight: 550; }
#sp-gallery-years .gy-filter:hover { border-color: #91b19d; background: #f3f7f4; }
#sp-gallery-years .gy-filter.is-active { color: #fff; background: var(--gy-green); border-color: var(--gy-green); }
#sp-gallery-years .gy-current, #sp-gallery-years .gy-year { scroll-margin-top: 160px; }
#sp-gallery-years .gy-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #cdd8d1; padding: 0 0 12px; margin: 0 0 18px; }
#sp-gallery-years .gy-year-label { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
#sp-gallery-years .gy-section-heading h2 { margin: 0; font-size: 31px; line-height: 1.15; color: var(--gy-ink); }
#sp-gallery-years .gy-badge { padding: 5px 13px; background: var(--gy-green); color: #fff; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; }
#sp-gallery-years .gy-count { font-size: 13px; font-weight: 650; white-space: nowrap; }
#sp-gallery-years .gy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
#sp-gallery-years .gy-card { display: flex; min-width: 0; margin: 0; border: 1px solid var(--gy-line); border-radius: 9px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgb(20 44 30 / 3%); }
#sp-gallery-years .gy-card:hover { border-color: #9fb9a9; box-shadow: 0 3px 10px rgb(20 44 30 / 7%); }
#sp-gallery-years .gy-card-link { display: flex; flex-direction: column; width: 100%; min-width: 0; color: var(--gy-ink); }
#sp-gallery-years .gy-card-link:focus-visible { outline-offset: -3px; }
#sp-gallery-years .gy-media { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; flex: 0 0 auto; background: #eef3ef; }
#sp-gallery-years .gy-media > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; border-radius: 0; margin: 0; }
#sp-gallery-years .gy-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; color: #637d6c; font-size: 11px; }
#sp-gallery-years .gy-placeholder svg { width: 38px; height: 38px; }
#sp-gallery-years .gy-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 12px 13px 11px; }
#sp-gallery-years .gy-card-body h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; margin: 0; font-size: 15px; line-height: 1.3; font-weight: 650; color: var(--gy-ink); }
#sp-gallery-years .gy-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; color: var(--gy-muted); font-size: 13px; line-height: 1.3; }
#sp-gallery-years .gy-meta > :first-child { min-width: 0; }
#sp-gallery-years .gy-photo-count { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
#sp-gallery-years .gy-photo-count svg { width: 17px; height: 17px; }
#sp-gallery-years .gy-year-list { margin-top: 29px; }
#sp-gallery-years .gy-year-list > h2 { margin: 0 0 13px; font-size: 26px; line-height: 1.2; color: var(--gy-ink); }
#sp-gallery-years .gy-year { border: 1px solid var(--gy-line); border-radius: 9px; background: #fff; margin: 0 0 10px; }
#sp-gallery-years .gy-year > summary { display: flex; align-items: center; min-height: 55px; gap: 12px; padding: 12px 17px; cursor: pointer; list-style: none; border-radius: 9px; }
#sp-gallery-years .gy-year > summary::-webkit-details-marker { display: none; }
#sp-gallery-years .gy-year > summary::marker { content: ''; }
#sp-gallery-years .gy-year > summary:hover { background: #f6f9f6; }
#sp-gallery-years .gy-year-number { font-size: 21px; font-weight: 700; line-height: 1.2; }
#sp-gallery-years .gy-year > summary .gy-count { margin-left: auto; color: var(--gy-muted); font-weight: 500; }
#sp-gallery-years .gy-toggle-label { margin-left: 10px; color: var(--gy-green); font-size: 13px; font-weight: 650; white-space: nowrap; }
#sp-gallery-years .gy-chevron { width: 19px; height: 19px; flex: 0 0 auto; color: var(--gy-green); }
#sp-gallery-years .gy-when-open { display: none; }
#sp-gallery-years .gy-year[open] > summary { border-radius: 9px 9px 0 0; border-bottom: 1px solid var(--gy-line); background: #f6f9f6; }
#sp-gallery-years .gy-year[open] > summary .gy-chevron { transform: rotate(90deg); }
#sp-gallery-years .gy-year[open] .gy-when-open { display: inline; }
#sp-gallery-years .gy-year[open] .gy-when-closed { display: none; }
#sp-gallery-years .gy-year-content { padding: 16px; }
#sp-gallery-years .gy-year:not([open]) > .gy-year-content { display: none; }
#sp-gallery-years .gy-caption { color: var(--gy-muted); margin: -5px 0 18px; }
#sp-gallery-years .gy-archive-link { display: flex; align-items: center; gap: 16px; min-height: 67px; margin-top: 24px; padding: 13px 17px; border: 1px solid var(--gy-line); border-radius: 9px; color: var(--gy-ink); background: #fff; }
#sp-gallery-years .gy-archive-link:hover { border-color: #9fb9a9; background: #f7faf7; }
#sp-gallery-years .gy-archive-icon { width: 28px; height: 28px; color: var(--gy-green); flex: 0 0 auto; }
#sp-gallery-years .gy-archive-copy { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; flex: 1; min-width: 0; }
#sp-gallery-years .gy-archive-copy > span { color: var(--gy-muted); }
#sp-gallery-years .gy-archive-copy > span::before { content: '— '; }
#sp-gallery-years .gy-archive-link .gy-count { color: var(--gy-muted); }
#sp-gallery-years .gy-empty, #sp-gallery-years .gy-load-state { padding: 20px; background: #f5f8f5; border: 1px solid var(--gy-line); border-radius: 8px; color: var(--gy-muted); margin: 0; }
#sp-gallery-years .gy-load-state p { margin: 0 0 8px; }
#sp-gallery-years .gy-fallback, #sp-gallery-years .gy-return { display: inline-flex; align-items: center; min-height: 44px; color: var(--gy-green); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
#sp-gallery-years .gy-return { margin-top: 16px; }
#sp-gallery-years .gy-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; }
#sp-gallery-years .gy-pagination a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 12px; justify-self: start; border: 1px solid var(--gy-line); border-radius: 8px; color: var(--gy-green); font-size: 13px; font-weight: 600; }
#sp-gallery-years .gy-pagination a:last-child { justify-self: end; }
#sp-gallery-years .gy-page-info { color: var(--gy-muted); font-size: 13px; }
#sp-gallery-years [data-gy-fragment]:focus { outline: none; }
#sp-gallery-years .gy-request-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 8px; background: #f1f5f2; color: var(--gy-muted); font-size: 13px; }
#sp-gallery-years .gy-request-status a { color: var(--gy-green); text-decoration: underline; }
#sp-gallery-years .gy-request-status button { min-height: 44px; padding: 8px 12px; border: 1px solid #bccfc3; border-radius: 7px; color: var(--gy-green); background: #fff; font: inherit; cursor: pointer; }
#sp-gallery-years [aria-busy="true"] .gy-pagination { opacity: .6; pointer-events: none; }
@media (max-width: 1099px) {
    #sp-gallery-years .gy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
    #sp-gallery-years { width: calc(100% - 24px); padding: 14px 0 22px; }
    #sp-gallery-years .gy-intro { margin-bottom: 15px; align-items: flex-start; }
    #sp-gallery-years .gy-intro h1 { font-size: 29px; }
    #sp-gallery-years .gy-intro p { font-size: 14px; margin-top: 5px; }
    #sp-gallery-years .gy-total { padding-top: 8px; font-size: 12px; }
    #sp-gallery-years .gy-filters { flex-wrap: nowrap; overflow-x: auto; padding: 3px 3px 7px; margin: -3px -3px 16px; gap: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
    #sp-gallery-years .gy-filter { flex: 0 0 auto; min-height: 44px; padding: 7px 13px; font-size: 13px; }
    #sp-gallery-years .gy-section-heading { margin-bottom: 12px; padding-bottom: 9px; }
    #sp-gallery-years .gy-section-heading h2 { font-size: 26px; }
    #sp-gallery-years .gy-badge { font-size: 11px; padding: 5px 9px; }
    #sp-gallery-years .gy-year-label { gap: 10px; }
    #sp-gallery-years .gy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #sp-gallery-years .gy-card-body { padding: 9px 9px 10px; }
    #sp-gallery-years .gy-card-body h3 { font-size: 13.5px; line-height: 1.3; }
    #sp-gallery-years .gy-meta { font-size: 12px; gap: 4px; margin-top: 7px; }
    #sp-gallery-years .gy-photo-count { gap: 3px; }
    #sp-gallery-years .gy-photo-count svg { width: 15px; height: 15px; }
    #sp-gallery-years .gy-year-list { margin-top: 22px; }
    #sp-gallery-years .gy-year-list > h2 { font-size: 23px; }
    #sp-gallery-years .gy-year > summary { padding: 11px 12px; gap: 8px; min-height: 53px; }
    #sp-gallery-years .gy-year-number { font-size: 19px; }
    #sp-gallery-years .gy-toggle-label { font-size: 12px; margin-left: 3px; }
    #sp-gallery-years .gy-year-content { padding: 10px; }
    #sp-gallery-years .gy-year-content .gy-grid { gap: 8px; }
    #sp-gallery-years .gy-year-content .gy-meta { flex-wrap: wrap; }
    #sp-gallery-years .gy-year-list--undated .gy-toggle-label { display: none; }
    #sp-gallery-years .gy-archive-link { padding: 12px; gap: 10px; margin-top: 19px; }
    #sp-gallery-years .gy-archive-copy { flex-direction: column; font-size: 13px; }
    #sp-gallery-years .gy-archive-copy > span { font-size: 12px; }
    #sp-gallery-years .gy-archive-copy > span::before { content: ''; }
    #sp-gallery-years .gy-pagination { gap: 6px; }
    #sp-gallery-years .gy-pagination a { padding: 7px 9px; font-size: 12px; }
    #sp-gallery-years .gy-empty, #sp-gallery-years .gy-load-state { padding: 14px; font-size: 14px; }
}
@media (max-width: 359px) {
    #sp-gallery-years .gy-grid { grid-template-columns: minmax(0, 1fr); }
    #sp-gallery-years .gy-toggle-label { display: none; }
    #sp-gallery-years .gy-archive-link .gy-count { display: none; }
}

/* 0.9.171 — visible archive above results; categories span all event years. */
#sp-gallery-years .gy-archive-link--featured {
    margin: -8px 0 24px; padding: 0 16px 0 0; min-height: 80px;
    overflow: hidden; background: #f5f8f5; border-color: #cbdacf;
}
#sp-gallery-years .gy-archive-thumb {
    display: block; position: relative; flex: 0 0 124px; align-self: stretch;
    min-height: 80px; background: #e7eee9; overflow: hidden;
}
#sp-gallery-years .gy-archive-thumb > img {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    object-fit: cover; object-position: center; border-radius: 0;
}
#sp-gallery-years .gy-archive-link--featured .gy-archive-copy { flex-direction: column; padding: 10px 0; }
#sp-gallery-years .gy-archive-link--featured .gy-archive-copy > span { font-size: 13px; }
#sp-gallery-years .gy-archive-link--featured .gy-archive-copy > span::before { content: ''; }
#sp-gallery-years .gy-archive-link--featured .gy-chevron { margin-right: 0; }
#sp-gallery-years .gy-badge--subtle { background: #eaf1ec; color: var(--gy-green); }
#sp-gallery-years .gy-category-results .gy-section-heading h2 { font-size: 27px; }
#sp-gallery-years .gy-category-results .gy-year-label { min-width: 0; gap: 9px; }
@media (max-width: 759px) {
    #sp-gallery-years .gy-archive-link--featured { margin: -2px 0 18px; padding: 0 10px 0 0; gap: 9px; min-height: 68px; }
    #sp-gallery-years .gy-archive-thumb { flex-basis: 78px; min-height: 68px; }
    #sp-gallery-years .gy-archive-link--featured .gy-archive-copy { font-size: 13px; }
    #sp-gallery-years .gy-archive-link--featured .gy-archive-copy > span { font-size: 12px; }
    #sp-gallery-years .gy-archive-link--featured .gy-count { font-size: 11px; }
    #sp-gallery-years .gy-category-results .gy-section-heading h2 { font-size: 23px; overflow-wrap: anywhere; }
    #sp-gallery-years .gy-category-results .gy-section-heading { align-items: flex-start; }
    #sp-gallery-years .gy-category-results .gy-section-heading > .gy-count { padding-top: 4px; }
}
