/**
 * Template: Weiyi Solutions
 * Scope: .weiyi-solutions only.
 */
.weiyi-solutions {
    --weiyi-accent: #a18265;
    --weiyi-accent-light: #e0c3a8;
    --weiyi-text: #191919;
    --weiyi-muted: #666;
    --weiyi-border: #e2e2e2;
    color: var(--weiyi-text);
    overflow: hidden
}

.weiyi-solutions * {
    box-sizing: border-box
}

.weiyi-solutions img {
    display: block;
    max-width: 100%;
    height: auto
}

.weiyi-solutions a {
    color: inherit;
    text-decoration: none
}

.weiyi-solutions .weiyi-solutions__container {
    width: 92%;
    max-width: 1600px;
    margin-right: auto;
    margin-left: auto
}

.weiyi-solutions__banner {
    position: relative;
    margin-top: -20px
}

.weiyi-solutions__banner picture,
.weiyi-solutions__banner img {
    display: block;
    width: 100%
}

.weiyi-solutions__banner img {
    min-height: 22em;
    object-fit: cover
}

.weiyi-solutions__banner h1 {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #fff;
    font-size: clamp(2.25rem, 2vw, 2.875rem);
    font-weight: 700;
    letter-spacing: .03em
}

.weiyi-solutions__tabs {
    border-bottom: 1px solid var(--weiyi-border)
}

.weiyi-solutions__tabs ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 2em;
    margin: 0;
    padding: 0;
    list-style: none
}

.weiyi-solutions__tabs a {
    display: block;
    position: relative;
    padding: 2.6em 1em;
    font-size: 1em;
    font-weight: 600
}

.weiyi-solutions__tabs a:after {
    content: "";
    position: absolute;
    right: .75em;
    bottom: 0;
    left: .75em;
    height: 3px;
    background: linear-gradient(90deg, var(--weiyi-accent-light), var(--weiyi-accent));
    transform: scaleX(0);
    transition: transform .25s
}

.weiyi-solutions__tabs .is-active a,
.weiyi-solutions__tabs a:hover {
    color: var(--weiyi-accent)
}

.weiyi-solutions__tabs li:hover a{
    background: var(--weiyi-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent
}

.weiyi-solutions__tabs .is-active a:after,
.weiyi-solutions__tabs a:hover:after {
    transform: scaleX(1)
}

.weiyi-solutions__heading {
    padding-top: 5.5em;
    padding-bottom: 2em;
    text-align: center
}

.weiyi-solutions__heading h2,
.weiyi-solutions__cases h2,
.weiyi-solutions__service-copy h2,
.weiyi-solutions__other h2 {
    margin: 0 0 .75em;
    font-size: clamp(1.8rem, 3vw, 2rem);
    line-height: 1.2
}

.weiyi-solutions__gallery {
    position: relative;
    width: 100%;
    overflow: hidden
}

.weiyi-solutions__gallery .swiper-slide {
    height: clamp(22rem, 52vw, 55rem)
}

.weiyi-solutions__gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.weiyi-solutions__gallery .swiper-button-prev,
.weiyi-solutions__gallery .swiper-button-next {
    width: 3.5em;
    height: 3.5em;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(25, 25, 25, .7);
    color: #fff
}

.weiyi-solutions__gallery .swiper-button-prev {
    left: 4%
}

.weiyi-solutions__gallery .swiper-button-next {
    right: 4%
}

.weiyi-solutions__gallery .swiper-button-prev:after,
.weiyi-solutions__gallery .swiper-button-next:after {
    font-size: 1.35em
}

.weiyi-solutions__body {
    padding-top: 3.5em;
    padding-bottom: 3.5em;
    text-align: center;
    font-size: 1.125em;
    line-height: 1.7
}

.weiyi-solutions__body>*:first-child {
    margin-top: 0
}

.weiyi-solutions__body img {
    margin-right: auto;
    margin-left: auto
}

.weiyi-solutions__empty {
    padding: 1em;
    color: var(--weiyi-muted);
    text-align: center
}

.weiyi-solutions__cases {
    padding-bottom: 4em;
    text-align: center
}

.weiyi-solutions__case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2em;
    margin-bottom: 2em
}

.weiyi-solutions__case-grid figure {
    height: 18em;
    margin: 0;
    overflow: hidden
}

.weiyi-solutions__case-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.weiyi-solutions__case-grid figure:hover img {
    transform: scale(1.08)
}

.weiyi-solutions__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.875rem;
    padding: 0.2rem 3.5rem;
    border: 0px solid transparent;
    border-radius: 0.3125rem;
    background: var(--mh-gradient);
    color: #191919 !important;
    font: 500 1.25rem/1.2 'Google Sans Flex', Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, box-shadow .25s, color .25s;
    max-width: 100%
}

.weiyi-solutions__button:hover {
    background: #fff;
    box-shadow: 0 0.1875rem 0.1875rem rgba(0, 0, 0, 0.199);
    color: #191919
}

.weiyi-solutions__services {
    padding: 3.5em 0;
    background: #f7f5f2
}

.weiyi-solutions__service-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 5%;
    align-items: center
}

.weiyi-solutions__service-image img {
    width: 100%
}

.weiyi-solutions__service-copy ol {
    margin: 2em 0;
    padding: 0;
    list-style: none;
    counter-reset: weiyi-service
}

.weiyi-solutions__service-copy li {
    display: grid;
    grid-template-columns: 2em 1fr;
    gap: .8em;
    align-items: start;
    margin-bottom: 1.25em;
    font-size: 1.2em;
    line-height: 1.5;
    counter-increment: weiyi-service
}

.weiyi-solutions__service-copy li:before {
    content: counter(weiyi-service);
    display: grid;
    place-items: center;
    width: 1.75em;
    height: 1.75em;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--weiyi-accent-light), var(--weiyi-accent));
    color: #fff;
    font-weight: 700
}

.weiyi-solutions__other {
    padding-top: 4em;
    padding-bottom: 4em;
    text-align: center
}

.weiyi-solutions__other-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2%
}

.weiyi-solutions__other-grid>a {
    position: relative;
    min-height: 18em;
    overflow: hidden;
    background: #222
}

.weiyi-solutions__other-grid img {
    width: 100%;
    height: 100%;
    min-height: 18em;
    object-fit: cover;
    filter: brightness(.65);
    transition: .4s
}

.weiyi-solutions__other-grid>a:hover img {
    transform: scale(1.06);
    filter: brightness(.5)
}

.weiyi-solutions__other-grid span {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em;
    color: #fff
}

.weiyi-solutions__other-grid strong {
    margin-bottom: 1em;
    font-size: 1.3em
}

.weiyi-solutions__other-grid em {
    padding: .45em 1.2em;
    border: 1px solid #fff;
    font-style: normal;
    font-size: .9em
}

@media(max-width:1024px) {
    .weiyi-solutions__case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .weiyi-solutions__service-layout {
        grid-template-columns: 1fr
    }

    .weiyi-solutions__service-copy {
        padding-top: 2em
    }

    .weiyi-solutions__other-grid {
        gap: 1.25em
    }

    .weiyi-solutions__other-grid>a,
    .weiyi-solutions__other-grid img {
        min-height: 14em
    }
}

@media(max-width:760px) {
    .weiyi-solutions__banner img {
        min-height: 22em
    }

    .weiyi-solutions__banner h1 {
        padding-top: 0
    }

    .weiyi-solutions__tabs ul {
        gap: 0
    }

    .weiyi-solutions__tabs li {
        width: 50%;
        text-align: center
    }

    .weiyi-solutions__tabs a {
        display: inline-block;
        padding: .9em .35em;
        font-size: 1em
    }

    .weiyi-solutions__heading {
        padding-top: 2.5em
    }

    .weiyi-solutions__gallery .swiper-slide {
        height: 27em
    }

    .weiyi-solutions__gallery .swiper-button-prev,
    .weiyi-solutions__gallery .swiper-button-next {
        display: none
    }

    .weiyi-solutions__body {
        padding-top: 2em;
        padding-bottom: 2em;
        text-align: left
    }

    .weiyi-solutions__case-grid,
    .weiyi-solutions__other-grid {
        grid-template-columns: 1fr
    }

    .weiyi-solutions__case-grid figure {
        height: auto
    }

    .weiyi-solutions__other-grid>a,
    .weiyi-solutions__other-grid img {
        min-height: 18em
    }

    .weiyi-solutions__service-copy li {
        font-size: 1em
    }
}

/* MAJHG theme integration. */
.weiyi-solutions {
    --weiyi-accent: #c48337;
    --weiyi-accent-light: #f4ca8c;
    --weiyi-gradient: linear-gradient(90deg, #c48337, #f4ca8c);
    font-family: 'Google Sans Flex', Arial, sans-serif
}

.weiyi-solutions .weiyi-solutions__container {
    width: calc(100% - 80px);
    max-width: 1600px
}

.weiyi-solutions__banner {
    margin-top: 0
}

.weiyi-solutions__banner img {
    filter: brightness(.68)
}

.weiyi-solutions__banner h1,
.weiyi-solutions__heading h2,
.weiyi-solutions__cases h2,
.weiyi-solutions__service-copy h2,
.weiyi-solutions__other h2 {
    font-family: Lora, Georgia, serif;
    font-weight: 600
}

.weiyi-solutions__button {
    border: 0;
    border-radius: 5px;
    background: var(--weiyi-gradient);
    color: #191919 !important;
    font-weight: 600;
    transition: background .25s, box-shadow .25s
}

.weiyi-solutions__button:hover,
.weiyi-solutions__button:focus-visible {
    transform: none;
    background: #fff;
    color: #191919 !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22)
}

.weiyi-solutions__tabs a {
    font-size: 1.2em
}

.weiyi-solutions__tabs a:after {
    display: none
}

.weiyi-solutions__tabs .is-active a,
.weiyi-solutions__tabs a:hover,
.weiyi-solutions__tabs a:focus-visible {
    color: var(--weiyi-accent)
}

.weiyi-solutions__tabs .is-active a {
    background: var(--weiyi-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent
}

/* .weiyi-solutions__gallery .swiper-slide {
    height: auto;
    aspect-ratio: 2/1;
    opacity: 1;
    transform: scale(.96);
    transition: transform .4s ease
}

.weiyi-solutions__gallery .swiper-slide img {
    filter: brightness(.3);
    transition: filter .4s ease
}
 */

.weiyi-solutions__gallery .swiper-slide {
    position: relative;
    height: auto;
    aspect-ratio: 2/1;
    opacity: 1;
    transform: scale(.96);
    transition: transform .4s ease
}

/* Match the centered slide footprint while Swiper and gallery images load. */
.weiyi-solutions__gallery:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    justify-content: center;
}

.weiyi-solutions__gallery:not(.swiper-initialized) .swiper-slide:first-child {
    flex: 0 0 68.9655%;
    width: 68.9655%;
    transform: none;
}

.weiyi-solutions__gallery:not(.swiper-initialized) .swiper-slide:first-child img,
.weiyi-solutions__gallery .swiper-slide:only-child img {
    filter: brightness(1);
}

.weiyi-solutions__gallery:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.weiyi-solutions__gallery:not(.swiper-initialized) .swiper-button-prev,
.weiyi-solutions__gallery:not(.swiper-initialized) .swiper-button-next {
    visibility: hidden;
}

@media (min-width: 761px) and (max-width: 1199px) {
    .weiyi-solutions__gallery:not(.swiper-initialized) .swiper-slide:first-child {
        flex-basis: 81.9672%;
        width: 81.9672%;
    }
}


.weiyi-solutions__gallery .swiper-slide img {
    position: absolute;
    inset: 0;
    filter: brightness(.3);
    transition: filter .4s ease
}


.weiyi-solutions__gallery .swiper-slide-active {
    transform: scale(1)
}

.weiyi-solutions__gallery .swiper-slide-active img {
    filter: brightness(1)
}

.weiyi-solutions__gallery .swiper-button-prev,
.weiyi-solutions__gallery .swiper-button-next {
    top: 50%;
    width: 3em;
    height: 3em;
    margin-top: -1.5em;
    border: 1px solid #fff;
    background: rgba(25, 25, 25, .68)
}

.weiyi-solutions__gallery .swiper-button-prev {
    left: 17%
}

.weiyi-solutions__gallery .swiper-button-next {
    right: 17%
}

.weiyi-solutions__gallery .swiper-button-prev:after,
.weiyi-solutions__gallery .swiper-button-next:after {
    font-family: Arial, sans-serif;
    font-size: 2em;
    font-weight: 300;
    line-height: 1
}

.weiyi-solutions__gallery .swiper-button-prev:after {
    content: '‹'
}

.weiyi-solutions__gallery .swiper-button-next:after {
    content: '›'
}

@media(max-width:760px) {
    .weiyi-solutions .weiyi-solutions__container {
        width: calc(100% - 36px)
    }
}

@media(max-width:760px) {
    .weiyi-solutions__tabs a {
        font-size: 1em
    }
    .weiyi-solutions__gallery:not(.swiper-initialized) .swiper-slide:first-child {
        flex-basis: 100%;
        width: 100%;
    }

    .weiyi-solutions__gallery .swiper-slide {
        aspect-ratio: 4/3;
        opacity: 1;
        transform: none
    }

    .weiyi-solutions__gallery .swiper-slide img {
        filter: none
    }
}
