/* ============================= */
/* GRID / STRUCTURE COMMUNE */
/* ============================= */

.upink-library__content {
    min-width: 0;
}

/* grille principale */

.upink-library__grid {
    display: grid;
    grid-template-columns:repeat(12, minmax(0, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: row dense;
    align-items: stretch;
    position: relative;
}

.upink-library__grid > * {
    align-self: stretch;
}

/* cartes */

.upink-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background-color: #f3f3f3;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.1);
    transition: all .6s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.upink-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    /*transform: scale(0.1);*/
    /*opacity: 0;*/
    transition: all .6s cubic-bezier(.22, .61, .36, 1);
    /*will-change: transform;*/
}

.upink-card.loaded{
    opacity: 1;
    transform: scale(1);
}

/* état chargé */
.upink-card.loaded::before {
    opacity: 1;
    transform: scale(1);
}

/* hover */
.upink-card.loaded:hover::before {
    transform: scale(1.1);
}

.upink-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlay card */

.upink-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            135deg,
            rgba(0, 0, 0, .45) 0%,
            rgba(0, 0, 0, .25) 30%,
            rgba(0, 0, 0, .08) 55%,
            rgba(0, 0, 0, 0) 70%
    );
    z-index: 1;
}

.upink-card__content {
    position: absolute;
    left: 15px;
    right: 15px;
    top: 30px;
    z-index: 2;
    color: #fff;
}

.upink-card__title {
    display: block;
    font-size: 20px;
    line-height: 1.1;
    color: #FFFF00;
}

.upink-card__artist {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: #fff;
}

/* responsive */

@media (max-width: 1180px) {

    .upink-library__grid {
        grid-template-columns:repeat(6, minmax(0, 1fr));
        grid-auto-rows: 180px;
    }

}

@media (max-width: 767px) {

    .upink-library__grid {
        grid-template-columns:repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
    }

}