/*Theme Name: Videlina v0 Theme Theme URI: https://videlina.bgAuthor: SSM Building Author URI: https://ssmbuilding.bg Description: Нова визия за Народно читалище "Виделина" - v0 Version: 0.0.2 Requires at least: 6.0 Tested up to: 6.5 Requires PHP: 8.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: videlina-v0-theme Tags: one-column, custom-menu, custom-logo, editor-style, featured-images, theme-options, translation-readyНова тема за читалище "Виделина" с модерна визия.*/
/* ===== CSS VARIABLES ===== */
:root  {
    --color-bg: #fbf7ef;
    --color-fg: #3d2f20;
    --color-card: #ffffff;
    --color-card-fg: #3d2f20;
    --color-primary: #E37222;
    --color-primary-fg: #fbf7ef;
    --color-secondary: #f2ece0;
    --color-secondary-fg: #4a3828;
    --color-muted: #f2ece0;
    --color-muted-fg: #7a6b5c;
    --color-accent: #e8d8c0;
    --color-accent-fg: #4a3020;
    --color-border: #ddd5c8;
    --color-ring: #a01f28;
    --color-folk-red: #b3252e;
    --color-folk-blue: #3370a8;
    --color-folk-green: #3a9a6a;
    --color-brand: #E37222;
    --color-brand-light: #f8dfc4;
    --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --radius: 0.75rem;
    --radius-sm: calc(var(--radius) * 0.6);
    --radius-md: calc(var(--radius) * 0.8);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) * 1.4);
    --radius-2xl: calc(var(--radius) * 1.8);
    /* Големи екрани (49" TV / Ultrawide): съдържанието остава центрирано, без разтягане до ъглите */
    --max-w: 1440px;
    /* Височина на header-а — ползва се от мобилното меню (position: fixed под header-а) */
    --header-height: 80px;
}
/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-fg);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
}

/* ===== UTILITIES ===== */
.container  {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 768px)  {
    .container  {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
.sr-only  {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
/* ===== SHEVITSA BAND ===== */
.shevitsa-band  {
    height: 1rem;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'%3E%3Cg fill='%23ffffff' stroke='%23bbbbbb' stroke-width='1'%3E%3Cpath d='M8 0h4v4H8zM4 4h4v4H4zM12 4h4v4h-4zM0 8h4v4H0zM8 8h4v4H8zM16 8h4v4h-4zM4 12h4v4H4zM12 12h4v4h-4z'/%3E%3C/g%3E%3Cg fill='%2300966e'%3E%3Cpath d='M32 0h4v4h-4zM28 4h4v4h-4zM36 4h4v4h-4zM24 8h4v4h-4zM32 8h4v4h-4zM40 8h4v4h-4zM28 12h4v4h-4zM36 12h4v4h-4z'/%3E%3C/g%3E%3Cg fill='%23d62612'%3E%3Cpath d='M56 0h4v4h-4zM52 4h4v4h-4zM60 4h4v4h-4zM48 8h4v4h-4zM56 8h4v4h-4zM64 8h4v4h-4zM52 12h4v4h-4zM60 12h4v4h-4z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: auto 100%;
}

/* Full viewport width shevitsa band (breaks out of container) */
.shevitsa-band--full,
.shevitza-divider--full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Shevitsa divider above page titles (e.g. Contacts) */
.shevitza-divider  {
    display: block;
    width: 100%;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'%3E%3Cg fill='%23ffffff' stroke='%23bbbbbb' stroke-width='1'%3E%3Cpath d='M8 0h4v4H8zM4 4h4v4H4zM12 4h4v4h-4zM0 8h4v4H0zM8 8h4v4H8zM16 8h4v4h-4zM4 12h4v4H4zM12 12h4v4h-4z'/%3E%3C/g%3E%3Cg fill='%2300966e'%3E%3Cpath d='M32 0h4v4h-4zM28 4h4v4h-4zM36 4h4v4h-4zM24 8h4v4h-4zM32 8h4v4h-4zM40 8h4v4h-4zM28 12h4v4h-4zM36 12h4v4h-4z'/%3E%3C/g%3E%3Cg fill='%23d62612'%3E%3Cpath d='M56 0h4v4h-4zM52 4h4v4h-4zM60 4h4v4h-4zM48 8h4v4h-4zM56 8h4v4h-4zM64 8h4v4h-4zM52 12h4v4h-4zM60 12h4v4h-4z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: auto 100%;
}
/* ===== HEADER ===== */
.site-header  {
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(221, 213, 200, 0.7);
    background-color: rgba(251, 247, 239, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled  {
    background: #fbf7ef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}
.site-header__inner  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0.75rem 1rem;
}
@media (min-width: 768px)  {
    .site-header__inner  {
        padding: 0.75rem 1.5rem;
    }
}
/* Logo */
.site-logo  {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo__badge  {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}
.site-logo__badge span  {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}
.site-logo__text  {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.site-logo__name  {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-fg);
}
@media (min-width: 768px)  {
    .site-logo__name  {
        font-size: 1.125rem;
    }
}
.site-logo__est  {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted-fg);
}
.site-logo__image  {
    height: 55px;
    width: auto;
    display: block;
    mix-blend-mode: multiply;
}
.site-logo__footer-icon  {
    height: auto;
    max-height: 120px;
    width: auto;
    max-width: 120px;
    display: inline-block;
    flex-shrink: 0;
    object-fit: contain;
    margin-bottom: 0.75rem;
}
/* Navigation */
.site-nav  {
    display: none;
    align-items: center;
}
@media (min-width: 992px)  {
    .site-nav  {
        display: flex;
    }
}
/* Top-level list */
.site-nav__list,.mobile-nav__list  {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Top-level list items – position:relative for dropdown */
.site-nav__list > li  {
    position: relative;
}
/* Desktop nav links */
.site-nav__link  {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(61, 47, 32, 0.8);
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.site-nav__link:hover,.site-nav__link.is-active,.current-menu-item > .site-nav__link  {
    background-color: var(--color-accent);
    color: var(--color-accent-fg);
}
/* Dropdown arrow icon */
.nav-dropdown-arrow  {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
/* Dropdown – hidden by default */
.site-nav__list > li > .sub-menu  {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.5rem 0;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    list-style: none;
    z-index: 1000;
    display: none !important;
}
/* Hover bridge: invisible pseudo-element fills the gap between button & submenu */
.site-nav__list > li.site-nav__item--has-dropdown::before  {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    /* bridges the gap to submenu */ z-index: 999;
}
/* Show dropdown on hover — pure CSS */
.site-nav__list > li:hover > .sub-menu  {
    display: block !important;
}
/* Rotate arrow when dropdown is open */
.site-nav__list > li:hover > a .nav-dropdown-arrow  {
    transform: rotate(180deg);
}
/* Sub-menu items */
.sub-menu .site-nav__link  {
    display: block;
    padding: 0.5rem 1.25rem;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
}
.sub-menu .site-nav__link:hover,.sub-menu .is-active > .site-nav__link  {
    background-color: var(--color-accent);
    color: var(--color-accent-fg);
}
/* Nested sub-menu (level 2+) */
.sub-menu .sub-menu  {
    top: 0;
    left: 100%;
    margin: 0 0 0 0.25rem;
}
/* ============================================= MOBILE NAV – uses class .open for accordion ============================================= */
.mobile-nav__list  {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
}
.mobile-nav__list > li  {
    width: 100%;
}
/* Links inside mobile nav */
.mobile-nav__list > li > a  {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-fg);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    cursor: pointer;
}
.mobile-nav__list > li > a:hover  {
    background-color: rgba(61, 47, 32, 0.05);
}
/* Arrow icon next to parent items */
.nav-dropdown-arrow  {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
/* ---- SUB-MENUS: HIDDEN BY DEFAULT ---- */
/* #mobile-nav gives max specificity to beat desktop rules */
#mobile-nav .sub-menu,#mobile-nav ul.sub-menu  {
    display: none !important;
    padding-left: 1.25rem !important;
    margin: 0 !important;
    list-style: none;
}
/* ---- SUB-MENUS: VISIBLE WHEN PARENT HAS .open ---- */
#mobile-nav li.open > .sub-menu,#mobile-nav li.open > ul.sub-menu  {
    display: block !important;
    padding-left: 1.25rem !important;
}
/* Rotate arrow when open */
#mobile-nav li.open > a .nav-dropdown-arrow,#mobile-nav li.open > a > .nav-dropdown-arrow  {
    transform: rotate(180deg) !important;
}
/* Sub-menu item styling */
#mobile-nav .sub-menu li a  {
    display: block !important;
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(61, 47, 32, 0.7);
    background: none !important;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}
#mobile-nav .sub-menu li a:hover  {
    background-color: rgba(61, 47, 32, 0.06);
    color: var(--color-fg);
}
/* CTA button (desktop) */
.site-header__cta  {
    display: none;
}
@media (min-width: 992px)  {
    .site-header__cta  {
        display: block;
    }
}
/* Mobile toggle */
.site-header__toggle  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    border: none;
    background: none;
    color: var(--color-fg);
    cursor: pointer;
    border-radius: 0.375rem;
}
@media (min-width: 992px)  {
    .site-header__toggle  {
        display: none;
    }
}
.site-header__toggle svg  {
    width: 1.1rem;
    height: 1.1rem;
}
/* Search toggle (magnifier) — matches hamburger size & weight exactly */
.site-search-toggle  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    border: none;
    background: none;
    color: var(--color-fg);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: color 0.2s;
}
.site-search-toggle:hover  {
    color: var(--color-primary);
}
.site-search-toggle:focus-visible  {
    outline: 3px solid rgba(227, 114, 34, 0.45);
    outline-offset: 2px;
}
.site-search-toggle svg  {
    width: 1.1rem;
    height: 1.1rem;
}
/* Search dropdown panel — floating pill card below the header (Flexbox layout) */
#site-search-panel  {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    z-index: 99999;
    width: 300px;
    max-width: calc(100vw - 2rem);
    height: 30px;
    background: #ffffff;
    border-radius: 50px;
    padding: 2px 4px 2px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
#site-search-panel.is-active  {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-search-panel__inner  {
    width: 100%;
}
.site-search-form  {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}
.site-search-form__row  {
    display: flex;
    align-items: center;
    width: 100%;
}
#site-search-input  {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 0.9rem;
    color: #333333;
    padding: 3px 0;
    margin: 0;
}
#site-search-input::placeholder  {
    color: #9ca3af;
}
#site-search-panel button[type="submit"]  {
    position: static !important;
    transform: none !important;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: #E37222;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
    padding: 0;
    transition: background-color 0.2s;
}
#site-search-panel button[type="submit"]:hover  {
    background-color: #c5601e;
}
#site-search-panel button[type="submit"] svg  {
    width: 1rem;
    height: 1rem;
}
@media (max-width: 768px)  {
    #site-search-panel  {
        top: calc(100% + 4px);
        left: 50%;
        right: auto;
        width: min(260px, calc(100vw - 4rem));
        height: 30px;
        border-radius: 50px;
        z-index: 999999;
        transform: translateX(-50%) translateY(-6px);
    }
    #site-search-panel.is-active  {
        transform: translateX(-50%) translateY(0);
    }
    #site-search-input  {
        font-size: 0.8rem;
        padding: 0 4px;
    }
    #site-search-panel button[type="submit"]  {
        width: 24px;
        height: 24px;
        min-width: 24px;
        margin-left: 6px;
    }
    #site-search-panel button[type="submit"] svg  {
        width: 0.85rem;
        height: 0.85rem;
    }
    /* Tight icon group: magnifier pulled close to the hamburger */
    .site-search-toggle  {
        margin-right: -0.75rem;
    }
}

/* ================================================
   LIVE SEARCH DROPDOWN — grouped result cards
   ================================================ */
#site-search-results  {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 99999;
    display: none;
}
.ls-panel  {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}
.ls-group__title  {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-primary);
    padding: 10px 14px 4px;
}
.ls-card  {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--color-fg);
    transition: background-color 0.15s;
}
.ls-card:hover  {
    background-color: rgba(227, 114, 34, 0.06);
}
.ls-card__thumb  {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
}
.ls-card__thumb img  {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ls-card__thumb--school  { background: #E37222; }
.ls-card__thumb--event  { background: #3370a8; }
.ls-card__thumb--post  { background: #0d9488; }
.ls-card__thumb--award  { background: #b45309; }
.ls-card__thumb--photo_gallery,
.ls-card__thumb--video_gallery  { background: #7c3aed; }
.ls-card__thumb--attraction  { background: #c05621; }
.ls-card__thumb--projects  { background: #6b7280; }
.ls-card__thumb--page,
.ls-card__thumb--about_info,
.ls-card__thumb--library_info  { background: #64748b; }
.ls-card__body  {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ls-card__title  {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-card__meta  {
    font-size: 0.72rem;
    color: var(--color-muted-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ls-card__chip  {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(227, 114, 34, 0.1);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: auto;
    align-self: center;
}
.ls-footer  {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-top: 1px solid #f0ece4;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    background: rgba(251, 247, 239, 0.6);
    transition: background-color 0.15s;
}
.ls-footer:hover  {
    background: rgba(227, 114, 34, 0.08);
}
.ls-empty  {
    padding: 16px 14px;
    color: var(--color-muted-fg);
    font-size: 0.875rem;
    text-align: center;
}
@media (max-width: 768px)  {
    #site-search-results  {
        left: 0;
        right: 0;
        top: calc(100% + 4px);
    }
}

/* ================================================
   LANGUAGE SWITCHER (BG | EN)
   Desktop  → absolutely below the CTA (right side)
   Mobile   → absolutely below the hamburger (right side)
   ================================================ */
.site-header__inner  {
    position: relative;
}
.site-lang-switcher  {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 51;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0.4rem 0 0;
}
.site-lang-switcher ul  {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-lang-switcher li  {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.site-lang-switcher__link,
.site-lang-switcher__sep  {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}
.site-lang-switcher__link  {
    color: var(--color-muted-fg);
}
.site-lang-switcher__link:hover  {
    color: var(--color-primary);
    background-color: rgba(227, 114, 34, 0.06);
}
.site-lang-switcher__link--active,
.site-lang-switcher__link--active a  {
    color: var(--color-primary);
    font-weight: 600;
}
.site-lang-switcher__sep  {
    color: var(--color-muted-fg);
    opacity: 0.35;
    padding: 0;
}
.site-lang-switcher a  {
    color: inherit;
    text-decoration: none;
}

/* Mobile: slightly smaller, more spacing from header edge */
@media (max-width: 991px)  {
    .site-lang-switcher  {
        right: 1rem;
        padding-top: 0.25rem;
        gap: 0.25rem;
    }
    .site-lang-switcher__link,
    .site-lang-switcher__sep  {
        font-size: 0.75rem;
        padding: 0.1rem 0.3rem;
    }
}

/* Mobile nav — full-screen overlay under the sticky header */
.mobile-nav  {
    position: fixed;
    top: var(--header-height, 70px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height, 70px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9998;
    border-top: 1px solid rgba(221, 213, 200, 0.7);
    background: #fbf7ef;
    padding: 0.75rem 1rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.mobile-nav.is-open  {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
@media (min-width: 992px)  {
    .mobile-nav  {
        display: none !important;
    }
}
.mobile-nav__inner  {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100%;
    text-align: center;
}
.mobile-nav__list  {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
}
.mobile-nav__list .site-nav__link  {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-fg);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s;
}
.mobile-nav__list .site-nav__link:hover,.mobile-nav__list .site-nav__link.is-active  {
    background-color: var(--color-accent);
    color: var(--color-accent-fg);
}
.mobile-nav__cta  {
    padding-top: 1.25rem;
}
/* Scroll lock: докато мобилното меню е отворено, body не скролира */
body.overflow-hidden  {
    overflow: hidden;
    height: 100%;
}
/* Touch-friendly: минимум 48px височина за тап-таргетите в мобилното меню */
@media (max-width: 991px)  {
    .mobile-nav a,
    .mobile-nav button  {
        min-height: 48px;
    }
    #mobile-nav .sub-menu li a  {
        display: flex !important;
        align-items: center;
        min-height: 48px;
    }
}
/* ===== BUTTONS ===== */
.btn  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary  {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}
.btn--primary:hover  {
    background-color: #c5601e;
}
.btn--outline  {
    background-color: rgba(251, 247, 239, 0.1);
    color: var(--color-primary-fg);
    border: 1px solid rgba(251, 247, 239, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.btn--outline:hover  {
    background-color: rgba(251, 247, 239, 0.2);
}
.btn--lg  {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}
.btn--block  {
    width: 100%;
}
.btn:focus-visible  {
    outline: 3px solid rgba(227, 114, 34, 0.45);
    outline-offset: 2px;
}
/* ===== HERO ===== */
.hero  {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 750px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: var(--color-fg);
}
.hero__bg  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero__bg img,
.hero__bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block;
}
/* Shevitsa band pinned at the bottom edge of the full-screen hero */
.shevitsa-band--hero  {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}
.hero__overlay  {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.70) 100%) !important;
}
.hero__content  {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
}
@media (min-width: 768px)  {
    .hero__content  {
        padding: 1.25rem 1.5rem 0.5rem;
    }
}
.hero__badge  {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary-fg);
    border: 1px solid rgba(251, 247, 239, 0.3);
    background-color: rgba(251, 247, 239, 0.1);
    border-radius: 9999px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    width: fit-content;
}
.hero__top-row  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}
.hero__badge--news  {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #01187C;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    white-space: nowrap;
}
.hero__badge--news:hover  {
    background-color: #021E8F;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(1, 24, 124, 0.5);
}
.hero__badge--news:active  {
    transform: translateY(0);
    background-color: #011265;
}
@media (max-width: 767px)  {
    .hero__top-row  {
        flex-direction: column;
        align-items: stretch;
    }
    .hero__top-row .btn--news  {
        width: 100%;
    }
}
.hero__title  {
    margin-top: 1rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    line-height: 1.25;
    color: var(--color-primary-fg);
    max-width: 720px;
}
.hero__title--xl  {
    font-size: 1.75rem;
}
@media (min-width: 768px)  {
    .hero__title--xl  {
        font-size: 2.1rem;
    }
}
@media (max-width: 639px)  {
    .hero__title--xl  {
        font-size: 1.4rem;
    }
}
.hero__desc  {
    margin-top: 0.5rem;
    max-width: 36rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: rgba(251, 247, 239, 0.9);
}
.hero__actions  {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    width: 100%;
}
.btn--news  {
    background-color: #01187C;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 1.25rem;
    font-size: 0.8125rem;
    box-shadow: 0 4px 18px rgba(1, 24, 124, 0.35);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn--news svg  {
    width: 0.9rem;
    height: 0.9rem;
}
.btn--news:hover  {
    background-color: #021E8F;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(1, 24, 124, 0.45);
}
.btn--news:active  {
    transform: translateY(0);
    background-color: #011265;
}
/* Тап-таргети в банера: минимум 48px височина, бутони на цяла ширина на мобилни */
@media (max-width: 767px)  {
    .hero__actions .btn  {
        width: 100%;
        min-height: 48px;
    }
}
@media (min-width: 768px)  {
    .hero__actions  {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
}
/* ===== ACTIVITIES / SCHOOLS ===== */
.activities  {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 1rem;
    scroll-margin-top: 5rem;
}
@media (min-width: 768px)  {
    .activities  {
        padding: 7rem 1.5rem;
    }
}
.section-header  {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}
.section-label  {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
}
.section-title  {
    margin-top: 0.75rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.875rem;
    color: var(--color-fg);
}
@media (min-width: 768px)  {
    .section-title  {
        font-size: 2.25rem;
    }
}
.section-desc  {
    margin-top: 1rem;
    line-height: 1.65;
    color: var(--color-muted-fg);
}
.activities__grid  {
    display: grid;
    gap: 1.5rem;
    margin-top: 3.5rem;
}
@media (min-width: 640px)  {
    .activities__grid  {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px)  {
    .activities__grid  {
        grid-template-columns: repeat(3, 1fr);
    }
}
.activity-card  {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.activity-card:hover  {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.activity-card__bar  {
    height: 6px;
    width: 100%;
}
.activity-card__bar--red  {
    background-color: var(--color-folk-red);
}
.activity-card__bar--blue  {
    background-color: var(--color-folk-blue);
}
.activity-card__bar--green  {
    background-color: var(--color-folk-green);
}
.activity-card__img  {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.activity-card__img img,
.activity-card__img-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.activity-card:hover .activity-card__img img,
.activity-card:hover .activity-card__img-img {
    transform: scale(1.05);
}
.activity-card__body  {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
}
.activity-card__chip  {
    display: inline-flex;
    width: fit-content;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 9999px;
}
.activity-card__chip--red  {
    background-color: rgba(179, 37, 46, 0.1);
    color: var(--color-folk-red);
}
.activity-card__chip--blue  {
    background-color: rgba(51, 112, 168, 0.1);
    color: var(--color-folk-blue);
}
.activity-card__chip--green  {
    background-color: rgba(58, 154, 106, 0.1);
    color: var(--color-folk-green);
}
.activity-card__title  {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-fg);
}
.activity-card__desc  {
    margin-top: 0.5rem;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted-fg);
}
.activity-card__link  {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s;
}
.activity-card__link:hover  {
    transform: translateX(2px) translateY(-2px);
}
.activity-card__link--red  {
    color: var(--color-folk-red);
}
.activity-card__link--blue  {
    color: var(--color-folk-blue);
}
.activity-card__link--green  {
    color: var(--color-folk-green);
}
/* ===== EVENTS ===== */
.events  {
    background-color: var(--color-secondary);
    scroll-margin-top: 5rem;
}
.events__inner  {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 5rem 1rem;
}
@media (min-width: 768px)  {
    .events__inner  {
        padding: 7rem 1.5rem;
    }
}
.events__header  {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}
@media (min-width: 768px)  {
    .events__header  {
        flex-direction: row;
        align-items: flex-end;
    }
}
.events__aside  {
    font-size: 1rem;
    color: var(--color-muted-fg);
    max-width: 24rem;
}
@media (min-width: 768px)  {
    .events__aside  {
        text-align: right;
    }
}
.events__list  {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}
.event-item  {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}
@media (min-width: 640px)  {
    .event-item  {
        flex-direction: row;
        align-items: center;
        padding: 1.5rem;
    }
}
@media (min-width: 768px)  {
    .event-item  {
        padding: 1.5rem;
    }
}
.event-item:hover  {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.event-date  {
    display: flex;
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}
.event-date__day  {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
}
.event-date__month  {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.event-info  {
    flex: 1;
}
.event-info__title  {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-fg);
}
.event-info__desc  {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted-fg);
}
.event-info__meta  {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--color-muted-fg);
}
.event-info__meta-item  {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.event-info__meta-item svg  {
    width: 1rem;
    height: 1rem;
    color: var(--color-primary);
    flex-shrink: 0;
}
.event-actions  {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Badge: Свободен вход (без предварителна резервация) */
.event-badge--free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background-color: #e7f6ec;
    color: #1e7d3c;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid rgba(30, 125, 60, 0.18);
}
/* ===== FOOTER ===== */
.site-footer  {
    background-color: var(--color-fg);
    color: var(--color-bg);
}
.site-footer__grid  {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
    padding: 4rem 1rem;
}
@media (min-width: 768px)  {
    .site-footer__grid  {
        grid-template-columns: repeat(3, 1fr);
        padding: 4rem 1.5rem;
    }
}
.site-footer__brand-desc  {
    margin-top: 1rem;
    max-width: 20rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(251, 247, 239, 0.7);
}
.site-footer__heading  {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-bg);
}
.site-footer__contacts  {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(251, 247, 239, 0.8);
}
.site-footer__contact-item  {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.site-footer__contact-item svg  {
    margin-top: 2px;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: var(--color-primary);
}
/* Телефони и имейли — всеки ред с отделна иконка, подредени един под друг */
.site-footer__contact-list  {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.site-footer__contact-link  {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    line-height: 1.4;
    word-break: break-word;
    transition: color 0.2s;
}
.site-footer__contact-link:hover  {
    color: var(--color-primary);
}
.site-footer__contact-link svg  {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    color: var(--color-primary);
}
.site-footer__hours  {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(251, 247, 239, 0.8);
}
.site-footer__hours-row  {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.site-footer__hours-label  {
    color: rgba(251, 247, 239, 0.6);
}
.site-footer__socials  {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.site-footer__social-link  {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-bg);
    background-color: rgba(251, 247, 239, 0.1);
    border-radius: 9999px;
    transition: background-color 0.2s, color 0.2s;
}
.site-footer__social-link:hover  {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}
.site-footer__bottom  {
    border-top: 1px solid rgba(251, 247, 239, 0.15);
}
.site-footer__bottom-inner  {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    font-size: 0.75rem;
    color: rgba(251, 247, 239, 0.6);
}
@media (min-width: 768px)  {
    .site-footer__bottom-inner  {
        flex-direction: row;
        padding: 1.5rem 1.5rem;
    }
}
/* ===== GENERIC PAGE TEMPLATES ===== */
.page-hero  {
    background-color: var(--color-secondary);
    text-align: center;
    padding: 4rem 1rem 0;
    position: relative;
}
.page-hero__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.page-hero__title  {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}
@media (min-width: 768px)  {
    .page-hero__title  {
        font-size: 3rem;
    }
}
.page-hero__subtitle {
    font-size: 1.125rem;
    color: #2b2b2b;
    max-width: 40rem;
    margin: 0.25rem auto 5px;
    line-height: 1.6;
}
.page-hero__date {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted-fg);
    margin-bottom: 0.5rem;
}

/* Shevitsa band flush at bottom of page-hero, full viewport width */
.page-hero .shevitsa-band--page,
.page-hero .shevitza-divider {
    margin-top: 0;
    padding-top: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* ===== Елегантно и балансирано сбиване на .page-hero (За нас / Библиотека) ===== */
.page-hero  {
    padding-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 0 !important;
}
.page-hero__title  {
    margin-bottom: 0.5rem !important;
}
.page-hero__subtitle  {
    margin-top: 0.5rem !important;
    margin-bottom: 8px !important;
}
.page-hero + *  {
    margin-top: 0 !important;
    padding-top: 1rem !important;
}
.shevitza-divider  {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}
.page-content  {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3rem 1rem 5rem;
}
@media (min-width: 768px)  {
    .page-content  {
        padding: 4rem 1.5rem 6rem;
    }
}
.page-content h2  {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.page-content h3  {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.page-content p  {
    margin-bottom: 1rem;
    line-height: 1.7;
}
.page-content ul,.page-content ol  {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.page-content ul  {
    list-style-type: disc;
}
.page-content ol  {
    list-style-type: decimal;
}
.page-content li  {
    margin-bottom: 0.25rem;
    line-height: 1.7;
}
.page-content img  {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}
.page-content a  {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.page-content a:hover  {
    text-decoration-thickness: 2px;
}
/* Separator */
.cct-separator  {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}
/* Accordion */
.accordion-block  {
    margin: 2rem 0;
}
.accordion-item  {
    margin-bottom: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.accordion-toggle  {
    cursor: pointer;
}
.accordion-toggle summary  {
    padding: 1rem 1.25rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    background-color: var(--color-card);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}
.accordion-toggle summary::-webkit-details-marker  {
    display: none;
}
.accordion-toggle summary::before  {
    content: "▸";
    transition: transform 0.2s;
}
.accordion-toggle[open] summary::before  {
    transform: rotate(90deg);
}
.accordion-toggle summary:hover  {
    background-color: var(--color-muted);
}
.accordion-content  {
    padding: 0 1.25rem 1.25rem;
    background-color: var(--color-card);
    line-height: 1.7;
}
.accordion-content p  {
    margin-bottom: 0.75rem;
}
/* ===== DETAILS/SUMMARY ACCORDION (Школи и дейности) ===== */
details.group  {
    margin: 0.75rem 0;
}
details.group > summary  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1rem 1.25rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    font-weight: 600;
    font-size: 1.125rem;
    color: #1f2937;
    list-style: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
details.group > summary::-webkit-details-marker  {
    display: none;
}
details.group > summary::marker  {
    display: none;
    content: '';
}
details.group > summary:hover  {
    border-color: rgba(227, 114, 34, 0.4);
    box-shadow: 0 2px 8px rgba(227, 114, 34, 0.08);
}
details.group > summary .inline-block  {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #E37222;
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
details.group > summary svg  {
    display: none !important;
}
/* SVG arrows hidden — clean look with only orange dot */
/* Accordion content panel */
details.group > div  {
    padding: 1.5rem;
    background-color: rgba(255, 247, 237, 0.3);
    border-radius: 0 0 0.75rem 0.75rem;
    border-top: 1px solid #f3f4f6;
    text-align: left;
    line-height: 1.7;
    color: #374151;
}
details.group > div p  {
    margin-bottom: 0.625rem;
}
details.group > div p:last-child  {
    margin-bottom: 0;
}
details.group > div strong  {
    color: #1f2937;
}
details.group > div ul  {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}
details.group > div ul li  {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}
/* School title */
.school-title  {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
/* ===== PAGE HERO SUBTITLE ===== */
.page-hero__subtitle  {
    margin-top: 0.25rem;
    margin-bottom: 5px;
    font-size: 1.125rem;
    color: #2b2b2b;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}
.page-content__empty  {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-muted-fg);
    font-size: 1.125rem;
}
.page-content__body  {
    margin-top: 1rem;
}
/* ===== GALLERY GRID ===== */
.gallery-grid  {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
@media (min-width: 640px)  {
    .gallery-grid  {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px)  {
    .gallery-grid  {
        grid-template-columns: repeat(3, 1fr);
    }
}
.gallery-grid--featured  {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin: 0 auto 2rem;
}
.gallery-card  {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.gallery-card:hover  {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.gallery-card--video  {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
    border-color: var(--color-primary);
}
.gallery-card__icon  {
    margin-bottom: 1rem;
    opacity: 0.85;
}
.gallery-card__year  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}
.gallery-card__title  {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-fg);
}
.gallery-card--video .gallery-card__title  {
    color: var(--color-primary-fg);
}
.gallery-card__count  {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-muted-fg);
}
.gallery-card--video .gallery-card__count  {
    color: rgba(251, 247, 239, 0.8);
}
/* ===== GALLERY PAGE ===== */
.gallery-links-grid  {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
@media (min-width: 640px)  {
    .gallery-links-grid  {
        grid-template-columns: repeat(3, 1fr);
    }
}
.gallery-link-card  {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-link-card:hover  {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.gallery-years-grid  {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}
@media (min-width: 640px)  {
    .gallery-years-grid  {
        grid-template-columns: repeat(3, 1fr);
    }
}
.gallery-year-link  {
    display: block;
    padding: 1rem 1.5rem;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s, transform 0.2s;
}
.gallery-year-link:hover  {
    background-color: var(--color-accent);
    transform: translateY(-1px);
}
/* ===== VIDEO PAGE ===== */
.video-grid  {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-top: 2rem;
}
.video-card  {
    display: flex;
    flex-direction: column;
    border-radius: 16px !important;
    overflow: hidden !important;
    background-color: var(--color-card);
    border: 1px solid #e0d5c1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
    cursor: pointer;
}
.video-card:hover  {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.video-card__wrapper  {
    position: relative;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    border-radius: 16px !important;
    overflow: hidden !important;
    background-color: #1a1a1a;
}
.video-card-box  {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}
.video-card-box video  {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-card__player,
.video-card video,
.video-card__wrapper video,
.video-container video  {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    border-radius: 16px !important;
    border: none !important;
    outline: none !important;
}
/* ===== VIDEO MODAL / LIGHTBOX � 16:9 ===== */
.video-modal,
#video-lightbox  {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    padding: 20px;
}
.video-modal.is-open,
#video-lightbox[style*="flex"]  {
    display: flex;
}
.video-modal__wrap,
#lightbox-video-wrap  {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
}
.video-modal video,
.video-modal iframe,
#lightbox-video  {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    border: none;
    border-radius: 12px;
    background: #000;
}
/* Global: card videos fill their container */
video  {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
/* Remove default browser video controls styling */
video::-webkit-media-controls  {
    display: none !important;
}
video::-webkit-media-controls-enclosure  {
    display: none !important;
}
.video-card__overlay  {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.55) 0%,
        rgba(26, 26, 46, 0.25) 50%,
        rgba(26, 26, 46, 0.55) 100%
    );
    opacity: 1;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 2;
}
.video-card:hover .video-card__overlay  {
    background: linear-gradient(
        135deg,
        rgba(227, 114, 34, 0.35) 0%,
        rgba(227, 114, 34, 0.15) 50%,
        rgba(227, 114, 34, 0.35) 100%
    );
}
.video-card__overlay.is-hidden  {
    opacity: 0;
    pointer-events: none;
}
.video-card__play-btn  {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover .video-card__play-btn  {
    transform: scale(1.1);
    background-color: #ffffff;
    box-shadow: 0 6px 24px rgba(227, 114, 34, 0.4);
}
.video-card__play-btn svg  {
    margin-left: 3px;
}
.video-card__caption  {
    padding: 1rem 1.25rem 1.25rem;
    background-color: var(--color-card);
}
.video-card__title  {
    display: block;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-fg);
    transition: color 0.2s ease;
}
.video-card:hover .video-card__title  {
    color: var(--color-primary);
}

/* Responsive: tablet, 2 columns below 768px */
@media (max-width: 768px)  {
    .video-grid  {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
/* Responsive: mobile, 1 column */
@media (max-width: 640px)  {
    .video-grid  {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .video-card__wrapper,
    .video-card video,
    .video-card__wrapper video  {
        aspect-ratio: 16 / 9;
        height: auto !important;
    }
    .video-card__play-btn  {
        width: 52px;
        height: 52px;
    }
    .video-card__play-btn svg  {
        width: 22px;
        height: 22px;
    }
}
/* ===== CONTACTS PAGE ===== */
.contacts-section  {
    margin-top: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.icon-boxes-row  {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 1.5rem;
}
@media (max-width: 1023px)  {
    .icon-boxes-row  {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 639px)  {
    .icon-boxes-row  {
        grid-template-columns: 1fr;
    }
}
.icon-box  {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 2rem 1.5rem;
    background-color: var(--color-card);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-box:hover  {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.icon-box__icon  {
    margin-bottom: 0.5rem;
}
.icon-box h4  {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--color-fg);
}
.icon-box p  {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted-fg);
    margin: 0;
}
.icon-box__link  {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
    transition: color 0.2s;
}
.icon-box__link svg  {
    flex-shrink: 0;
}
.icon-box__link:hover  {
    color: #c5601e;
    text-decoration: underline;
}
.icon-box__list  {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* ===== TWO-COLUMN CONTACTS: FORM + MAP ===== */
.contacts-duo  {
    padding-top: 1rem;
    padding-bottom: 4rem;
}
.contacts-duo__grid  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 35px;
    align-items: start;
}
@media (max-width: 768px)  {
    .contacts-duo__grid  {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.contacts-duo__heading  {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-fg);
    margin-bottom: 0.5rem;
}
.contacts-duo__subheading  {
    font-size: 0.9375rem;
    color: var(--color-muted-fg);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* --- Contact Form (theme fallback) --- */
.contacts-form  {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.contacts-form__row  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}
@media (max-width: 480px)  {
    .contacts-form__row  {
        grid-template-columns: 1fr;
    }
}
.contacts-form__field  {
    display: flex;
    flex-direction: column;
}
.contacts-form__field label  {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-fg);
    margin-bottom: 2px;
}
.contacts-form__field input,
.contacts-form__field textarea  {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-fg);
    background: #fff;
    border: 1px solid #e0d5c1;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contacts-form__field input:focus,
.contacts-form__field textarea:focus  {
    border-color: #e67e22;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}
.contacts-form__field input::placeholder,
.contacts-form__field textarea::placeholder  {
    color: var(--color-muted-fg);
    opacity: 0.6;
}
.contacts-form__field textarea  {
    height: 120px;
    resize: vertical;
    display: block;
}
.contacts-form__submit,
button[type="submit"]  {
    background-color: #e67e22;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}
.contacts-form__submit:hover,
button[type="submit"]:hover  {
    background-color: #d35400;
    transform: translateY(-2px);
}

/* --- WPForms global overrides --- */
body.page-template-page-kontakti-php input[type="text"],
body.page-template-page-kontakti-php input[type="email"],
body.page-template-page-kontakti-php input[type="tel"],
body.page-template-page-kontakti-php input[type="url"],
body.page-template-page-kontakti-php textarea  {
    width: 100% !important;
    box-sizing: border-box;
    padding: 12px 14px !important;
    margin-top: 6px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e0d5c1 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-family: var(--font-sans);
    color: var(--color-fg);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
body.page-template-page-kontakti-php input[type="text"]:focus,
body.page-template-page-kontakti-php input[type="email"]:focus,
body.page-template-page-kontakti-php input[type="tel"]:focus,
body.page-template-page-kontakti-php input[type="url"]:focus,
body.page-template-page-kontakti-php textarea:focus  {
    border-color: #e67e22 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15) !important;
}
body.page-template-page-kontakti-php .wpforms-submit,
body.page-template-page-kontakti-php button[type="submit"]  {
    background-color: #e67e22 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}
body.page-template-page-kontakti-php .wpforms-submit:hover,
body.page-template-page-kontakti-php button[type="submit"]:hover  {
    background-color: #d35400 !important;
    transform: translateY(-2px);
}

/* --- Map Column --- */
.contacts-map  {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    border: 1px solid #e0d5c1;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--color-muted);
}
.contacts-map iframe  {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}
.contacts-map__nav-btn  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--color-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contacts-map__nav-btn:hover  {
    background-color: #c5601e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 114, 34, 0.35);
}

/* ===== CLEARFIX ===== */
/* ===== POST GRID (index/archive) ===== */
.posts-grid  {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}
.post-card  {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
@media (min-width: 768px)  {
    .post-card  {
        flex-direction: row;
    }
}
.post-card:hover  {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.post-card__img  {
    flex-shrink: 0;
}
.post-card__img img  {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
@media (min-width: 768px)  {
    .post-card__img img  {
        width: 240px;
        height: 100%;
    }
}
.post-card__body  {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex: 1;
}
.post-card__date  {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted-fg);
}
.post-card__title  {
    margin-top: 0.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-fg);
}
.post-card__title a  {
    text-decoration: none;
    color: inherit;
}
.post-card__title a:hover  {
    color: var(--color-primary);
}
.post-card__excerpt  {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-muted-fg);
    flex: 1;
}
.pagination, .nav-links  {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.page-numbers  {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-fg);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.page-numbers:hover,.page-numbers.current  {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
    border-color: var(--color-primary);
}
.page-numbers.prev,.page-numbers.next  {
    width: auto;
    padding: 0 1rem;
    border-radius: 9999px;
}
/* ===== SINGLE POST ===== */
.single-hero__bg  {
    width: 100%;
    height: 360px;
    object-fit: cover;
}
/* ===== OBJECT / ATTRACTION PAGES — TWO-COLUMN FLEX ===== */
/* Flex row: image left, text right */
.page-object__grid  {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}
/* Left column: fixed-width image */
.page-object__col-image  {
    flex: 0 0 420px;
    max-width: 420px;
}
/* Right column: fills remaining space */
.page-object__col-text  {
    flex: 1;
    min-width: 0;
    /* prevent flex overflow */ padding-left: 2rem;
    /* breathing room from the image */
}
/* When no image, text takes full width */
.page-object__col-text--full  {
    padding-left: 0;
}
/* Image inside the left column — uniform size */
.page-object__image  {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(227, 114, 34, 0.2);
}
/* Quote block inside text column */
.page-content__quote  {
    margin-top: 1.5rem;
}
/* On tablet & below: stack vertically */
@media (max-width: 900px)  {
    .page-object__grid  {
        flex-direction: column;
        gap: 1.25rem;
    }
    .page-object__col-image  {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .page-object__col-text  {
        padding-left: 0;
    }
    .page-object__image  {
        height: 260px;
    }
}
/* On small mobile: smaller image height */
@media (max-width: 480px)  {
    .page-object__image  {
        height: 200px;
    }
}
/* ===== VIDELINA MODALS ===== */
.vid-modal  {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.vid-modal.is-open  {
    display: flex;
}
.vid-modal__backdrop  {
    position: absolute;
    inset: 0;
    background-color: rgba(61, 47, 32, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: vidModalFadeIn 0.25s ease;
}
.vid-modal__container  {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    padding: 2rem;
    animation: vidModalSlideIn 0.3s ease;
}
.vid-modal__header  {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.vid-modal__title  {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--color-fg);
    margin: 0;
    margin-top: 0.5rem;
}
.vid-modal__close  {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background-color: var(--color-muted);
    border-radius: 50%;
    color: var(--color-fg);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
.vid-modal__close:hover  {
    background-color: var(--color-primary);
    color: var(--color-primary-fg);
}
.vid-modal__form  {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.vid-modal__field  {
    display: flex;
    flex-direction: column;
}
.vid-modal__field label  {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-fg);
    margin-bottom: 2px;
}
.vid-modal__required  {
    color: var(--color-folk-red);
}
.vid-modal__field input,
.vid-modal__field select  {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-fg);
    background: #fff;
    border: 1px solid #e0d5c1;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.vid-modal__field input:focus,
.vid-modal__field select:focus  {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(227, 114, 34, 0.15);
}
.vid-modal__field input::placeholder  {
    color: var(--color-muted-fg);
    opacity: 0.6;
}
.vid-modal__field--readonly  {
    width: auto;
    flex-wrap: wrap;
    overflow: visible;
}
.vid-modal__field--readonly input  {
    width: auto;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
    word-break: break-word;
    height: auto;
    min-height: 2.5rem;
    field-sizing: content;
    -webkit-field-sizing: content;
    background-color: var(--color-muted);
    cursor: default;
    font-weight: 600;
}
/* Показване на пълното име на събитието (вкл. затварящата скоба "(27 ЮЛИ)") */
.vid-modal__readonly-value  {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-top: 6px;
    margin-bottom: 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.45;
    color: var(--color-fg);
    background-color: var(--color-muted);
    border: 1px solid #e0d5c1;
    border-radius: 10px;
    cursor: default;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.vid-modal__status  {
    font-size: 0.875rem;
    min-height: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}
.vid-modal__status--success  {
    color: var(--color-folk-green);
    font-weight: 600;
}
.vid-modal__status--error  {
    color: var(--color-folk-red);
    font-weight: 600;
}
.vid-modal__submit  {
    margin-top: 0.5rem;
}
@keyframes vidModalFadeIn  {
    from  { opacity: 0; }
    to  { opacity: 1; }
}
@keyframes vidModalSlideIn  {
    from  { opacity: 0; transform: translateY(20px) scale(0.97); }
    to  { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 480px)  {
    .vid-modal__container  {
        padding: 1.5rem;
        border-radius: 0.75rem;
    }
    .vid-modal__title  {
        font-size: 1.25rem;
    }
}

/* ===== AWARDS TIMELINE & CARDS ===== */
.awards-timeline  {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
/* --- Year overview cards grid --- */
.awards-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.awards-year-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.awards-year-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary, #e37222), #f5a623);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.awards-year-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(227, 114, 34, 0.18);
    border-color: rgba(227, 114, 34, 0.45);
}
.awards-year-card:hover::before {
    opacity: 1;
}
.awards-year-card__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}
.awards-year-card__year {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary, #e37222);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.awards-year-card__count {
    font-size: 0.85rem;
    color: var(--color-muted-fg, #7a6b5c);
    font-weight: 500;
}
.awards-year-card__hint {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}
.awards-year-card:hover .awards-year-card__hint {
    opacity: 1;
}
/* --- Awards modal --- */
.awards-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.awards-overlay.is-active {
    display: flex;
    opacity: 1;
}
.awards-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.awards-modal {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
.awards-overlay.is-active .awards-modal {
    transform: translateY(0) scale(1);
}
.awards-modal__close {
    position: sticky;
    top: 0;
    float: right;
    margin: 0.75rem 0.75rem 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    flex-shrink: 0;
}
.awards-modal__close:hover {
    background: var(--color-primary);
    color: #fff;
}
.awards-modal__inner {
    padding: 2.5rem 2.5rem 2rem;
}
.awards-modal__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--color-fg);
    margin: 0 0 1.5rem;
    line-height: 1.3;
    padding-right: 3rem;
}
.awards-modal__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.awards-modal__item {
    background: #fafaf7;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s;
}
.awards-modal__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.awards-modal__item.is-highlighted {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(227, 114, 34, 0.18), 0 6px 18px rgba(0, 0, 0, 0.1);
    background: #fffdfa;
}
.awards-modal__item-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.awards-modal__item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}
.awards-modal__item-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-fg);
    margin: 0;
    line-height: 1.35;
}
.awards-modal__item-winners {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-fg);
    margin: 0.25rem 0;
}
.awards-modal__item-detail {
    margin: 0.25rem 0 0.5rem 1.25rem;
    padding: 0;
    list-style: disc;
    font-size: 0.85rem;
    color: var(--color-muted-fg);
}
.awards-modal__item-detail li {
    margin-bottom: 0.2rem;
}
.awards-modal__item-note {
    margin: 0.5rem 0 0;
    font-style: italic;
    font-size: 0.82rem;
    color: #888;
}
.awards-modal::-webkit-scrollbar {
    width: 6px;
}
.awards-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}
@media (max-width: 640px) {
    .awards-year-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    .awards-year-card {
        padding: 1.5rem 1rem;
    }
    .awards-year-card__year {
        font-size: 1.5rem;
    }
    .awards-modal__inner {
        padding: 2rem 1.25rem 1.5rem;
    }
    .awards-modal__title {
        font-size: 1.3rem;
    }
}

/* ===== VIDEO CARD FIXES — no black bars ===== */
.video-card__wrapper video,
.video-card__wrapper img  {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.video-card__caption  {
    padding: 0.6rem 0.75rem 0.75rem;
    background: transparent;
}
.video-card__title  {
    font-size: 0.85rem;
    line-height: 1.3;
}

/* ======================================================================
   INFO PAGE MODALS — cards + read-view overlay
   Used by: page.php, page-object.php, page-library.php
   ====================================================================== */

/* --- Card Grid (auto-wraps adjacent cards) --- */
.vid-info-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--color-border);
    padding: 1.125rem 1.125rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    margin-bottom: 0;
    min-height: 0;
}
.vid-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(227, 114, 34, 0.15);
    border-color: rgba(227, 114, 34, 0.45);
}
/* Colorful gradient icon badge — !important to override Elementor / plugin resets */
.vid-info-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    color: #fff !important;
    background-color: transparent;
    position: relative;
    z-index: 1;
}
.vid-info-card__icon--orange { background: linear-gradient(135deg, #E37222, #f5a623) !important; color: #fff !important; }
.vid-info-card__icon--green  { background: linear-gradient(135deg, #3a9a6a, #6ecf97) !important; color: #fff !important; }
.vid-info-card__icon--blue   { background: linear-gradient(135deg, #3370a8, #5fa8d3) !important; color: #fff !important; }
.vid-info-card__icon--red    { background: linear-gradient(135deg, #b3252e, #e25555) !important; color: #fff !important; }
.vid-info-card__icon--purple { background: linear-gradient(135deg, #7c3aed, #a78bfa) !important; color: #fff !important; }
.vid-info-card__icon--teal   { background: linear-gradient(135deg, #0d9488, #5eead4) !important; color: #fff !important; }
.vid-info-card__icon--pink   { background: linear-gradient(135deg, #db2777, #f472b6) !important; color: #fff !important; }
.vid-info-card__icon--amber  { background: linear-gradient(135deg, #d97706, #fbbf24) !important; color: #fff !important; }
.vid-info-card__icon--default { background: linear-gradient(135deg, #6b7280, #9ca3af) !important; color: #fff !important; }
.vid-info-card__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-fg);
    line-height: 1.3;
    margin: 0;
}
.vid-info-card__hint {
    margin-top: 0.15rem;
    padding-top: 0;
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}
.vid-info-card:hover .vid-info-card__hint {
    opacity: 1;
}

/* --- Grid wrapper for consecutive cards (compact, 3-4 per row) --- */
.vid-info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.vid-info-cards-grid .vid-info-card {
    margin-bottom: 0;
    padding: 0.9rem 0.9rem 0.75rem;
}
.vid-info-cards-grid .vid-info-card__title {
    font-size: 0.85rem;
}
.vid-info-cards-grid .vid-info-card__icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    border-radius: 9px;
}

/* --- Info Modal Overlay --- */
.vid-info-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.vid-info-overlay.is-active {
    display: flex;
    opacity: 1;
}
.vid-info-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Info Modal Box --- */
.vid-info-modal {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
.vid-info-overlay.is-active .vid-info-modal {
    transform: translateY(0) scale(1);
}
.vid-info-modal__close {
    position: sticky;
    top: 0;
    float: right;
    margin: 0.75rem 0.75rem 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    flex-shrink: 0;
}
.vid-info-modal__close:hover {
    background: var(--color-primary);
    color: #fff;
}
.vid-info-modal__inner {
    padding: 2.5rem 2.5rem 2rem;
}
.vid-info-modal__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--color-fg);
    margin: 0 0 1rem;
    line-height: 1.3;
}
.vid-info-modal__body {
    line-height: 1.75;
    color: #4a3f35;
}
.vid-info-modal__body p {
    margin-bottom: 0.75rem;
}
.vid-info-modal__body p:last-child {
    margin-bottom: 0;
}
.vid-info-modal__body h2,
.vid-info-modal__body h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-fg);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.vid-info-modal__body ul,
.vid-info-modal__body ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0 0.75rem;
}
.vid-info-modal__body ul {
    list-style-type: disc;
}
.vid-info-modal__body ol {
    list-style-type: decimal;
}
.vid-info-modal__body li {
    margin-bottom: 0.35rem;
    line-height: 1.6;
}
.vid-info-modal__body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}
.vid-info-modal__body strong {
    font-weight: 600;
    color: var(--color-fg);
}
.vid-info-modal::-webkit-scrollbar {
    width: 6px;
}
.vid-info-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

@media (max-width: 640px) {
    .vid-info-modal__inner {
        padding: 2rem 1.5rem 1.5rem;
    }
    .vid-info-modal__title {
        font-size: 1.3rem;
    }
    .vid-info-card {
        padding: 1rem;
    }
    .vid-info-card__icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 8px;
    }
    .vid-info-card__title {
        font-size: 0.88rem;
    }
    .vid-info-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.625rem;
    }
}

/* ======================================================================
   PHOTO GALLERY MODAL — album preview overlay
   ====================================================================== */
.vid-gallery-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.vid-gallery-overlay.is-active {
    display: flex;
    opacity: 1;
}
.vid-gallery-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- Gallery Modal Box --- */
.vid-gallery-modal {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
.vid-gallery-overlay.is-active .vid-gallery-modal {
    transform: translateY(0) scale(1);
}
.vid-gallery-modal__close {
    position: sticky;
    top: 0;
    float: right;
    margin: 0.75rem 0.75rem 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    flex-shrink: 0;
}
.vid-gallery-modal__close:hover {
    background: var(--color-primary);
    color: #fff;
}
.vid-gallery-modal__inner {
    padding: 2.5rem 2.5rem 2rem;
}
.vid-gallery-modal__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-fg);
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

/* --- Album image grid inside modal --- */
.vid-gallery-modal__images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.vid-gallery-modal__images a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.vid-gallery-modal__images a:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}
.vid-gallery-modal__images a img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.vid-gallery-modal__images a:hover img {
    transform: scale(1.04);
}
/* Hide non-image links (e.g. Elementor wrappers) */
.vid-gallery-modal__images .elementor-widget-wrap,
.vid-gallery-modal__images .elementor-element {
    display: none !important;
}

/* --- Loading spinner --- */
.vid-gallery-modal__loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-muted-fg);
}
.vid-gallery-modal__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: vidSpin 0.8s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes vidSpin {
    to { transform: rotate(360deg); }
}

.vid-gallery-modal::-webkit-scrollbar {
    width: 6px;
}
.vid-gallery-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

@media (max-width: 640px) {
    .vid-gallery-modal__inner {
        padding: 2rem 1.25rem 1.5rem;
    }
    .vid-gallery-modal__title {
        font-size: 1.25rem;
    }
    .vid-gallery-modal__images {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    .vid-gallery-modal__images a img {
        height: 130px;
    }
}

/* ======================================================================
   VIDEO GALLERY — CATEGORY CARDS + MODAL
   ====================================================================== */

/* --- Category cards grid --- */
.vg-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .vg-category-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* --- Individual category card --- */
.vg-category-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}
.vg-category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.vg-category-card--network::before {
    background: linear-gradient(90deg, #ff0000, #ff6b35);
}
.vg-category-card--local::before {
    background: linear-gradient(90deg, #3370a8, #3a9a6a);
}
.vg-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.vg-category-card:hover::before {
    opacity: 1;
}

/* Icon badge */
.vg-category-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vg-category-card--network .vg-category-card__icon {
    background: linear-gradient(135deg, #ff0000, #ff6b35);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,0,0,0.25);
}
.vg-category-card--local .vg-category-card__icon {
    background: linear-gradient(135deg, #3370a8, #3a9a6a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(51,112,168,0.25);
}

.vg-category-card__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-fg);
    margin: 0;
    line-height: 1.3;
}
.vg-category-card__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-muted-fg);
    margin: 0;
    max-width: 320px;
}
.vg-category-card__count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
    background: var(--color-muted);
    color: var(--color-muted-fg);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-top: 0.25rem;
}
.vg-category-card__hint {
    font-size: 0.78rem;
    color: var(--color-primary);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    margin-top: 0;
}
.vg-category-card:hover .vg-category-card__hint {
    opacity: 1;
}

/* --- Video Modal Overlay --- */
.vg-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.vg-overlay.is-active {
    display: flex;
    opacity: 1;
}
.vg-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.vg-modal {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 16px;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}
.vg-overlay.is-active .vg-modal {
    transform: translateY(0) scale(1);
}
.vg-modal__close {
    position: sticky;
    top: 0;
    float: right;
    margin: 0.75rem 0.75rem 0 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    flex-shrink: 0;
}
.vg-modal__close:hover {
    background: var(--color-primary);
    color: #fff;
}
.vg-modal__inner {
    padding: 2.5rem 2.5rem 2rem;
}
.vg-modal__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-fg);
    margin: 0 0 1.5rem;
    line-height: 1.3;
    padding-right: 3rem;
}

/* Video grid inside modal */
.vg-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.vg-modal__item {
    background: #fafaf7;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.vg-modal__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.vg-modal__item-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1a1a1a;
}
.vg-modal__item-thumb img,
.vg-modal__item-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vg-modal__item-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    color: var(--color-primary);
    transition: background 0.2s;
}
.vg-modal__item:hover .vg-modal__item-play {
    background: rgba(0,0,0,0.4);
}
.vg-modal__item-caption {
    padding: 0.65rem 0.85rem 0.75rem;
}
.vg-modal__item-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-fg);
    line-height: 1.35;
}

.vg-modal::-webkit-scrollbar { width: 6px; }
.vg-modal::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
@media (max-width: 640px) {
    .vg-modal__inner { padding: 2rem 1.25rem 1.5rem; }
    .vg-modal__title { font-size: 1.25rem; }
    .vg-modal__grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
    .vg-category-card { padding: 2rem 1.25rem; }
    .vg-category-card__title { font-size: 1.15rem; }
}

/* --- Video Lightbox (individual playback) --- */
#video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}
#lightbox-video-wrap {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
    background: #000;
}
#lightbox-video-container {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}
#lightbox-video-container iframe,
#lightbox-video-container video {
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px;
    object-fit: contain;
}
#lightbox-close {
    position: fixed !important;
    top: 25px !important;
    right: 35px !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(0,0,0,0.7) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    color: #fff !important;
    font-size: 28px !important;
    border-radius: 50% !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    line-height: 1;
    padding: 0;
}
#lightbox-close:hover {
    background: var(--color-primary, #d97706) !important;
    border-color: var(--color-primary, #d97706) !important;
    transform: scale(1.1);
}
/* ===== INFO CARDS V2 (dynamic about/library pages) ===== */
.info-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0 0;
}
@media (min-width: 768px) {
    .info-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.info-cards-grid .vid-info-card {
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 1.5rem;
    border-radius: 1rem;
    gap: 0.85rem;
    justify-content: space-between;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.info-cards-grid .vid-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(227, 114, 34, 0.16);
    border-color: rgba(227, 114, 34, 0.5);
}
.dyn-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(227, 114, 34, 0.12);
    border: 1px solid rgba(227, 114, 34, 0.25);
    color: var(--color-primary);
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}
.dyn-card__icon img.dyn-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: none;
}
.dyn-card__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-fg);
}
.dyn-card__desc {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-muted-fg);
    margin: 0;
}
.dyn-card__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.info-cards-grid .vid-info-card:hover .dyn-card__hint {
    opacity: 1;
    transform: translateY(0);
}
/* Info section header spacing */
.info-section {
    margin-top: 2.5rem;
}
/* Poem card "ВИДЕЛИНА" */
.poem-card {
    max-width: 820px;
    margin: 3.5rem auto 0;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fdf6ec 0%, #faf0e0 100%);
    border: 1px solid rgba(227, 114, 34, 0.28);
    box-shadow: 0 8px 24px rgba(61, 47, 32, 0.08);
    text-align: center;
}
.poem-card__icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}
.poem-card__title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin: 0 0 1.25rem;
    letter-spacing: 0.02em;
}
.poem-card__text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-fg);
}
.poem-card__text p {
    margin: 0.9rem 0;
}
@media (max-width: 640px) {
    .poem-card {
        padding: 1.75rem 1.25rem;
        margin-top: 2.5rem;
    }
}

/* ===== VIDEO GALLERY — EMBED THUMB (Facebook и др.) ===== */
.vg-modal__item-thumb--embed {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3d2f20, #1a1209);
    color: #fff;
}
.vg-modal__item-thumb--embed svg {
    opacity: 0.9;
}

/* ===== GLOBAL LIGHTBOX STYLES (fslightbox) ===== */
.fslightbox-container {
    font-family: var(--font-sans, 'Inter', sans-serif);
}
.fslightbox-toolbar-button:nth-child(1) {
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    margin: 6px;
}
.fslightbox-nav-button {
    -webkit-tap-highlight-color: transparent;
}
.fslightbox-caption {
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 999px;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

/* ======================================================================
   CONTACTS PAGE — RESPONSIVE TWO-COLUMN GRID + MAP
   ====================================================================== */
/* Tablet & below: stack form + map vertically */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        margin-top: 1.5rem !important;
    }
    .contacts-grid iframe {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }
}
/* Small mobile: further reduce map height */
@media (max-width: 480px) {
    .contacts-grid iframe {
        min-height: 180px;
    }
}

/* ======================================================================
   FORCE MOBILE LAYOUT FOR CONTACTS PAGE (aggressive fix)
   ====================================================================== */
@media screen and (max-width: 768px) {
    .page-template-page-kontakti main div[class*="grid"],
    .page-id-kontakti main div[class*="grid"],
    .contacts-grid,
    main section div[class*="grid-cols-2"] {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        grid-template-columns: 1fr !important;
    }

    main section div[class*="grid-cols-2"] > div {
        width: 100% !important;
    }

    .contacts-grid iframe,
    main iframe {
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
    }
}

/* ===== NEW CLASSES FOR INLINE STYLE REPLACEMENT ===== */
/* Hero background image */
.l2-hero__bg-img,
.l2-event-card__img,
.l2-activity-card__img,
.l2-news-card__img,
.l2-about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero background for layout 2 */
.l2-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.l2-hero__bg img,
.l2-hero__bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    display: block;
}

/* Event card media */
.l2-event-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Activity card media */
.l2-activity-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

/* News card media */
.l2-news-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* About section media */
.l2-about__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}
.l2-about__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}