section.calendar .flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    color: white;
    max-width: 1600px;
    margin: auto;
    text-wrap: balance;
}

section.calendar .flex-container>div {
    background-color: #232323;
    border-radius: 15px;
    font-size: 30px;
    text-align: center;
    width: 250px;
    height: 300px;
    margin: 15px;
    position: relative;
    overflow: hidden;

    @media only screen and (max-width: 650px) {
        min-width: 150px;
        flex: 1;
        height: 250px;
        margin: 10px;
    }
}

section.calendar .date-box {
    min-width: 75px;
    min-height: 50px;
    max-width: 60%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    border-radius: 15px 0 15px 0;
    background-color: #39a300;
    font-size: 14pt;
    display: flex;
    align-items: center;
    text-align: center;
    z-index: 10;
    box-shadow: 0px 0px 7px black;
    justify-content: center;
    padding: 6px 10px;

    @media only screen and (max-width: 650px) {
        font-size: 11pt;
        min-height: 30px;
        padding: 10px;
    }
}

section.calendar .date-box:empty {
    display: none;
}

section.calendar hr {
    margin: 4px 0px;
    height: 1px;
    border: 0;
    background-color: white;
    opacity: .25;
}

section.calendar .eventvid {
    border-radius: 20px;
    max-width: 100%;
    max-height: 100%;
}

section.calendar .event-image-wrapper {
    overflow: hidden;
    width: 110%;
    height: 150px;
    margin: -5px;

    @media only screen and (max-width: 650px) {
        height: 100px;
    }
}

section.calendar .event-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* object-position: top; */
}

section.calendar .event-title {
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 15px;

    @media only screen and (max-width: 650px) {
        font-size: 16pt;
    }
}

section.calendar .event-details {
    font-size: 16pt;
    margin-top: 0;
    margin: 0px 12px 0px 12px;

    @media only screen and (max-width: 650px) {
        font-size: 13pt;
    }
}

section.calendar .event-time {
    font-size: 12pt;
    margin-bottom: 3px;

    @media only screen and (max-width: 650px) {
        font-size: 11pt;
    }
}

section.calendar .event-button {
    background-color: #39a300;
    color: white;
    font-size: 14pt;
    border-radius: 15px;
    padding: 5px 7px 5px 7px;
}

section.calendar .popup {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    transition-property: opacity;
    transition-duration: 0.4s;
    opacity: 0;
}

section.calendar .popup-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 19px 19px 15px 15px;
}

section.calendar .close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

section.calendar .close:hover,
section.calendar .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

section.calendar .popup-header {
    padding: 10px 16px;
    background-color: #39a300;
    color: white;
    border-radius: 15px 15px 0 0;
}

section.calendar .popup-body {
    margin: 10px 16px;
}

section.calendar {
    padding: 15px 0;
    line-height: 1;
}

section.calendar h1 {
    font-size: 24pt;
    text-shadow: 2px 2px 10px black;
    line-height: 40pt;
    text-align: center;
}

section.calendar p {
    margin-top: 8px;
    text-align: center;
    text-wrap: balance;
}

section.calendar>div>div>a {
    padding: 8px 12px;
    margin: 7px;
    font-size: 12pt;
}

section.calendar>div>div>a:empty {
    display: none;
}