/*reference*/
.reference-wrapper {
    padding-top: 130px;
}
.reference-container .works-text-container {
    height: 100px;
    width: 100%;
}

.reference-container .works-text-container h2 {
    font-family: OpenSansBold;
    color: #2685bf;
    font-size: 96px;
    text-align: center;
    margin: 0;
    line-height: 85px;
    z-index: -1000;
    position: relative;
}

.reference-container .works-text-container .works-text-gradient {
    height: 100px;
    width: 100%;
    margin-top: -100px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 10%, rgba(87, 199, 133, 0) 150%);
}

@media (max-width: 640px) {
    .reference-container .works-text-container {
        height: 85px;
    }

    .reference-container .works-text-container h2 {
        font-size: 70px;
    }

    .reference-container .works-text-container .works-text-gradient {
        height: 95px;
    }
}

@media (max-width: 460px) {
    .reference-container .works-text-container {
        height: 82px;
    }

    .reference-container .works-text-container h2 {
        font-size: 45px;
    }

    .reference-container .works-text-container .works-text-gradient {
        height: 90px;
        background: linear-gradient(0deg, rgba(255, 255, 255, 1) 10%, rgba(87, 199, 133, 0) 80%);
    }
}

@media (max-width: 320px) {
    .reference-container .works-text-container {
        height: 75px;
    }

    .reference-container .works-text-container h2 {
        font-size: 32px;
    }

    .reference-container .works-text-container .works-text-gradient {
        height: 80px;
        background: linear-gradient(0deg, rgba(255, 255, 255, 1) 10%, rgba(87, 199, 133, 0) 60%);
    }
}

.reference-images-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: auto;
    margin-top: -49px;
}

.reference-images-container .picture {
    flex: none;
    background-size: cover;
    background-position: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
}

.reference-images-container .picture img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    margin: 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.reference-images-container .picture img:hover {
    transform: scale(1.1);
}

.reference-price-button a {
    display: block;
    margin: auto;
    margin-top: 25px;
    text-align: center;
    background-color: #2685bf;
    color: white;
    text-decoration: none;
    width: max-content;
    border-radius: 60px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: OpenSansBold;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px #00000047;
    transition: 0.2s all ease-in-out;
}

.reference-price-button a:hover {
    background-color: #3D9DD9;
}

/*image viewer*/
.fullscreen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: row;
}

.fullscreen img {
    max-width: 90%;
    max-height: 90%;
}

.fullscreen button {
    position: absolute;
    background: none;
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    text-shadow: 0 0 10px #000000;
}

#close-btn {
    top: 20px;
    right: 30px;
}

#prev-btn {
    left: 20px;
}

#next-btn {
    right: 20px;
}

.hidden {
    display: none;
}

@media (max-width: 480px) {
    .reference-images-container {
        margin-top: -40px;
    }

    .reference-images-container .picture img {
        width: 130px;
        height: 130px;
        margin: 10px;
    }
}

@media (max-width: 380px) {
    .reference-images-container .picture img {
        cursor: default;
    }

    .reference-images-container .picture img:hover {
        transform: unset;
    }
}

@media (max-width: 320px) {
    .reference-images-container {
        display: block;
        margin-top: -32px;
    }

    .reference-images-container .picture img {
        width: 100%;
        height: 190px;
        aspect-ratio: 1 / 1;
    }

    .reference-price-button a {
        font-size: 14px;
    }
}

@media (max-width: 250px) {
    .reference-images-container .picture img {
        height: 130px;
    }
}