/****
CALENDAR
****/

.calendar-container {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
}
.calendar-sidebar {
    width: 33%;
    background: var(--global-palette1);
    padding: clamp(1.25rem, 0.82179rem + 1.803vw, 2.625rem);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 315px;
}
.calendar-sidebar h2{
    color: white;
}
.calendar-sidebar .cta a.button {
    background: var(--global-palette2);
    width: 100%;
    border-radius: 100px;
    text-align: center;
}

.calendar-container .posts-content,
.calendar-container #standish-events-calendar-loading{
    width: 66%;
    padding: clamp(1.25rem, 0.82179rem + 1.803vw, 2.625rem);
    background: var(--global-palette7);
}

.calendar-container .standish-single-event:hover{
    opacity: initial;
}
.calendar-container .standish-single-event{
    display: flex;
    width: 100%;
    margin-bottom: 0px;
    border-bottom: 1px solid var(--global-palette7);
    padding-bottom: 20px;
}
.calendar-container .standish-single-event .content{
    padding: 0px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}
.calendar-container .standish-single-event .content .title{
    padding-bottom: 15px;
}
.calendar-container .standish-single-event .content h3{
    font-size: 24px;
    font-weight: 700;
    margin:0px;
}
.calendar-container .standish-single-event .content h3 a{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0px;
}
.calendar-container .standish-single-event .content h3:hover{
    color: var(--global-palette1);
}
.calendar-container .standish-single-event .content .event-over {
    color: var(--global-palette1);
    font-size: 19px;
    font-weight: initial;
    margin-top: 0px;
}
.calendar-container .standish-single-event .content a.btn-event-link {
    text-decoration: underline !IMPORTANT;
    font-size: 1rem;
    color: var(--global-palette3);
    font-weight: 500;
    margin:0;
}
.calendar-container .standish-single-event .content a.btn-event-link:hover {
    color: var(--global-palette1);
}
.calendar-container .standish-single-event .image{
    height: 128px; /* 4:3 */
    border-radius: 20px;
    min-height: inherit;
    width: 170px;
    min-width: 170px;
    background-position: center;
}

.calendar-container .standish-single-event .date {
    background-color: inherit;
    font-size: 1rem;
    line-height: 1.2em;
    border-radius: 0;
    font-weight: 500;
    padding:initial;
}
.calendar-container .standish-single-event .dates {
    position: inherit;
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
}
/*.calendar-container .standish-single-event .dates:before {
    content: url('/wp-content/plugins/standish-evenements/assets/icons/calendar.svg');
    width: 20px;
    height: 20px;
    margin-right: 12px;
}*/

/*.calendar-container .standish-single-event .endroit:before {
    content: url('/wp-content/plugins/standish-evenements/assets/icons/location.svg');
    width: 20px;
    height: 20px;
    margin-right: 12px;
}*/
.calendar-container .standish-single-event .endroit .separator{
    padding: 0 8px;
}

/* VANILLA CALENDAR */

#standish-events-calendar.vanilla-calendar {
    background-color: transparent;
    padding: 35px 0px;
}
#standish-events-calendar .vanilla-calendar-arrow {
    height: 1em !important;
    width: 1em !important;
}
#standish-events-calendar .vanilla-calendar-header {
    justify-content: center !important;
    margin-bottom: 1em;
}
#standish-events-calendar .vanilla-calendar-day__btn_disabled,
#standish-events-calendar .vanilla-calendar-months__month.vanilla-calendar-months__month_disabled, 
#standish-events-calendar .vanilla-calendar-years__year.vanilla-calendar-years__year_disabled,
#standish-events-calendar .vanilla-calendar-months__month.vanilla-calendar-months__month_disabled, 
#standish-events-calendar .vanilla-calendar-years__year.vanilla-calendar-years__year_disabled,
#standish-events-calendar .vanilla-calendar-day__btn_disabled,
#standish-events-calendar button.vanilla-calendar-day__btn.vanilla-calendar-day__btn_disabled,
#standish-events-calendar button.vanilla-calendar-day__btn.vanilla-calendar-day__btn_disabled.vanilla-calendar-day__btn_weekend, 
#standish-events-calendar button.vanilla-calendar-day__btn.vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_disabled {
    opacity: 0.4 !important;
    border-bottom: inherit;
    font-weight: 400;
    width: 85%;
}
#standish-events-calendar .vanilla-calendar-arrow:hover:before  {
    background-color: white !important;
}
#standish-events-calendar .vanilla-calendar-week__day_weekend,
#standish-events-calendar .vanilla-calendar-months__month.vanilla-calendar-months__month_disabled, 
#standish-events-calendar .vanilla-calendar-month:hover, 
#standish-events-calendar .vanilla-calendar-year:hover, 
#standish-events-calendar .vanilla-calendar-month.vanilla-calendar-month_not-active, 
#standish-events-calendar .vanilla-calendar-year.vanilla-calendar-year_not-active, 
#standish-events-calendar .vanilla-calendar-years__year.vanilla-calendar-years__year_disabled {
    color: white;
}
#standish-events-calendar button.vanilla-calendar-day__btn {
    background-color: transparent;
    color: white;
    padding: 1em;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
    border-bottom: solid 3px white;
    border-radius: 0px;
    bottom: -2px;
    position: relative;
    width: 85%;
}
#standish-events-calendar button.vanilla-calendar-day__btn:hover {
    color: var(--global-palette3) ;
}
#standish-events-calendar button.vanilla-calendar-day__btn.vanilla-calendar-day__btn_selected {
    font-weight: 500;
    border-bottom: solid 3px white;
    border-radius: 0px;
    bottom: -2px;
    position: relative;
    width: 85%;
}
#standish-events-calendar button.vanilla-calendar-day__btn.vanilla-calendar-day__btn_today{
    opacity: 1 !important;
    font-weight: normal;
    border-radius: 100px;
    border: solid 1px white;
    width: 100%;
}
#standish-events-calendar-results .standish-single-event {
    margin: 20px 0;
}

@media only screen and (min-width:768px) and (max-width:1224px){
    .calendar-sidebar{
        width: 45%;
    }
}
@media only screen and (max-width:768px){
    .calendar-sidebar {
        width: 100%;
    }
    .calendar-container {
        display: block;
    }
    .calendar-container .posts-content {
        width: 100%;
        padding: 20px;
    }
    .calendar-container .standish-single-event{
        padding: 0;
        margin:20px 0;
    }
    .calendar-container .standish-single-event .image {
        height: 75px;
        width: 75px;
        min-width: 75px;
    }
    .standish-single-event .endroit{
        display: none;
    }
    .calendar-container .standish-single-event .content h3 {
        font-size: 20px;
    }
    .calendar-container .standish-single-event .content {
        padding: 0px 15px 0;
    }
    .calendar-container .standish-single-event .content .event-over {
        font-size: 16px;
        line-height: 1em;
        padding-top: 5px;
    }
    .calendar-container .standish-single-event .dates {
        display: block;
    }
    .calendar-container .standish-single-event .endroit .separator{
        display: none;
    }

    /* VANILLA CALENDAR */
    #standish-events-calendar button.vanilla-calendar-day__btn {
        font-size: 14px;
    }
    #standish-events-calendar button.vanilla-calendar-day__btn {
        padding: 0.75em;
    }
    .calendar-sidebar .cta a.button{
        padding:0.75em 1em;
    }
    .calendar-sidebar h2{
        text-align: center;
    }
    .calendar-container #standish-events-calendar-loading{
        width: 100%;
    }
}


/****
ÉVENEMENTS
****/

body.single-standish_evenements .entry-content-wrap {
    display: flex;
    flex-direction: column;
}
body.single-standish_evenements .header {
    order: 1;
}
body.single-standish_evenements .entry-content {
    order: 2;
}
body.single-standish_evenements .post-thumbnail {
    order: 3;
    margin-top: 50px;
}
header.entry-header.standish_evenements-title{
    margin-bottom: 0px !important;
}
.standish-single-evenement {
/*    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    margin-left: -32px;*/
    display: block;
    padding: 20px;
    background: var(--global-palette7);
    margin-bottom: 25px;
}
#standish-events-calendar-results {
    display: none;
}
.standish-single-evenement .date {
/*    background: var(--global-palette1);
    padding: 12px 24px;
    border-radius: 0 50px 50px 0;*/
    font-size: var(--global-kb-font-size-md);
    font-weight: 500;
    color: var(--global-palette3);
}
.standish-single-evenement .endroit {
    color: var(--global-palette3) !important;
}
.event-over {
    color: red;
    font-size: var(--global-kb-font-size-md);
    font-weight: 500;
}
body.single-standish_evenements .content-area {
    margin-top: 4rem;
    margin-bottom: 4rem;
}
.standish-evenements-container.standish_evenements .standish-single-event .content {
    padding: 2rem;
    background: var(--global-palette7);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.standish-single-event .title p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.standish-evenements-container.standish_evenements .standish-single-event {
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.standish-evenements-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 40px;
}
/*.standish-single-event{
    width: calc(50% - 40px);
    margin: 20px 0;
    margin-bottom: 50px;
}*/
#standish-events-container-results .standish-single-event:first-child {
    margin-top: 0px;
}
.standish-single-event .dates{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 30px);
}
.standish-single-event .categorie{
    background: var(--global-palette1);
    color: white;
    margin-bottom: 0.25rem;
    display: inline-block;
    line-height: 1.2;
    border-radius: 100px;
    font-size: 15px;
    text-transform: uppercase;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}
.standish-single-event .date,
.standish-single-event .endroit{
    color: var(--global-palette3);
}
.standish-single-event .date{
    font-size: 1em;
}
.standish-single-event .image {
    min-height: 280px;
    transition: all 0.3s;
    background-repeat: no-repeat;
    background-size: cover;
}
.standish-single-event a.btn-event-link {
    text-decoration: none !important;
    margin-top: 25px;
}
h3.standish-event-link{
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2em;
}
.standish-single-event.clickable-column.wp-block-kadence-column {
    cursor: pointer;
}
.footable_parent a {
    color: var(--global-palette1);
}
@media only screen and (min-width: 1025px) and (max-width: 1180px){
.entry-related-inner-content {
    max-width: var(--global-content-narrow-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
}
/*@media only screen and (max-width: 1023px){
    .standish-single-event .dates{
        width: calc(100% - 60px);
    }
}*/
@media only screen and (min-width: 768px) and (max-width: 1024px){
    .standish-evenements-container {
        grid-template-columns: repeat(2, 1fr) !important;
        column-gap: 30px;
        row-gap: 30px;
    }
}


@media only screen and (max-width: 768px){
    .standish-evenements-container{
        grid-template-columns: minmax(0, 1fr);
    }
    .standish-single-evenement {
        display: block;
        margin-left: inherit;
    }

    a.kt-blocks-info-box-link-wrap{
        display: block !important;
    }
    .standish-single-evenement .date {
        font-size: 18px;
        margin-bottom: 20px;
        max-width: fit-content;
        margin-left: -24px;
    }
    .standish-single-evenement .event-over {
        font-size: 18px;
    }
    body.single-standish_evenements .content-container.site-container{
        padding: inherit !important;
    }
    .standish-single-event .image {
        min-height: 275px;
    }
    .standish-single-event .date,
    .standish-single-event .event-over{
        font-size: 21px;
    }
    .standish-single-event .dates{
        top: 35px;
        width: calc(100% - 20px);
    }
}
