.video-with-text {
    padding: 60px 0;
}

.video-with-text__inner {
    display: flex;
    align-items: flex-start;
    gap: 92px;
}

.video-with-text__video-side {
    flex-shrink: 0;
}

.video-with-text__video-placeholder {
    width: 219px;
    height: 219px;
    border: 18px solid var(--blue, #1A75BB);
    border-radius: 50%;
    position: relative;
    box-sizing: content-box;
    cursor: pointer;
    overflow: hidden;
}

.video-with-text__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.video-with-text__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 0;
}

.video-with-text__play-button svg {
    width: 69px;
    height: 78px;
    display: block;
    margin-left: 4px; /* Optical centering for play icon */
}

.video-with-text__content-side {
    flex: 1;
}

h2.video-with-text__title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 25px;
    font-weight: 700;
}

.video-with-text__text {
    font-size: 16px;
    line-height: 28px;
}

.video-with-text__text p {
    margin-bottom: 25px;
}

.video-with-text__text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .video-with-text__inner {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .video-with-text__video-placeholder {
        margin: 0 auto;
    }
}

/* Video Popup Styles */
.video_popup_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 117, 187, 0.4); /* #1A75BB at 40% */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    box-sizing: border-box;
}

.video_popup {
    background: #FFF;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Ratio constraints + Viewport height constraints */
.video_popup.is-portrait {
    max-width: min(450px, calc((100vh - 150px) * 9 / 16 + 30px));
}

.video_popup.is-landscape {
    max-width: min(1000px, calc((100vh - 150px) * 16 / 9 + 30px));
}

.video_popup_iframe_wrapper {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

/* Padding Ratio Trick */
.is-portrait .video_popup_iframe_wrapper {
    padding-top: 177.78%; /* 16 / 9 * 100 */
}

.is-landscape .video_popup_iframe_wrapper {
    padding-top: 56.25%; /* 9 / 16 * 100 */
}

.video_popup_iframe_wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close_video_popup {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 41px;
    height: 41px;
    cursor: pointer;
    background-image: url(../../images/video-close.svg);
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
    z-index: 10;
}

.close_video_popup:hover {
    transform: scale(1.1);
}

@media (max-width: 1040px), (max-height: 700px) {
    .close_video_popup {
        top: -45px;
        right: 0;
    }
}
