.bgImageWrapper {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
}

.page-type-basic-page section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* color: var(--light); */
    text-align: center;
    /* padding-top: 3rem;
    padding-bottom: 3rem; */
    position: relative;
    overflow: hidden;
    display: flex;
}

.page-type-basic-page img.bg-image,
.page-type-basic-page video.bg-video {
    opacity: 1;
    /* position: absolute; */

    object-fit: cover;

    left: 0;
    top: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    max-width: unset;
    transition: all 1.5s ease-out;
}

.page-type-basic-page .lazy img.bg-image,
.page-type-basic-page .lazy video.bg-video {
    opacity: 0;
}

.page-type-basic-page section .container {
    z-index: 3;
}

.page-type-basic-page section.lazy {
    background-image: none !important;
    background-color: transparent !important;
}

.ccm-edit-mode .page-type-basic-page section {
    display: block;
    z-index: unset;
}

@media (max-width: 991px){
    .kt-pair img {
        margin-bottom: 1rem;
    }
}
/* Lifted contact persons */

/* The row carries a unique id (yhteyshenkilot<rowID>) so it can be used as an anchor link target */
.contact-person-cards {
    scroll-margin-top: 6rem;
}

.contact-person-config .input-group .bootstrap-select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.contact-person-setting {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.contact-person-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-person-setting-name {
    margin-bottom: 0;
}

/* Cards grow with their content; flexbox keeps every card on the same row equally tall,
   so any number of lifted contact persons renders identically without truncating anything */
.contact-person-card {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 12rem;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    background-color: #fff;
    border: 2px solid var(--geneesiGreen);
    border-radius: 0.5rem;
    color: var(--page-card-text);
    transition: all 0.3s ease;
}

/* The card is a plain container: only the name link stretches over it, so the
   contact links inside the card stay their own clickable targets */
.contact-person-card-link {
    color: var(--geneesiGreen);
    text-decoration: none;
}

.contact-person-card:hover {
    color: var(--page-card-text);
    box-shadow: 0 0.5rem 1.5rem rgba(1, 42, 23, 0.25);
}

.contact-person-card-image {
    min-height: 160px;
}

.contact-person-card-content {
    display: flex;
    flex-direction: column;
}

.contact-person-card-name {
    margin-bottom: 0.25rem;
    color: var(--geneesiGreen);
    font-weight: 700;
}

.contact-person-card-title {
    margin-bottom: 0.25rem;
    color: var(--page-card-slogan);
    font-size: 0.75rem;
}

.contact-person-card-slogan {
    margin-bottom: 0;
    color: var(--geneesiGreen);
    font-size: 1.05rem;
}

.contact-person-card-description {
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.contact-person-card-contacts {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.95rem;
}

.contact-person-card-contact a {
    position: relative;
    z-index: 2;
    color: var(--geneesiGreen);
    text-decoration: none;
    word-break: break-word;
}

.contact-person-card-contact a:hover {
    text-decoration: underline;
}

.contact-person-card-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 1.25rem;
}

.contact-person-card-social {
    position: relative;
    z-index: 2;
    color: var(--geneesiGreen);
}