/* ============================================================
   Staging custom CSS — shaper_helixultimate
   Created: 2026-08-10
   ============================================================ */


/* --- Typography & Readability --- */
body { line-height: 1.5; }
/* --- Header sign-in link ---
   Вход has no colour of its own, so it fell through to the preset's global
   `a { color: #7B2020 }`, Preset 8 Body Link Color, meant for the light body background. On the
   green header that measures 1.08:1 contrast - effectively invisible. It now
   takes the menu item colours, which is what the offcanvas copy of this same
   link already uses.

   A blanket `#sp-header a { ... !important }` sat here commented out. Checked
   why before removing it: that selector also repaints the logo link and the
   active menu item, so "Актуално" loses its white active state. Keep this
   scoped to .sp-sign-in. The preset rule is only specificity (0,0,1), so no
   !important is needed. */
#sp-header .sp-sign-in {
    color: #B8C8B0;
    font-size: 14px; /* match .sp-megamenu-parent > li > a; Helix left this at 16px */
}

#sp-header .sp-sign-in:hover,
#sp-header .sp-sign-in:focus {
    color: #FFFFFF;
}

/* --- Off-canvas toggler ---
   Helix draws the burger bars with `.burger-icon>span { background-color:#000 }`
   hardcoded in its own template.css, so no preset can reach them. The preset
   does colour a toggler, but only the icon-font variant `#offcanvas-toggler
   > .fa`, and this site renders the three-span burger instead. Black on the
   green header measures 1.77:1. Same treatment as the sign-in link above. */
#sp-header .burger-icon > span {
    background-color: #B8C8B0;
}

#sp-header #offcanvas-toggler:hover .burger-icon > span,
#sp-header #offcanvas-toggler:focus .burger-icon > span {
    background-color: #FFFFFF;
}


/* --- Phoca Gallery Tree (mod. 138): undo Helix li borders + link sizing inside jsTree --- */
#phocadownload-tree-module .jstree ul > li {
    border-bottom: none;
}
/* Helix forces display:block on anchors. Flex-center folder + label;
   2px top on the sprite matches the proton cell crop on desktop. */
#sp-left #phocadownload-tree-module .jstree .jstree-anchor,
#phocadownload-tree-module .jstree .jstree-anchor {
    display: inline-flex;
    align-items: center;
    height: 22px;
    line-height: 22px;
    padding: 0 4px 0 1px;
    margin: 1px 0 2px;
    white-space: nowrap;
    vertical-align: middle;
    width: max-content;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
}
#phocadownload-tree-module .jstree-anchor .jstree-themeicon {
    margin-top: 0;
    flex: 0 0 auto;
    align-self: center;
}
@media (max-width: 768px) {
    #phocadownload-tree-module .jstree .jstree-anchor {
        height: 30px;
        line-height: 30px;
        margin: 4px 0;
    }
    #phocadownload-tree-module .jstree-anchor .jstree-themeicon {
        top: 0;
    }
}
#phocadownload-tree-module .jstree {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}
#phocadownload-tree-module .jstree .jstree-container-ul {
    display: inline-block;
}

/* Inner label under module title Категории; quieter than the Helix H heading */
#phocadownload-tree-module .vnt-gallery-tree-albums {
    margin: 0 0 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

/* --- Phoca Gallery detail modal: iframe has no width attr, defaults to 300px browser default --- */
#pgCategoryModalIframe {
    width: 100%;
}

/* --- #sp-main-body: reduce Helix default 100px top padding to tighter value --- */
#sp-main-body {
    padding-top: 20px;
    padding-bottom: 0;
}
@media (min-width: 1200px) {
    #sp-main-body .container {
        max-width: calc(1140px - 3rem);
    }
}
@media (min-width: 1400px) {
    #sp-main-body .container {
        max-width: calc(1320px - 3rem);
    }
}



/* template.css hardcodes height:60px; single-row nav at 1400px+ */
@media (min-width: 1400px) {
    #sp-header {
        height: auto;
    }
    #sp-header .row {
        flex-wrap: nowrap;
        align-items: center;
    }
    #sp-header .header-modules .search form input {
        width: 180px;
    }
}

/* --- Hide inline nav on mobile/tablet — offcanvas handles it; desktop shows it normally --- */
@media (max-width: 1399.98px) {
    #sp-menu {
        display: none;
    }
}

/* --- Mobile header: .logo is 60px but header is 50px — shrink to match so align-items:center works --- */
@media (max-width: 767.98px) {
    #sp-header #sp-logo .logo {
        height: 50px;
    }
}

/* --- Header: narrow container max-width by 4rem (2rem/side) to match events strip/footer breathing room --- */
@media (min-width: 1200px) {
    #sp-header .container,
    #sp-section-1 .container {
        max-width: calc(1140px - 3rem);
    }
}
@media (min-width: 1400px) {
    #sp-header .container,
    #sp-section-1 .container {
        max-width: calc(1320px - 3rem);
    }
}

/* --- Phoca Gallery modal: encoded filename in title has no spaces, overflows header --- */
#pgCategoryModal .modal-title {
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* --- Phoca Gallery modal: full-width on mobile (Bootstrap default max-width is too narrow) --- */
@media (max-width: 767.98px) {
    #pgCategoryModal .modal-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }
}

/* === VNT album thumbs: photo first, no title on the grid === */
.pg-category-items-box {
    align-items: flex-start;
    align-content: flex-start;
}
.pg-item-box {
    display: flex;
    flex-direction: column;
}
.pg-item-box .pg-item-box-title.image {
    display: none;
}
.pg-item-box figure > figcaption {
    display: none;
}
.pg-item-box-title svg,
.pg-category-box-title svg {
    display: none;
}
.pg-item-box-title,
.pg-category-box-title {
    position: static;
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0.35em 0.15em 0.1em;
    background: transparent;
    color: #1C1208;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    border-radius: 0;
    white-space: normal;
}
.pg-item-box-title a,
.pg-category-box-title a,
#phocagallery .pg-item-box-title a,
#phocagallery .pg-category-box-title a {
    color: inherit;
    text-decoration: none;
}
.pg-item-box-title a:first-letter,
.pg-category-box-title a:first-letter {
    text-transform: none;
}
.pg-item-box .pg-item-box-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    padding: 0.35em 0.15em 0.15em;
}
.pg-item-box .vnt-pg-more {
    margin: 0;
    padding: 0;
}
.pg-item-box .vnt-pg-more__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7B2020;
    text-decoration: none;
}
.pg-item-box .vnt-pg-more__link:hover,
.pg-item-box .vnt-pg-more__link:focus {
    text-decoration: underline;
}

.pg-category-items-box .pg-item-box {
    width: 256px;
    max-width: calc(100% - 1em);
    box-sizing: border-box;
}
.pg-category-items-box .pg-item-box > a,
.pg-category-items-box .pg-item-box figure,
.pg-category-items-box .pg-item-box figure > a {
    display: block;
    width: 100%;
}
.pg-category-items-box .pg-item-box-image {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 256 / 192;
    background: #f3f3f3;
    overflow: hidden;
}
.pg-category-items-box .pg-item-box-image img,
.pg-category-items-box .pg-item-box-image svg {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-position: center;
    display: block;
}
.pg-category-items-box .pg-item-box-image img {
    object-fit: scale-down;
}
.pg-category-items-box .pg-item-box-image svg {
    object-fit: contain;
}
.pg-category-items-box {
    align-items: flex-start;
    align-content: flex-start;
}
.pg-category-items-box .pg-svg-box svg {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: #f3f3f3;
}
.pg-category-items-box .pg-item-box-info {
    min-height: 4.8rem;
}
.pg-category-items-box .pg-item-box-title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    white-space: normal;
}
.pg-item-box .pg-item-box-icons-box,
.pg-item-box .pg-category-box-rating,
.pg-item-box .pg-categories-box-rating {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    padding: 0;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.pg-item-box .pg-item-box-icons-box svg.ph-si {
    color: #3d4f3a;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 0 0 0.15em;
}

/* --- Kunena: Bootstrap 4 embed-responsive polyfill (class removed in Bootstrap 5 / Joomla 6) --- */
.embed-responsive {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
}
.embed-responsive-16by9 { padding-bottom: 56.25%; }
.embed-responsive-4by3  { padding-bottom: 75%; }
.embed-responsive iframe,
.embed-responsive video {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* --- Kunena: prevent long unspaced text overflowing post body --- */
.kmsg-ct {
    overflow-wrap: break-word;
}

/* --- Kunena: long category title pushes expand button off-screen on mobile --- */
#kunena .ksection-header h2 {
    min-width: 0;
}

/* --- Kunena: kcat-other-info is a desktop hover drawer (70% panel off-screen,
   24px kebab peek). Helix keeps the hamburger until 1400px, and from 768px
   cards are two columns — the peek is too narrow, so avatar/title stack into
   a tall strip that sits high / overflows the card. Keep a kebab-only strip
   for all hamburger/tablet widths. */
@media (max-width: 1399.98px) {
    #kunena.layout .ksection .kcat-item .kcat-other-info {
        top: auto;
        bottom: 0;
        right: 0;
        left: auto;
        width: 24px;
        min-height: 96px;
        height: 96px;
        max-height: 96px;
        transform: none;
        padding: 0;
        overflow: hidden;
        box-sizing: border-box;
        align-items: center;
        transition-property: width, right, transform;
    }
    #kunena.layout .ksection .kcat-item .kcat-other-info:hover {
        right: 0;
        width: 24px;
        transform: none;
    }
    #kunena.layout .ksection .kcat-item .kcat-other-info .klast-post-message {
        display: none !important;
    }
    #kunena.layout .ksection .kcat-item .kcat-other-info .more-icon {
        cursor: pointer;
    }
    #kunena.layout .ksection .kcat-item .kcat-other-info.is-open,
    #kunena.layout .ksection .kcat-item .kcat-other-info.is-open:hover {
        width: 70%;
        height: 96px;
        max-height: 96px;
        min-height: 96px;
        padding: 12px 16px 12px 0;
        z-index: 2;
        overflow: hidden;
        align-items: center;
    }
    #kunena.layout .ksection .kcat-item .kcat-other-info.is-open .klast-post-message {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        min-width: 0;
        flex: 1 1 auto;
    }
    #kunena.layout .ksection .kcat-item .kcat-other-info.is-open .kcat-avatar {
        flex: 0 0 auto;
    }
    #kunena.layout .ksection .kcat-item .kcat-other-info.is-open .kcat-last {
        min-width: 0;
        flex: 1 1 auto;
    }
    #kunena.layout .ksection .kcat-item .kcat-other-info.is-open .last-post-link {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
@media (hover: none) and (min-width: 1400px) {
    #kunena.layout .ksection .kcat-item .kcat-other-info:hover {
        transform: translateX(-24px);
        right: -70%;
    }
}

/* --- Article category table: horizontal scroll on mobile --- */
@media (max-width: 768px) {
    form.com-content-category__articles {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    form.com-content-category__articles table {
        min-width: 600px;
    }
}

/* --- Article listing images: constrain within container on mobile --- */
@media (max-width: 768px) {
    .list-title .item-image img {
        max-width: 100%;
        height: auto;
    }
}

/* --- Article category counter: float breaks layout on small screens --- */
@media (max-width: 576px) {
    .com-content-category__counter {
        float: none !important;
    }
}

/* --- Article category ordering/filter selects: full width on small screens --- */
@media (max-width: 576px) {
    form[name="adminForm"] .form-select {
        width: 100%;
    }
}

/* --- uddeIM: inbox + message view horizontally scrollable --- */
#uddeim-overview,
#uddeim-m {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: block;
}

/* --- uddeIM: compose form overflow prevention --- */
form[name="sendeform"] {
    max-width: 100%;
    box-sizing: border-box;
}
form[name="sendeform"] textarea[name="pmessage"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* --- uddeIM: smiley picker scrollable --- */
#uddeim-smileybox {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    display: block;
}

/* --- uddeIM: inbox nav tabs flex-wrap on mobile --- */
@media (max-width: 768px) {
    #uddeim-navbar2 {
        height: auto !important;
        overflow: visible !important;
    }
    #uddeim-navbar2 ul {
        display: flex !important;
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 0;
        margin: 0;
    }
    #uddeim-navbar2 ul li {
        float: none !important;
        display: flex !important;
        align-items: center;
        overflow: visible !important;
        height: auto !important;
        flex-shrink: 0;
    }
    #uddeim-navbar2 ul li.uddeim-activemenu span {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
        overflow: visible !important;
        height: auto !important;
    }
    #uddeim-navbar2 ul li a {
        display: inline-flex !important;
        align-items: center;
        gap: 3px;
        white-space: nowrap;
    }
    #uddeim-navbar2 ul li img {
        display: inline-block !important;
        width: auto;
        height: auto;
        max-height: 20px;
        flex-shrink: 0;
    }
    #uddeim-navbar2 + div {
        clear: both;
    }
    form[name="filterform"] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
    }
}

/* --- uddeIM: remove pagination line break --- */
#uddeim-pagenav nav.pagination.wrapper br {
    display: none;
}

/* --- uddeIM: inbox section separator --- */
#uddeim-bottomlines {
    clear: both;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #EDEDED;
}

/* --- uddeIM: "From" column left-align (PHP sets text-align:center inline) --- */
#uddeim-overview table tr td:nth-child(3) {
    text-align: left !important;
}

/* --- uddeIM: envelope/checkbox/from row alignment --- */
#uddeim-overview table td,
#uddeim-m table td {
    vertical-align: middle !important;
}
#uddeim-overview table td img,
#uddeim-m table td img {
    vertical-align: middle;
    display: inline-block;
    margin: 0;
}
#uddeim-overview table td input[type="checkbox"],
#uddeim-m table td input[type="checkbox"] {
    vertical-align: middle;
    margin: 0;
    position: relative;
    top: 0;
}


/* --- uddeIM: send button (PHP uses btn-primary, not theme's ui-btn) --- */
.uddeim-sendbutton input[type="submit"] {
    background: #7B2020 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 2rem !important;
    padding: .5rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.25s ease-in-out !important;
    margin: 1em 0 !important;
}
.uddeim-sendbutton input[type="submit"]:hover {
    background: #A83230 !important;
}

/* --- uddeIM: theme applies text-transform:capitalize, wrong for Bulgarian --- */
.uddeim-sendoption {
    text-transform: none !important;
}

/* --- uddeIM: outbox warning paragraph hidden by design --- */
#uddeim #uddeim-bottomlines p {
    display: none;
}

/* --- Events strip: padding mirrors Bootstrap container auto-margin for header alignment --- */
#sp-events-strip {
    padding-top: 5.5rem;
    padding-bottom: 7.5rem;
    padding-left: max(1rem, calc((100vw - 1140px) / 2 + 1.5rem + 15px));
    padding-right: max(1rem, calc((100vw - 1140px) / 2 + 1.5rem + 15px));
}
@media (min-width: 1400px) {
    #sp-events-strip {
        padding-left: max(1rem, calc((100vw - 1320px) / 2 + 1.5rem + 15px));
        padding-right: max(1rem, calc((100vw - 1320px) / 2 + 1.5rem + 15px));
    }
}
@media (min-width: 1800px) {
    #sp-events-strip {
        padding-left: calc((100vw - 1320px) / 2 + 8rem + 15px);
        padding-right: calc((100vw - 1320px) / 2 + 8rem + 15px);
    }
}

#sp-events-strip .container {
    background-color: #EEF3EA;
    border-radius: 0;
    padding: 4rem 6rem;
}

/* vertically centre shorter OsTimer card beside calendar */
#sp-events-strip .row {
    align-items: center;
}

/* white card for Времедо — matches iCAgenda's own .card styling */
#sp-events-strip #sp-position1 .sp-module {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.375rem;
    padding: 1.5rem;
    box-sizing: border-box;
}

/* gap between stacked modules on tablet/mobile */
@media (max-width: 991.98px) {
    #sp-events-strip #sp-position1 {
        margin-bottom: 1.5rem;
    }
}

#sp-bottom {
    padding-top: 60px;
    padding-bottom: 30px;
}

/* --- Events strip: title parity, OsTimer cleanup, countdown colour --- */

/* remove card-header gray band, match sp-module-title sizing */
#sp-events-strip .card-header,
#sp-events-strip .sp-module-title {
    background: transparent;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-radius: 0;
}
#sp-events-strip .card-header {
    text-align: center;
    padding-top: 1.5rem;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

/* align-self:stretch overrides parent align-items:center so border spans full card width */
#sp-events-strip .sp-module-title {
    align-self: stretch;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* strip OsTimer inner box — white card is already the container */
#sp-events-strip .ostimer-wrapper {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* override inline blue colour from OsTimer module settings */
#sp-events-strip .countdown_daycount {
    color: #7B2020 !important;
}

/* countdown sub-element spacing */
#sp-events-strip .countdown_title    { display: block; font-weight: 600; margin-bottom: 0.4rem; }
/* The module ships this date as #CCCCCC via its own inline <style>, which is
   1.6:1 on white. Opacity 0.6 was compounding it, so the colour carries the
   muting instead. */
#sp-events-strip .countdown_displaydate { display: block; font-size: 0.875rem; color: #7A9470; margin-bottom: 0.75rem; }

/* --- Footer: always aligned with Bootstrap container auto-margin --- */
#sp-bottom {
    padding-left: max(1rem, calc((100vw - 1140px) / 2 + 1.5rem));
    padding-right: max(1rem, calc((100vw - 1140px) / 2 + 1.5rem));
}
#sp-footer {
    padding-left: max(1rem, calc((100vw - 1140px) / 2 + 1.5rem));
    padding-right: max(1rem, calc((100vw - 1140px) / 2 + 1.5rem));
}
@media (min-width: 1400px) {
    #sp-bottom,
    #sp-footer {
        padding-left: max(1rem, calc((100vw - 1320px) / 2 + 1.5rem));
        padding-right: max(1rem, calc((100vw - 1320px) / 2 + 1.5rem));
    }
}

/* normalize calendar card-body padding to match Времедо module */
#sp-events-strip .card-body {
    padding: 1.5rem;
}

/* --- Homepage (itemid-101): article 8 title — centre and match module title convention --- */
body.itemid-101 #sp-main-body .article-header h1,
body.itemid-101 #sp-main-body .article-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}

/* --- Homepage: hide social share section (buttons + surrounding border lines) --- */
body.itemid-101 .article-ratings-social-share {
    display: none !important;
}

/* homepage: article hidden so no image-to-title gap needed; 3rem only on inner pages */
body:not(.itemid-101) #sp-component .sp-module-content-bottom {
    padding-top: 3rem;
}

/* --- Content-bottom: centre module titles, match article h1 size (browser default h3 is ~1.17em) --- */
#sp-component .sp-module-content-bottom .sp-module-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

/* --- Content-bottom: increase spacing between modules (UX: clear section separation) --- */
#sp-component .sp-module-content-bottom .sp-module {
    margin-bottom: 3rem;
}
#sp-component .sp-module-content-bottom .sp-module:last-child {
    margin-bottom: 0;
}

/* --- Footer copyright bar: reduce vertical padding --- */
#sp-footer .container-inner {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* ============================================================
   HERO SECTION (#sp-section-1)
   ============================================================ */

/* article 8 stays published (homepage route requires it); suppressed visually */
body.itemid-101 .article-details,
body.itemid-101 .sp-module-content-top {
    display: none;
}

/* hero now provides top visual weight — remove main-body top gap */
body.itemid-101 #sp-main-body {
    padding-top: 0;
}

/* full-width dark identity band */
/* hero section hidden on all pages except homepage */
body:not(.itemid-101) #sp-section-1 { display: none; }

body.itemid-101 #sp-section-1 {
    background-color: #0D2218;
    background-image: url('/images/templates/cassiopeia/antonia-glaskova-UzY0tFEpVDA-unsplash.webp');
    background-size: cover;
    background-position: center center;
    min-height: 90vh;
    position: relative;
    padding: 0;
    margin-bottom: 130px;
    display: flex;
    align-items: center;
}

/* The overlay sits on a pseudo-element instead of a second background layer, so
   the image path is declared once and the gradient can change direction per
   breakpoint without repeating it. ::after is already taken by the chevron. */
body.itemid-101 #sp-section-1::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to right,
        rgba(10, 26, 16, 0.80) 0%,
        rgba(10, 26, 16, 0.45) 45%,
        transparent 70%);
}

/* Flex centring rather than a large padding-top, which pinned content to the
   top third and dumped all leftover height below it on tall screens. The row
   needs an explicit width or it shrinks to fit. */
body.itemid-101 #sp-section-1 > .row {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

/* left padding mirrors #sp-bottom formula — aligns text with page grid */
.hero-inner {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-text { max-width: 48%; }
.hero-image { display: none; }

/* animated down-chevron: hints at scrollable content below */
body.itemid-101 #sp-section-1::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateX(-50%) rotate(45deg);
    animation: scroll-hint 1.5s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) rotate(45deg) translateY(-3px); }
    50% { opacity: 1; transform: translateX(-50%) rotate(45deg) translateY(4px); }
}
@keyframes scroll-hint-right {
    0%, 100% { opacity: 0.5; transform: rotate(45deg) translateY(-3px); }
    50% { opacity: 1; transform: rotate(45deg) translateY(4px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.125rem;
    color: #B8C8B0;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

/* The two CTAs carry equal importance and already trade the same colour pair,
   so they are sized as a matched set. Equal 1fr auto-columns under a
   max-content width make both track the wider label, so no fixed width needs
   maintaining when a label or font changes. The shorter label ends up with more
   horizontal padding than the longer one; that is the trade for matching outer
   widths and is intentional. */
.hero-cta {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0.75rem;
    width: max-content;
    max-width: 100%;
}

.hero-cta .btn {
    border-radius: 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-drag: none;
}

/* Rest colours also fill Bootstrap .btn hover/active variables. Those default
   to unset, so a tap was flashing transparent (or the other CTA colour). The
   red/green swap is desktop hover only ? phones treat :hover as a sticky tap. */

.btn-hero-primary {
    background: #7B2020;
    border-color: #7B2020;
    color: #fff !important;
    --bs-btn-color: #fff;
    --bs-btn-bg: #7B2020;
    --bs-btn-border-color: #7B2020;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #7B2020;
    --bs-btn-hover-border-color: #7B2020;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #7B2020;
    --bs-btn-active-border-color: #7B2020;
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.btn-hero-secondary {
    background: #0D2218;
    border-color: #0D2218;
    color: #fff !important;
    --bs-btn-color: #fff;
    --bs-btn-bg: #0D2218;
    --bs-btn-border-color: #0D2218;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0D2218;
    --bs-btn-hover-border-color: #0D2218;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0D2218;
    --bs-btn-active-border-color: #0D2218;
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

@media (hover: hover) and (pointer: fine) {
    .btn-hero-primary {
        --bs-btn-hover-bg: #0D2218;
        --bs-btn-hover-border-color: #0D2218;
    }
    .btn-hero-primary:hover {
        background: #0D2218;
        border-color: #0D2218;
    }
    .btn-hero-secondary {
        --bs-btn-hover-bg: #7B2020;
        --bs-btn-hover-border-color: #7B2020;
    }
    .btn-hero-secondary:hover {
        background: #7B2020;
        border-color: #7B2020;
    }
}

/* ============================================================
   CONTENT-BOTTOM: EDITORIAL LIST STYLE
   ============================================================ */

/* remove default ul bullets */
#sp-component .sp-module-content-bottom .mod-articles-items {
    padding-left: 0;
    list-style: none;
}

#sp-component .sp-module-content-bottom .mod-articles-items > li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #EDEDED;
}

#sp-component .sp-module-content-bottom .mod-articles-items > li:last-child {
    border-bottom: none;
}

/* restore list-style for nested ol/ul inside article content */
#sp-component .sp-module-content-bottom .mod-articles-items > li ol { list-style: decimal; padding-left: 1.5rem; }
#sp-component .sp-module-content-bottom .mod-articles-items > li ul { list-style: disc; padding-left: 1.5rem; }

/* article item title */
#sp-component .sp-module-content-bottom .mod-articles-item .article-header h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

#sp-component .sp-module-content-bottom .mod-articles-item .article-header h5 a {
    color: #1C1208;
    text-decoration: none;
}

#sp-component .sp-module-content-bottom .mod-articles-item .article-header h5 a:hover {
    color: #7B2020;
    text-decoration: underline;
}

/* metadata: single muted horizontal line (category · date) */
#sp-component .sp-module-content-bottom .mod-articles-item .article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    margin: 0;
    font-size: 0.8125rem;
    color: #7A9470;
}

#sp-component .sp-module-content-bottom .mod-articles-item .article-info dt {
    display: none;
}

#sp-component .sp-module-content-bottom .mod-articles-item .article-info dd {
    margin: 0;
}

#sp-component .sp-module-content-bottom .mod-articles-item .article-info a {
    color: #7A9470;
    text-decoration: none;
}

#sp-component .sp-module-content-bottom .mod-articles-item .article-info a:hover {
    color: #7B2020;
    text-decoration: underline;
}

#sp-left .sp-module,
#sp-right .sp-module {
    border: none;
    background-color: #EEF3EA;
}
#sp-left .sp-module-title { border-bottom: none; }
#sp-left .sp-module ul > li { border-bottom: none; }

#sp-left + #sp-component { padding-left: 1.5rem; }

/* =================================================================
   BUG FIXES
   ================================================================= */

/* Bug 1 — Empty events-strip creates ~480px blank gap on inner pages
   (modules 177/185 are homepage-only). :has() hides the row when
   no .sp-module descendants exist. */
#sp-events-strip:not(:has(.sp-module)) {
    display: none;
}

/* Bug 2 -- Sticky footer: prevent blank space below footer when page
   content is shorter than the viewport.

   Helix markup is .body-innerwrapper > header + main#sp-main
   (#sp-main-body, #sp-bottom, #sp-footer live inside #sp-main).
   flex:1 on #sp-main-body did nothing because it is not a flex
   child of .body-innerwrapper; leftover min-height space sat
   below the footer. Grow #sp-main, then grow #sp-main-body. */
html, body {
    min-height: 100vh;
    min-height: 100dvh;
}
.body-wrapper,
.body-innerwrapper {
    min-height: 100vh;
    min-height: 100dvh;
}
.body-innerwrapper {
    display: flex;
    flex-direction: column;
}
#sp-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}
#sp-main-body {
    flex: 1 0 auto;
}

/* Bug 3 — Breathing room above/below content on non-homepage pages.
   Overrides padding-top: 20px / padding-bottom: 0 set earlier. */
#sp-main-body {
    padding-top: 100px;
    padding-bottom: 100px;
}
/* Homepage: hero provides top weight; events-strip provides
   bottom gap — both paddings stay zero. */
body.itemid-101 #sp-main-body {
    padding-top: 0;
    padding-bottom: 0;
}

/* Bug 4.1 — Hero text column too narrow on tablet (hero visible
   at md 768-991px). max-width:48% → ~370px; widen to 75%. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title { font-size: 3rem; line-height: 1.1; }
    .hero-text { max-width: 75%; }
    .hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
    /* 90vh on a portrait tablet makes the hero about twice its content height. */
    body.itemid-101 #sp-section-1 { min-height: 75vh; }
}

/* Bug 4.2 — iPad landscape (992–1399px): base max-width:48% applies with no
   image competing for space. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .hero-text { max-width: 70%; }
    .hero-title { font-size: 3rem; line-height: 1.1; }
    /* The text column reaches ~70% of the viewport here, which is exactly where
       the desktop overlay has finished fading out. Push the fade further right
       so the end of the headline keeps a dark backing. */
    body.itemid-101 #sp-section-1::before {
        background: linear-gradient(to right,
            rgba(10, 26, 16, 0.80) 0%,
            rgba(10, 26, 16, 0.50) 55%,
            transparent 85%);
    }
}

/* Landscape below 1400px: 90vh sits under a ~60px header, so header+hero
   ate 96–98% of the screen. 75vh was already used for tablet portrait;
   extend it to landscape in this range (iPad landscape, 1366×768 laptops). */
@media (max-width: 1399.98px) and (orientation: landscape) {
    body.itemid-101 #sp-section-1 { min-height: 75vh; }
    /* Text column is 70–75% on the left; keep the scroll cue in the empty photo. */
    body.itemid-101 #sp-section-1::after {
        left: auto;
        right: 2rem;
        transform: rotate(45deg);
        animation-name: scroll-hint-right;
    }
}

/* Below 992px the text column widens past the point where the left-to-right
   overlay has already faded out, leaving white type over bare photo. Swap to a
   vertical fade that covers the full width. */
@media (max-width: 991.98px) {
    body.itemid-101 #sp-section-1::before {
        background: linear-gradient(to bottom,
            rgba(10, 26, 16, 0.78) 0%,
            rgba(10, 26, 16, 0.55) 55%,
            rgba(10, 26, 16, 0.30) 100%);
    }
}

/* Bug 4.3 — No vertical gap when sidebar stacks above component
   on mobile (Bootstrap collapses col-3/col-9 below 992px). */
@media (max-width: 991.98px) {
    #sp-left + #sp-component {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 2rem;
    }
}

/* Bug 4.4 — Events strip inner-container side padding too wide
   on tablet/mobile (desktop: padding: 4rem 6rem). */
@media (max-width: 991.98px) {
    #sp-events-strip .container {
        padding: 2.5rem 30px;
    }
}
@media (max-width: 575.98px) {
    #sp-events-strip .container {
        padding: 1.5rem 30px;
    }
}


/* Hero mobile — the hero has no Helix hide classes, it renders at every width. */
@media (max-width: 767.98px) {
    body.itemid-101 #sp-section-1 {
        min-height: 70vh;
        margin-bottom: 60px;
    }
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    .hero-tagline {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    .hero-text {
        max-width: 92%;
    }
    .hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Under ~400px the two CTAs no longer fit on one line, so the grid flips to a
   single column. They stay equal width, as they are side by side. */
@media (max-width: 400px) {
    .hero-cta {
        grid-auto-flow: row;
        width: 100%;
        max-width: 16rem;
    }
}

/* Short landscape phones: 75vh is a minimum, not a cap. At 844×390 the 3rem
   title made the hero taller than the screen. Cap to the space below the
   header and use the mobile type size so CTAs stay on-screen. */
@media (max-width: 1399.98px) and (orientation: landscape) and (max-height: 500px) {
    body.itemid-101 #sp-section-1 {
        min-height: 0;
        max-height: calc(100vh - 60px);
        max-height: calc(100dvh - 60px);
    }
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    .hero-tagline {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
    .hero-inner {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
}

/* Bug 3 mobile — 100px top/bottom instead of 130px/7.5rem on tablet and below. */
@media (max-width: 991.98px) {
    #sp-main-body {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    body.itemid-101 #sp-main-body {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Hide main menu from off-canvas panel when header nav is visible */
@media (min-width: 1400px) {
    .offcanvas-mainmenu { display: none; }
}

/* Tablet: align events strip outer edge with Bootstrap container auto-margin */
@media (min-width: 768px) and (max-width: 991.98px) {
    #sp-events-strip {
        padding-left: max(1rem, calc((100vw - 720px) / 2 + 15px));
        padding-right: max(1rem, calc((100vw - 720px) / 2 + 15px));
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    #sp-events-strip {
        padding-left: max(1rem, calc((100vw - 960px) / 2 + 15px));
        padding-right: max(1rem, calc((100vw - 960px) / 2 + 15px));
    }
}

/* Login page: constrain form width and match palette */
.com-users-login {
    max-width: 480px;
    margin: 0 auto;
}
.com-users-login .btn-primary {
    background-color: #7B2020;
    border-color: #7B2020;
    color: #fff;
}
.com-users-login .btn-primary:hover {
    background-color: #A83230;
    border-color: #A83230;
}

/* CB login page: constrain form width (com_comprofiler login view) */
form.cbLoginForm {
    max-width: 400px;
    margin: 0 auto;
}

/* CB login form: show labels above inputs, increase spacing */
form.cbLoginForm .input-group {
    flex-wrap: wrap;
}
form.cbLoginForm .input-group label.visually-hidden {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 0 0.35rem 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}
form.cbLoginForm .form-group {
    margin-bottom: 1.5rem;
}
form.cbLoginForm .mod-login__submit .btn-primary {
    width: 100%;
    padding: 0.65rem 1rem;
}

/* CB registration page: constrain width, red button, hide branding */
.cbRegistration {
    max-width: 480px;
    margin: 0 auto;
}
.cbRegistrationSubmit {
    background-color: #7B2020 !important;
    border-color: #7B2020 !important;
    color: #fff !important;
    padding: 0.5rem 2rem;
}
.cbRegistrationSubmit:hover {
    background-color: #A83230 !important;
    border-color: #A83230 !important;
}
.cbPoweredBy { display: none; }

/* com_users reset & remind pages: constrain width and red button */
.com-users-reset,
.com-users-remind {
    max-width: 400px;
    margin: 0 auto;
}
.com-users-reset .controls,
.com-users-remind .controls {
    margin-left: 0;
    width: 100%;
}
.com-users-reset .btn-primary,
.com-users-remind .btn-primary {
    padding: 0.65rem 2rem;
}

/* reset & remind: vertical label-above-input layout matching login form style */
.com-users-reset__form .control-label,
.com-users-remind__form .control-label {
    float: none;
    width: auto;
    text-align: left;
    padding-top: 0;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}
.com-users-reset__form .control-label label,
.com-users-remind__form .control-label label {
    display: block;
    width: 100%;
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}
.com-users-reset__form .controls,
.com-users-remind__form .controls {
    margin-left: 0;
}
.com-users-reset__form .control-group,
.com-users-remind__form .control-group {
    margin-bottom: 1.5rem;
}
.com-users-reset__form .form-control,
.com-users-remind__form .form-control {
    width: 100%;
}

/* CB registration: vertical label-above-input layout */
.cbRegistration .form-group.row {
    flex-direction: column;
}
.cbRegistration .col-form-label {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: left;
    padding-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}
.cbRegistration .cb_field {
    flex: 0 0 100%;
    max-width: 100%;
}

/* registration submit: remove horizontal-layout offset after switching to vertical */
.cbRegistration .cbRegistrationButtons .offset-sm-3 {
    margin-left: 0;
}

/* registration header: replace border with required-fields note */
.cbRegistrationHeader {
    border-bottom: none !important;
}
.cbRegistrationHeader::after {
    content: none;
}
.cbRegistrationHeader .cb-required-note {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}
.cbRegistrationHeader .cb-required-note .fa-star {
    margin-right: 0.3rem;
}

.com-users-reset .vnt-required-note,
.com-users-remind .vnt-required-note {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.75rem;
}
.com-users-reset .vnt-required-note .fa-star,
.com-users-remind .vnt-required-note .fa-star {
    margin-right: 0.3rem;
}
label.required .fa-star.text-muted {
    margin-left: 0.25em;
}


/* CB registration: mobile fixes */
@media (max-width: 575.98px) {
    .cbRegistrationSubmit {
        display: inline-block !important;
        width: auto !important;
    }
    .cbRegistration .form-control {
        font-size: 1rem;
    }
}


/* Off-canvas profile dropdown fixes */

/* Hide leftover CB login-module dump in the Helix profile dropdown */
.sp-profile-dropdown .custom_user_login_menu { display: none; }

.offcanvas-menu .offcanvas-inner .sp-sign-in .fa,
.offcanvas-menu .offcanvas-inner .sp-sign-in .far,
.offcanvas-menu .offcanvas-inner .sp-sign-in .fas,
.offcanvas-menu .offcanvas-inner .sp-sign-in .arrow-icon {
    color: inherit;
}

/* Preset paints all .offcanvas-inner a:hover as body-link red (#7B2020).
   Menu items already override to white; the account icon is not in ul.menu. */
.offcanvas-menu .offcanvas-inner .sp-sign-in:hover,
.offcanvas-menu .offcanvas-inner .sp-sign-in:focus,
.offcanvas-menu .offcanvas-inner .sp-sign-in:active {
    color: #FFFFFF;
}

/* Disable CSS :hover show; click-toggle in custom.js handles open/close */
.offcanvas-menu .sp-profile-wrapper:hover .sp-profile-dropdown {
    display: none !important;
}

/* White dropdown — matches main header, solid opaque, above menu list */
.offcanvas-menu .sp-profile-dropdown {
    background: #fff !important;
    border: 1px solid #EDEDED !important;
    z-index: 10001 !important;
}
.offcanvas-menu .sp-profile-dropdown > li:not(:last-child) {
    border-bottom: 1px solid #EDEDED !important;
}
.offcanvas-menu .sp-profile-dropdown li a {
    color: #333 !important;
}
.offcanvas-menu .sp-profile-dropdown li a:hover {
    color: #7B2020 !important;
}

/* ===== Third-party credit lines ===== 2026-08-19 =====
   Update-safe: no extension files are modified. If an extension changes its
   markup these rules stop matching and the credit reappears, so re-check after
   major Kunena or Phoca Gallery updates. */

/* Kunena "Създадено с Kunena форум".
   Kunena injects `.layout#kunena + div { display: block !important }` on every
   forum page specifically to defeat hiding, so this has to out-specify that
   rule rather than merely follow it in source order. */
body .layout#kunena + div,
body #kunena + div {
    display: none !important;
}

/* Phoca Gallery + Phoca Download "Powered by Phoca …".
   Hardcoded with no class/id. Match the wrapper via the outbound link.
   Do not use bare `.ph-cb + div` — that also selects the gallery listing. */
#phocagallery div:has(> a[href^="https://www.phoca.cz"]),
.ph-cb + div:has(> a[href^="https://www.phoca.cz/phocagallery"]),
.pd-cb + div:has(> a[href^="https://www.phoca.cz/phocadownload"]),
#sp-component div:has(> a[href^="https://www.phoca.cz/phocagallery"]),
#sp-component div:has(> a[href^="https://www.phoca.cz/phocadownload"]) {
    display: none !important;
}

/* SchuWeb Sitemap "Powered by SchuWeb Sitemap" */
#SchuWeb_Sitemap div:has(> a[href^="https://extensions.schultschik.com"]) {
    display: none !important;
}

/* iCagenda "Задвижвано от iCagenda".
   icsys=core always echoes the footer. Emptying ICAGENDA_THANK_YOU_NOT_TO_REMOVE
   falls back to hardcoded "Powered by", so hide the wrapper via the outbound link. */
#icagenda + div:has(> p > a[href*="icagenda.com"]),
#sp-component div:has(> p > a[href^="https://www.icagenda.com"]),
#sp-component div:has(> p > a[href^="http://icagenda.joomlic.com"]) {
    display: none !important;
}

/* ============================================================
   Third-party colours pulled onto the palette
   Kunena, Phoca and the countdown/calendar modules ship their own
   colours that no Helix preset can reach. These override them.
   ============================================================ */

/* Off-canvas close control reuses .burger-icon, so Helix's hardcoded #000
   applies here too - black bars on the #0D2218 panel, invisible. */
.close-offcanvas .burger-icon > span {
    background-color: #B8C8B0;
}

.close-offcanvas:hover .burger-icon > span,
.close-offcanvas:focus .burger-icon > span {
    background-color: #FFFFFF;
}

/* Helix main.js focuses .close-offcanvas on open (and #offcanvas-toggler on
   close). Windows/Chrome then draw a default blue :focus box around the X. */
#offcanvas-toggler:focus,
.close-offcanvas:focus {
    outline: none;
}
#offcanvas-toggler:focus-visible,
.close-offcanvas:focus-visible {
    outline: 2px solid #B8C8B0;
    outline-offset: 4px;
}
html.vnt-pointer-nav #offcanvas-toggler:focus-visible,
html.vnt-pointer-nav .close-offcanvas:focus-visible {
    outline: none;
}

/* Off-canvas menu separators are rgba(32,31,31,.1) in template.css, a dark
   line on a dark panel. Selector mirrors Helix's so it wins on order rather
   than !important. Derived from the menu text colour. */
.offcanvas-menu.border-menu .offcanvas-inner ul.menu > li {
    border-bottom-color: rgba(184, 200, 176, 0.15);
}

/* Off-canvas has no hover affordance and is already 18px, so top-level items
   take semibold. 700 at this size is too heavy for a list of ~11 links.
   Nested items stay 400 so the parent/child hierarchy remains. */
.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span {
    font-weight: 600;
}

/* Kunena flags admin usernames in pure #FF0000. */
.kwho-admin,
.kwho-admin a,
.kwho-globalmod,
.kwho-globalmod a,
.kwho-moderator,
.kwho-moderator a {
    color: #7B2020 !important;
}

/* Phoca thumbnail frames ship #F0F0F0. */
.pg-item-box,
.pg-box3-1 {
    border-color: #EDEDED;
}

/* Bootstrap form controls ship their own neutrals: #CED4DA borders, #212529
   and #495057 text. */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    color: #1C1208;
    border-color: #DAE7E1;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
select:focus {
    border-color: #B8C8B0;
}

/* Sidebar modules use #F3F3F3 for their frame, title rule and list dividers
   (template.css). Invisible against the #EEF3EA panel behind them. */
#sp-left .sp-module,
#sp-right .sp-module,
#sp-left .sp-module .sp-module-title,
#sp-right .sp-module .sp-module-title,
#sp-left .sp-module ul > li,
#sp-right .sp-module ul > li,
.related-article-list-container .related-article-title {
    border-color: #DAE7E1;
}

/* Breadcrumb bar: same sage fill as sidebar modules and events strip.
   Overrides Bootstrap .breadcrumb { background-color: #e9ecef }. */
#sp-component .breadcrumb {
    background-color: #EEF3EA;
}

/* Contact page already has "Връзка с нас"; drop the duplicate form headings. */
.com-contact.contact > h2,
#contact-form legend {
    display: none;
}

/* Contact: one column, cap width so fields match expected input (not the Helix column). */
#contact-form {
    max-width: 40rem;
}

/* Contact: checkbox + label on one row. Label is not a mouse target. */
#contact-form .control-group:has(#jform_contact_email_copy) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 0.45rem;
}
#contact-form .control-group:has(#jform_contact_email_copy) > label {
    order: 2;
    display: inline;
    margin: 0;
    padding: 0;
    width: auto;
    float: none;
    line-height: 1.2;
    pointer-events: none;
}
#contact-form .control-group:has(#jform_contact_email_copy) .form-check {
    order: 1;
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
    min-height: 0;
}
#contact-form .control-group:has(#jform_contact_email_copy) .form-check-input {
    float: none;
    position: static;
    margin: 0;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* Shared form labels: match CB login */
form.cbLoginForm .input-group label.visually-hidden,
.com-users-reset__form .control-label,
.com-users-reset__form .control-label label,
.com-users-remind__form .control-label,
.com-users-remind__form .control-label label,
.cbRegistration .col-form-label,
#contact-form .control-group > label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}


/* Off-canvas last item was flush with the panel bottom on iPad landscape.
   Helix sizes .offcanvas-inner to calc(100vh - 60px) as if the drawer started
   below the header. This style has a ~40px close-button bar, then inner, and
   the drawer is top:0 / 100% tall — so that 60px of slack sits below Safari's
   visual viewport and the last link lands on the edge. Flex the drawer so
   inner fills the leftover height and scrolls; add a spacer because iOS
   ignores padding-bottom on overflow:auto when computing scroll height. */
.offcanvas-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}
.offcanvas-menu .offcanvas-inner {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
}
.offcanvas-menu .offcanvas-inner::after {
    content: "";
    display: block;
    height: 1.5rem;
    pointer-events: none;
}

/* iPad landscape (~1180x820, Safari chrome ~700–780 tall): 11 bordered items
   at Helix's 15px padding fill the drawer. Tighten so Форум is not flush. */
@media (max-width: 1399.98px) and (orientation: landscape) and (max-height: 850px) {
    .offcanvas-menu .offcanvas-inner .header-modules {
        margin-bottom: 0.5rem !important;
    }
    .offcanvas-menu.border-menu .offcanvas-inner ul.menu > li > a,
    .offcanvas-menu.border-menu .offcanvas-inner ul.menu > li > span,
    .offcanvas-menu.border-menu .offcanvas-inner ul.menu > li > .nav-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}

/* iCagenda draws 4–6 week rows. Switching months changed the calendar
   card height and, with align-items:center on the events strip, shifted
   Време до as well. Always reserve six 49px rows plus the 32px weekday header. */
#sp-events-strip .ic-calendar-main {
    min-height: calc(2rem + 6 * 3.0625rem);
}
#sp-events-strip .ic-calendar-row {
    min-height: 3.0625rem;
    flex: 0 0 auto;
}
/* iCagenda event view: theme pack uses padding:1% on .ic-info (~9px). */
.ic-event-view .ic-info {
    padding: 1.5rem;
}

/* --- Weblinks (Приятели / Партньори): keep mixed logo sizes in check ---
   Images are stored at native pixels (one rug is 1200x1600). Live Cassiopeia
   capped width at 500px; portraits still ate the page vertically. Cap both
   axes so every entry is a thumbnail, not a full-bleed photo. */
.com-weblinks-category__items .item-image {
    margin: 0.75rem 0 1rem;
    max-width: 100%;
}
.com-weblinks-category__items .item-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 240px);
    max-height: 160px;
    object-fit: contain;
}

/* Title vs hits: original badge size. On phones the count sits under
   the name so long titles cannot collide with Joomla's float-end. */
.com-weblinks-category__items .list-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.35rem;
}
.com-weblinks-category__items .list-title > .icon-globe,
.com-weblinks-category__items .list-title > img {
    flex: 0 0 auto;
}
.com-weblinks-category__items .list-title > a {
    flex: 1 1 0;
    min-width: 0;
}
.com-weblinks-category__items .list-hits {
    float: none !important;
    flex: 0 0 auto;
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}
.com-weblinks-category__items .list-title > .mt-2 {
    flex: 1 1 100%;
    width: 100%;
}
@media (max-width: 767.98px) {
    .com-weblinks-category__items .list-title > a {
        flex: 1 1 calc(100% - 2.5rem);
    }
    .com-weblinks-category__items .list-hits {
        margin-left: 1.65rem;
        margin-top: 0.25rem;
    }
}

/* Listing heading row: title + upload action (content column, not left) */
#mod-custom146, #mod-custom194, #mod-custom195, #mod-custom196 { margin: 0; }
body.itemid-744:has(.vnt-heading-actions) h1.ic-header-title { display: none; }
.vnt-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: nowrap;
    margin: 0 0 1.25rem;
}
.vnt-heading-actions__title {
    margin: 0 !important;
    padding: 0;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.15;
}
.vnt-heading-actions__btn {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
    align-self: center;
}

/* === VNT Phoca UCP chrome 2026-08-22 (revert: delete this block + html/com_phocagallery/user/) === */
#phocagallery-ucp.pg-ucp-view {
    font-size: inherit;
}
#phocagallery-ucp .phTabs {
    margin-top: 0;
}
#phocagallery-ucp .phTabs ul.phTabsUl {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    box-sizing: border-box;
    float: none;
    padding: 0;
    margin: 0 0 0.25rem;
    list-style: none;
    border-bottom: 1px solid #DAE7E1;
}
#phocagallery-ucp .phTabs ul.phTabsUl::after {
    content: none;
}
#phocagallery-ucp .phTabs ul.phTabsUl li.phTabsLi {
    float: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    list-style: none;
}
#phocagallery-ucp .phTabs ul.phTabsUl li.phTabsLi a.phTabsA {
    display: block;
    background: transparent;
    color: #1C1208;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin: 0 0 -1px;
    padding: 0.7rem 1rem;
    text-decoration: none;
}
#phocagallery-ucp .phTabs ul.phTabsUl li.phTabsLi a.phTabsA:hover {
    color: #7B2020;
    background: transparent;
}
#phocagallery-ucp .phTabs ul.phTabsUl li.phTabsLi a.phTabsA.active {
    background: transparent;
    color: #7B2020;
    border-bottom-color: #7B2020;
    margin-bottom: -1px;
    font-weight: 600;
}
#phocagallery-ucp .phTabsContainer {
    clear: both;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 1.25rem 0 0;
    background: transparent;
}

/* Duplicate of the tab title (keep Edit / Create / Upload headings) */
#phocagallery-user > h4:first-of-type,
#phocagallery-upload > h4:has(+ div.filter-search),
#phocagallery-subcategory-creating > h4:has(+ div.filter-search) {
    display: none;
}

#phocagallery-subcategory-creating > h4,
#phocagallery-upload > h4,
#phocagallery-category-creating > h4,
#phocagallery-user > h4 {
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #DAE7E1;
    font-size: 1.125rem;
}
#phocagallery-subcategory-creating > h4:first-of-type,
#phocagallery-upload > h4:first-of-type,
#phocagallery-category-creating > h4:first-of-type,
#phocagallery-user > h4:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#phocagallery-ucp table:not(.ph-adminlist),
#phocagallery-ucp table:not(.ph-adminlist) tbody,
#phocagallery-ucp table:not(.ph-adminlist) tr {
    display: block;
    width: 100%;
    max-width: 40rem;
    border: 0;
}
#phocagallery-ucp table:not(.ph-adminlist) {
    margin: 0 0 1rem;
}
#phocagallery-ucp table:not(.ph-adminlist) td,
#phocagallery-ucp table:not(.ph-adminlist) tr td:first-child {
    display: block;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    border: 0;
    padding: 0.2rem 0;
    vertical-align: top;
}
#phocagallery-ucp table:not(.ph-adminlist) tr td:first-child {
    padding-top: 0.9rem;
    padding-bottom: 0.15rem;
    color: #1C1208;
    font-weight: 600;
    font-size: 0.9rem;
}
#phocagallery-ucp table:not(.ph-adminlist) tr:first-child td:first-child {
    padding-top: 0;
}
#phocagallery-ucp table:not(.ph-adminlist) .form-control,
#phocagallery-ucp table:not(.ph-adminlist) textarea,
#phocagallery-ucp table:not(.ph-adminlist) input[type="text"],
#phocagallery-ucp table:not(.ph-adminlist) input[type="file"] {
    width: 100%;
    max-width: 100%;
}
#phocagallery-ucp table:not(.ph-adminlist) textarea {
    min-height: 10rem;
}
#phocagallery-ucp table:not(.ph-adminlist) td[align="right"] {
    text-align: left;
}
#phocagallery-ucp table:not(.ph-adminlist) .btn {
    margin-top: 0.35rem;
}
#phocagallery-ucp input.comment-input2,
#phocagallery-ucp table:not(.ph-adminlist) input.comment-input2 {
    width: 4.5rem !important;
    max-width: 4.5rem;
    display: inline-block;
    margin: 0 0.25rem;
}

/* Main category: form is the source of truth — drop the duplicate read-only copy */
#phocagallery-category-creating > h4:first-of-type,
#phocagallery-category-creating > table {
    display: none;
}
#phocagallery-category-creating > h4:nth-of-type(2) {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

#phocagallery-ucp .filter-search.pull-left {
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin: 0 0 0.5rem;
}
#phocagallery-ucp .ph-adminlist-select-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
    margin: 0 0 1rem;
    clear: both;
}
#phocagallery-ucp .ph-adminlist-select-row .form-select,
#phocagallery-ucp .ph-adminlist-select-row select {
    width: auto;
    max-width: min(18rem, 100%);
    flex: 0 1 18rem;
    display: inline-block;
}
#phocagallery-ucp .tab-pane,
#phocagallery-ucp .tab-content,
#phocagallery-ucp .phTabsContainer {
    max-width: 100%;
    overflow-x: auto;
}
#phocagallery-ucp table.ph-adminlist {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    table-layout: fixed;
}
#phocagallery-ucp table.ph-adminlist th {
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal !important;
    hyphens: auto;
    line-height: 1.25;
    font-size: 0.8125rem;
    font-weight: 600;
    vertical-align: bottom;
}
#phocagallery-ucp table.ph-adminlist th a {
    white-space: normal;
}
#phocagallery-ucp table.ph-adminlist td {
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: middle;
}
#phocagallery-ucp table.ph-adminlist td.order,
#phocagallery-ucp table.ph-adminlist td.order * {
    overflow-wrap: normal;
    word-break: normal;
}
#phocagallery-ucp table.ph-adminlist td.order {
    white-space: nowrap;
}
#phocagallery-ucp table.ph-adminlist td.order .form-control,
#phocagallery-ucp table.ph-adminlist td.order input[name="order[]"] {
    width: 2.5rem;
    min-width: 0;
    display: inline-block;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

/* Images: #, thumb, title, published, delete, approved, order, category, id */
#phocagallery-upload table.ph-adminlist th:nth-child(1),
#phocagallery-upload table.ph-adminlist td:nth-child(1) { width: 3%; }
#phocagallery-upload table.ph-adminlist th:nth-child(2),
#phocagallery-upload table.ph-adminlist td:nth-child(2) { width: 8%; }
#phocagallery-upload table.ph-adminlist td:nth-child(2) img {
    max-width: 100%;
    height: auto;
}
#phocagallery-upload table.ph-adminlist th:nth-child(3),
#phocagallery-upload table.ph-adminlist td:nth-child(3) { width: 33%; text-align: left; }
#phocagallery-upload table.ph-adminlist th:nth-child(4),
#phocagallery-upload table.ph-adminlist td:nth-child(4) { width: 8%; }
#phocagallery-upload table.ph-adminlist th:nth-child(5),
#phocagallery-upload table.ph-adminlist td:nth-child(5) { width: 8%; }
#phocagallery-upload table.ph-adminlist th:nth-child(6),
#phocagallery-upload table.ph-adminlist td:nth-child(6) { width: 8%; }
#phocagallery-upload table.ph-adminlist th:nth-child(7),
#phocagallery-upload table.ph-adminlist td:nth-child(7) { width: 9%; }
#phocagallery-upload table.ph-adminlist th:nth-child(8),
#phocagallery-upload table.ph-adminlist td:nth-child(8) { width: 18%; text-align: left; }
#phocagallery-upload table.ph-adminlist th:nth-child(9),
#phocagallery-upload table.ph-adminlist td:nth-child(9) { width: 5%; }

/* Subcategories: #, title, published, delete, approved, order, id */
#phocagallery-subcategory-creating table.ph-adminlist th:nth-child(1),
#phocagallery-subcategory-creating table.ph-adminlist td:nth-child(1) { width: 4%; }
#phocagallery-subcategory-creating table.ph-adminlist th:nth-child(2),
#phocagallery-subcategory-creating table.ph-adminlist td:nth-child(2) { width: 55%; text-align: left; }
#phocagallery-subcategory-creating table.ph-adminlist th:nth-child(3),
#phocagallery-subcategory-creating table.ph-adminlist td:nth-child(3) { width: 9%; }
#phocagallery-subcategory-creating table.ph-adminlist th:nth-child(4),
#phocagallery-subcategory-creating table.ph-adminlist td:nth-child(4) { width: 9%; }
#phocagallery-subcategory-creating table.ph-adminlist th:nth-child(5),
#phocagallery-subcategory-creating table.ph-adminlist td:nth-child(5) { width: 9%; }
#phocagallery-subcategory-creating table.ph-adminlist th:nth-child(6),
#phocagallery-subcategory-creating table.ph-adminlist td:nth-child(6) { width: 9%; }
#phocagallery-subcategory-creating table.ph-adminlist th:nth-child(7),
#phocagallery-subcategory-creating table.ph-adminlist td:nth-child(7) { width: 5%; }
@media only screen and (max-width: 500px) {
    #phocagallery-ucp.pg-ucp-view {
        font-size: inherit;
    }
}
/* === end VNT Phoca UCP chrome === */
/* Gallery RSS sits with Подреждане / Покажи, not under Добави снимка */
#phocagallery form[name="adminForm"] > .pagination.pagination-centered {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.75rem;
}
#phocagallery form[name="adminForm"] > .pagination.pagination-centered .pg-top-icons {
    float: none;
    display: inline-flex;
    align-items: center;
    margin: 0 0.25rem 0 0;
}
#phocagallery form[name="adminForm"] > .pagination.pagination-centered .pg-top-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    line-height: 1;
}
#phocagallery form[name="adminForm"] > .pagination.pagination-centered .pg-top-icons svg {
    width: 1.25rem;
    height: 1.25rem;
}


/* AllVideoShare mobile: one card per row (Phoca / YouTube), not avs-col-xs-2 50%. */
@media (max-width: 767.98px) {
    #avs-categories .avs-col,
    #avs-category .avs-col,
    #avs-videos .avs-col,
    #avs-search .avs-col,
    #avs-video .avs-related .avs-col,
    #avs-video .avs-related .avs-grid-item {
        width: 100%;
        max-width: 100%;
    }

    #avs-categories .avs-row,
    #avs-category .avs-row,
    #avs-videos .avs-row,
    #avs-search .avs-row,
    #avs-video .avs-related .avs-row {
        margin-left: 0;
        margin-right: 0;
    }

    #avs-categories .avs-card,
    #avs-category .avs-card,
    #avs-videos .avs-card,
    #avs-search .avs-card,
    #avs-video .avs-related .avs-card {
        margin-bottom: 1rem;
        padding: 0;
        border: 1px solid #dae7e1;
        border-radius: 4px;
        overflow: hidden;
    }

    #avs-categories .avs-card-body,
    #avs-category .avs-card-body,
    #avs-videos .avs-card-body,
    #avs-search .avs-card-body,
    #avs-video .avs-related .avs-card-body {
        padding: 0.75rem 0.85rem 1rem;
        margin-top: 0 !important;
    }

    #avs-categories .avs-title {
        font-size: 1.125rem;
        font-weight: 600;
    }

    #avs-category .avs-title,
    #avs-videos .avs-title,
    #avs-search .avs-title,
    #avs-video .avs-related .avs-title {
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.35;
    }

    #avs-category .avs-excerpt,
    #avs-videos .avs-excerpt,
    #avs-search .avs-excerpt,
    #avs-video .avs-related .avs-excerpt {
        display: none;
    }

    #avs-category .avs-svg-icon-play,
    #avs-videos .avs-svg-icon-play,
    #avs-search .avs-svg-icon-play,
    #avs-video .avs-related .avs-svg-icon-play {
        width: 48px;
        height: 48px;
    }
}

/* Kunena: date and #post-id were overlapping (absolute #id on the right). */
#kunena.layout .ktopic-detail-wrap .kmsg-item-body .kmsg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
#kunena.layout .ktopic-detail-wrap .kmsg-item-body .kmsg-header > a {
    position: static !important;
    right: auto !important;
    flex-shrink: 0;
}

/* Kunena quick reply: align subscribe, BBCode note, and editor link. */
#kunena.layout .kreply form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
#kunena.layout .kreply .form-group,
#kunena.layout .kreply .modal-footer,
#kunena.layout .kreply .clearfix,
#kunena.layout .kreply .card-body {
    flex: 1 1 100%;
}
#kunena.layout .kreply .clearfix {
    display: none;
}
#kunena.layout .kreply .control-group:has(#mesubscribe) {
    flex: 1 1 18rem;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 0;
}
#kunena.layout .kreply #mesubscribe {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#kunena.layout .kreply #mesubscribe input {
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
}
#kunena.layout .kreply #mesubscribe label.control-label {
    margin: 0;
    padding: 0 !important;
    line-height: 1.35;
}
#kunena.layout .kreply .kgoto-editor {
    flex: 1 1 16rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.5rem 0;
    min-width: 0;
}
#kunena.layout .kreply .kgoto-editor small {
    line-height: 1.35;
    white-space: nowrap;
}
#kunena.layout .kreply .kgoto-editor .gotoeditor,
#kunena.layout .kreply .kgoto-editor .float-end {
    float: none !important;
    margin: 0;
    white-space: nowrap;
}


/* --- uddeIM compose: To + user-list fields compact, left-aligned --- */
/* Helix sets input/select to width:100%; the recipient table is 100% with
   a right-aligned second cell, so both fields stretch edge to edge.
   The table is inside form[name=sendeform], not a direct child of #uddeim-writeform. */
#uddeim-writeform form[name="sendeform"] > table:first-of-type,
#uddeim-writeform > table {
    width: auto !important;
    max-width: 100%;
}
#uddeim-writeform form[name="sendeform"] > table:first-of-type td,
#uddeim-writeform > table td {
    width: auto !important;
    text-align: left !important;
    vertical-align: top;
    padding: 0 1.5rem 0.35rem 0;
    line-height: 1.4;
}
#uddeim-writeform #input_to_name,
#uddeim-writeform form[name="sendeform"] > table:first-of-type select,
#uddeim-writeform > table select {
    display: inline-block !important;
    width: auto !important;
    min-width: 10rem;
    max-width: 16rem;
    height: calc(2.25rem + 2px);
    box-sizing: border-box;
    vertical-align: middle;
}
@media (max-width: 575.98px) {
    #uddeim-writeform form[name="sendeform"] > table:first-of-type,
    #uddeim-writeform form[name="sendeform"] > table:first-of-type tbody,
    #uddeim-writeform form[name="sendeform"] > table:first-of-type tr,
    #uddeim-writeform form[name="sendeform"] > table:first-of-type td,
    #uddeim-writeform > table,
    #uddeim-writeform > table tbody,
    #uddeim-writeform > table tr,
    #uddeim-writeform > table td {
        display: block;
        width: 100% !important;
        padding-right: 0;
    }
    #uddeim-writeform #input_to_name,
    #uddeim-writeform form[name="sendeform"] > table:first-of-type select,
    #uddeim-writeform > table select {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
    }
}

/* Kunena moderate/edit: Helix img{display:block;max-width:100%}
   enlarges smileys in the message preview and stretches icon links. */
#kunena .khistory {
  font-size: 1rem;
  line-height: 1.55;
  font-variant-emoji: text;
}
#kunena .khistory img {
  display: inline-block;
  max-width: min(100%, 36rem);
  height: auto;
}
#kunena .khistory img[src*="emoticons"],
#kunena .khistory img[src*="smil"],
#kunena .khistory img.sceditor-smiley,
#kunena img.sceditor-smiley {
  display: inline !important;
  width: auto !important;
  height: 1.2em !important;
  max-width: 1.5em !important;
  max-height: 1.2em !important;
  vertical-align: text-bottom;
}
#kunena .kmoderate-topicIcons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
#kunena .kmoderate-topicIcons input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
#kunena .kmoderate-topicIcons label {
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 0.15rem;
}
#kunena .kmoderate-topicIcons svg,
#kunena .kmoderate-topicIcons img {
  display: block;
  width: 1.5em;
  height: 1.5em;
  max-width: 1.5em;
  max-height: 1.5em;
}
#kunena form#myform .kmoderate-actions,
#kunena form#myform .control-group.center,
#kunena .kactions-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}
#kunena form#myform .kmoderate-actions .btn,
#kunena form#myform .control-group.center .btn,
#kunena .kactions-wrap > .btn {
  width: auto !important;
  max-width: 100%;
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}
#kunena .btn svg,
#kunena .btn img,
#kunena a.btn svg,
#kunena a.btn img {
  display: inline-block !important;
  width: 1em;
  height: 1em;
  max-width: 1em;
  max-height: 1em;
  flex: 0 0 auto;
}

/* Guests: hide heading Add buttons; keep section titles */
body.user-guest .vnt-heading-actions__btn {
    display: none !important;
}

/* Unread PMs: number on the right of ????????? only */
.sp-profile-wrapper .sp-profile-dropdown {
    min-width: 12.5rem;
}
.sp-profile-wrapper .sp-profile-dropdown a[href*="/messages"],
.sp-profile-wrapper .sp-profile-dropdown a[href*="com_uddeim"] {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    white-space: nowrap;
}
.vnt-msg-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 1.2em;
    height: 1.2em;
    margin-left: 0.45em;
    padding: 0 0.3em;
    border-radius: 999px;
    background: #c45c4a;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1;
}

/* Homepage latest gallery thumbs (mod_vnt_phoca_latest) */
.vnt-phoca-latest {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}
.vnt-phoca-latest__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.vnt-phoca-latest__item:hover,
.vnt-phoca-latest__item:focus {
    color: inherit;
    text-decoration: none;
}
.vnt-phoca-latest__frame {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #EEF3EA;
    border: 1px solid #EDEDED;
}
.vnt-phoca-latest__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s;
}
.vnt-phoca-latest__item:hover img,
.vnt-phoca-latest__item:focus img {
    opacity: 0.88;
}
.vnt-phoca-latest__album {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1C1208;
}
.vnt-phoca-latest__item:hover .vnt-phoca-latest__album,
.vnt-phoca-latest__item:focus .vnt-phoca-latest__album {
    color: #7B2020;
}
.vnt-phoca-latest__more {
    margin: 1rem 0 0;
    text-align: right;
    font-size: 0.875rem;
}
.vnt-phoca-latest__more a {
    color: #7B2020;
    font-weight: 500;
    text-decoration: none;
}
.vnt-phoca-latest__more a:hover,
.vnt-phoca-latest__more a:focus {
    color: #A83230;
    text-decoration: underline;
}
@media (max-width: 767.98px) {
    .vnt-phoca-latest {
        grid-template-columns: 1fr;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Photo detail: click the image to open PhotoSwipe (same viewer as the album) */


.pg-category-items-box a.pg-photoswipe-button {
    cursor: zoom-in;
}
.pswp__button--zoom {
    display: block !important;
}


.pg-detail-item-image-box.pg-photoswipe a.pg-photoswipe-button {
    cursor: zoom-in;
    display: inline-block;
    max-width: 100%;
}
.pg-detail-item-image-box .vnt-pswp-hidden {
    display: none;
}

/* PhotoSwipe default z-index is 1500; Helix sticky header is 9999, so Close/Zoom
   sat under the menu. The lightbox should cover site chrome. */
.pswp {
    z-index: 20000;
}

/* Photo detail mobile: wrap encoded crumb; stack rating note under stars */
#sp-component .mod-breadcrumbs__wrapper,
#sp-component .breadcrumb {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
#sp-component ol.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.15rem;
    row-gap: 0.15rem;
}
#sp-component .breadcrumb .mod-breadcrumbs__here,
#sp-component .breadcrumb .mod-breadcrumbs__item,
#sp-component .breadcrumb .breadcrumb-item {
    float: none;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    #phocagallery table:has(.star-rating) {
        width: 100%;
    }
    #phocagallery table:has(.star-rating) tr {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    #phocagallery table:has(.star-rating) td {
        display: block;
        width: 100%;
        padding: 0;
    }
    #phocagallery .pg-rating-msg {
        margin-top: 0.15rem;
        line-height: 1.4;
    }
}

/* Topic list: right inset matches the gap from the row edge to the
   pin wrapper (.ktopic-icon a), not kcol left (ksp-10) or the pin glyph. */
#kunena.layout .kpost-list-wrap .ktopic-item .krow {
    padding-right: var(--ksp-4);
}

/* --- uddeIM: message header date on the same row as title + status --- */
#uddeim .uddeim-messagefrom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
#uddeim .uddeim-messagefrom br {
    /* Keep the <br> as a zero-size flex item so the date stays a
       separate node (display:none merged it onto the username). */
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 0;
    flex: 0 0 0;
}

/* === VNT Phoca image page info 2026-09-01 === */
.pg-detail-top-box-back-title a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0D2218;
    text-decoration: none;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}
.pg-detail-top-box-back-title a:hover {
    color: #7B2020;
}
.vnt-pg-detail-info {
    max-width: 42rem;
    margin: 1rem auto 0;
    text-align: left;
}
.vnt-pg-detail-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0D2218;
    margin: 0 0 0.5rem;
}
.vnt-pg-detail-info .pg-detail-item-desc-box {
    margin: 0 0 0.5rem;
    line-height: 1.5;
    white-space: pre-wrap;
}
.vnt-pg-detail-info .pg-detail-item-desc-box img.vnt-smiley,
.vnt-pg-detail-info .pg-detail-item-desc-box img[src*="emoticons"],
.vnt-pg-comment__body img.vnt-smiley,
.vnt-pg-comment__body img[src*="emoticons"],
.vnt-pg-comment__body img[src*="smil"] {
    display: inline !important;
    width: auto !important;
    height: 1.2em !important;
    max-width: 1.5em !important;
    max-height: 1.2em !important;
    vertical-align: text-bottom;
    margin: 0 0.12em;
}
.vnt-pg-detail-meta {
    color: #5a6a62;
    font-size: 0.9rem;
    margin: 0;
}
.vnt-pg-detail-meta span + span::before {
    content: " · ";
    color: #8a9a92;
}

.vnt-pg-detail-meta a {
    color: #7B2020;
    text-decoration: none;
}
.vnt-pg-detail-meta a:hover {
    text-decoration: underline;
}
#phocagallery-comments,
.vnt-pg-comments,
.vnt-pg-comments-heading {
    max-width: 42rem;
    margin-left: 0;
    margin-right: auto;
}
.vnt-pg-comments-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0D2218;
    margin: 1.75rem 0 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #DAE7E1;
}
.vnt-pg-comment {
    margin: 0 0 1.15rem;
    padding: 0 0 1.15rem;
    border-bottom: 1px solid #DAE7E1;
    background: none;
    border-left: 0;
}
.vnt-pg-comment__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.2rem 1rem;
    margin: 0 0 0.4rem;
}
.vnt-pg-comment__author {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0D2218;
}
.vnt-pg-comment__date {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 400;
    color: #6b7a72;
    white-space: nowrap;
}
.vnt-pg-comment__title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1C1208;
}
.vnt-pg-comment__body {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #2a332e;
}
.vnt-pg-comment__body p:last-child {
    margin-bottom: 0;
}
.vnt-pg-comments-form-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0D2218;
    margin: 1.5rem 0 0.75rem;
}
#phocagallery-comments blockquote {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}
#phocagallery ul.star-rating,
#phocagallery .star-rating {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
    width: 110px;
    height: 22px;
    position: relative;
    overflow: hidden;
    background: url("/media/com_phocagallery/images/star-voting.svg") top left repeat-x;
}
#phocagallery ul.star-rating li,
#phocagallery .star-rating li {
    list-style: none;
    margin: 0;
    padding: 0;
    float: left;
}
#phocagallery ul.star-rating li a,
#phocagallery .star-rating li a {
    display: block;
    width: 22px;
    height: 22px;
    position: absolute;
    z-index: 20;
    padding: 0;
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    font-size: 0;
    line-height: 0;
    color: transparent;
}
#phocagallery ul.star-rating a.star1 { left: 0; }
#phocagallery ul.star-rating a.stars2 { left: 22px; }
#phocagallery ul.star-rating a.stars3 { left: 44px; }
#phocagallery ul.star-rating a.stars4 { left: 66px; }
#phocagallery ul.star-rating a.stars5 { left: 88px; }
#phocagallery ul.star-rating a.star1:hover,
#phocagallery ul.star-rating a.stars2:hover,
#phocagallery ul.star-rating a.stars3:hover,
#phocagallery ul.star-rating a.stars4:hover,
#phocagallery ul.star-rating a.stars5:hover {
    background: url("/media/com_phocagallery/images/star-voting.svg") left center;
    z-index: 2;
    left: 0;
}
#phocagallery ul.star-rating a.star1:hover { width: 22px; }
#phocagallery ul.star-rating a.stars2:hover { width: 44px; }
#phocagallery ul.star-rating a.stars3:hover { width: 66px; }
#phocagallery ul.star-rating a.stars4:hover { width: 88px; }
#phocagallery ul.star-rating a.stars5:hover { width: 110px; }
#phocagallery ul.star-rating li.current-rating,
#phocagallery .star-rating li.current-rating {
    background: url("/media/com_phocagallery/images/star-voting.svg") left bottom;
    position: absolute;
    height: 22px;
    display: block;
    z-index: 1;
    text-indent: 100%;
    overflow: hidden;
}

/* Gallery heading row: title + Add photo on one baseline */
.vnt-heading-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    margin: 0 0 1.25rem;
}
.vnt-heading-actions > h1.vnt-heading-actions__title,
.vnt-heading-actions__title {
    margin: 0 !important;
    padding: 0;
    line-height: 1.15;
}
.vnt-heading-actions > .vnt-heading-actions__btn {
    margin: 0;
    align-self: center;
}
#sp-content-top .sp-module,
#sp-content-top .sp-module-content {
    margin-bottom: 0;
}

/* Photo + caption share the content-column left edge (same as ???????) */
.vnt-pg-detail-main {
    max-width: 100%;
}
.vnt-pg-detail-main .pg-detail-item-image-box {
    text-align: left;
}
.vnt-pg-detail-main .pg-detail-item-image-box a.pg-photoswipe-button {
    display: inline-block;
    max-width: 100%;
}
.vnt-pg-detail-info {
    max-width: none;
    margin: 0.75rem 0 0;
    text-align: left;
}
.vnt-pg-detail-title {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.vnt-pg-detail-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.85rem;
    row-gap: 0.2rem;
}
.vnt-pg-detail-meta span + span::before {
    content: none;
}

@media (max-width: 575.98px) {
    .vnt-heading-actions {
        flex-wrap: wrap;
    }
}

/* Phoca image prev/next: Phoca sets margin:1em on all sides, which indents ???????? */
#phocagallery .pg-detail-nav-box {
    margin: 1em 0 1.5em;
}

.vnt-pg-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 42rem;
}
.vnt-pg-comment-form .form-control {
    width: 100%;
}
.vnt-pg-comment-form__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.vnt-pg-comment-form textarea {
    min-height: 8.5rem;
    resize: vertical;
}
.vnt-pg-comment-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.vnt-pg-comment-count {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3em;
    margin: 0;
    margin-right: auto;
    color: #6b7a72;
    font-size: 0.85rem;
}
.vnt-pg-comment-count__num {
    display: inline-block;
    box-sizing: content-box;
    width: auto;
    min-width: 1ch;
    max-width: none;
    field-sizing: content;
    border: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: left;
}
.vnt-pg-comment-form__footer .btn {
    margin: 0;
}

/* Image page: prev/next as a pair, not a lone button on the far right */
#phocagallery .pg-detail-nav-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
}
#phocagallery .pg-detail-nav-box:has(.ph-left):has(.ph-right) {
    justify-content: space-between;
}
#phocagallery .pg-detail-nav-box .ph-left,
#phocagallery .pg-detail-nav-box .ph-right {
    float: none;
}
#phocagallery .pg-detail-nav-box .ph-cb {
    display: none;
}

/* Guest rating note under the stars, not as a second heading */
#phocagallery .pg-rating-msg {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7a72;
    max-width: 42rem;
}

/* Phoca credit after comments uses inline display:block; beat it */
#phocagallery div:has(> a[href*="phoca.cz/phocagallery"]) {
    display: none !important;
}
/* Guest rating note on its own line, not beside the stars */
#phocagallery.pg-detail-item-box table:has(.star-rating) {
    max-width: 42rem;
}
#phocagallery.pg-detail-item-box table:has(.star-rating) tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
}
#phocagallery.pg-detail-item-box .pg-rating-msg {
    flex: 1 1 100%;
    margin: 0;
    padding: 0;
    color: #6b7a72;
    font-size: 0.9rem;
}
.vnt-pg-comment__body {
    white-space: pre-wrap;
}

body.com_phocagallery ol.mod-breadcrumbs.breadcrumb {
    flex-wrap: wrap;
    row-gap: 0.15rem;
}
.vnt-pg-comment-login a {
    color: #7B2020;
    font-weight: 600;
    text-decoration: none;
}
.vnt-pg-comment-login a:hover {
    text-decoration: underline;
}
.vnt-pg-comment-login {
    color: #6b7a72;
    margin: 0.75rem 0 0;
}

/* Guest rate/comment note: same type, left-aligned with ?????? */
.vnt-pg-rating {
    max-width: 42rem;
    margin: 0.35rem 0 0;
}
.vnt-pg-rating__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
}
.vnt-pg-rating__label {
    font-size: 1rem;
    color: inherit;
}
#phocagallery .vnt-pg-rating ul.star-rating {
    margin: 0;
}
.vnt-pg-guest-note,
.vnt-pg-comment-login {
    margin: 0.35rem 0 0;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.45;
    color: #6b7a72;
}
.vnt-pg-guest-note a,
.vnt-pg-comment-login a {
    color: #7B2020;
    font-weight: 600;
    text-decoration: none;
}
.vnt-pg-guest-note a:hover,
.vnt-pg-comment-login a:hover {
    text-decoration: underline;
}

/* Wine primary buttons: keep focus/active in the scheme (Bootstrap defaults to blue) */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #7B2020;
    --bs-btn-border-color: #7B2020;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #A83230;
    --bs-btn-hover-border-color: #A83230;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5E1818;
    --bs-btn-active-border-color: #5E1818;
    --bs-btn-focus-shadow-rgb: 123, 32, 32;
    background-color: #7B2020;
    border-color: #7B2020;
    color: #fff;
}
.btn-primary:hover {
    background-color: #A83230;
    border-color: #A83230;
    color: #fff;
}
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active {
    background-color: #5E1818;
    border-color: #5E1818;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(123, 32, 32, 0.35);
}

/* Album photo count under the title (not inside the clipped title box) */
.pg-category-box-info .pg-category-box-count {
    display: block;
    margin-top: 0.2em;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.3;
    color: #5A7A62;
}
.pg-category-categories-top-box-title .pg-category-box-count {
    display: inline;
    margin-left: 0.4em;
    font-size: 0.875rem;
    font-weight: 400;
    color: #5A7A62;
}

/* vnt-pg-index: full-width map + recent albums; hide left tree on this view only */
body.com_phocagallery.view-categories #sp-left {
    display: none !important;
}
body.com_phocagallery.view-categories #sp-component {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}
body.com_phocagallery.view-categories #sp-left + #sp-component {
    padding-left: 0;
    padding-top: 0;
}
@media (max-width: 991.98px) {
    body.com_phocagallery.view-categories #sp-left + #sp-component {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 0;
    }
}

.vnt-pg-map {
    margin: 0 0 2.5rem;
}
.vnt-pg-map-head,
.vnt-pg-map-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.5rem 6.5rem;
    column-gap: 0.75rem;
    align-items: center;
}
.vnt-pg-map-head {
    padding: 0 0 0.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid #D5E0D4;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #5A7A62;
}
.vnt-pg-map-head-albums,
.vnt-pg-map-head-photos,
.vnt-pg-map-albums,
.vnt-pg-map-photos {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.vnt-pg-map-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vnt-pg-map-list .vnt-pg-map-list {
    padding-left: 1.25rem;
}
.vnt-pg-map-row {
    min-height: 44px;
    padding: 0.2rem 0;
    border-bottom: 1px solid #E6EEE4;
}

.vnt-pg-map-primary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.vnt-pg-map-toggle.btn,
.vnt-pg-map-toggle-spacer {
    width: 1.95rem;
    height: 1.95rem;
    flex-shrink: 0;
}
.vnt-pg-map-toggle.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.vnt-pg-map-toggle.btn .icon-plus,
.vnt-pg-map-toggle.btn .icon-minus {
    margin: 0;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.vnt-pg-map-albums-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2rem;
}
.vnt-pg-map-albums-list .is-leaf > .vnt-pg-map-row .vnt-pg-map-name {
    font-weight: 400;
}
.vnt-pg-map-albums-list .is-branch > .vnt-pg-map-row .vnt-pg-map-name {
    font-weight: 600;
}
.vnt-pg-map-albums-list .vnt-pg-map-toggle-spacer {
    display: none;
}
.vnt-pg-map-name {
    color: #7B2020;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.vnt-pg-map-name:hover,
.vnt-pg-map-name:focus {
    color: #A83230;
    text-decoration: underline;
}
.vnt-pg-map-albums,
.vnt-pg-map-photos {
    color: #5A7A62;
    font-size: 0.95rem;
}
.vnt-pg-map-counts-inline {
    display: none;
    color: #5A7A62;
    font-size: 0.875rem;
    margin-top: 0.15rem;
}

@media (max-width: 575.98px) {
    .vnt-pg-map-head {
        display: none;
    }
    .vnt-pg-map-row {
        display: block;
        padding: 0.55rem 0;
    }
    .vnt-pg-map-primary {
        margin-bottom: 0.1rem;
    }
    .vnt-pg-map-albums,
    .vnt-pg-map-photos {
        display: none;
    }
    .vnt-pg-map-counts-inline {
        display: block;
    }
}

.vnt-pg-recent-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: #0D2218;
}
.vnt-pg-recent .pg-categories-items-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    width: 100%;
    justify-content: stretch;
    align-items: stretch;
}
.vnt-pg-recent .pg-category-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}
.vnt-pg-recent .pg-category-box-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f3f3;
}
.vnt-pg-recent .pg-category-box-image a {
    position: absolute;
    inset: 0;
    display: block;
}
.vnt-pg-recent .pg-category-box-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vnt-pg-recent .pg-category-box-title {
    max-height: 4.6em;
}
.vnt-pg-recent .pg-category-box-title a {
    display: inline !important;
    white-space: normal;
}
@media (min-width: 576px) {
    .vnt-pg-recent .pg-categories-items-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 992px) {
    .vnt-pg-recent .pg-categories-items-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* === VNT album toolbar === */
.vnt-pg-album-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem 1.25rem;
    margin: 1rem 0 0.15rem;
}
.vnt-pg-album-toolbar__controls,
.vnt-pg-album-toolbar__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
}
.vnt-pg-album-toolbar__field {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-weight: 500;
    color: #5c4545;
}
.vnt-pg-album-toolbar__field select,
.vnt-pg-album-toolbar__field .form-select {
    width: auto;
    max-width: 14rem;
    display: inline-block;
    min-height: 2.15rem;
}
.vnt-pg-album-toolbar .pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
.vnt-pg-album-toolbar .pagination .page-item:has(.fa-angle-double-left),
.vnt-pg-album-toolbar .pagination .page-item:has(.fa-angle-double-right) {
    display: none;
}
.vnt-pg-album-toolbar .pagination .page-link {
    min-width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.55rem;
    line-height: 1;
}
.vnt-pg-album-toolbar .pg-top-icons {
    float: none;
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.vnt-pg-album-toolbar .pg-top-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    line-height: 1;
}
.vnt-pg-album-toolbar .pg-top-icons svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* === VNT photoswipe caption === */
/* Photoswipe shrinks the photo by the full caption height (barsSize.bottom=auto).
   Cap both the visible caption and the hidden fake used for measurement. */
.pswp__caption,
.pswp__caption--fake {
    max-height: 4.75rem;
}
.pswp__caption__center {
    max-height: 4.75rem;
    max-width: min(40rem, 92vw);
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.35;
}

/* vnt photoswipe zoom cursor */
.pswp--open .pswp__img {
	cursor: zoom-in;
}
.pswp--zoomed-in .pswp__img {
	cursor: zoom-out;
}
