.our-cases {
    padding: 100px 0;
}

.our-cases .container {
    position: relative;
}

.our-cases .cases_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 88px 2.9%;
    position: relative;
}

.case-item {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.case-item--link .overlay {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 500ms ease-in-out;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

.case-item--link .overlay span {
    justify-content: center;
    font-family: 'Instrument Serif', serif;
    font-size: 40px;
    font-style: italic;
    color: white;
}

.case-item--link:hover .overlay {
    opacity: 1;
}

.case-item .case-image {
    position: relative;

}

.case-item .case-image img {
    transition: all 500ms ease-in-out;
}

.case-item:hover .case-image img {
    transform: scale(1.1);
    opacity: .85;
}

.case-item a {
    text-decoration: none;
    color: inherit;
}

.case-item:nth-child(9n+1) {
    width: 39.9%;
}

.case-item:nth-child(9n+2) {
    width: 22.8%;
}

.case-item:nth-child(9n+3) {
    width: 31.4%;
}

.case-item:nth-child(9n+4) {
    width: 31.4%;
}

.case-item:nth-child(9n+5) {
    width: 39.9%;
}

.case-item:nth-child(9n+6) {
    width: 22.8%;
}

.case-item:nth-child(9n+7) {
    width: 48.5%;
}

.case-item:nth-child(9n+8) {
    width: 22.8%;
}

.case-item:nth-child(9n+9) {
    width: 22.8%;
}

.case-item .case-image {
    border-radius: 16px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
}

.case-item .case-image .case-video {
    position: relative;
    width: 100%;
    height: 100%;
    padding-top: 94%;
    overflow: hidden;
}

.case-item .case-image .case-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-tags {
    position: absolute;
    top: 0;
    left: 0;
    padding: 12px;
    width: 100%;
    min-width: 310px;
    max-width: 420px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.case-tag {
    color: rgba(0, 0, 0, 0.8);
    background-color: rgba(230, 241, 252, 0.7);
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 12px;
    line-height: 1.1;
    backdrop-filter: blur(8px);
}

.case-title {
    margin: 12px 0 4px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 400;
}

.case-excerpt {
    font-size: 14px;
    line-height: 1.25;
    color: rgba(0, 0, 0, 0.6);
}

.our-cases .button-link {
    position: absolute;
    right: 0;
    bottom: 0;
}

.our-cases .button-link:hover {
    color: var(--soft-blue);
}

.our-cases .button-link:hover svg {
    color: var(--soft-blue);
}

@media (max-width: 968px) {
    .our-cases {
        padding: 40px 0;
    }

    .our-cases .cases_wrapper {
        gap: 40px 0;
    }

    .case-item {
        width: 100% !important;
    }

    .case-tags {
        min-width: 100%;
        max-width: 100%;
    }

    .our-cases .button-link {
        position: relative;
        margin: 0 0 0 auto;
    }
}