.stom-medarbejdere {
    display: flex;
    flex-wrap: wrap;
}

.stom-medarbejder-thumb {
    width: 100%;
    padding-top: 130%
        /* set aspect ratio of image */
    ;
    position: relative;
}

.stom-medarbejder-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
}

.medarbejder_isotope_container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2em;
    margin-bottom: 3em;
    gap: 1em;
}

.stom_medarbejder_vælg_omraade,
.stom_medarbejder_vælg_omraade_selected {
    border: 2px solid black;
    min-width: 12%;
    font-size: 1.3em;
    font-weight: 500;
    transition: .1s;
    display: flex;
    align-items: center;
    flex-grow: 1;
	padding: 1em;
}

.medarbejder_isotope_container:not(.filter_display_dropdown) .stom_medarbejder_vælg_omraade.is-checked,
.medarbejder_isotope_container .stom_medarbejder_vælg_omraade:hover,
.filter_display_dropdown .medarbejder_isotope_select.display-options .stom_medarbejder_vælg_omraade.is-checked {
    background: black;
    color: white;
}


/* Select display */
.medarbejder_isotope_container.filter_display_dropdown {
	display: block;
	position: relative;
	z-index: 5;
}

.medarbejder_isotope_container .medarbejder_isotope_select {
	overflow: visible;
}

.medarbejder_isotope_select .stom_medarbejder_vælg_omraade {
	position: relative;
}

.medarbejder_isotope_select .stom_medarbejder_vælg_omraade:not(.is-checked) {
	border-top-width: 0px;
}

.medarbejder_isotope_select .stom_medarbejder_vælg_omraade,
.medarbejder_isotope_select .stom_medarbejder_vælg_omraade_selected {
	background-color: #fff;
	cursor: pointer;
}

.medarbejder_isotope_select:not(.display-options) .stom_medarbejder_vælg_omraade {
	display: none;
}

.medarbejder_isotope_select .stom_medarbejder_vælg_omraade_selected:after {
	content: "";
	position: absolute;
	top: 50%;
	right: .5em;
	width: 1em;
	height: .5em;
	background-color: currentColor;
	clip-path: polygon(50% 100%, 0 0, 100% 0);
	transform: translateY(-50%);
}

.medarbejder_isotope_select.display-options .stom_medarbejder_vælg_omraade_selected:after {
	transform: translateY(-50%) rotateZ(180deg);
}
/* END Select display */


.omraadedivider {
    background: black;
    height: 2px;
}

.stom-medarbejder-title {
    font-weight: 600;
    /* font-size: 20px; */
}

.stom_medarbejder-detaljer {
    font-size: 18px;
    line-height: 1.5;
}

/* .stom-medarbejder-stilling,
.stom-medarbejder-stilling_fortsat,
.stom-medarbejder-phone,
.stom-medarbejder-email,
.stom-medarbejder-customfield{
    font-size: 20px
} */

.stom_medarbejder-detaljer td,
.stom_medarbejder-detaljer td * {
    vertical-align: top;
}

.stom_medarbejder-detaljer tr:not(:last-child) {
    height: 1em;
}


.stom_medarbejder-detaljer a {
    text-decoration: none;
}

.stom-medarbejdere-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    color: white;
    opacity: 0;
    transition: opacity .2s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    font-size: 1.3em;
}

.stom-medarbejder-wrapper:hover .stom-medarbejdere-content {
    opacity: 1;
}

.stom_medarbejder_social_links svg,
.stom_medarbejder_social_links img {
    width: 1.3em;
    height: 1.3em;
    font-size: 1.3em;
    margin-right: .4em;
}

.stom_medarbejder_overlay_section {
    position: relative;
}

.stom_medarbejder_overlay_section a {
    text-decoration: none;
}



/* Single sider */
.stom_medarbejdere-template-default.single .entry-content {
    display: flex;
}

.stom_medarbejdere-template-default.single .single_medarbejder_image,
.stom_medarbejdere-template-default.single .single_medarbejder_text {
    width: 49%;
}

.stom_medarbejdere-template-default.single .single_medarbejder_image {
    margin-right: 2%;
}

.stom_medarbejdere-template-default.single .single_medarbejder_image img {
    height: auto;
}

@media only screen and (max-width: 900px) {

    .stom_medarbejdere-template-default.single .single_medarbejder_image,
    .stom_medarbejdere-template-default.single .single_medarbejder_text {
        width: 100% !important;
    }

    .stom_medarbejdere-template-default.single .single_medarbejder_image {
        margin-right: 0 !important;
    }

    .stom_medarbejdere-template-default.single .entry-content {
        flex-direction: column;
    }
}


.single-stom_medarbejdere .stom-medarbejder-stilling,
.single-stom_medarbejdere .stom-medarbejder-stilling_fortsat,
.single-stom_medarbejdere .stom-medarbejder-phone,
.single-stom_medarbejdere .stom-medarbejder-email,
.single-stom_medarbejdere .stom-medarbejder-customfield,
.single-stom_medarbejdere .stom_medarbejder_social_links {
    line-height: 1;
    margin-bottom: .8em;
}



/* COLUMNS SETUP */

/* columns: 6 */
.cols_6 .stom-medarbejder-wrapper {
    width: calc((100% - (3% * 5)) / 6);
    margin-right: 3%;
    display: inline-block;
    height: auto;
}

.cols_6 .stom-medarbejder-wrapper:nth-of-type(6n) {
    margin-right: 0;
}

@media only screen and (max-width: 1100px) {

    .cols_6 .stom-medarbejder-wrapper,
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(6n) {
        width: calc((100% - (3% * 4)) / 5) !important;
        margin-right: 3% !important;
    }

    .cols_6 .stom-medarbejder-wrapper:nth-of-type(5n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 1000px) {

    .cols_6 .stom-medarbejder-wrapper,
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(5n),
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(6n) {
        width: calc((100% - (3% * 5)) / 4) !important;
        margin-right: 3% !important;
    }

    .cols_6 .stom-medarbejder-wrapper:nth-of-type(4n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 600px) {

    .cols_6 .stom-medarbejder-wrapper,
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(3n),
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(4n),
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(5n),
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(6n) {
        width: calc((100% - (3% * 1)) / 2) !important;
        margin-right: 3% !important;
    }

    .cols_6 .stom-medarbejder-wrapper:nth-of-type(2n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 410px) {

    .cols_6 .stom-medarbejder-wrapper,
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(2n),
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(3n),
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(4n),
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(5n),
    .cols_6 .stom-medarbejder-wrapper:nth-of-type(6n) {
        width: 100% !important;
        margin-right: 0 !important;
    }
}




/* columns: 5 */
.cols_5 .stom-medarbejder-wrapper {
    width: calc((100% - (3% * 4)) / 5);
    margin-right: 3%;
    display: inline-block;
    height: auto;
}

.cols_5 .stom-medarbejder-wrapper:nth-of-type(5n) {
    margin-right: 0;
}

@media only screen and (max-width: 1100px) {

    .cols_5 .stom-medarbejder-wrapper,
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(5n) {
        width: calc((100% - (3% * 3)) / 4) !important;
        margin-right: 3% !important;
    }

    .cols_5 .stom-medarbejder-wrapper:nth-of-type(4n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 900px) {

    .cols_5 .stom-medarbejder-wrapper,
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(4n),
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(5n) {
        width: calc((100% - (3% * 2)) / 3) !important;
        margin-right: 3% !important;
    }

    .cols_5 .stom-medarbejder-wrapper:nth-of-type(3n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 600px) {

    .cols_5 .stom-medarbejder-wrapper,
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(3n),
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(4n),
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(5n) {
        width: calc((100% - (3% * 1)) / 2) !important;
        margin-right: 3% !important;
    }

    .cols_5 .stom-medarbejder-wrapper:nth-of-type(2n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 410px) {

    .cols_5 .stom-medarbejder-wrapper,
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(2n),
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(3n),
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(4n),
    .cols_5 .stom-medarbejder-wrapper:nth-of-type(5n) {
        width: 100% !important;
        margin-right: 0 !important;
    }
}



/* columns 4 */
.cols_4 .stom-medarbejder-wrapper {
    width: calc((100% - (3% * 3)) / 4);
    margin-right: 3%;
    display: inline-block;
    height: auto;
}

.cols_4 .stom-medarbejder-wrapper:nth-of-type(4n) {
    margin-right: 0;
}

@media only screen and (max-width: 900px) {

    .cols_4 .stom-medarbejder-wrapper,
    .cols_4 .stom-medarbejder-wrapper:nth-of-type(4n) {
        width: calc((100% - (3% * 2)) / 3) !important;
        margin-right: 3% !important;
    }

    .cols_4 .stom-medarbejder-wrapper:nth-of-type(3n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 600px) {

    .cols_4 .stom-medarbejder-wrapper,
    .cols_4 .stom-medarbejder-wrapper:nth-of-type(3n),
    .cols_4 .stom-medarbejder-wrapper:nth-of-type(4n) {
        width: calc((100% - (3% * 1)) / 2) !important;
        margin-right: 3% !important;
    }

    .cols_4 .stom-medarbejder-wrapper:nth-of-type(2n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 410px) {

    .cols_4 .stom-medarbejder-wrapper,
    .cols_4 .stom-medarbejder-wrapper:nth-of-type(2n),
    .cols_4 .stom-medarbejder-wrapper:nth-of-type(3n),
    .cols_4 .stom-medarbejder-wrapper:nth-of-type(4n) {
        width: 100% !important;
        margin-right: 0 !important;
    }
}



/* columns 3 */
.cols_3 .stom-medarbejder-wrapper {
    width: calc((100% - (3% * 2)) / 3);
    margin-right: 3%;
    display: inline-block;
    height: auto;
}

.cols_3 .stom-medarbejder-wrapper:nth-of-type(3n) {
    margin-right: 0;
}

@media only screen and (max-width: 750px) {

    .cols_3 .stom-medarbejder-wrapper,
    .cols_3 .stom-medarbejder-wrapper:nth-of-type(3n) {
        width: calc((100% - (3% * 1)) / 2) !important;
        margin-right: 3% !important;
    }

    .cols_3 .stom-medarbejder-wrapper:nth-of-type(2n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 410px) {

    .cols_3 .stom-medarbejder-wrapper,
    .cols_3 .stom-medarbejder-wrapper:nth-of-type(2n),
    .cols_3 .stom-medarbejder-wrapper:nth-of-type(3n) {
        width: 100% !important;
        margin-right: 0 !important;
    }
}



/* columns 2 */
.cols_2 .stom-medarbejder-wrapper {
    width: calc((100% - (3% * 1)) / 2);
    margin-right: 3%;
    display: inline-block;
    height: auto;
}

.cols_2 .stom-medarbejder-wrapper:nth-of-type(2n) {
    margin-right: 0;
}

@media only screen and (max-width: 410px) {

    .cols_2 .stom-medarbejder-wrapper,
    .cols_2 .stom-medarbejder-wrapper:nth-of-type(2n) {
        width: 100% !important;
        margin-right: 0 !important;
    }
}