.s-reference-title-and-items p {
    margin: 15px 0px;
}

.s-reference-boxes-holder {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.s-reference-hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s-reference-tag{
	    border: 1px solid var(--black);
}

.s-reference-list-elem span {
    display: block;
}

.s-reference-list-elem a {
    text-decoration: none;
    color: var(--black);
}

.s-reference-about {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.s-reference-about-image-wrapper {
    width: 100%;
}

.s-reference-about-image {
    min-height: 400px;
    width: 100%;
}

.s-reference-about-image img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
}

.s-reference-about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s-reference-about-texts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.s-reference-image {
    width: 100%;
    height: 350px;
}

.s-reference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s-reference-gallery-images-wrapper {
    margin-top: 50px;
}

.s-reference-gallery {
    overflow: hidden;
}

.s-reference-gallery-images-wrapper .swiper {
    overflow: unset !important;
}

@media only screen and (min-width:992px) {
    .s-reference-title-and-items {
        width: calc(50% - 40px);
    }

    .s-reference-box {
        justify-content: space-between;
    }

    .s-reference-title-and-items h1 {
        width: unset;
    }

    .s-reference-hero-content {
        width: calc(40% - 40px);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
    }

    .s-reference-list-elem {
        width: calc(50% - 15px);
    }

    .s-reference-title-and-items p {
        margin: 25px 0px;
    }

    .s-reference-about {
        flex-direction: row;
        gap: 100px;
    }

    .s-reference-about-image-wrapper {
        width: calc(50% - 50px);
    }


    .s-reference-about-content {
        width: calc(50% - 50px);
        gap: 30px;
    }

    .s-reference-about-texts {
        gap: 25px;
    }

    .s-reference-gallery-images-wrapper {
        margin-top: 80px;
    }

    .s-reference-image {
        height: 680px;
    }

}

@media only screen and (min-width:992px) and (max-width:1199px) {
    .s-reference-hero-content {
        width: calc(50% - 20px);
        height: fit-content;
    }

    .s-reference-title-and-items p {
        margin: 15px 0px;
    }

    .s-reference-about {
        gap: 50px;
    }

    .s-reference-about-image-wrapper {
        width: calc(50% - 25px);
    }

    .s-reference-about-content {
        gap: 20px;
        width: calc(50% - 25px);
    }

    .s-reference-image {
        height: 400px;
    }
}

@media only screen and (min-width:1200px) and (max-width:1399px) {
    .s-reference-hero-content {
        height: fit-content;

    }

    .s-reference-about {
        gap: 50px;
    }

    .s-reference-about-content {
        width: calc(50% - 25px);
    }

    .s-reference-about-image-wrapper {
        width: calc(50% - 25px);
    }

    .s-reference-image {
        height: 450px;
    }
}

@media only screen and (min-width:1400px) and (max-width:1599px) {
    .s-reference-image {
        height: 550px;
    }

    .s-reference-hero-content {
        height: fit-content;
    }
}

@media only screen and (min-width:1600px) and (max-width:1799px) {
    .s-reference-image {
        height: 610px;
    }

    .s-reference-hero-content {
        height: fit-content;
    }
}