.image-background {
    position: relative;
}

.image-background__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-background__image img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-background__image:before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.65;
    background-image: linear-gradient(to top, var(--bg-darkest) 15%, transparent 85%);
}

.image-background .container {
    position: relative;
    z-index: 2;
}

.image-background__wrapper {
    position: relative;
}

.image-background__content {
    padding: 32px;
    text-align: left;
}


@media (min-width: 768px) {
    .image-background__content {
        padding: 64px;
    }
}

@media (min-width: 1025px) {
    .image-background__content {
        width: calc(100% - 348px);
        text-align: left;
    }   
}

.image-background__content--text-light .h3,
.image-background__content--text-light p {
    color: var(--color-white);
}

.image-background__content .h3 {
    margin: 0 0 25px;
}

@media (min-width: 768px) {
    .image-background__content .h3 {
        margin: 0 0 35px;
    }
}

.image-background__content p {
    margin: 0 0 25px;
}

.image-background__float {
    background-color: var(--color-white);
    font-size: 0;
    position: relative;
    text-align: right;
    width: calc(100% - 76px);
    margin: -30px auto 0;
}

@media (min-width: 768px) {
    .image-background__float {
        width: calc(100% - 188px);
        margin: -110px auto 0;
    }
}

@media (min-width: 1025px) {
    .image-background__float {
        width: 464px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        margin: 0;
    }
}

.image-background__float__inner {
    padding: 46px 30px 0;
    text-align: left;
}

@media (min-width: 768px) {
    .image-background__float__inner {
        padding: 76px 68px 0;
    }
}

.image-background__float .h4 {
    margin: 0 0 18px;
    font-family: var(--font-secondary);
    font-weight: 500;
    color: var(--color-secondary);
    letter-spacing: 0.05em;
}

.image-background__float .h3 {
    margin: 0;
    color: var(--color-primary);
}

@media (max-width: 767px) {
    .image-background__float .h3 {
        font-size: 22px;
    }
}

.image-background__float .btn {
    margin: 30px 0 0;
}

@media (min-width: 768px) {
    .image-background__float .btn {
        margin: 45px 0 0;
    }
}

.image-button__slider--portfolio .image-button__slider__item {
    min-height: 300px;
}

@media (min-width: 768px) {
    .image-button__slider--portfolio .image-button__slider__item {
        min-height: 400px;
    }
}

@media (min-width: 1024px) {
    .image-button__slider--portfolio .image-button__slider__item {
        min-height: 500px;
    }
}