.hero {
    --base-multiplier: 1;
}
.wp-admin .hero {
    --base-multiplier: 0.625;
}
.hero {
    min-height: 595px;
    position: relative;
    display: flex;
    padding: 138px 12px 189px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}
@media (max-width: 767px) {
    .hero {
        min-height: 493px;
        padding: 162px 12px;
    }
}
.page .hero {
    width: calc(100vw);
    left: 50%;
    transform: translateX(-50%);
}
.hero__img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-image-desktop);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    .hero__img {
        background-image: var(--hero-image-mobile);
    }
}
body .hero__img img {
    border-radius: 0;
}
.hero__img__caption::before {
    content: var(--hero-image-desktop-caption);
}
.hero__img__caption {
    position: absolute;
    bottom: 61px;
    left: 50%;
    width: 100%;
    max-width: var(--site-width);
    transform: translate(-50%);
    color: white;
    font-style: italic;
    font-size: calc(1.2rem * var(--base-multiplier));
    text-shadow: 0px 1px 4px #00000040;
    text-align: right;
    padding: 0 12px;
}
@media (max-width: 767px) {
    .hero__img__caption::before {
        content: var(--hero-image-mobile-caption);
    }
    .hero__img__caption {
        bottom: 91px;
    }
}
.hero__title {
    --title-offset: 172px;
    margin: 0;
    font-size: calc(5.4rem * var(--base-multiplier));
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 0 var(--title-offset);
    text-transform: uppercase;
}
.hero__title span {
    background-color: #121212;
    color: white;
    display: inline-block;
    padding: 18px 20px;
    line-height: 1;
    text-align: left;
}
.hero__title span:first-child:not(:last-child) {
    margin-left: calc(-1 * var(--title-offset));
}
.hero__title span:last-child:not(:first-child) {
    margin-right: calc(-1 * var(--title-offset));
}
@media (max-width: 767px) {
    .hero__title {
        font-size: calc(3rem * var(--base-multiplier));
        --title-offset: 20px;
    }
    .hero__title span {
        padding: 10px;
    }
}

.hero__form {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(890px, var(--site-width));
    margin: 34px auto 0;
}
.hero__form [type=search] {
    width: 100%;
    padding: 22px 61px 22px 61px;
    font-size: calc(1.6rem * var(--base-multiplier));
    border: none;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.17);
    margin: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero__form [type=search]::placeholder {
    color: #555;
    opacity: 1;
}
@media (max-width: 767px) {
    .hero__form [type=search] {
        padding: 16px 51px 16px 51px;
    }
}
.hero__form [type="submit"] {
    position: absolute;
    top: 6px;
    left: 6px;
    bottom: 6px;
    width: 55px;
    background-color: #555;
    border: none;
    cursor: pointer;
    -webkit-mask: url(../../assets/img/icon-search.svg) no-repeat center;
    mask: url(../../assets/img/icon-search.svg) no-repeat center;
    transition: background-color 0.3s ease-in-out;
}
.hero__form [type="submit"]:hover,
.hero__form [type="submit"]:focus {
    background-color: #121212;
}
.hero__form [type="reset"] {
    position: absolute;
    top: 6px;
    right: 6px;
    bottom: 6px;
    width: 55px;
    background-color: #555;
    border: none;
    cursor: pointer;
    mask: url(../../assets/img/icon-close.svg) no-repeat center;
    transition: opacity 0.3s ease-in-out 0s, visibility 0.3s ease-in-out 0.3s;
    opacity: 0;
    visibility: hidden;
}
.hero__form [type=search]:not(:placeholder-shown) ~ [type="reset"] {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.hero__form [type="reset"]:hover,
.hero__form [type="reset"]:focus {
    background-color: #121212;
}
@media (max-width: 767px) {
    .hero__form [type="submit"],
    .hero__form [type="reset"] {
        width: 43px;
    }
}