.ce-textpic,
.ce-textpic {
    display: flex;
    width: 100%;
    column-gap: var(--pn-image-padding);
    row-gap: var(--pn-image-padding);
}
.ce-textpic.ce-above,
.ce-textpic.ce-below {
    flex-direction: column;
}
.ce-textpic.ce-intext {
    display: block;
}
.ce-textpic.ce-intext::after {
    clear: both;
    display: table;
}
.ce-textpic.ce-intext.ce-nowrap {
    display: flex;
}

.ce-textpic.ce-intext.ce-left .ce-gallery {
    float: left;
    width: 30%;
    margin-right: 3.33%;
}
.ce-textpic.ce-intext.ce-right .ce-gallery {
    float: right;
    width: 30%;
    margin-left: 3.33%;
}
.ce-textpic.ce-intext.ce-nowrap .ce-gallery {
    float: none !important;
    width: 33.33%;
    margin-left: 0;
    margin-right: 0;
}
.frame-type-textmedia .ce-textpic.ce-intext.ce-nowrap .ce-gallery {
    width: 70%;
}
.ce-textpic.ce-intext.ce-nowrap .ce-bodytext {
    width: 66.66%;
}
.frame-type-textmedia .ce-textpic.ce-intext.ce-nowrap .ce-bodytext {
    width: 30%;
}
video.video-embed-item {
    width: 100%;
}

.ce-row {
    display: flex;
    width: 100%;
    column-gap: var(--pn-image-padding);
    row-gap: var(--pn-image-padding);
    flex-wrap: wrap;
    margin-bottom: var(--pn-image-padding);
}
.ce-center .ce-row {
    justify-content: center;
}
.ce-right .ce-row {
    justify-content: flex-end;
}
.footer-right .ce-row {
    margin-bottom: 0;
}
.ce-textpic.ce-intext.ce-nowrap.ce-right .ce-gallery {
    order: 2;
}
[data-ce-columns='2'] .ce-column {
    width: calc(100% / 2 - var(--pn-image-padding) / 2);
}
[data-ce-columns='3'] .ce-column {
    width: calc(100% / 3 - var(--pn-image-padding) * 2 / 3);
}
[data-ce-columns='4'] .ce-column {
    width: calc(100% / 4 - var(--pn-image-padding) * 3 / 4);
}
[data-ce-columns='5'] .ce-column {
    width: calc(100% / 5 - var(--pn-image-padding) * 4 / 5);
}
[data-ce-columns='6'] .ce-column {
    width: calc(100% / 6 - var(--pn-image-padding) * 5 / 6);
}
[data-ce-columns='7'] .ce-column {
    width: calc(100% / 7 - var(--pn-image-padding) * 6 / 7);
}
[data-ce-columns='8'] .ce-column {
    width: calc(100% / 8 - var(--pn-image-padding) * 7 / 8);
}
.footer-left [data-ce-columns='8'] .ce-column {
    width: 42px !important;
}
.image-embed-item {
    transition: transform 0.5s ease;
}
.main-content .image-embed-item:hover {
    transform: scale(1.05);
}

.textmedia .ce-gallery figure {
    display: block;
}
.textmedia .ce-row,
.textmedia .ce-column,
.textmedia iframe {
    width: 100%;
    height: 100%;
}
.textmedia .video,
.textmedia .video-embed,
.textmedia .video-embed-item {
    width: 100%;
    aspect-ratio: 16/9;
}
[data-service="vimeo"],
[data-service="youtube"] {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
}
.video-embed-item {
    width: 100%;
}
.frame-type-textmedia .container .ce-right .video-embed {
    margin-right: calc((100vw - 1400px) / -3.7);
}
.ce-bodytext ul {
    padding: 0;
}
.ce-bodytext li {
    list-style: none;
    padding-left: 20px;
    position: relative;
}
.ce-bodytext li::before {
    content: "-";
    position: absolute;
    left: 2px;
    top: -1px;
}
.content-element-header,
.ce-gallery {
    margin-bottom: 30px;
}

.pn-accordion .accordion-item {
    border: none;
}
.pn-accordion .accordion-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--pn-primary);
}
.pn-accordion .accordion-button {
    padding-left: 0;
    padding-right: 30px;
    color: var(--pn-primary);
    font-weight: 600;
}
.element-preview .pn-accordion .accordion-button {
    border: none;
}
.pn-accordion .accordion-button:focus {
    border: none;
    box-shadow: none;
}
.pn-accordion .accordion-button:not(.collapsed) {
    background-color: unset;
    color: var(--pn-primary);
    box-shadow: none;
}
.accordion-button::before,
.accordion-button::after {
    position: absolute;
    flex-shrink: 0;
    right: 0;
    content: "";
    transition: transform .2s ease-in-out;
}
.pn-accordion .accordion-button::before,
.pn-accordion .accordion-button::after,
.pn-accordion .accordion-button:not(.collapsed)::before,
.pn-accordion .accordion-button:not(.collapsed)::after {
    background-image: none;
    width: 25px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--pn-primary);
    transform: rotate(0);
}
.pn-accordion .accordion-button::after {
    transform: rotate(90deg);
}
.pn-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(0);
}
.pn-accordion .accordion-body {
    padding: 20px 0;
}
.accordion-body .content-element {
    padding-top: 0;
    padding-bottom: 0;
}
.accordion-body .container,
.accordion-body .content-inner {
    width: 100% !important;
    max-width: 100% !important;
}

.pn-header-row {
    height: calc(100vh - 180px);
    display: flex;
    flex-wrap: wrap;
}
.pn-header-row.with-html {
    height: calc(66vw * 9 / 16);
}
.pn-header-row > div {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
}
.pn-header-col-left {
    padding-left: calc(45px + 0.75rem);
}
.pn-header .select-text {
    margin-top: 66px;
    display: inline-block;
    position: relative;
    padding: 9px 60px 9px 20px;
    color: var(--pn-primary);
    border: 2px solid var(--pn-primary);
    border-radius: var(--pn-border-radius);
    font-size: var(--pn-font-size-smaller);
    cursor: pointer;
}
.pn-header .select-text:hover {
    color: white;
    background-color: var(--pn-primary);
}
.pn-header .select-text::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: url(../Images/chevron-right-primary.svg) calc(100% - 10px) center no-repeat transparent;
    background-size: contain;
    transform: rotate(90deg);
    top: calc(50% - 1px);
    right: 26px;
}
.pn-header .select-text:hover::after {
    background: url(../Images/chevron-right-white.svg) calc(100% - 10px) center no-repeat transparent;
    background-size: contain;
}
.pn-header .select-options {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    background-color: var(--pn-primary);
    border-radius: var(--pn-border-radius);
    padding: var(--pn-border-radius);
    width: calc(100% - (90px + 1.5rem));
    font-size: var(--pn-font-size-smaller);
    color: white;
}
.pn-header .select-options.active {
    z-index: 2;
    opacity: 1;
}
.pn-header .select-options a {
    background-color: white;
    border-radius: var(--pn-border-radius);
    padding: 14px var(--pn-border-radius);
    display: inline-block;
    margin-top: 20px;
}
.pn-header .close-select-options {
    position: absolute;
    right: 36px;
    top: 36px;
    width: 23px;
    height: 23px;
    cursor: pointer;
}
.pn-header .close-select-options::before,
.pn-header .close-select-options::after {
    position: absolute;
    content: "";
    width: 33px;
    height: 2px;
    background-color: white;
    transform: rotate(45deg);
    top: 10px;
    left: -5px;
}
.pn-header .close-select-options::after {
    transform: rotate(-45deg);
}
.pn-header-image {
    object-fit: cover;
    max-width: unset;
    width: 100%;
    height: 100%;
}
.pn-header-illustration {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    width: 70%;
    height: auto;
}

.pn-tiles .text-header {
    text-align: center;
    padding: 10px 0;
}
.pn-tiles .text-header h1,
.pn-tiles .text-header h2,
.pn-tiles .text-header h3 {
    color: white;
}
.pn-tiles-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.pn-tiles-row-2 > * {
    width: calc(50% - 9px);
}
.pn-tiles-row-3 > * {
    width: calc(33.333% - 12px);
}
.pn-tiles-row-4 > * {
    width: calc(25% - 14px);
}
.pn-tiles-row-5 > * {
    width: calc(20% - 15px);
}
.pn-tiles-row-6 > * {
    width: calc(16.666% - 15px);
}
.pn-tile-item {
    background-color: white;
    text-align: center;
    padding: 30px 13px;
    color: var(--pn-primary);
    border-radius: calc(var(--pn-border-radius) / 2);
    font-weight: 600;
    line-height: 1.25;
}
.pn-tiles .pn-tile-image {
    margin-bottom: 25px;
    height: 105px;
    width: auto;
}

.team-texts {
    margin-top: 25px;
    margin-bottom: 30px;
}
.pn-team a {
    color: var(--pn-font-color);
}

.image-gallery-wrapper {
    position: relative;
    margin-top: 10px;
}
.gallery-image {
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s;
}
.gallery-image[data-number='0'] {
    opacity: 1;
    position: static;
}
.gallery-image.show {
    opacity: 1;
}
.gallery-backward,
.gallery-forward {
    display: inline-block;
    background: url("../Images/arrow-gallery.svg") center no-repeat;
    background-size: contain;
    width: 30px;
    height: 23px;
    cursor: pointer;
    opacity: 0.5;
}
.gallery-backward.active,
.gallery-forward.active {
    opacity: 1;
}
.gallery-backward {
    transform: rotate(180deg);
    margin-right: 27px;
}

.ce-uploads {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ce-uploads li + li {
    margin-top: 20px;
}
.ce-uploads a.btn.btn-primary {
    padding-left: 84px;
    background-image: url("../Images/arrow-down-download.svg");
    background-repeat: no-repeat;
    background-position: 30px center;
    background-size: 23px auto;
}
.ce-uploads a.btn.btn-primary:hover {
    background-image: url("../Images/arrow-down-download-primary.svg");
}

@media (min-width: 1401px) and (max-width: 1920px)  {
    .pn-header-illustration {
        width: 60%;
    }
}
@media (min-width: 1400px) and (max-width: 1600px) {
    .pn-header-col-left {
        width: 41.6666%;
    }
    .pn-header-col-right {
        width: 58.3333%;
    }
    .pn-header-row.with-html {
        height: calc(58.3333vw * 9 / 16);
    }
}
@media (max-width: 1399px) {
    .frame-type-textmedia .container .ce-right .video-embed {
        margin-right: 0;
    }
}
@media (min-width: 767px) and (max-width: 1400px)  {
    .pn-header-illustration {
        width: 50%;
    }
}
@media (min-width: 992px) and (max-width: 1200px) {
    .pn-tile-item {
        font-size: 21px;
    }
}
@media (max-width: 991px) {
    .pn-header-row.with-html .pn-header-col-right,
    .pn-header-row.with-html,
    .pn-header-row {
        height: auto;
    }
    .pn-header-row .pn-header-col-right {
        height: 45vh;
    }
    .pn-header-col-left {
        order: 2;
        padding-right: calc(45px + 0.75rem);
        overflow: hidden;
    }
    .pn-header-illustration {
        width: 40%;
    }
    .pn-header .select-text {
        margin-top: 20px;
    }
    .pn-header-col-left > div {
        padding-top: 40px;
        padding-bottom: 80px;
        width: 100%;
    }
    .pn-header .select-options {
        position: static;
        transform: scale(0);
        margin-top: 30px;
        width: 100%;
        height: 0;
    }
    .pn-header .select-options.active {
        transform: scale(1);
        height: auto;
    }
    .pn-header .select-options a {
        display: table;
    }
    .pn-tiles-row-4 > *,
    .pn-tiles-row-5 > * {
        width: calc(50% - 9px);
    }
    .pn-tiles-row-6 > * {
        width: calc(33.333% - 12px);
    }

}
@media (max-width: 767px) {
    .ce-textpic.ce-left,
    .ce-textpic.ce-right {
        flex-wrap: wrap;
    }
    .ce-left .ce-gallery,
    .ce-left .ce-bodytext,
    .ce-right .ce-gallery,
    .ce-right .ce-bodytext,
    .frame-type-textmedia .ce-textpic.ce-intext.ce-nowrap .ce-gallery,
    .frame-type-textmedia .ce-textpic.ce-intext.ce-nowrap .ce-bodytext,
    .frame-type-textpic .ce-textpic.ce-intext.ce-nowrap .ce-bodytext {
        width: 100%;
    }
    .frame-type-textmedia .container .ce-right .video-embed {
        margin-left: -30px;
        margin-right: -30px;
    }
    .ce-column {
        width: 100% !important;
    }
    .ce-gallery {
        margin-bottom: 0;
    }
    .pn-accordion .accordion-icon {
        max-width: 30px;
        max-height: 30px;
    }
    .pn-header-col-left {
        padding-right: 30px;
        padding-left: 30px;
    }
    .pn-header .select-text {
        padding: 16px 50px 16px 15px;
        margin-left: -10px;
        margin-right: -10px;
    }
    .pn-header .select-text::after {
        right: 20px;
        background: url(../Images/chevron-right-primary.svg) calc(100% - 10px) center no-repeat transparent;
        background-size: contain;
    }
    .pn-header .select-text:hover::after {
        background: url(../Images/chevron-right-white.svg) calc(100% - 10px) center no-repeat transparent;
        background-size: contain;
    }
    .pn-header .select-options {
        margin-left: -10px;
        margin-right: -10px;
        width: calc(100% + 20px);
        padding: var(--pn-border-radius) 15px;
    }
    .select-options-header {
        margin-bottom: 30px;
    }
    .pn-header .close-select-options {
        right: 15px;
    }
    .pn-header .select-options a {
        padding: 11px 20px;
    }
    .pn-header-illustration {
        width: 75%;
    }
    .pn-tile-item {
        width: 100% !important;
    }
    .pn-tile-item {
        width: 100% !important;
        display: flex;
        align-items: center;
        padding: 15px 13px;
        min-height: 100px;
    }
    .pn-tiles .pn-tile-image {
        height: auto;
        margin-bottom: 0;
        width: 58px;
        margin-right: 20px;
    }
    .team-item {
        width: 100%;
    }
    .team-texts {
        margin-top: 8px;
    }
}
@media (max-width: 575px) {
    .textmedia .ce-gallery {
        width: 100%;
    }
}
@media (max-width: 400px) {

}