.reference-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: black;
    padding: 0 64px;
}

.reference-viewport {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    width: 100%;
    height: 100%;
}

.reference-text-container {
    display: flex;
    flex-direction: column;
    max-width: 424px;
}

.reference-text-container > h2 {
    color: white;
    font-family: "Montserrat Alternates";
    font-size: 40px;
    font-weight: 400;
    line-height: 120%; /* 72.8px */
    letter-spacing: -0.8px;
    margin-bottom: 24px;
}

.reference-text-container > p {
    color: rgba(255, 255, 255, 0.6);
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
}

.reference-cards-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-viewport::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 200px;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
    z-index: 10;
    pointer-events: none;
}

.reference-viewport::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 200px;
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
    z-index: 10;
    pointer-events: none;
}

.reference-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reference-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    list-style: none;
    width: 264px;
    height: 264px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: black;
    transition: ease 0.5s;
    overflow: hidden;
}

.reference-card > img,
.reference-card > picture > img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    transform: translate(-50%, -50%);
    opacity: 80%;
}

@media screen and (max-width: 1148px) {
    .reference-card {
        width: 216px;
        height: 216px;
    }

    .reference-card > img {
        width: 128px;
        max-height: 128px;
    }
}

@media screen and (max-width: 1048px) {

    .reference-viewport::before {
        display: none;
    }
    
    .reference-viewport::after {
        display: none;
    }

    .reference-section {
        padding: 80px 24px 40px 24px;
        height: 100%;
    }

    .reference-viewport {
        flex-direction: column;
        justify-content: space-between;
        gap: 80px;
    }

    .reference-card {
        padding: 16px;
    }

    .reference-text-container {
        width: 100%;
        align-items: center;
        max-width: 640px;
    }

    .reference-text-container > h2 {
        text-align: center;
    }

    .reference-text-container > p {
        text-align: center;
    }

    .reference-column ul {
        flex-direction: row;
    }

    .reference-cards-container {
        position: static;
        right: 0;
        top: unset;
        bottom: 0;
        transform: unset;
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .reference-card {
        width: 176px;
        height: 176px;
    }

    .reference-card > img {
        width: 112px;
        max-height: 112px;
    }
    
}

@media screen and (max-width: 720px) {

    .reference-text-container {
        width: 100%;
        align-items: flex-start;
    }

    .reference-text-container > h2 {
        font-size: 32px;
        letter-spacing: -1.6px;
        text-align: left;
    }

    .reference-text-container > p {
        text-align: left;
    }

    .reference-card {
        width: 120px;
        height: 120px;
    }

    .reference-card > img {
        width: 80px;
        max-height: 80px;
    }
    
}