/* =========================================================
   ALBUM ARCHIVE GRID
========================================================= */

.album-archive-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 28px 20px;

    align-items: start;
}


/* =========================================================
   ALBUM CARD
========================================================= */

.archive-album-card {
    min-width: 0;
}


/* =========================================================
   COVER
========================================================= */

.archive-album-cover {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 8px;

    background: #eeeeef;
}

.archive-album-cover img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.archive-album-card:hover
.archive-album-cover img {
    transform: scale(1.06);

    filter: brightness(0.86);
}


/* =========================================================
   OVERLAY
========================================================= */

.archive-album-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.3),
            transparent 50%
        );

    opacity: 0;

    transition:
        opacity 0.25s ease;
}

.archive-album-card:hover
.archive-album-overlay {
    opacity: 1;
}


/* =========================================================
   ALBUM TYPE
========================================================= */

.archive-album-type {
    position: absolute;

    z-index: 2;

    top: 10px;
    left: 10px;

    min-height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border-radius: 4px;

    background: var(--primary);

    color: #ffffff;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}


/* =========================================================
   ARROW
========================================================= */

.archive-album-arrow {
    position: absolute;

    z-index: 3;

    right: 12px;
    bottom: 12px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    color: var(--primary);

    font-size: 20px;
    font-weight: 700;

    box-shadow:
        0 6px 20px
        rgba(0, 0, 0, 0.2);

    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.archive-album-card:hover
.archive-album-arrow {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   ALBUM INFO
========================================================= */

.archive-album-info {
    padding-top: 11px;
}

.archive-album-title {
    margin: 0 0 5px;

    overflow: hidden;

    color: var(--black);

    font-size: 14px;
    font-weight: 700;

    line-height: 1.35;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.archive-album-title a:hover {
    color: var(--primary);
}


/* =========================================================
   ARTIST
========================================================= */

.archive-album-artist {
    display: block;

    overflow: hidden;

    color: #666666;

    font-size: 11px;

    line-height: 1.35;

    white-space: nowrap;

    text-overflow: ellipsis;

    transition: color 0.2s ease;
}

.archive-album-artist:hover {
    color: var(--primary);
}


/* =========================================================
   META
========================================================= */

.archive-album-meta {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 7px;

    color: #999999;

    font-size: 9px;

    text-transform: uppercase;
}

.archive-album-meta span + span::before {
    content: "•";

    margin-right: 7px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .album-archive-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 26px 18px;
    }

}


/* =========================================================
   SIDEBAR BELOW
========================================================= */

@media (max-width: 850px) {

    .album-archive-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .album-archive-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px 14px;
    }

    .archive-album-arrow {
        width: 38px;
        height: 38px;

        right: 9px;
        bottom: 9px;

        opacity: 1;

        transform: none;

        font-size: 18px;
    }

    .archive-album-title {
        font-size: 13px;
    }

    .archive-album-type {
        top: 8px;
        left: 8px;

        min-height: 21px;

        font-size: 7px;
    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 420px) {

    .album-archive-grid {
        gap: 20px 12px;
    }

}