

.calendar {
    --day-col-width : 8em;
    --col-spacing : 1em;
}
.calendarDay {
    display: flex;
    align-items: baseline;
    gap: 0 1em;
    border-top: 1px solid rgba(0,0,0,.3);
}

.calendarDayTitle {
    margin: 0;
    padding: .5em 0;
    width: var(--day-col-width);
    font-weight: 500;
}

.calendarDayList {
    flex: 1;
}
.calendarEvent {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: var(--col-spacing);
    padding: .5em 0;
    line-height: 1.2em;
}
.calendarEventWrap + .calendarEventWrap .calendarEvent {
    border-top: 1px solid rgba(0,0,0,.3);
}
.calendarEventHour {
	min-width: 4em;
}
.calendarEventInfo {
    position: relative;
    flex:1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--col-spacing);
    line-height: 1.2em;
}
.calendarEventExposition, .calendarEventTitle {
    font-weight: 600;
}
.calendarEventExposant {
    font-style: italic;
}
.calendarEventLocation {
    display: flex;
    align-items: baseline;
    gap: calc(.5*var(--col-spacing));
    width: 25%;
}
.calendarEventLocation svg {
    width: .8em;
}
.calendarEventLocation span {
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
/**************************************************************************************************/
/********* VERNISSAGE DEAMBULATOIRE
/**************************************************************************************************/
.calendarDay.vernissageDeambulatoire {
    border: 5px solid #000;
    margin-left: calc(-1*(5px + .5em));
    margin-right: calc(-1*(5px + .5em));
    padding-left: .5em;
    padding-right: .5em;
    margin-bottom: -1px;
    flex-wrap: wrap;
}
.vernissageDeambulatoireTitle {
    display: flex;
    width: 100%;
    margin: 1em 0;
}
.vernissageDeambulatoireIntro {
    width: 100%;
    margin-bottom: 1em;
    padding-left: calc(var(--day-col-width) + var(--col-spacing));
}
.vernissageDeambulatoireIntro p {
    max-width: 700px;
    line-height: 1.2em;    
}
.calendarDay.vernissageDeambulatoire .calendarDayList {
    padding-left: calc(var(--day-col-width) + var(--col-spacing));
}

@media screen and (max-width: 1080px) {
    .vernissageDeambulatoireIntro,
    .calendarDay.vernissageDeambulatoire .calendarDayList {
        padding-left: 0;
    }
}
@media screen and (max-width: 1080px) and (min-width:951px) {
    .vernissageDeambulatoire .calendarEventLocation {
        width: 20.5%;
    }
}
@media screen and (max-width: 950px) and (min-width:791px) {
    .vernissageDeambulatoire .calendarEventLocation {
        width: 21.5%;
    }
}

@media screen and (min-width: 791px) {
    /**************************************************************************************************/
    /********* EVENT DESCRIPTION
    /**************************************************************************************************/
    .calendarEventDescription {
        flex: 1;
        position: relative;
    }
    .calendarEventDescription span {
        position: absolute;
        width: 100%; 
        left: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .calendarEvent:hover .calendarEventDescription {
        position: absolute;
        top: 100%;
        left:-1em;
        width: calc(100% + 2em);
        padding: .5em 1em 1em;
        background: #000;
        color: #fff;
        pointer-events: none;
        box-shadow: 5px 5px 10px -5px rgba(0,0,0,.5);
    }

    .calendarEvent:hover .calendarEventDescription span {
        position: static;
        white-space: initial;
        text-overflow: initial;
    }

    /**************************************************************************************************/
    /********* HOVER EFFECT
    /**************************************************************************************************/
    .calendarEvent:hover {
        background: #000;
        color: #fff;
        z-index:9999;
        padding-left: .5em;
        box-shadow: 5px 5px 10px -5px rgba(0,0,0,.8);
    }
}

/**************************************************************************************************/
/********* RESPONSIVE
/**************************************************************************************************/
@media screen and (max-width: 790px) {
    .calendarDay {
        flex-wrap: wrap;
        border: none;
    }
    .calendarDayTitle {
        width: calc(100% + 1em + 10px);
        font-weight: bold;
        background: rgba(0,0,0,.1);
        margin-left: calc(-1*(5px + .5em));
        margin-right: calc(-1*(5px + .5em));
        padding-left: calc(5px + .5em);
        padding-right: calc(5px + .5em);
    }
    .calendarEventWrap + .calendarEventWrap .calendarEvent {
        border:none;
    }

    .calendarEvent {
        display: grid;
        grid-template: 
            "hour info" auto
            "hour loca" auto / 4em 1fr;
        gap: .25em;
    }
    .calendarEventHour {grid-area : hour;}
    .calendarEventInfo {grid-area : info;}
    .calendarEventLocation {grid-area : loca;width: 100%;font-style: italic;}
    .calendarEventLocation span {
        white-space: initial;
        overflow: initial;
    }
}