/*
 * Kolarac Core global frontend styles.
 *
 * Loaded on every frontend page, independently from slider assets.
 */

/* Page titles - GeneratePress / archive / custom hero variants */
.entry-header,
.page-header,
.inside-article > header.entry-header,
.site-main .inside-article > header,
.generate-columns-container .inside-article > header {
    text-align: center !important;
}

.entry-header .entry-title,
.page-header .page-title,
.page-header h1,
header.entry-header h1,
h1.entry-title,
h1.page-title,
.site-main .inside-article h1.entry-title,
.site-main article.page h1,
.site-main article.post h1,
.inside-article > header h1,
.generate-columns-container .inside-article > header h1 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    font-weight: 700 !important;
}


/* Unified vertical position for standard page titles */
:root {
    --kolarac-page-title-top-space: 0px;
    --kolarac-page-title-bottom-space: 46px;
}

body:not(.home):not(.front-page) .site-main .inside-article > header.entry-header,
body:not(.home):not(.front-page) .site-main .inside-article > .entry-header,
body:not(.home):not(.front-page) .site-main .page-header,
body:not(.home):not(.front-page) .site-main header.page-header {
    margin-top: var(--kolarac-page-title-top-space) !important;
    margin-bottom: var(--kolarac-page-title-bottom-space) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Pages with [kolarac_mesec_navigator] already get vertical spacing from
 * .kolarac-mesec-switcher margin-top, so the title must not add another
 * large bottom gap. This keeps normal page titles on the same visual height
 * as Kalendar/Koncerti pages.
 */
body.kolarac-has-month-navigator:not(.home):not(.front-page) .site-main .inside-article > header.entry-header,
body.kolarac-has-month-navigator:not(.home):not(.front-page) .site-main .inside-article > .entry-header,
body.kolarac-has-month-navigator:not(.home):not(.front-page) .site-main .page-header,
body.kolarac-has-month-navigator:not(.home):not(.front-page) .site-main header.page-header {
    margin-bottom: 0 !important;
}

body:not(.home):not(.front-page) .site-main .inside-article > header.entry-header + *,
body:not(.home):not(.front-page) .site-main .inside-article > .entry-header + *,
body:not(.home):not(.front-page) .site-main .page-header + * {
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    :root {
        --kolarac-page-title-top-space: 0px;
        --kolarac-page-title-bottom-space: 34px;
    }
}

body:not(.home):not(.front-page) .hero-content {
    text-align: center !important;
}

body:not(.home):not(.front-page) .hero-content h1 {
    display: block !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    font-weight: 700 !important;
}

/* Desktop header/menu fit for Cyrillic menu + language switcher */
@media (min-width: 1201px) {
    .main-navigation .main-nav,
    .main-navigation .main-nav > ul,
    .main-navigation .main-nav > ul > li,
    .main-navigation .main-nav > ul > li > a,
    .lcu-header-switcher,
    .lcu-header-switcher * {
        white-space: nowrap !important;
    }

    .lcu-header-switcher {
        flex-shrink: 0 !important;
    }
}

/* Final public layout width normalization
 * Loaded globally and late so it wins over child-theme legacy padding rules.
 * The measured visible width of all main Kolarac public blocks should cap at 1200px.
 */
:root {
    --kolarac-public-content-max-width: 1200px;
}

body .site-content .kolarac-program-slider-wrap,
body .site-content .kolarac-home-baner-slider-wrap,
body .site-content .kolarac-venue-sliders,
body .site-content .kcl-items,
body .site-content .kbl-items,
body .inside-article .kolarac-program-slider-wrap,
body .inside-article .kolarac-home-baner-slider-wrap,
body .inside-article .kolarac-venue-sliders,
body .inside-article .kcl-items,
body .inside-article .kbl-items {
    width: 100% !important;
    max-width: var(--kolarac-public-content-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

body .site-content .kcl-items,
body .inside-article .kcl-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
}

body .site-content .kbl-items,
body .inside-article .kbl-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
}

@media (max-width: 760px) {
    body .site-content .kcl-items,
    body .inside-article .kcl-items {
        gap: 28px !important;
    }

    body .site-content .kbl-items,
    body .inside-article .kbl-items {
        gap: 18px !important;
    }
}

body.home .site-content .kolarac-program-slider-wrap,
body.front-page .site-content .kolarac-program-slider-wrap,
body.home .site-content .kolarac-home-baner-slider-wrap,
body.front-page .site-content .kolarac-home-baner-slider-wrap,
body.home .inside-article .kolarac-program-slider-wrap,
body.front-page .inside-article .kolarac-program-slider-wrap,
body.home .inside-article .kolarac-home-baner-slider-wrap,
body.front-page .inside-article .kolarac-home-baner-slider-wrap {
    width: 100% !important;
    max-width: var(--kolarac-public-content-max-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

body .kolarac-program-slider-wrap > .kolarac-program-slider,
body .kolarac-home-baner-slider-wrap > .kolarac-home-baner-slider,
body .kolarac-venue-sliders > .kvs-section,
body .kolarac-venue-sliders .kvs-slider,
body .kcl-items > .kcl-item,
body .kbl-items > .kbl-item {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Robust vertical separation for list/card layouts
 * Use item margins instead of relying only on container gap, because later
 * width/layout normalization and external CSS can change the container display.
 */
body .site-content .kcl-items,
body .inside-article .kcl-items,
body .site-content .kbl-items,
body .inside-article .kbl-items {
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
}

body .site-content .kcl-items > .kcl-item,
body .inside-article .kcl-items > .kcl-item,
body .site-content .kbl-items > .kbl-item,
body .inside-article .kbl-items > .kbl-item {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body .site-content .kcl-items > .kcl-item + .kcl-item,
body .inside-article .kcl-items > .kcl-item + .kcl-item {
    margin-top: 24px !important;
}

body .site-content .kbl-items > .kbl-item + .kbl-item,
body .inside-article .kbl-items > .kbl-item + .kbl-item {
    margin-top: 22px !important;
}

body .site-content .kcl-items > .kcl-item[hidden],
body .inside-article .kcl-items > .kcl-item[hidden],
body .site-content .kbl-items > .kbl-item[hidden],
body .inside-article .kbl-items > .kbl-item[hidden] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 760px) {
    body .site-content .kcl-items > .kcl-item + .kcl-item,
    body .inside-article .kcl-items > .kcl-item + .kcl-item {
        margin-top: 28px !important;
    }

    body .site-content .kbl-items > .kbl-item + .kbl-item,
    body .inside-article .kbl-items > .kbl-item + .kbl-item {
        margin-top: 18px !important;
    }
}

/* Mobile width alignment for Kalendar, Koncerti and Bioskopi
 * Home sliders already sit inside an article with no horizontal padding.
 * On these inner pages, GeneratePress can keep horizontal padding on .inside-article,
 * so the list/venue blocks become narrower or misaligned. Remove only that inner
 * horizontal padding on mobile and let the existing .site-content gutter define the width.
 */
@media (max-width: 768px) {
    body.kolarac-has-calendar-list:not(.home):not(.front-page) .site-main .inside-article,
    body.kolarac-has-venue-sliders:not(.home):not(.front-page) .site-main .inside-article,
    body.kolarac-has-bioskop-list:not(.home):not(.front-page) .site-main .inside-article {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.kolarac-has-calendar-list .site-content .kcl-items,
    body.kolarac-has-calendar-list .inside-article .kcl-items,
    body.kolarac-has-venue-sliders .site-content .kolarac-venue-sliders,
    body.kolarac-has-venue-sliders .inside-article .kolarac-venue-sliders,
    body.kolarac-has-bioskop-list .site-content .kbl-items,
    body.kolarac-has-bioskop-list .inside-article .kbl-items {
        width: 100% !important;
        max-width: var(--kolarac-public-content-max-width) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Footer DOM reorder support
 * JS moves GeneratePress .footer-bar above #footer-widgets and .copyright-bar
 * below footer widgets. This keeps the visual order stable without relying on
 * fragile CSS-only flex ordering of GeneratePress footer internals.
 */
.site-footer.kolarac-footer-reordered {
    display: block !important;
}

.site-footer .kolarac-footer-top-bar,
.site-footer .kolarac-footer-bottom-bar {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    background-color: transparent;
    padding-left: var(--kolarac-footer-side-gutter, 24px);
    padding-right: var(--kolarac-footer-side-gutter, 24px);
}

.site-footer .kolarac-footer-top-bar {
    padding-top: 20px;
    padding-bottom: 20px;
}

.site-footer .kolarac-footer-bottom-bar {
    padding-top: 0;
    padding-bottom: 24px;
    text-align: center;
}

.site-footer .kolarac-footer-top-bar .footer-bar,
.site-footer .kolarac-footer-bottom-bar .copyright-bar {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.site-footer .kolarac-footer-bottom-bar .copyright-bar,
.site-footer .kolarac-footer-bottom-bar .copyright-bar p {
    text-align: center;
}

.site-footer .site-info.kolarac-footer-source-hidden,
.site-footer .site-info.kolarac-footer-source-hidden .inside-site-info {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.site-footer .kolarac-footer-top-bar:empty,
.site-footer .kolarac-footer-bottom-bar:empty {
    display: none !important;
}

@media (max-width: 768px) {
    .site-footer .kolarac-footer-top-bar {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .site-footer .kolarac-footer-bottom-bar {
        padding-bottom: 20px;
    }
}

/* =====================================================
   RESPONSIVE SMOOTHNESS - KALENDAR / KONCERTI
   ===================================================== */

/*
 * Home sliders use the page/site-content gutter directly and scale smoothly
 * inside their 1200px cap. On inner event listing pages, GeneratePress can add
 * an extra .inside-article horizontal padding at tablet/mobile widths. Removing
 * that extra layer makes Kalendar and Koncerti follow the same width rhythm as
 * the Home sliders while the child theme's site-content gutter remains intact.
 */
@media (max-width: 1200px) {
    body.kolarac-has-calendar-list:not(.home):not(.front-page) .site-main .inside-article,
    body.kolarac-has-venue-sliders:not(.home):not(.front-page) .site-main .inside-article {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.kolarac-has-calendar-list .site-content .kcl-items,
    body.kolarac-has-calendar-list .inside-article .kcl-items,
    body.kolarac-has-venue-sliders .site-content .kolarac-venue-sliders,
    body.kolarac-has-venue-sliders .inside-article .kolarac-venue-sliders {
        width: 100% !important;
        max-width: var(--kolarac-public-content-max-width) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/*
 * Make the calendar card itself a query container and use container units for
 * the desktop/tablet layout. This removes several visible jumps caused by old
 * viewport-based font sizes and fixed min column widths while preserving the
 * existing stacked mobile layout below 760px.
 */
body.kolarac-has-calendar-list .kcl-item {
    container-type: inline-size;
}

@media (min-width: 761px) {
    body.kolarac-has-calendar-list .kcl-item {
        grid-template-columns: minmax(0, 27.3%) minmax(0, 1fr) minmax(0, 22%) !important;
        gap: clamp(8px, 1cqw, 12px) !important;
    }

    body.kolarac-has-calendar-list .kcl-image-link {
        padding-left: clamp(20px, 3cqw, 36px) !important;
    }

    body.kolarac-has-calendar-list .kcl-content {
        padding-top: clamp(6px, 0.75cqw, 8px) !important;
        padding-right: clamp(8px, 1cqw, 12px) !important;
    }

    body.kolarac-has-calendar-list .kcl-title {
        font-size: clamp(22px, 2.55cqw, 30px) !important;
        line-height: 1 !important;
    }

    body.kolarac-has-calendar-list .kcl-subtitle {
        margin-top: clamp(18px, 2.8cqw, 34px) !important;
        font-size: clamp(18px, 2.1cqw, 25px) !important;
    }

    body.kolarac-has-calendar-list .kcl-description {
        font-size: clamp(13px, 1.25cqw, 15px) !important;
    }

    body.kolarac-has-calendar-list .kcl-venue {
        font-size: clamp(14px, 1.35cqw, 16px) !important;
    }

    body.kolarac-has-calendar-list .kcl-actions {
        gap: clamp(14px, 2.3cqw, 28px) !important;
    }

    body.kolarac-has-calendar-list .kcl-ticket,
    body.kolarac-has-calendar-list .kcl-sold-out,
    body.kolarac-has-calendar-list .kcl-details {
        min-height: clamp(38px, 3.5cqw, 42px) !important;
        min-width: 0 !important;
        padding-left: clamp(12px, 1.5cqw, 18px) !important;
        padding-right: clamp(12px, 1.5cqw, 18px) !important;
        font-size: clamp(16px, 1.85cqw, 22px) !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox {
        padding: clamp(18px, 2.5cqw, 30px) clamp(12px, 1.5cqw, 18px) clamp(8px, 0.85cqw, 10px) clamp(10px, 1cqw, 12px) !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-day {
        font-size: clamp(72px, 11.35cqw, 136px) !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-month,
    body.kolarac-has-calendar-list .kcl-datebox-year {
        font-size: clamp(20px, 2.85cqw, 34px) !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-time {
        font-size: clamp(30px, 4.85cqw, 58px) !important;
    }
}

/* Concert section heading sits outside the Splide container; make the whole
 * section a container so the heading also scales with its actual content width,
 * matching the smooth behavior of the slide itself.
 */
body.kolarac-has-venue-sliders .kvs-section {
    container-type: inline-size;
}

@media (min-width: 701px) {
    body.kolarac-has-venue-sliders .kvs-room-title {
        min-height: clamp(58px, 6cqw, 72px) !important;
        padding-top: clamp(6px, 0.7cqw, 8px) !important;
        padding-bottom: clamp(6px, 0.7cqw, 8px) !important;
        padding-left: clamp(58px, 6.4cqw, 76px) !important;
        padding-right: clamp(16px, 1.7cqw, 20px) !important;
        font-size: clamp(30px, 4.4cqw, 52px) !important;
    }

    body.kolarac-has-venue-sliders .kvs-room-title::before {
        left: clamp(12px, 1.35cqw, 16px) !important;
        bottom: clamp(-20px, -1.65cqw, -14px) !important;
        width: clamp(30px, 3.2cqw, 38px) !important;
        height: clamp(30px, 3.2cqw, 38px) !important;
    }
}

/* =====================================================
   KALENDAR - EQUAL ACTION BUTTON WIDTHS
   ===================================================== */

/*
 * Keep the "Saznaj više" and "Karte" action blocks equal-width and locked
 * to the left/right edges of the middle content column. The left action stays
 * close to the image column, the right action stays close to the date box, and
 * the relationship scales smoothly with the calendar card width.
 */
body.kolarac-has-calendar-list .kcl-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    align-items: end !important;
    justify-content: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.kolarac-has-calendar-list .kcl-details,
body.kolarac-has-calendar-list .kcl-ticket,
body.kolarac-has-calendar-list .kcl-sold-out {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

body.kolarac-has-calendar-list .kcl-details {
    justify-content: flex-start !important;
    text-align: left !important;
}

body.kolarac-has-calendar-list .kcl-ticket,
body.kolarac-has-calendar-list .kcl-sold-out {
    justify-content: flex-end !important;
    text-align: right !important;
}

@media (min-width: 761px) {
    body.kolarac-has-calendar-list .kcl-actions {
        gap: clamp(14px, 2.3cqw, 28px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 760px) {
    body.kolarac-has-calendar-list .kcl-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 0 !important;
        width: auto !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
    }
}


/* =====================================================
   KALENDAR MOBILE DATE/TIME LAYOUT
   ===================================================== */

/*
 * On mobile Calendar cards, keep the date on the left side of the burgundy
 * strip, but split the date itself into two compact columns: day in the
 * first column, month and year stacked in the second. The right side remains
 * reserved only for the event time.
 */
@media (max-width: 760px) {
    body.kolarac-has-calendar-list .kcl-datebox {
        grid-template-columns: auto auto minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 8px !important;
        row-gap: 0 !important;
        align-items: center !important;
        justify-items: start !important;
        text-align: left !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-day {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: auto !important;
        margin: 0 !important;
        align-self: center !important;
        justify-self: start !important;
        text-align: left !important;
        line-height: 0.82 !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-month {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        margin: 0 !important;
        align-self: end !important;
        justify-self: start !important;
        text-align: left !important;
        line-height: 0.95 !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-year {
        grid-column: 2 !important;
        grid-row: 2 !important;
        width: auto !important;
        margin: 0 !important;
        align-self: start !important;
        justify-self: start !important;
        text-align: left !important;
        line-height: 0.95 !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-time {
        grid-column: 3 !important;
        grid-row: 1 / span 2 !important;
        width: auto !important;
        margin: 0 !important;
        align-self: center !important;
        justify-self: end !important;
        text-align: right !important;
    }
}

/* =====================================================
   KALENDAR MOBILE IMAGE / DATE TWO-COLUMN LAYOUT
   ===================================================== */

/*
 * Mobile experiment: keep the event image and the burgundy date box in the
 * same first row, using a 60% / 40% split. The date box returns to the desktop
 * vertical date treatment, while the textual content and action buttons stay
 * below the image/date row.
 */
@media (max-width: 760px) {
    body.kolarac-has-calendar-list .kcl-item {
        display: grid !important;
        grid-template-columns: minmax(0, 60%) minmax(0, 40%) !important;
        grid-template-rows: auto auto !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    body.kolarac-has-calendar-list .kcl-image-link {
        grid-column: 1 !important;
        grid-row: 1 !important;
        order: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        padding-left: 0 !important;
        align-self: stretch !important;
    }

    body.kolarac-has-calendar-list .kcl-image-wrap,
    body.kolarac-has-calendar-list .kcl-image-placeholder {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 1 / 1 !important;
    }

    body.kolarac-has-calendar-list .kcl-thumb,
    body.kolarac-has-calendar-list .kcl-image-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox {
        grid-column: 2 !important;
        grid-row: 1 !important;
        order: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: 100% !important;
        padding: 18px 12px 12px 8px !important;
        background: var(--kps-burgundy) !important;
        color: #cccccc !important;
        text-align: right !important;
        box-sizing: border-box !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-day {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: clamp(56px, 16vw, 82px) !important;
        font-weight: 500 !important;
        line-height: 0.62 !important;
        letter-spacing: -0.055em !important;
        text-align: right !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-month,
    body.kolarac-has-calendar-list .kcl-datebox-year {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: clamp(18px, 5.3vw, 26px) !important;
        font-weight: 500 !important;
        line-height: 0.94 !important;
        letter-spacing: -0.015em !important;
        text-align: right !important;
        text-transform: uppercase !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-month {
        margin-top: auto !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox-time {
        display: block !important;
        width: 100% !important;
        margin: 8px 0 0 !important;
        padding: 0 !important;
        color: #cccccc !important;
        font-size: clamp(28px, 8.6vw, 44px) !important;
        font-weight: 500 !important;
        line-height: 0.88 !important;
        letter-spacing: -0.04em !important;
        text-align: right !important;
    }

    body.kolarac-has-calendar-list .kcl-content {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        order: 0 !important;
    }
}

/* =====================================================
   KALENDAR MOBILE DATEBOX DAY POSITION TWEAK
   ===================================================== */

/* In the accepted mobile 60/40 Calendar card layout, keep the desktop-like
 * burgundy date-box rhythm, but use a controlled smaller gap between the
 * large day and the month/year group. This avoids both the original large
 * empty space and the too-tight glued look.
 */
@media (max-width: 760px) {
    body.kolarac-has-calendar-list .kcl-datebox .kcl-datebox-day {
        margin-top: auto !important;
        margin-bottom: clamp(5px, 1.4vw, 9px) !important;
        line-height: 0.66 !important;
    }

    body.kolarac-has-calendar-list .kcl-datebox .kcl-datebox-month {
        margin-top: 0 !important;
    }
}

/* =====================================================
   KALENDAR MOBILE ACTION BUTTON SEPARATION
   ===================================================== */

@media (max-width: 760px) {
    body.kolarac-has-calendar-list .kcl-actions {
        gap: 8px !important;
    }
}

/* =====================================================
   KALENDAR MOBILE LOAD-MORE HIDDEN STATE FIX
   ===================================================== */

/* Mobile layout rules set .kcl-item to display:grid for the 60/40 image/date
 * treatment. Re-assert the hidden state after those rules so the initial
 * Calendar list still shows only the configured first 5 items on mobile.
 */
body.kolarac-has-calendar-list .kcl-items > .kcl-item[hidden],
body.kolarac-has-calendar-list .kcl-items > .kcl-item.is-hidden {
    display: none !important;
}

/* =====================================================
   EVENT SOLD OUT STATE
   ===================================================== */

body .kolarac-sold-out-badge {
    cursor: default !important;
    pointer-events: none !important;
    user-select: none;
}

body .kps-sold-out,
body .kvs-sold-out,
body .kcl-sold-out,
body .kbl-sold-out {
    background: #000000 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

body .kcl-sold-out {
    justify-content: flex-end !important;
    text-align: right !important;
}

body .kbl-sold-out {
    flex-direction: row !important;
}

body .khbs-sold-out {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin-top: 8px;
    padding: 4px 9px;
    background: #681328;
    color: #ffffff;
    font-size: clamp(10px, 1.15cqw, 14px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    box-sizing: border-box;
}

@media (max-width: 760px) {
    body .khbs-sold-out {
        margin-top: 5px;
        padding: 3px 7px;
        font-size: 10px;
    }
}

/* =====================================================
   SINGLE EVENT SOLD OUT STATE
   ===================================================== */

body.single-koncerti.kolarac-single-event-sold-out .kolarac-single-sold-out-holder,
body.single-bioskop.kolarac-single-event-sold-out .kolarac-single-sold-out-holder {
    width: min(100%, 1200px);
    max-width: 1200px;
    margin: 18px auto 0;
    text-align: center;
    box-sizing: border-box;
}

body.single-koncerti.kolarac-single-event-sold-out .kolarac-single-sold-out-button,
body.single-bioskop.kolarac-single-event-sold-out .kolarac-single-sold-out-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 42px;
    padding: 11px 22px;
    background: #681328 !important;
    color: #cccccc !important;
    border: 1px solid #681328;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-sizing: border-box;
}

body.single-koncerti.kolarac-single-event-sold-out .kolarac-single-sold-out-button:hover,
body.single-bioskop.kolarac-single-event-sold-out .kolarac-single-sold-out-button:hover {
    background: #681328 !important;
    color: #cccccc !important;
    border-color: #681328;
}

/* Malo siri RASPRODATO badge u Home baner slajderu. */
body .khbs-sold-out {
    min-width: 112px;
    padding-left: 14px;
    padding-right: 14px;
}

@media (max-width: 760px) {
    body.single-koncerti.kolarac-single-event-sold-out .kolarac-single-sold-out-holder,
    body.single-bioskop.kolarac-single-event-sold-out .kolarac-single-sold-out-holder {
        margin-top: 14px;
    }

    body.single-koncerti.kolarac-single-event-sold-out .kolarac-single-sold-out-button,
    body.single-bioskop.kolarac-single-event-sold-out .kolarac-single-sold-out-button {
        min-width: 138px;
        min-height: 38px;
        padding: 10px 18px;
        font-size: 13px;
    }

    body .khbs-sold-out {
        min-width: 96px;
        padding-left: 10px;
        padding-right: 10px;
    }
}


/* =====================================================
   SOLD OUT VISUAL REFINEMENTS - 1.0.94
   ===================================================== */

/* Single event pages: keep the RASPRODATO control visually closer to the
 * original large ticket CTA instead of the smaller generic badge.
 */
body.single-koncerti.kolarac-single-event-sold-out .kolarac-single-sold-out-button,
body.single-bioskop.kolarac-single-event-sold-out .kolarac-single-sold-out-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 260px !important;
    min-height: 60px !important;
    padding: 16px 36px !important;
    background: #681328 !important;
    color: #cccccc !important;
    border: 0 !important;
    font-size: clamp(20px, 2.05vw, 28px) !important;
    font-weight: 900 !important;
    line-height: 0.95 !important;
    letter-spacing: 0.01em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

/* Home program sliders: RASPRODATO is longer than KARTE, so give it its
 * own width and slightly calmer type while keeping the ticket-button position.
 */
body .kps-ticket.kps-sold-out,
body .kps-sold-out {
    right: 0 !important;
    bottom: 0 !important;
    width: 15.4cqw !important;
    min-width: 118px !important;
    height: 3.08cqw !important;
    min-height: 28px !important;
    padding-left: 0.8cqw !important;
    padding-right: 0.8cqw !important;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: clamp(12px, 1.34cqw, 18px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Home banner slider: make the small left-panel badge wider and more stable. */
body .khbs-sold-out {
    min-width: 128px !important;
    min-height: 26px !important;
    padding: 6px 16px !important;
    font-size: clamp(11px, 1.25cqw, 15px) !important;
    letter-spacing: 0.035em !important;
}

@media (max-width: 760px) {
    body.single-koncerti.kolarac-single-event-sold-out .kolarac-single-sold-out-button,
    body.single-bioskop.kolarac-single-event-sold-out .kolarac-single-sold-out-button {
        min-width: 220px !important;
        min-height: 52px !important;
        padding: 14px 28px !important;
        font-size: 19px !important;
    }

    body .kps-ticket.kps-sold-out,
    body .kps-sold-out {
        width: 140px !important;
        min-width: 140px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: 14px !important;
    }

    body .khbs-sold-out {
        min-width: 112px !important;
        min-height: 24px !important;
        padding: 5px 12px !important;
        font-size: 10px !important;
    }
}

/* 1.0.125 — istekli događaji: zadrži obojeni CTA okvir, ali bez aktivnog linka/vidljivog teksta. */
body .kolarac-ticket-expired {
    pointer-events: none !important;
    cursor: default !important;
    color: transparent !important;
    text-shadow: none !important;
    text-decoration: none !important;
    user-select: none !important;
}

body .kolarac-ticket-expired:hover,
body .kolarac-ticket-expired:focus,
body .kolarac-ticket-expired:active {
    color: transparent !important;
    text-decoration: none !important;
    filter: none !important;
    outline: 0 !important;
}

body .kolarac-ticket-expired * {
    visibility: hidden !important;
}


/* Tables in native event descriptions; keep old concert-table class for existing posts. */
table.kolarac-event-table,
table.kolarac-concert-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
table.kolarac-event-table th,
table.kolarac-event-table td,
table.kolarac-concert-table th,
table.kolarac-concert-table td {
    border: 1px solid #b4b4b4 !important;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

/* 1.0.142 — tables inserted in Koncerti, Bioskop and Predavanja descriptions. */
table.kolarac-event-table,
table.kolarac-concert-table {
    border: 1px solid #b4b4b4;
    background-color: #fff;
}
table.kolarac-event-table th,
table.kolarac-concert-table th {
    background-color: #681428 !important;
    color: #fff !important;
}
table.kolarac-event-table th a,
table.kolarac-concert-table th a {
    color: #fff !important;
}
table.kolarac-event-table td,
table.kolarac-concert-table td {
    background-color: #fff !important;
}


/* 1.0.143 — keep full-size images inserted in native event descriptions
   inside their single-event content container on desktop and mobile. */
body.single-koncerti .entry-content img[class*="wp-image-"],
body.single-bioskop .entry-content img[class*="wp-image-"],
body.single-predavanja .entry-content img[class*="wp-image-"] {
    max-width: 100% !important;
    height: auto !important;
}
body.single-koncerti .entry-content .wp-caption,
body.single-bioskop .entry-content .wp-caption,
body.single-predavanja .entry-content .wp-caption {
    max-width: 100% !important;
    box-sizing: border-box;
}


/* 1.0.145 - Keep WP alignleft/alignright image floats inside event description.
 * Without a new formatting context, a floated image can leak into subsequent
 * frontend rows (for example the performers row). Do not change the image's
 * alignment within the description or globally clear all site images. */
body.single-koncerti .kolarac-event-description,
body.single-bioskop .kolarac-event-description,
body.single-predavanja .kolarac-event-description {
    display: flow-root;
    max-width: 100%;
}

/* Clearing fallback for any environment without display:flow-root support. */
body.single-koncerti .kolarac-event-description::after,
body.single-bioskop .kolarac-event-description::after,
body.single-predavanja .kolarac-event-description::after {
    content: "";
    display: block;
    clear: both;
}


/* 1.0.148 - Header menu fit must be global, not tied to sliders.
 * Pages without Kolarac shortcodes previously omitted the padding/font-size
 * adjustments, while global white-space:nowrap stayed active. This caused
 * wider Cyrillic menus on those pages.
 */
/* Header main menu fit
 * Keeps the Cyrillic main menu in one row after the language switcher text increase.
 * Scoped to desktop/tablet header widths above the GeneratePress mobile breakpoint.
 */
@media (min-width: 1201px) {
    .main-navigation .main-nav > ul,
    .main-navigation .menu-bar-items {
        flex-wrap: nowrap !important;
    }

    .main-navigation .main-nav > ul > li > a {
        white-space: nowrap !important;
    }

    .lcu-header-switcher {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 1201px) and (max-width: 1500px) {
    .main-navigation .main-nav > ul > li > a {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .lcu-header-switcher {
        margin-left: 10px !important;
    }
}

@media (min-width: 1201px) and (max-width: 1360px) {
    .main-navigation .main-nav > ul > li > a {
        padding-left: 9px !important;
        padding-right: 9px !important;
        font-size: 0.96em !important;
    }

    .lcu-header-switcher {
        margin-left: 8px !important;
    }
}



/* 1.1 — Slightly relaxed spacing ONLY when the actual primary navigation is
 * in Cyrillic. JS adds .kolarac-cyrillic-menu to <html> after inspecting the
 * rendered navigation labels; this does not depend on the page template,
 * query string, or whether the language plugin rewrites the <html lang> attr.
 * Keep the shared 1.0.148 header fix for all languages.
 */
@media (min-width: 1201px) {
    html.kolarac-cyrillic-menu .main-navigation .main-nav > ul > li > a {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    html.kolarac-cyrillic-menu .lcu-header-switcher {
        margin-left: 6px !important;
    }
}
@media (min-width: 1201px) and (max-width: 1500px) {
    html.kolarac-cyrillic-menu .main-navigation .main-nav > ul > li > a {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    html.kolarac-cyrillic-menu .lcu-header-switcher {
        margin-left: 5px !important;
    }
}
@media (min-width: 1201px) and (max-width: 1360px) {
    html.kolarac-cyrillic-menu .main-navigation .main-nav > ul > li > a {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    html.kolarac-cyrillic-menu .lcu-header-switcher {
        margin-left: 4px !important;
    }
}
