.collection-hero {
    position: relative;
    flex-direction: column;
}

.collection-hero .collection-hero__image-wrapper {
    position: relative;
    display: flex;
    height: var(--pc-collection-img-height);
    overflow: hidden;
}

@media (max-width: 959px) {
    .collection-hero .collection-hero__image-wrapper {
        height: var(--md-collection-img-height);
    }
}

.collection-hero .collection-hero__inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.collection-hero .collection-hero__text-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    --color-text: 255, 255, 255;
    color: rgb(var(--color-text));
}

.collection-hero .collection-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--collection-hero-cover-area);
}

.collection-hero .collection-hero__image-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--collection-hero-mask-color);
    opacity: var(--collection-hero-mask-color-opacity);
}

.collection-with-text .collection-hero__box {
    color: var(--collection-hero-title-color, #fff);
}

.collection-hero .collection-hero__description {
    margin-top: 20px;
}

@media (max-width: 959px) {
    .collection-hero .collection-hero__description {
        margin-top: 10px;
    }
}

.collection-hero:not(.has-collection-image) .collection-hero__title {
    margin-top: 40px;
}

.collection-with-text img {
    width: 100%;
    height: auto;
}

@media (max-width: 959px) {
    .collection-hero:not(.has-collection-image) .collection-hero__title {
        margin-top: 20px;
    }

    .collection-with-text .collection-banner-pc {
        display: none;
    }

    .collection-with-text .collection-hero__box {
        position: absolute;
        width: 90%;
        left: 50%;
        transform: translate(-50%);
    }

    .collection-with-text .collection-hero__box .collection-hero__title {
        margin-top: clamp(42px, 10.909vw, 42px);
        font-family: Poppins;
        font-size: clamp(30px, 2.5vw, 48px);
        font-weight: 600;
        line-height: 1.2;
    }

    .collection-with-text .collection-hero__box .collection-hero__description p {
        font-family: Poppins;
        font-size: clamp(14px, 4.156vw, 16px);
        font-weight: 400;
        line-height: 1.3;
    }
}

@media (min-width: 960px) {
    .collection-with-text .collection-banner-mobile {
        display: none;
    }

    .collection-with-text .collection-hero__box {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 16%;
        max-width: 26.563vw;
    }

    .collection-with-text .collection-hero__box .collection-hero__title {
        margin-top: 0px;
        font-family: Poppins;
        font-weight: 600;
        font-size: clamp(30px, 2.5vw, 48px);
        line-height: 1.2;
    }

    .collection-with-text .collection-hero__box .collection-hero__description {
        margin-top: 24px;
    }

    .collection-with-text .collection-hero__box .collection-hero__description p {
        font-family: Poppins;
        font-size: 0.938vw;
        font-weight: 400;
        line-height: 1.2;
    }
}

.collection-hero:not(.has-collection-image) .collection-hero__description {
    margin-top: 12px;
}


/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */