#stories {
    width: 100%;
    position: relative;
}

@media screen and (min-width: 640px) {
    .stories__inner {
        height: 49.8125rem;
        padding: 7.5rem 0 5.6rem;
        display: flex;
        gap: 4.04rem;
    }
}

#stories .story-content-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 2.69rem;
    grid-column-gap: 2rem;
}

#stories .story-item {
    display: flex;
    width: 19.78125rem;
    height: 17.01rem;
    padding: 0rem 5.46rem 3.48rem 5.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.32288rem;
    border-radius: 0.61438rem;
    border: 1px solid #e1e1f8;
    background: var(--text-white);
    position: relative;
}

.story-item-overlay {
    border-radius: 0.61438rem;
	background: linear-gradient(330deg, #11DCFD -70.8%, #5F95FF 22.01%, #31AECA 101.07%);
    box-shadow: var(--shadow-blue-2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#stories .story-item:hover .story-item-overlay {
    opacity: 1;
    visibility: visible;
}

#stories .story-item:hover .story-item-detail .story-item_title,
#stories .story-item:hover .story-item-detail .story-item_count,
#stories .story-item:hover .story-item-detail .story-item_subtitle {
    color: var(--text-white);
}
#stories .story-item:hover .story-item-detail .story-item_title{
	opacity: 0.6;
}
#stories .story-item:hover .story-item-detail .story-item_subtitle{
	opacity: 0.8;
}
#stories .story-item:hover .story-item-detail {
/*     transform: translateY(-5%); */
}

#stories .story-item img {
    width: 8.70813rem;
    height: 5.59231rem;
    position: absolute;
    top: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    -o-object-fit: cover;
    object-fit: cover;
}

#stories .story-item .story-item-detail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    top: 6.59rem;
    left: 0;
    right: 0;
    width: 100%;
    align-items: center;
    transition: all 0.6s;
}

.story-item-detail .story-item_title {
    color: var(--text-text-oxford-blue-100-tiitle);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
    letter-spacing: 0.025rem;
    opacity: 0.4;
    text-transform: uppercase;
}

.story-item-detail .story-item_count {
    color: var(--text-text-oxford-blue-100-tiitle);
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.37rem;
}

.story-item-detail .story-item_subtitle {
    color: var(--text-text-oxford-blue-100-tiitle);
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--font-size-sub1);
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: var(--letter-spacing-sub1-400);
    line-height: 1.6;
}

.story-content-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-content-left>h2 {
    margin-bottom: 1rem;
    letter-spacing: var(--letter-spacing-sub1-600);
}

.story-content-left>.description {
    align-self: stretch;
    color: var(--Text-Text-Oxford-Blue-87-body-text-1);
    font-family: var(--font-body);
    font-size: var(--font-size-sub2);
    line-height: 150%;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.025rem;
}

.overlay-stories {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.overlay-stories>img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

@media screen and (max-width: 639.98px) {
    #stories .story-item {
        border-radius: var(--radius-rounded-4px);
        width: unset;
    }

    .stories__inner {
        height: auto;
        flex-direction: column-reverse;
        padding-top: 2rem;
        padding-bottom: 2rem;
        display: flex;
    }

    #stories .story-content-right {
        width: 100%;
    }

    .story-content-left>h2 {
        width: 100%;
        text-align: center;
        margin-bottom: 0.75rem;
    }

    .story-content-left>.description {
        color: var(--text-text-oxford-blue-high-emphasis-active-body-text-1, rgba(9, 44, 76, 0.87));
		text-align: center;
		font-size: 0.875rem;
		font-style: normal;
		font-weight: 400;
		line-height: 160%; /* 1.4rem */
		letter-spacing: 0.03125rem;
    }

    .story-content-left {
        margin-bottom: 3rem;
    }

    #stories .story-content-right {
        grid-column-gap: 0.94rem;
        grid-row-gap: 1.62rem;
    }

    #stories .story-item {
        height: 8.75rem;
        padding: 0 1.41rem 1.03rem 1.34rem;
    }

    #stories .story-item img {
        width: 4.12706rem;
        height: 2.65038rem;
        border-radius: 0.20981rem;
        top: -0.6rem;
    }

    #stories .story-item .story-item-detail {
        top: 2.66rem;
    }

    .story-item-detail .story-item_title {
        color: var(--Text-Text-Oxford-Blue-72-text-2);
        text-align: center;
        font-weight: 400;
        opacity: 0.4;
        margin-bottom: 0.25rem;
        letter-spacing: normal;
        text-transform: unset;
    }

    .story-item-detail .story-item_count {
        color: var(--Text-Text-Oxford-Blue-100---Body);
        font-size: var(--font-size-H3);
        font-style: normal;
        line-height: normal;
        margin-bottom: 0.25rem;
    }

    .story-item-detail .story-item_subtitle {
        color: var(--Text-Text-Oxford-Blue-100---Body);
        font-weight: 600;
        line-height: normal;
        letter-spacing: var(--letter-spacing-sub1-400);
        opacity: 0.7;
		font-size: var(--font-size-sub2);
    }
	.story-item-overlay{
		border-radius: var(--radius-rounded-4px);
	}
}