/* Mobile-first base styles */
.full-width-image-text {
    --full-width-image-text-size: 18px;
    --full-width-image-text-percentage-size: 80px;
    --full-width-image-text-percentage-small-size: 36px;
    --full-width-image-text-percentage-small-transform: 7px;
    --full-width-image-text-padding: 70px 20px;
    --full-width-image-text-gap: 8px;

    align-items: center;
    display: flex;
    justify-content: center;
    position: relative;
}

#content .full-width-image-text__content {
    align-items: center;
    box-sizing: border-box;
    color: white;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    line-height: 1.5;
    padding: var(--full-width-image-text-padding);
    position: relative;
    text-align: center;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

#content .full-width-image-text__content p {
    margin: 0;
    max-width: 400px;
    text-align: center;
    width: 100%;
}

.full-width-image-text__content__intro {
    display: block;
    font-size: var(--full-width-image-text-size);
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: var(--full-width-image-text-gap);
}

.full-width-image-text__content__percentage {
    align-items: flex-start;
    display: inline-flex;
    font-size: var(--full-width-image-text-percentage-size);
    font-weight: 300;
    letter-spacing: 3%;
    line-height: 1;
    margin: var(--full-width-image-text-gap) 0;
}

.full-width-image-text__content__percentage strong {
    align-items: flex-start;
    display: inline-flex;
    line-height: 1;
    font-weight: 300;
}

.full-width-image-text__content__percentage small {
    align-items: flex-start;
    display: inline-flex;
    font-size: var(--full-width-image-text-percentage-small-size);
    font-weight: 300;
    line-height: 1;
    margin-left: 2px;
    transform: translateY(var(--full-width-image-text-percentage-small-transform));
    vertical-align: top;
}

.full-width-image-text__content__description {
    display: block;
    font-size: var(--full-width-image-text-size);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    margin-top: var(--full-width-image-text-gap);
}

.full-width-image-text img {
    display: block;
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Tablet and up */
@media (min-width: 768px) {
    .full-width-image-text {
        --full-width-image-text-size: 20px;
        --full-width-image-text-percentage-size: 140px;
        --full-width-image-text-percentage-small-size: 60px;
        --full-width-image-text-percentage-small-transform: 12px;
        --full-width-image-text-padding: 100px 32px;
        --full-width-image-text-gap: 8px;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .full-width-image-text {
        --full-width-image-text-size: 24px;
        --full-width-image-text-percentage-size: 240px;
        --full-width-image-text-percentage-small-size: 98px;
        --full-width-image-text-percentage-small-transform: 22px;
        --full-width-image-text-padding: 170px 48px;
        --full-width-image-text-gap: 10px;
    }
}
