
.rs-pk-wrap,
.rs-pk-upcoming,
.rs-pk-current-card,
.rs-pk-empty-card {
    font-family: inherit;
}

.rs-pk-wrap {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.rs-pk-header {
    padding: 22px 24px 10px;
}

.rs-pk-header h3,
.rs-pk-section-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    color: #0f172a;
}

.rs-post-calendar {
    min-height: 500px;
    padding: 0;
}

.rs-post-calendar-custom {
    --rs-line: rgba(0, 0, 0, 0.08);
    --rs-day-h: 140px;
    --rs-lane-h: 32px;
}

.rs-cal-shell {
    background: #fff;
    border-top: 1px solid var(--rs-line);
}

.rs-cal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
}

.rs-cal-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
}

.rs-cal-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rs-cal-btn {
    border: none;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.rs-cal-btn-light {
    background: #fff;
    color: #111;
    border: 1px solid var(--rs-line);
}

.rs-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid var(--rs-line);
    border-bottom: 1px solid var(--rs-line);
}

.rs-cal-weekday {
    padding: 12px;
    text-align: center;
    font-weight: 700;
    background: #faf8f4;
    border-right: 1px solid var(--rs-line);
}

.rs-cal-weekday:last-child {
    border-right: none;
}

.rs-cal-grid {
    display: flex;
    flex-direction: column;
}

.rs-cal-week-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid var(--rs-line);
}

.rs-cal-week-row:last-child {
    border-bottom: none;
}

.rs-cal-day {
    min-height: var(--rs-day-h);
    border-right: 1px solid var(--rs-line);
    padding: 10px;
    position: relative;
    background: #fff;
}

.rs-cal-day:last-child {
    border-right: none;
}

.rs-cal-day.is-other {
    background: #fafafa;
    color: #b9b9b9;
}

.rs-cal-day.is-today {
    background: #f6f6f6;
}

.rs-cal-day-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 3;
}

.rs-cal-day.is-today .rs-cal-day-number {
    background: #111;
    color: #fff;
}

.rs-cal-week-bars {
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    z-index: 2;
    pointer-events: none;
}

.rs-cal-event-bar {
    position: absolute;
    height: 28px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rs-cal-event-bar.color-1 {
    background: #1f2937;
}

.rs-cal-event-bar.color-2 {
    background: #374151;
}

.rs-cal-event-bar.color-3 {
    background: #4b5563;
}

.rs-cal-event-bar.is-continued-left {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.rs-cal-event-bar.is-continued-right {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.rs-cal-mobile-events {
    display: none;
    margin-top: 8px;
    position: relative;
    z-index: 3;
}

.rs-cal-mobile-chip {
    display: block;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.25;
    margin-bottom: 6px;
}

.rs-cal-mobile-chip small {
    display: block;
    opacity: 0.8;
    font-size: 9px;
    margin-bottom: 2px;
}

.rs-cal-mobile-empty {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    margin-top: 6px;
}

.rs-cal-popover {
    position: fixed;
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.18s ease;
    z-index: 9999;
}

.rs-cal-popover.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.rs-cal-popover img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.rs-cal-popover-content {
    padding: 14px;
}

.rs-cal-popover-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    line-height: 1.35;
}

.rs-cal-popover-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.rs-cal-popover-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
}

.rs-pk-current-card {
    position: relative;
    min-height: 380px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.rs-pk-current-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.76) 75%, rgba(2, 6, 23, 0.92) 100%);
}

.rs-pk-current-card__content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 28px;
    color: #fff;
}

.rs-pk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.rs-pk-date {
    font-size: 14px;
    color: rgba(255,255,255,0.86);
    margin-bottom: 10px;
}

.rs-pk-current-card__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.08;
}

.rs-pk-current-card__title a {
    color: #fff;
    text-decoration: none;
}

.rs-pk-current-card__content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    max-width: 780px;
}

.rs-pk-upcoming-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.rs-pk-upcoming-item,
.rs-pk-empty-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 22px;
}

.rs-pk-upcoming-date {
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rs-pk-upcoming-item h4 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.rs-pk-upcoming-item h4 a {
    color: #0f172a;
    text-decoration: none;
}

.rs-pk-upcoming-item p,
.rs-pk-empty-card {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .rs-pk-upcoming-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .rs-post-calendar {
        min-height: 420px;
    }

    .rs-cal-toolbar {
        padding: 16px;
    }

    .rs-cal-title {
        font-size: 22px;
    }

    .rs-cal-weekday {
        font-size: 11px;
        padding: 10px 4px;
    }

    .rs-cal-day {
        min-height: 100px;
        padding: 8px;
    }

    .rs-cal-day-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .rs-cal-week-bars {
        display: none;
    }

    .rs-cal-mobile-events {
        display: block;
    }

    .rs-cal-popover {
        display: none;
    }

    .rs-pk-current-card {
        min-height: 320px;
    }

    .rs-pk-current-card__content {
        padding: 22px;
    }

    .rs-pk-header h3,
    .rs-pk-section-title {
        font-size: 22px;
    }
}

/* Aktuelne izložbe slider widget */
.rs-aktuelne-izlozbe-slider-wrap{
    max-width:1400px;
    margin:auto;
    padding:0;
}

.rs-aktuelne-izlozbe-slider{
    position:relative;
    overflow:hidden;
    border-radius:20px;
}

.rs-izlozbe-track{
    display:flex;
    transition:transform .7s ease;
    will-change:transform;
}

.rs-izlozba-slide{
    min-width:100%;
    position:relative;
}

.rs-izlozba-card{
    position:relative;
    min-height:210px;
    border-radius:20px;
    overflow:hidden;
    background:#333;
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:flex-end;
    box-shadow:0 18px 50px rgba(0,0,0,.18);
}

.rs-izlozba-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.85) 0%,
        rgba(0,0,0,.45) 50%,
        rgba(0,0,0,0) 100%
    );
}

.rs-izlozba-content{
    position:relative;
    z-index:2;
    padding:24px;
    color:#fff;
}

.rs-izlozba-datum{
    display:inline-block;
    margin-bottom:10px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(4px);
    font-size:14px;
    font-weight:600;
}

.rs-izlozba-title{
    margin:0;
    font-size:30px;
    line-height:1.15;
}

.rs-izlozba-title a{
    color:#fff;
    text-decoration:none;
}

.rs-izlozba-title a:hover{
    opacity:.85;
}

.rs-slider-dots{
    position:absolute;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    display:flex;
    gap:10px;
    z-index:5;
}

.rs-slider-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.45);
    cursor:pointer;
    padding:0;
    transition:.25s ease;
}

.rs-slider-dot.active{
    background:#fff;
    transform:scale(1.15);
}

.rs-slider-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:5;
    width:46px;
    height:46px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:rgba(255,255,255,.18);
    color:#fff;
    backdrop-filter:blur(6px);
    font-size:22px;
    line-height:1;
    display:none; /* flex */
    align-items:center;
    justify-content:center;
    transition:.25s ease;
}

.rs-slider-arrow:hover{
    background:rgba(255,255,255,.28);
}

.rs-slider-arrow.prev{
    left:18px;
}

.rs-slider-arrow.next{
    right:18px;
}

@media(max-width:900px){
    .rs-izlozba-card{
        min-height:170px;
    }

    .rs-izlozba-title{
        font-size:24px;
    }

    .rs-slider-arrow{
        width:40px;
        height:40px;
        font-size:18px;
    }
}

@media(max-width:600px){
    .rs-aktuelne-izlozbe-slider-wrap{
        padding:0;
    }

    .rs-izlozba-card{
        min-height:140px;
        border-radius:16px;
    }

    .rs-aktuelne-izlozbe-slider{
        border-radius:16px;
    }

    .rs-izlozba-content{
        padding:18px;
    }

    .rs-izlozba-title{
        font-size:21px;
    }

    .rs-izlozba-datum{
        font-size:13px;
    }

    .rs-slider-arrow.prev{
        left:10px;
    }

    .rs-slider-arrow.next{
        right:10px;
    }

    .rs-slider-dots{
        bottom:12px;
    }
}


/* Predstojeće izložbe grid */

.rs-aktuelne-izlozbe{
max-width:1400px;
margin:auto;
padding:30px 20px;
}

.rs-izlozbe-grid{
display:grid;
grid-template-columns:1fr;
gap:24px;
}

.rs-izlozbe-grid--single{
grid-template-columns:1fr;
}

.rs-izlozba-card{
position:relative;
min-height:190px;
border-radius:20px;
overflow:hidden;
background-size:cover;
background-position:center;
display:flex;
align-items:flex-end;
box-shadow:0 18px 50px rgba(0,0,0,.18);
}

.rs-izlozba-card::before{
content:"";
position:absolute;
inset:0;
background:linear-gradient(
to top,
rgba(0,0,0,.85) 0%,
rgba(0,0,0,.45) 50%,
rgba(0,0,0,0) 100%
);
}

.rs-izlozba-content{
position:relative;
padding:24px;
color:#fff;
}

.rs-izlozba-datum{
display:inline-block;
margin-bottom:10px;
padding:6px 12px;
border-radius:999px;
background:rgba(255,255,255,.15);
backdrop-filter:blur(4px);
font-size:14px;
}

.rs-izlozba-title{
margin:0;
font-size:20px;
line-height:1.2;
}

.rs-izlozba-title a{
color:#fff;
text-decoration:none;
}

.rs-izlozba-title a:hover{
opacity:.8;
}

@media(max-width:900px){

.rs-izlozbe-grid{
grid-template-columns:1fr;
}

.rs-izlozba-card{
min-height:160px;
}

}
