﻿#references {
    background: #EEEEEE !important;
}

.references-list-section h1 {
    margin-bottom: 50px;
    color: #1b4962;
}

.reference-list-view img {
    border-radius: 10px;
    height: 230px;
}

.reference-card {
    border: 1px solid #DFDFDF;
    border-top: none;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .04);
    height: 500px;
    position: relative;
}

.reference-card-description {
    padding: 30px 20px;
}

.reference-card-description h2 {
    font-size: 20px;
    color: #1b4962;
    margin-bottom: 20px;
    border-bottom: 1px solid #DFDFDF;
    padding-bottom: 20px;
}

.reference-card-description p {
    font-size: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reference-card a:last-child, .reference-card a:last-child:hover {
    background: #1b4962;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    width: 120px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
}

.reference-link {
    padding-left: 20px;
    position: absolute;
    bottom: 20px;
}

.custom-select-wrapper-reference {
    position: relative;
    min-width: 300px;
    font-family: inherit;
    max-width: max-content;
}

.custom-select-trigger-reference {
    cursor: pointer;
    position: relative;
}

.custom-select-options-reference {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    list-style: none;
    margin-top: 10px;
}

.custom-select-options-reference.show {
    display: block;
}

.custom-option-reference {
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    max-width: max-content;
    margin-left: auto;
    text-align: end;
}

.custom-option-reference:hover {
    background-color: #f0f0f0;
}

.custom-option-reference.active {
    font-weight: bold;
}

.trigger-name-reference {
    font-size: 16px;
    font-weight: 500;
}

.masonry-item {
    position: relative;
}

.masonry-item .content {
    visibility: hidden;
    height: 0;
}

.masonry-item:hover .content {
    position: absolute;
    height: min-content;
    visibility: visible;
    transition: all 0.3s ease;
    top: 50%;
    background: #fff;
    border-radius: 8px;
    min-width: max-content;
    width: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.masonry-item .content p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1b4962;
}

@media only screen and (min-width: 0px) and (max-width: 560px) {
    .filter-container {
        flex-wrap: wrap;
    }

    .filter-container h3 {
        width: 100%;
        text-align: center;
        margin-bottom: 40px !important;
    }

    .custom-select-wrapper-reference {
        width: 100%;
        margin-left: auto;
    }

    .trigger-name-reference {
        font-size: 14px;
    }

    .custom-option-reference {
        padding: 12px;
        font-size: 13px;
    }

    .masonry-item .content {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, -20%);
        background: #fff;
        border-radius: 8px;
        padding: 5px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 90%;
        height: auto;
        visibility: visible;
    }

    .masonry-item .content p {
        font-size: 12px;
    }
}