.references {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.references-heading {
    font-weight: 800;
    font-size: 46px;
    line-height: 1.2;
    letter-spacing: 0.4px;
    text-align: center;
    margin: 0;
    margin-bottom: 40px;
}

.references .entry {
    position: relative;
    width: 100%;
    height: auto;
    border-bottom: 16px solid var(--primary);
}

.references .entry-header {
    width: 100%;
    height: auto;
    background: var(--primary);
    padding-top: 15px;
    padding-bottom: 15px;
}

.references .entry-header .menu-list {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-left: 80px;
}

.references .entry-header .menu-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--color-0);
    font-family: var(--font-regular);
    text-decoration: none;
    transition: all 0.3s ease;
}

.references .entry-header .menu-item .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: fit-content;
    margin-left: 6px;
    margin-right: 6px;
}

.references .entry-header .menu-item:hover {
    text-decoration: underline;
}

.references .entry-wrap {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
}

.references .entry-wrap .media {
    width: 100%;
    height: 100%;
    background: #32313d;
}

.references .entry-wrap .media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    user-select: none;
    appearance: none;
    opacity: 0.4;
}

.references .entry-wrap .content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 80px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.references .entry-wrap .content .title {
    font-weight: 800;
    font-size: 70px;
    line-height: 1.2;
    letter-spacing: 0.4px;
    color: var(--color-0);
    text-align: left;
    font-family: var(--font-bold);
    margin-bottom: 0;
}

.references .entry-wrap .content .title:after {
    position: absolute;
    content: '';
    left: 0;
    right: 0;
    bottom: -1px;
    width: 170px;
    height: 16px;
    background-color: var(--primary);
}

.references .row {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
}

.reference-card {
    display: flex;
    padding: 40px;
    justify-content: center;
    align-items: center;
    transition: all 350ms ease;
    border-right: 1px solid #f8f8fa;
    border-bottom: 1px solid #f8f8fa;
    width: 20%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.reference-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: grayscale(1);
    transition: all 200ms ease-in-out;
}

.reference-card:hover {
    box-shadow: 25px 25px 55px 0 rgb(217 217 226 / 26%);
}

.reference-card:hover img {
    filter: grayscale(0);
}

.reference-card:nth-child(5n) {
    border-right: none;
}

.reference-card:nth-last-child(-n + 5) {
    border-bottom: none;
}

@media screen and (max-width: 768px) {
    .reference-card {
        width: 50%;
    }

    .reference-card:nth-child(2n) {
        border-right: none;
    }

    .reference-card:nth-child(5n) {
        border-right: none;
    }
}

@media only screen and (max-width:600px){
     .reference-card {
        width: 50%;
        height: 120px;
    }

}

@media (min-width:481px) and (max-width:767px){
.reference-card {
        width: 50%;
    }

    .reference-card:nth-child(2n) {
        border-right: none;
    }

    .reference-card:nth-child(5n) {
        border-right: none;
    }
}

@media (min-width:768px) and (max-width:1024px){
.reference-card {
        width: 50%;
    }

    .reference-card:nth-child(2n) {
        border-right: none;
    }

    .reference-card:nth-child(5n) {
        border-right: none;
    }
}

@media (min-width:768px) and (max-width:1024px) and (orientation:landscape){
.reference-card {
        width: 50%;
    }

    .reference-card:nth-child(2n) {
        border-right: none;
    }

    .reference-card:nth-child(5n) {
        border-right: none;
    }
} 