#template .events-module .calendar{ margin:0; width: 100%;border-collapse: collapse; table-layout: fixed; /*  background: #fff; */}
#template .events-module .calendar ul, 
#template .events-module .calendar li{padding:0; margin:0 0 0.25em; list-style: none;}

#template .events-module .calendar thead h1{font-size: 1.25em; margin-bottom: 0.5em; text-transform: uppercase; text-align: center;}

#template .events-module .calendar thead th,
#template .events-module .calendar .day {letter-spacing: normal; font-weight: normal; word-spacing: normal; vertical-align: top;}

#template .events-module .calendar thead th, 
#template .events-module .calendar .day{width:10.6%; overflow: visible; text-align: left; }

#template .events-module .calendar thead th{border-top: 1px solid #b5b2a9; padding:0.5em 2%; height: 1em; line-height: 1em; }
#template .events-module .calendar .day{border-top: 1px solid #b5b2a9; /* border-right: 1px solid #b5b2a9; */  padding:0.75em 2% 0; height: 7.5em; font-size: 0.95em; line-height: 1.25em;}
#template .events-module .calendar .day a,
#template .events-module .calendar .day a span{white-space: nowrap; width:100%; overflow: hidden; text-overflow: ellipsis; display: block;}

#template .events-module .calendar .date{margin-bottom:0.5em; height:1em; line-height: 1em; /* font-weight: bold; */ /* color: #000;  */display: block;}

#template .events-module .calendar .disabled .date{/* color: #909090; */ font-weight: normal; opacity: 0.5; }
#template .events-module .calendar .disabled a{/* color: #909090; */font-weight: normal;}

#template .events-module .calendar .today{ background-color: rgba(233, 239, 246, 0.25);}


#template .events-module .list-controls {text-align: center; vertical-align: middle; padding:1rem 0;}
#template .events-module .list-controls *{margin:0;}
#template .events-module .list-controls form,
#template .events-module .list-controls form div{display: flex; align-items: center; justify-content: space-between;}
#template .events-module .list-controls form div > *{
    margin:0 0.25rem;
}

#template .events-dialog{width:300px;}

#template .events-module.compact-mode .calendar thead th{	height: auto; }
#template .events-module.compact-mode .calendar .day{height: 2em; text-align: center;}

#template .events-module .calendar,
#template .events-module .calendar thead th,
#template .events-module .calendar td,
#template .events-module .calendar .day {
	border-color: rgba(190, 190, 190, 0.4);
}


.table-overflow{width: 100%; overflow-x: auto;}

/* Event Registration */

.events-module .event-registration{ width:100%; box-sizing: border-box; }

.ui-dialog .registration-dialog { width:100%; box-sizing: border-box; padding: 20px; margin: 20px 0; }

.events-module .event-registration p:first-child, 
.ui-dialog .registration-dialog p:first-child { margin-top: 0; }

.events-module .event-registration h3 , 
.ui-dialog .registration-dialog h3 { clear: both; border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 1em; margin-top: 2em; }
.events-module .event-registration h3:first-child, 
.ui-dialog .registration-dialog h3:first-child { margin-top: 0; }

.events-module .event-registration p, 
.ui-dialog .registration-dialog p { margin-top: 0.5em; margin-bottom: 0; }

.events-module .event-registration form label, 
.ui-dialog .registration-dialog form label { display: block; margin-bottom: 5px; }
.events-module .event-registration form input[type="text"], 
.ui-dialog .registration-dialog form input[type="text"] { border: 1px solid #ccc; padding: 10px; width: 100%; display: block; box-sizing: border-box; }
.events-module .event-registration form input[type="password"], 
.ui-dialog .registration-dialog form input[type="password"] { border: 1px solid #ccc; padding: 10px; width: 100%; display: block; box-sizing: border-box; }
.events-module .event-registration table, 
.ui-dialog .registration-dialog table { width: 100%; border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; border-spacing: 0; border-collapse: collapse; }
.events-module .event-registration table td, .events-module .event-registration table th, 
.ui-dialog .registration-dialog table td, .events-module .event-registration table th { padding: 10px; border-top: 1px solid #bbb; border-left: 1px solid #ccc; }

.event-registration select,
.ui-dialog .registration-dialog select{ max-width: 100%; width: auto; padding-right: 40px;}

.events-module .event-registration .modify-attendee, 
.ui-dialog .registration-dialog .modify-attendee{ text-align: right; }


.table-overflow{width: 100%; overflow-x: auto;}
span.error{font-size: 10px;}

.events-moduler .btn,
.ui-dialog .registration-dialog .btn{margin: 1em 0.25em 1em 0; font-size: 1em;}


.events-module .event-registration h3.btn, 
.ui-dialog .registration-dialog h3 .btn{font-size: 0.65em; margin:-0.5em 0 0;}

.events-module .event-registration a, 
.ui-dialog .registration-dialog a {text-decoration: none;}


.events-module *{
    box-sizing: border-box;
}

.events-module .item-extended-info{
    list-style: none;
    padding:0;
    
    opacity: 0.9;
    margin:0 0 1rem;
}

.events-module .item-extended-info li{
    align-items: center;
    display: flex;
    margin-bottom: 1rem;
}

.events-module .item-extended-info li strong{
    margin-right:1rem;
}
.events-module i{
    font-size: 0.9em;
    min-width: 15px;
    text-align: center;
    opacity: 0.8;
}

.events-module .entry i{
    margin-right: 0.75rem;
}

.events-module .item{
    position: relative;
}

.events-module .item time{
    white-space: nowrap;
}

.events-module .item .item-image a{
    overflow: hidden;
}

.events-module .btn{
    display: inline-block;
    margin-bottom: 0;
}


.events-module .item-list-grid .item .item-actions{
    position: absolute;
    bottom: 0rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    padding: 1.25rem;
    background-color: rgba(242, 242, 242, 0.5);
}


.events-module .item .item-date{
    font-weight: normal;
    /* margin-bottom: 1rem; */
}

.events-module .item-date a{
    color:inherit;
}

.events-module .item-date span.tz{
    display: none;
}
.events-module .item-date .time-range{
    font-size: 0.95em;
    /* font-weight: 100; */
}
.events-module .item-date .date-repeats{
    font-weight: 300;
    white-space: nowrap;
    font-style: normal;
    font-size: 0.95em;
    display: block;
}
.events-module .item-date span{
    margin-right:1rem;
}


.events-module .item-list-grid .item > div:has(.item-actions){
    padding-bottom:7rem;
}

.events-module .item-occurances{
    list-style: none;
    padding:0;
}

.events-module .item-list-stack .item{
    .item-image{
        width: calc(33% + 1.25rem);
    }
}

.events-module .item-list-stack .item-description-body{
    display: none;
}
/*
.events-module .item-list-stack .item-meta{
    padding-right: 25rem;
}
 .events-module .item-list-stack .item-actions{
    padding: 1rem 2rem 1rem;
    background-color: rgba(242, 242, 242, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    height: 100%;
} */
.events-module .item-list-stack .item-actions{
    flex:0;
    min-width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.events-module .item-list-stack .item-actions .btn{
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.g7-calendar-repeat:before {
    margin-left: 2px;
}

.events-module .event-canceled-btn{
    background: rgba(219, 48, 48, 1);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    padding: 1rem 5rem;
    border: none;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}
.events-module .item.event-cancled .item-date,
.events-module .item.event-cancled .item-occurance-date,
.events-module .calendar .event.canceled{
    text-decoration: line-through;
}




/* .events-module .item-list-stack .item.event-cancled > div:before,
.events-module .item-list-grid .item.event-cancled > div:before{
    background: repeating-linear-gradient(
        45deg,
        rgba(239, 106, 86, 0.4) 0px,
        rgba(239, 106, 86, 0.4) 10px,
        rgba(255, 255, 255, 0.4) 10px,
        rgba(255, 255, 255, 0.4) 20px
        );
        position: absolute;
        width: 100%;
        height: 100%;
        content: "";
        z-index: 1;
        opacity: 0.3;
        left: 0;
        top: 0;
        pointer-events: none;
}

.events-module .item-list-stack .item.event-cancled > div:after,
.events-module .item-list-grid .item.event-cancled > div:after{
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    content: "Event Canceled";
    transform: translate(-50%,-50%);
    font-size: 2rem;
    background: #3e3e3e;
    color: #fff;
    padding: 14px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
} */
.events-module .item-title{
    margin-bottom: 1rem;
}

.events-module .item-header a{
    text-decoration: none;
}

.events-module .entry .item-title{
    margin: 0;
}
.events-module .entry .item-header{
    position: relative;
    margin: 2rem 0;
    padding: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    & > div:first-child{
        flex:1;
    }
}

.events-module .entry .item-header:before,
.events-module .entry .item-header:after{
    content: "";
    display: block;
    border-bottom: 1px solid;
    opacity: 0.2;
    position: absolute;
    top: 0;
    width: 100%;
}

.events-module .entry .item-header:after{
    top:100%;
}

.events-module .entry .item-actions{
    /* position: absolute;
    right: 0;
    top: 0;
    padding: 2rem 0; */

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /* height:100%; */
}
.events-module .entry .item-actions .btn{
    text-align: center;
    display: block;
    min-width: 200px;
    margin:0;
}
.events-module .item-actions .btn + .btn {
    margin-top: 0.5rem !important;
}

.events-module .entry .item-date,
.events-module .entry .item-title{
    padding-right: 22rem;
}

.events-module .entry .item-image {
    -webkit-transition: .2s ease all;
    transition: .2s ease all;
    text-align: center;
    margin: 2rem 0 2rem;
    position: relative;

}
.events-module .entry .item-image .item-image-cover {
    z-index: 0;
    overflow: hidden;
    display: inline-block;
    border: 1px solid #ddd;
    position: relative;
}

.events-module .entry .item-image .item-image-cover img {
    /* object-fit: cover;
    aspect-ratio: 16 / 9; */
    max-width: 100%;
    width: 100%;
    position: relative;
    height: 100%;
}

.events-module .entry .item-register{
    margin:1rem 0;
}

.events-module .entry .item-content{
    margin:2rem 0;
}

.events-module .entry .item-meta{
    margin-bottom: 2rem;
}


.events-module .item-occurance-date {
    padding: 0.5rem 0;
    display: block;
}

.events-module .item-occurance-date .time-range{font-weight: 100; } 

.events-module .startdate-tag {
    font-size: 0.75em;
    margin-right: 1em;
    float: left;
    border: 1px solid #cdcdcd;
    text-align: center;
    border-radius: 5px;
    min-width: 55px;
    margin-bottom: 1em;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding:var(--item-padding);


}

/* .events-module .item-list-stack .startdate-tag{
    font-size: 0.75em;
    float: left;
    border:none;
    border-right: var(--item-border);
    border-radius: 0;
    text-align: center;
    min-width: 55px;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.84);
    padding:var(--item-padding);
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    height: 100%;
    backdrop-filter: blur(10px);
    gap: 0.35em;
} */

.events-module .startdate-tag span{
    display: block;
    text-align: center;
    text-transform: uppercase;
    line-height: 1em;
    margin: 0;
}
.events-module .startdate-tag span.day{
    font-size: 2em;
    font-weight: bold;
}



@media only screen and (max-width: 511px){
    .events-module .item-list-stack .item:has(.item-actions){
        padding-bottom:7rem;
    }
    .events-module .item-list-stack .item-actions{
        top: initial;
        left: 0;
        width: 100%;
        justify-content: space-evenly;
        padding: 1.25rem;
        bottom: 0;
        flex-direction: row;
        height: auto;
    }
    .events-module .entry .item-actions{
        position: relative;
    }
}


[data-max-width*="511"] {

    .events-module .item-list .item .item-image{
        margin-bottom: 1.25rem;
    }
    .events-module .item-list-stack .item .item-image{
        width: auto;
    }
}
[data-max-width*="511"] .events-module .item-list-stack .item:has(.item-actions){
    padding-bottom:7rem;
}

[data-max-width*="511"] .events-module .item-list-stack .item-actions{
    top: initial;
    left: 0;
    width: 100%;
    justify-content: space-evenly;
    padding: 1.25rem;
    bottom: 0;
    flex-direction: row;
    height: auto;
}
[data-max-width*="511"] .events-module .entry .item-actions{
    position: relative;
}