.events-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.event-image-block {
    min-height: calc(100vw/7);
}


@media (max-width: 1190px) {
    .events-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-image-block {
        min-height: calc(100vw/5);
    }
    
}

@media (max-width: 750px) {
    .events-wrap {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .event-image-block {
        min-height: calc(100vw/2);
    }
}

.spinner {
    background: url(images/spinner.gif) no-repeat;
    background-size: 20px 20px;
    display: none;
    vertical-align: middle;
    opacity: .7;
    width: 20px;
    height: 20px;
}

.podujatia-mood > div {
    flex: 1;
}

.podujatie-mood {
    /* width: 12vw;
    min-width: 148px; */
    padding-top: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--30);
    padding-bottom: var(--wp--preset--spacing--40);
    padding-left: var(--wp--preset--spacing--30);
}

@media (max-width: 1199px) {
    .podujatia-mood > div {
        min-width: 25%;
    }
}

@media (max-width: 600px) {
    .podujatia-mood > div {
        min-width: 45%;
    }
}

.event-name {
    font-size:clamp(0.929rem, 0.929rem + ((1vw - 0.2rem) * 0.785), 1.4rem);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
* Cover block classes
*/

.wp-block-cover, .wp-block-cover-image {
    align-items: center;
    background-position: 50%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    overflow: hidden;
    overflow: clip;
    padding: 1em;
    position: relative;
}

:where(.wp-block-cover-image:not(.has-text-color)), :where(.wp-block-cover:not(.has-text-color)) {
    color: #fff;
}

.wp-block-cover .wp-block-cover__image-background, .wp-block-cover video.wp-block-cover__video-background, .wp-block-cover-image .wp-block-cover__image-background, .wp-block-cover-image video.wp-block-cover__video-background {
    border: none;
    bottom: 0;
    box-shadow: none;
    height: 100%;
    left: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    object-fit: cover;
    outline: none;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.wp-block-cover__image-background, .wp-block-cover__video-background {
    z-index: 0;
}

.wp-block-cover-image.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container, .wp-block-cover.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container {
    margin: 0;
}

.wp-block-cover .wp-block-cover__inner-container, .wp-block-cover-image .wp-block-cover__inner-container {
    color: inherit;
    width: 100%;
    z-index: 1;
}

.wp-block-cover-image.is-position-top-center, .wp-block-cover.is-position-top-center {
    align-items: flex-start;
    justify-content: center;
}

/*
* Icon block classes
*/
.wp-block-outermost-icon-block .has-icon-color:not(.has-no-icon-fill-color) svg, .wp-block-outermost-icon-block.has-icon-color:not(.has-no-icon-fill-color) svg {
    fill: currentColor;
}

.wp-block-outermost-icon-block .has-icon-color svg, .wp-block-outermost-icon-block.has-icon-color svg {
    color: currentColor;
}

.wp-block-outermost-icon-block svg {
    transform: rotate(var(--outermost--icon-block--transform-rotate, 0deg)) scaleX(var(--outermost--icon-block--transform-scale-x, 1)) scaleY(var(--outermost--icon-block--transform-scale-y, 1));
}

.wp-block-outermost-icon-block a, .wp-block-outermost-icon-block svg {
    height: 100%;
    transition: transform .1s ease-in-out;
    width: 100%;
}

/*
* Timeline
*/

/* Timeline switch */
.mode-switch {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    gap: 1rem;
}

.mode-switch li {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    text-indent: 0;
    font-family: var(--wp--preset--font-family--barlow-condensed);
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1.3rem;
    background-color: var(--wp--preset--color--grey-2);
    color: var(--wp--preset--color--white);
    font-weight: 600;
}

.mode-switch li:hover:not(.selected) {
    color: var(--wp--preset--color--bkis);
}

.mode-switch li.selected {
    color: var(--wp--preset--color--white);
    background-color: var(--wp--preset--color--contrast);
}

@media (max-width: 576px) {

    .wp-block-button.add-event .wp-block-button__link  {
        font-size: 1.2rem;      
        width: 100%;
    }

    .wp-block-button.add-event {
        flex: 1;
    }

    .mode-switch-wrap {
        width: 100%;
    }

    .mode-switch{
        width: 100%;
    }

    .mode-switch-wrap p {
        display: none;
    }

    .mode-switch li {
        font-size: 1.2rem;
        padding: 0px 20px !important;
        flex: 1;
        justify-content: center;
    }

    #event_count_lbl {
        flex: 0.6;
    }
}

@media (min-width: 768.01px) and (max-width: 1280px) {
    .mode-switch li  {
        font-size: 1.1rem;      
    }
}

/* .mode-switch li:where(:not(:first-child)):before {
    content: "|";
    text-align: center;
    width: 1em;
} */

/* Timeline events */
.events-wrap.timeline {
    display: block;
}

.timeline-wrap {
    overflow-x: auto;
    position: relative;
    overflow-y: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: grab;
}

.timeline-times {
    font-weight: 400;
    font-size: 16px;
    line-height: 1rem;
    border-color:  var(--wp--preset--color--contrast);
    border-bottom-width: 1px;
    width: fit-content;
    display: grid;
    z-index: 0;
    position: relative;
    background-color: var(--wp--preset--color--base-3);
    height: 60px;
}

.timeline-time-block {
    padding-bottom: 0.25rem;
    width: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    transform: translate(-50%, 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.timeline-line-wrap {
    line-height: 1.45;
    position: relative;
    box-sizing: border-box;
}

.timeline-line-bg {
    border-width: 0;
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-color: var(--wp--preset--color--contrast);
    border-style: solid;
    width: fit-content;
    display: grid;
    background-color: #d8edfc;
    margin-top: -1px;
}

.timeline-line-building {
    z-index: 2;
    left: 0px;
    position: sticky;
    transform: translate3d(0, 0, 0);
    box-sizing: border-box;
}

.timeline-line-building-lbl {
    bottom: -3.5rem;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--white);
    border-radius: 0px;
    text-overflow: ellipsis;
    margin-top: 0.375rem;
    margin-bottom: 0.375rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    position: absolute;
    overflow: hidden;
    max-width: 16rem; 
    text-wrap: wrap;
}

.timeline-line-bg-element {
    height: 62px;
    opacity: 1.0;
    background-color:#fff;
    border-color: #d8edfc;
    border-width: 0;
    border-left-width: 0.075rem;
    border-right-width: 0.075rem;
    border-style: solid;
    width: 8rem;
    box-sizing: border-box;
}

.timeline-line-bg-element:nth-child(4n-3),
.timeline-line-bg-element:nth-child(4n-2) {
    opacity: 0.8;
}

.timeline-event-box {
    border-bottom-width: 0px;
    margin-left: -0.075rem;
    z-index: 1;
    position: absolute;
    box-sizing: border-box;
    top: 0rem;
}

.timeline-event-box:hover {
    min-width: max-content;
    z-index: 2;
}

.timeline-event-box-inner {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    background-color:#d8edfc;
    border-color: black;
    border-width: 1px;
    height: 62px;
    display: flex;
    box-sizing: border-box;
    overflow: hidden;
    border-style: solid;
    font-size: 1rem;
}

.timeline-event-box-event-info {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    flex-grow: 1;
    overflow: hidden;
    box-sizing: border-box;
}

.timeline-event-box-event-info-el {
    white-space: nowrap;
    box-sizing: border-box;
}

.timeline-event-box-event-info-el a {
    color: #3A3AB6;
}

figure.a11y {
    display: inline;
    padding-left: 5px;
}

.timeline .access-icon {
    object-fit: cover;
    width: 20px;
}

/*
* Calendar object
*/

#calendar_wrap {
    display: flex;
    gap: 4rem;
}

@media only screen and (max-width: 1099px) {
    #calendar_wrap {
        flex-direction: column;
        gap: unset;
    }
}

#calendar_wrap > div{
    flex: 1;
}

#calendar_wrap .access-icon-in-title {
    vertical-align: sub;
    width: 20px;
    padding-right: 4px;
    padding-left: 4px;
}

.events-wrap.calendar {
    display: block;
}

div#calendar div.box{
    position:relative;
    top:0px;
    left:0px;
    width:100%;
    height:40px;
    background-color:   #787878 ;      
}

div#calendar div.box {
    background-color: transparent;
    height: auto;
}
    
div#calendar div.box .header { 
    background: transparent;
    -webkit-box-shadow: none;
    box-shadow: none;
    height: 130px;
    margin-bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    position: relative;
    left: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

div#calendar ul.label {
    background-color: var(--wp--preset--color--base-3);
    margin: 0;
    border-radius: 3px;
    letter-spacing: 1px;
    width: 100%;
    float: left;
    padding: 0px;
}

div#calendar ul.label li {
    color: var(--wp--preset--color--contrast);
    width: 14.2857%;
    margin:0px;
    padding:0px;
    float:left;
    list-style-type:none;
    height:40px;
    line-height:40px;
    vertical-align:middle;
    text-align:center;
    background-color: transparent;
}

div#calendar div.box .header a.prev, div#calendar div.box .header a.next {
    padding: 0 20px;
    width: 140px;
}

div#calendar div.box .header .title {
    font-weight: 700;
    color: #5e7083;
    letter-spacing: 2px;
    text-align: center;
}

div#calendar div.box .header .title .year {
    font-size: 28px;
}

div#calendar .month-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

div#calendar div.box-content {
    border: none;
}

div#calendar ul.dates {
    float: left;
    margin: 0px;
    margin-top: 0px;
    margin-left: 0px;
    padding: 0px;
    margin-left: 1px;
    margin-top: -1px;
    width: calc(100% - 2px);
    border: 1px solid #dedede;
    border-bottom: none;
    border-top: none;
    position: relative;
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: (1fr)[5];
    grid-template-rows: repeat(5, 1fr);
    padding-bottom: 1px;
    -ms-grid-columns: (1fr)[7];
    grid-template-columns: repeat(7, 1fr);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    grid-gap: 1px;
    background: #dedede;
}

div#calendar ul.dates li {
    background-color: #fff;
    width: auto;
    margin: 0px;
    outline: 2px solid transparent;
    outline-offset: -1px;
    display: block;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

div#calendar ul.dates li.has-events {
    cursor: pointer;
}

div#calendar ul.dates li:hover, div#calendar ul.dates li.selected {
    background-color: #fff1cc;
}

div#calendar div.box .header .title .month {
    color: black;
}

div#calendar ul.dates li .day_number {
    position: absolute;
    top: 10%;
    right: 10%;
    margin: 0px;
}

div#calendar ul.dates li.mask {
    background-color: #f8f8f8;
}

div#calendar ul.dates li a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    color: #fff;
    text-decoration: none;
}

div#calendar ul.dates li .event-item {
    max-height: 34px;
    height: auto;
    display: block;
    width: 100%;
    border-radius: 2px;
    font-size: 12px;
    color: white;
    padding: 5px 6px;
    margin: 2px 6px;
    line-height: 1em;
    font-weight: 500;
    text-align: left;
    position: relative;
    top: 0;
}

div#calendar div.box .header a.next:after {
    content: "";
    display: inline-block;
    width: 11px;
    height: 100%;
    position: relative;
    right: -8px;
    top: 0px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../src/arrow-right.png);
}

div#calendar div.box .header a.prev:before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 100%;
    position: relative;
    left: -8px;
    top: 0px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../src/arrow-left.png);
}

div#calendar ul.dates li .event-item .event-item-time {
    padding-right: 3px;
}

@media only screen and (max-width: 768px) {

    div#calendar ul.dates li .event-item {
        margin: 0;
        font-size: 10px;
        padding: 2px;
        word-break: break-all;
        overflow: hidden;
        max-height: 14px;
        line-height: 12px;
    }

    div#calendar ul.dates li {
        outline: none !important;
    }

    div#calendar ul.dates li .event-item .event-item-time {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    div#calendar div.box .header {
        height: 188px;
    }

    div#calendar div.box .header .title {
        position: absolute;
        margin-top: 0;
        top: 28px;
    }

    div#calendar div.box .header .title .year {
        height: 26px;
    }    

    div#calendar div.box .header a.next, div#calendar div.box .header a.prev {
        margin-top: 102px;
    }    
}

div#calendar{
  width: 100%;
  margin:0px auto;
  padding:0px;
}
 
div#calendar div.header{
    line-height:40px;  
    vertical-align:middle;
    position:absolute;
    left:11px;
    top:0px;
    width:100%;
    height:40px;   
    text-align:center;
}

div#calendar div.header span.title{
    color:#FFF;
    font-size:18px;
}
 
div#calendar div.header a.prev{
    left:0px;
}
 
div#calendar div.header a.next{
    right:25px;
}

.cal-day-list {
    display: none;
}

.cal-day-list.selected {
    display: block;
}

.cal-day-list-wrap {
    display: flex;
    flex-direction: column;
}

.cal-day-list-heading {
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cal-day-list-event-details {
    display: flex;
    flex-wrap: wrap;
}

@media only screen and (max-width: 600px) {
    .cal-day-list-event-details {
        flex-direction: column;
    }  
}

.cal-day-list-event-details p:first-child {
    padding-right: 1rem;
    min-width: 175px;
}

.cal-day-list-event-details p {
    margin: 0px;
}

.cal-day-list-event {
    padding: 0.5rem 1rem 1rem 1rem;
}

.cal-day-list-event p {
    font-size: var(--wp--preset--font-size--small);
}

.cal-day-list-event.odd {
    background-color: var(--wp--preset--color--base-3);
}

.cal-day-list-event:hover {
    background-color: #fff1cc;
}
 
div.clear{
    clear:both;
}  