:root {
    --plyr-color-main: #db0a15;
}

/* Grundlayout */
.two-columns {
    display: flex;
    justify-content: center;
}

.two-columns--no-margin-top {
    margin-top: 0;
}

.two-columns--no-margin-bottom {
    margin-bottom: 0;
}

.two-columns__container {
    display: flex;
    align-items: center;
    max-width: 92.5rem;
    margin-left: 3.125rem;
    margin-right: 3.125rem;
    gap: 10rem;
}

@media only screen and (max-width: 767px) {
    .two-columns__container {
        margin-left: 1.125rem;
        margin-right: 1.125rem;
        gap: 2.5rem;
    }
}

.two-columns__title {
    font-size: clamp(3rem, 5vw + 1rem, 5rem);
    max-width: 1200px;
    line-height: 110%;
    margin: 0;
    font-family: "Helvetica Neue LT Pro", sans-serif;
    font-weight: 500;
    margin-bottom: 9px;
}

.two-columns__content {
    flex-basis: 50%;
    line-height: 140%;
    margin-top: 14px;
    font-family: "Helvetica Neue", sans-serif;
}

@media only screen and (max-width: 767px) {
    .two-columns__content {
        font-size: 0.92rem;
    }
}

.two-columns__image {
    flex-basis: 50%;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
}

.two-columns__media {
    width: 100%;
    position: relative;
}

.two-columns__media-preview {
    border: none;
    background: none;
    padding: 0;
    width: 100%;
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.two-columns__media-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.two-columns__media-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.5) 100%);
    transition: opacity 0.3s ease;
}

.two-columns__media-preview:hover::after,
.two-columns__media-preview:focus-visible::after {
    opacity: 0.8;
}

.two-columns__media-play-icon {
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.two-columns__media-play-icon::before {
    content: "";
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    margin-left: 4px;
}

.two-columns__media-preview.is-hidden {
    display: none;
}

.two-columns__media-player {
    width: 100%;
}

.two-columns__media-player.is-paused {
    display: none;
}

.two-columns__media-player.is-active {
    display: block;
}

.two-columns__image img {
    max-width: 100%;
    border-radius: 10px;
    height: 100%;
    object-fit: cover;
}

.two-columns--has-background {
    padding: 7rem 0;
}

@media only screen and (max-width: 767px) {
    .two-columns--has-background {
        padding: 3rem 0;
    }
}

/* Bild till vänster */
.two-columns--image-left .two-columns__content {
    order: 2;
}

.two-columns--image-left .two-columns__image {
    order: 1;
}

/* Bild till höger */
.two-columns--image-right .two-columns__content {
    order: 1;
}

.two-columns--image-right .two-columns__image {
    order: 2;
}

.button {
    display: inline-block;
}

.two-columns__actions {
    margin-top: 49px;
}

/* Mobil-layout */
@media only screen and (max-width: 767px) {
    .two-columns__container {
        flex-direction: column;
    }

    .two-columns--mobile-image-top .two-columns__image {
        order: 1;
    }

    .two-columns--mobile-image-top .two-columns__content {
        order: 2;
    }

    .two-columns--mobile-image-bottom .two-columns__image {
        order: 2;
    }

    .two-columns--mobile-image-bottom .two-columns__content {
        order: 1;
    }
}

.two-columns__image video {
    max-width: 100%;
    border-radius: 10px;
    height: auto;
}

.plyr {
    border-radius: 8px;
}

.two-columns__image img {
    max-width: 100%;
    border-radius: 10px;
    height: auto;
}

.two-columns__text p {
    margin-bottom: 12px;
}

.plyr--video {
    width: 100%;
}

/* Wrapper för inbäddad video (YouTube/Vimeo) */
.plyr__video-embed,
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Modern lösning */
    overflow: hidden;
    border-radius: 10px;
}

/* Innehållet i iframen (YouTube/Vimeo) */
.plyr__video-embed iframe,
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Lokala videor (vanlig <video>-tagg) */
.two-columns__image video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover; /* Säkerställer att inget blir utdraget */
}
