#wm-c-popup-container {
    width: 100vw;
    height: 100vh;
    background: rgb(30, 30, 30, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-c-popup-absence {
    background: white;
    max-height: 90vh;
    max-width: 980px;
    width: 70%;
    position: relative;
}

.wm-c-close-absence {
    width: 25px;
    height: 25px;
    border: 0px;
    border-radius: 20px;
    background: white;
    position: absolute;
    top: 20px;
    left: auto;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wm-c-close-absence:focus-visible {
    background: lightgray;
}

.wm-c-popup-absence {
    hyphens: auto;
}

#wm-c-popup-container p {
    white-space: break-spaces;
}

/*Abwesenheit 1*/
.wm-c-popup-absence.wm-c-popup-absence-3>div:nth-child(2),
.wm-c-popup-absence-1 {
    line-height: 0;
}

.wm-c-popup-absence-1 {
    width: fit-content;
}

.wm-c-popup-absence.wm-c-popup-absence-3>div:nth-child(2)>img,
.wm-c-popup-absence-singleimage {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
}


/*Abwesenheit 2*/
.wm-c-popup-absence-2 {
    padding: 3%;
    display: flex;
    flex-direction: column;
}

.wm-c-popup-absence-2 * {
    text-align: center;
}

.wm-c-popup-absence-2 img {
	align-self: center;
	margin-bottom: 20px;
}

/*Abwesenheit 3*/
.wm-c-popup-absence-3 {
    display: grid;
    grid-template-columns: repeat(2, 48%);
    justify-content: space-between;
    align-items: center;
}

.wm-c-popup-absence.wm-c-popup-absence-3>div:first-child {
    width: 80%;
    margin: auto;
    padding: 50px 0;
}

@media only screen and (max-width: 980px) {
    
    /*Abwesenheit 2*/
    .wm-c-popup-absence-2 {
        padding: 10%;
    }

    /*Abwesenheit 2*/
   .wm-c-popup-absence-3 {
        grid-template-columns: 100%;
    } 

    .wm-c-popup-absence.wm-c-popup-absence-3>div:nth-child(2)>img {
        max-height: 400px;
        width: 100%;
        object-fit: cover;
    }
}