@font-face {
    font-family: 'Special Elite';
    src: url('../fonts/subset-SpecialElite-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020, U+002E, U+0062, U+0065, U+0069, U+006E, U+0070, U+0073-0074, U+0079;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --text-main: #181818;
    --text-muted: #666666;
    --accent-red: #b71c1c;
    --ink-black: #1e1e1e;
    --ink-red: #d92d20;
    --border-light: #e6e2da;
    --font-mono: 'Courier New', Courier, Monaco, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, Cambria, "Times New Roman", Times, "PT Serif", serif;
    --font-headline: -apple-system, BlinkMacSystemFont, "Segoe UI Semibold", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-w: 1260px;
    --btn-bg: #ffffff;
    --edge-pad: clamp(12px, 2.2dvh, 22px);
}
html, body {
    height: 100%;
    color: var(--text-main);
    line-height: 1.4;
    background-color: #ffffff;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
}
html {
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    scrollbar-color: #cbd5e1 transparent;
}
body.home-layout,
.home-header,
.home-footer,
.nav-modal-backdrop,
.photo-lightbox-modal,
.article-group-gallery,
.js-gallery,
img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
img,
body.home-layout a,
.home-header a,
.home-footer a,
.nav-modal-backdrop a { -webkit-user-drag: none; }

body.home-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}
body.scroll-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    -webkit-user-select: text;
    user-select: text;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; padding: 0 clamp(12px, 2.5vw, 20px); max-width: var(--container-w); margin: 0 auto; }

header.home-header {
    background: transparent;
    width: 100%;
    height: clamp(56px, 6.8dvh, 66px);
    padding: clamp(16px, 2.2dvh, 22px) 0 clamp(4px, 0.8dvh, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.home-header .header-content,
.brand-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0 auto;
}
.logo-link,
.logo-link:hover {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--ink-black);
    text-decoration: none;
}
.logo {
    font-family: 'Special Elite', var(--font-mono);
    font-size: 1.95rem;
    font-weight: 400;
    color: var(--ink-black);
    line-height: 1;
    letter-spacing: -2px;
}
.logo span { color: var(--ink-red); }

main.home-main {
    max-width: 100%;
    padding: 0 clamp(12px, 2.5vw, 20px);
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.compact-grid {
    flex: 1 1 0%;
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    row-gap: 0;
    width: 100%;
    max-width: 760px;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0 auto;
}
.compact-card {
    background: transparent;
    width: 100%;
    overflow: hidden;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    padding: 0 6px;
}
.compact-card + .compact-card { border-top: 1px solid #e5e7eb; }
.compact-card-slot-empty { visibility: hidden; pointer-events: none; width: 100%; height: 100%; }
.compact-grid-empty {
    grid-row: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 1.08rem;
    text-align: center;
    padding: 20px;
}
.card-body-wrap {
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    max-height: 100%;
    overflow: hidden;
    width: 100%;
}
.card-overlay-title {
    text-align: left;
    cursor: default;
    font-family: var(--font-headline);
    font-size: clamp(1.18rem, min(3.25dvh, 3.25vw), 1.78rem);
    font-weight: 500;
    line-height: 1.26;
    padding-bottom: 0.08em;
    min-height: 0;
    max-height: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #0f172a;
}
.card-date-bar {
    line-height: 1;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: clamp(2px, 0.35dvh, 4px) 0 0;
}
.card-date-link { display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.card-date {
    display: inline-block;
    font-variant-numeric: lining-nums tabular-nums;
    line-height: 1.2;
    font-size: clamp(0.78rem, min(1.85dvh, 2.0vw), 0.96rem);
    color: #64748b;
    font-weight: 500;
}
.card-title-link { display: inline; color: inherit; text-decoration: none; cursor: pointer; }

main.scroll-main {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    padding: 8px 20px clamp(80px, 14dvh, 105px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.single-article { width: 100%; max-width: 750px; margin: 0 auto; }
.single-title { font-family: var(--font-headline); font-size: 1.8rem; font-weight: 500; color: #0f172a; margin: 0 0 0.5rem; line-height: 1.25; }
.article-pub-time {
    font-variant-numeric: lining-nums tabular-nums;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 1.75rem;
}
.single-content { font-size: 1.05rem; color: #0f172a; line-height: 1.8; }
.single-content p { margin-bottom: 1.2rem; }
.single-content p:last-child { margin-bottom: 0; }
.article-inline-link { color: var(--accent-red); text-decoration: underline; }
.article-text-center { text-align: center; margin: 16px 0; line-height: 1.7; }
.article-subheading-2 { font-size: 1.55rem; font-weight: 700; margin: 28px 0 12px; color: var(--text-main); line-height: 1.3; }
.article-subheading-3 { font-size: 1.25rem; font-weight: 700; margin: 22px 0 10px; color: var(--text-main); }
.article-quote {
    border-left: 3px solid var(--accent-red);
    padding: 10px 18px;
    margin: 20px 0;
    font-style: italic;
    background: var(--btn-bg);
    color: var(--text-main);
    font-size: 1.02rem;
}
.article-divider { border: 0; border-top: 1px solid var(--border-light); margin: 30px 0; }
.article-author-footer { font-size: 0.92rem; color: #64748b; font-weight: 500; margin-top: 1.5rem; line-height: 1.4; }
.article-photo-caption { font-size: 0.84rem; color: #64748b; line-height: 1.4; margin: 0.35rem 0 1.25rem; }
.article-group-gallery + .article-photo-caption { margin-top: -1.35rem; margin-bottom: 1.5rem; }
.article-group-gallery { width: 100%; margin: 1.75rem 0; }

.group-gallery-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 400px;
    max-height: 520px;
    border-radius: 8px;
    background: #141416;
    overflow: hidden;
    cursor: zoom-in;
}
.group-gallery-img { transition: opacity 0.15s ease; width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-arrow,
.gallery-arrow:visited {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    opacity: 0.90;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.gallery-arrow svg { width: 32px; height: 32px; display: block; stroke: #ffffff; pointer-events: none; }
.gallery-arrow:hover,
.gallery-arrow:active,
.gallery-arrow:focus { color: #ffffff; opacity: 1; transform: translateY(-50%) scale(1.08); }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 3px 9px;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 5;
}
.gallery-thumbs-wrap { margin-top: 10px; width: 100%; overflow-x: auto; padding-bottom: 4px; scroll-behavior: smooth; }
.gallery-thumbs { display: flex; gap: 8px; align-items: center; }
.thumb-item {
    width: 84px;
    height: 58px;
    min-width: 84px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: all 0.15s ease;
    background: #18181c;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-item:hover { opacity: 0.95; }
.thumb-item.active { border-color: var(--accent-red); opacity: 1; }

.drewa-grid {
    max-width: 660px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: auto 0;
    text-align: center;
}
.drewa-card {
    margin: 0 auto;
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.drewa-card.is-out-of-stock { filter: grayscale(1); opacity: 0.72; background: #f7f6f2; }
.drewa-card-inner {
    --drewa-box-size: clamp(130px, min(44dvh, 84vw), 370px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.drewa-top-title {
    color: var(--text-main);
    font-size: clamp(1.02rem, min(2.6dvh, 4.8vw), 1.45rem);
    font-weight: 700;
    line-height: 1.22;
    margin: 0 auto clamp(6px, 1.2dvh, 12px);
    text-align: center;
    max-width: 100%;
    flex-shrink: 0;
}
.drewa-media-wrap {
    position: relative;
    width: var(--drewa-box-size);
    height: var(--drewa-box-size);
    min-width: var(--drewa-box-size);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto clamp(6px, 1.1dvh, 10px);
    background: #f2f1ed;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: zoom-in;
}
.drewa-prod-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.drewa-gps-box {
    background: #141416;
    color: #ffffff;
    border-radius: 6px;
    width: var(--drewa-box-size);
    min-width: var(--drewa-box-size);
    max-width: 100%;
    padding: clamp(5px, 0.8dvh, 8px) 10px;
    margin: 0 auto clamp(8px, 1.4dvh, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    cursor: default;
}
.drewa-gps-label { font-size: clamp(0.76rem, min(1.9dvh, 3.6vw), 0.98rem); font-weight: 700; color: #e53935; }
.drewa-gps-coords {
    font-family: var(--font-serif);
    font-size: clamp(0.76rem, min(1.9dvh, 3.6vw), 0.98rem);
    font-weight: 700;
    color: #f5f5f5;
    word-break: break-all;
}
.drewa-out-of-stock-box {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    background: #555555;
    border-radius: 4px;
}
.drewa-desc {
    font-family: var(--font-serif);
    font-size: clamp(0.84rem, min(2.25dvh, 4.2vw), 1.22rem);
    line-height: 1.38;
    max-height: calc(1.38em * 5);
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    color: var(--text-main);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}
.drewa-card-footer { margin-top: 4px; }
.drewa-contacts-plain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(8px, 1.6dvh, 16px);
    text-align: center;
    flex-shrink: 0;
}
.drewa-link-tg {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    transition: opacity 0.15s ease;
    color: #000000;
    font-size: clamp(0.88rem, min(2.1dvh, 3.8vw), 1.08rem);
    font-weight: 700;
}
a.drewa-link-tg:hover { color: #000000; opacity: 0.7; text-decoration: underline; }
.drewa-contact-sep { color: #666666; font-size: clamp(0.82rem, min(1.9dvh, 3.5vw), 1.0rem); }

.about-page-container,
.game-center-container {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: auto 0;
    text-align: center;
}
.about-page-box {
    width: 100%;
    max-width: 680px;
    max-height: 100%;
    padding: 0 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin: auto 0;
}
.about-page-text {
    font-size: clamp(1.02rem, min(2.5dvh, 4.4vw), 1.28rem);
    line-height: 1.55;
    color: #0f172a;
    text-align: center;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    word-break: break-word;
    overflow: hidden;
}
.about-contact-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: clamp(14px, 2.5dvh, 24px);
    flex-shrink: 0;
}
.about-contact-wrap-stack { flex-direction: column; gap: 12px; }
.about-contact-wrap-tight { margin-top: 0; }
.about-contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(6px, 1dvh, 9px) clamp(16px, 3vw, 24px);
    background: var(--btn-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-main);
    font-size: clamp(0.90rem, min(2.1dvh, 3.8vw), 1.08rem);
    font-weight: 700;
    transition: all 0.15s ease;
}
a.about-contact-pill:hover { border-color: var(--text-main); color: var(--accent-red); }

.game-card {
    width: 100%;
    max-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 4px;
    max-width: 720px;
}
.game-media-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    flex-shrink: 0;
    width: 100%;
    max-width: clamp(300px, min(58dvh, 96vw), 620px);
    aspect-ratio: 16 / 9;
    margin: 0 auto clamp(8px, 1.5dvh, 14px);
    background: #141416;
    border-radius: 8px;
    overflow: hidden;
}
.game-prod-img { width: 100%; height: 100%; object-fit: contain; display: block; transition: opacity 0.15s ease; }
.game-thumbs-row {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto clamp(8px, 1.4dvh, 14px);
    justify-content: center;
    flex-shrink: 0;
}
.game-thumb-box {
    min-width: 0;
    width: clamp(60px, 10dvh, 82px);
    height: clamp(40px, 6.5dvh, 54px);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1e;
    flex-shrink: 0;
}
.game-page-title {
    text-align: center;
    flex-shrink: 0;
    font-size: clamp(1.35rem, min(3.4dvh, 5.8vw), 1.85rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.24;
    margin: 0 auto clamp(8px, 1.4dvh, 14px);
}
.game-text {
    font-size: clamp(1.04rem, min(2.6dvh, 4.6vw), 1.30rem);
    line-height: 1.52;
    color: #0f172a;
    max-width: 620px;
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
}

.archive-years-container {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: auto 0;
    text-align: center;
}
.archive-years-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 360px;
    margin: auto 0;
}
.archive-year-btn,
.archive-mode-tab,
.archive-month-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    font-size: clamp(1.05rem, 2.0vw, 1.20rem);
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}
.archive-year-btn { gap: 8px; padding: 0 20px; font-variant-numeric: lining-nums; line-height: 1; color: #111827; }
.archive-year-btn:hover { border-color: #d1d5db; color: #111827; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04); }
.archive-year-number { display: inline-block; line-height: 1; font-variant-numeric: lining-nums; }
.archive-year-count,
.archive-month-count,
.archive-count {
    font-size: 0.9em;
    font-weight: 500;
    font-variant-numeric: lining-nums;
    line-height: 1;
    color: #8e95a0;
    flex-shrink: 0;
}
.archive-year-btn:hover .archive-year-count { color: #6b7280; }
.archive-empty-notice { color: var(--text-muted); font-size: 1.05rem; text-align: center; }

.archive-year-menu-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0 12px;
}
.archive-mode-tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.archive-mode-tab { gap: 8px; width: 100%; padding: 0 20px; color: #111827; white-space: nowrap; }
.archive-mode-tab:hover,
.archive-month-btn:hover { color: #111827; border-color: #9ca3af; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.archive-months-container { width: 100%; }
.archive-months-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.2dvh, 10px);
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}
.archive-month-btn { gap: 6px; text-align: center; width: 100%; padding: 0 clamp(10px, 2.5vw, 16px); color: #1f2937; }
.archive-month-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-weight: 700; }

footer.home-footer {
    position: fixed;
    bottom: 14px;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
}
body.home-layout footer.home-footer { position: relative; bottom: auto; padding: 8px 0 14px; }
.home-footer .footer-bar { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 auto; pointer-events: none; }

.pagination-unified-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    padding: 2px 5px;
    width: 138px;
    height: 44px;
    flex-shrink: 0;
    pointer-events: auto;
}
.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    color: #4b5563;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.pill-btn:hover:not(.disabled) { color: #000000; }
.pill-btn.disabled { color: #9ca3af; opacity: 0.35; cursor: default; pointer-events: none; }
.pagination-unified-pill .prev-btn svg,
.pagination-unified-pill .next-btn svg { width: 8px; height: 12px; display: block; fill: currentColor; }
.pill-menu-btn svg { width: 19px; height: 19px; display: block; }
.pagination-unified-pill .pill-close-btn svg,
.pill-standalone-btn svg { stroke: currentColor; width: 17px; height: 17px; display: block; }

.pill-standalone-btn,
.pill-year-standalone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #d1d5db;
    height: 44px;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    pointer-events: auto;
}
.pill-standalone-btn { color: #4b5563; border-radius: 50%; width: 44px; }
.pill-standalone-btn:hover { color: #000000; border-color: #d1d5db; }
.pill-year-standalone-btn { color: #1f2937; border-radius: 9999px; padding: 0 22px; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.pill-year-standalone-btn:hover { color: #000000; border-color: #9ca3af; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }

.nav-modal-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.nav-modal-backdrop.active { display: flex; }
.nav-modal-window { width: 100%; max-width: 300px; }
.nav-modal-items { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.nav-modal-row-split { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 10px; width: 100%; }
.nav-modal-row-rss-first { grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr); }
.nav-modal-link,
.nav-modal-link:hover,
.nav-modal-link.active {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
}
.nav-modal-icon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.nav-modal-text { font-weight: 700; color: #0f172a; flex: 0 1 auto; text-align: center; }

.photo-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100010;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    padding: 10px;
}
.photo-lightbox-modal.active { display: flex; }
.lightbox-content-box { max-width: 100%; max-height: 100%; margin: auto; position: relative; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-img {
    max-width: 95vw;
    max-height: 92vh;
    max-height: 92dvh;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.95);
    cursor: default;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}
.lightbox-img.is-zoomed-img { cursor: grab; }
.lightbox-img.is-gesturing { transition: none; cursor: grabbing; }
.lightbox-top-controls {
    position: fixed;
    top: var(--edge-pad);
    right: clamp(12px, 2.5vw, 24px);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100065;
}
.lightbox-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    opacity: 0.88;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.65));
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.lightbox-icon-btn svg { width: 26px; height: 26px; display: block; stroke: #ffffff; pointer-events: none; }
.lightbox-close-btn svg { width: 28px; height: 28px; }
.lightbox-icon-btn:hover,
.lightbox-icon-btn:active { opacity: 1; transform: scale(1.08); }
.lightbox-zoom-btn.is-zoomed #lightboxZoomPlusV { display: none; }
#photoLightboxModal .gallery-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    z-index: 100060;
    display: none;
}
#photoLightboxModal .gallery-arrow svg { width: 38px; height: 38px; }
#photoLightboxModal .gallery-arrow:hover,
#photoLightboxModal .gallery-arrow:active { transform: translateY(-50%) scale(1.08); }
#photoLightboxModal .gallery-prev { left: clamp(8px, 2vw, 24px); right: auto; }
#photoLightboxModal .gallery-next { right: clamp(8px, 2vw, 24px); left: auto; }
#photoLightboxModal .gallery-counter {
    position: fixed;
    bottom: clamp(16px, 3dvh, 28px);
    right: clamp(16px, 3vw, 28px);
    z-index: 100060;
    display: none;
}
@media (max-width: 768px) {
    .container { padding: 0 14px; }
    .compact-grid { max-width: 100%; }
    .logo { font-size: 1.55rem; }
    .card-overlay-title { font-size: clamp(1.06rem, min(2.85dvh, 5.10vw), 1.35rem); line-height: 1.22; -webkit-line-clamp: 3; }
    .card-date { font-size: clamp(0.76rem, min(1.75dvh, 3.4vw), 0.88rem); }
}
@media (max-width: 600px) {
    main.scroll-main { padding: 5px 20px clamp(80px, 14dvh, 105px); }
    .single-title { font-size: 1.45rem; }
    .group-gallery-stage { height: 250px; }
}
@media (max-height: 500px) {
    body.home-layout { height: auto; min-height: 100vh; max-height: none; overflow-y: auto; }
    main.home-main { height: auto; min-height: 0; overflow: visible; padding: 8px clamp(12px, 2.5vw, 20px) 14px; }
    .compact-grid { height: auto; max-height: none; grid-template-rows: repeat(5, auto); row-gap: 0; }
    .compact-card { height: auto; padding: 9px 6px; }
}
