/* =========================================
   Image Text Component
   ========================================= */

.dh-image-text {
    width: 100%;
    /* Background can be set inline */
}

.dh-image-text__inner {
    display: flex;
    flex-direction: column;
    /* Mobile: Image top, Text bottom */
    gap: 40px;
    align-items: center;
    padding: 40px 0;
}

.dh-image-text__inner--reversed {
    flex-direction: column-reverse;
}

.dh-image-text__media {
    width: 100%;
}

.dh-image-text__media img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    /* Assuming standard radius */
    display: block;
}

.dh-image-text__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    /* Or center? User didn't specify, assuming left */
}

.dh-image-text__pretitle {
    color: #DF002F;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    margin: 0;
}

.dh-image-text__title {
    color: var(--primary-black-100, #111B29);
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.dh-image-text__description {
    color: var(--primary-black-100, #111B29);
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    /* 21.12px */
}

.dh-image-text__description p {
    margin: 0 0 16px 0;
}

.dh-image-text__description p:last-child {
    margin-bottom: 0;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .dh-image-text__inner {
        flex-direction: row;
        /* Default: Image Left */
        padding: 60px 0px;
        /* As requested */
        gap: 60px;
        /* As requested */
    }

    .dh-image-text__inner--reversed {
        flex-direction: row-reverse;
    }

    .dh-image-text__media {
        width: 50%;
        flex: 1;
    }

    .dh-image-text__content {
        width: 50%;
        flex: 1;
    }

    .dh-image-text__title {
        font-size: 36px;
    }

    .dh-image-text--union .dh-image-text__content {
        width: 60%;
        flex: 0 0 60%;
    }
}

/* Video Implementation */
.dh-image-text__video-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    /* Ensure iframe fits */
    /* aspect-ratio: 16 / 9; removed per user request */
    /* Assuming standard video ratio, or remove to let image define height */
}

/* If we want the image to define height, but then iframe must absolute fill.
   The JS switches content. Iframe is absolute 100%. Container must have height.
   Using aspect-ratio is safest for YouTube. */

.dh-image-text__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dh-image-text__video-container .dh-image-text__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px !important;
    /* Requested size */
    height: 48px !important;
    /* Requested size */
    z-index: 2;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.dh-image-text__video-container:hover .dh-image-text__play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Reuse or redefine iframe class */
.dh-video-embed__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}