/* Prevent horizontal page scroll */
html,
body {
    overflow-x: hidden;
}

/* ===============================
 *  * WRAPPER
 *   * =============================== */

.wrapper {
    position: relative;
    display: inline-block;

    width: 100%;
    max-width: 1200px;

    aspect-ratio: 2 / 1;

    overflow: hidden;
    perspective: 1200px;

    margin-bottom: 5%;
}

/* Base image */
.base-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* slightly stronger readability baseline */
    filter: brightness(0.18);
    transition: filter 0.25s ease;
}

.wrapper:hover .base-image {
    filter: brightness(0.28);
}

/* ===============================
 *  * SLICES (UNCHANGED)
 *   * =============================== */

.slices {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
}

.slice {
    flex: 1;
    height: 100%;

    background-repeat: no-repeat;

    transition: transform 0.25s ease, box-shadow 0.25s ease;

    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.slice.active {
    transform: translateY(-8px);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.4),
        0 10px 20px rgba(0,0,0,1),
        0 0 0 1px rgba(255,255,255,0.08) inset;

    z-index: 5;
}

/* ===============================
 *  * LINK
 *   * =============================== */

.collection-link {
    text-decoration: none;
    color: inherit;

    display: block;
    position: relative;

    cursor: pointer;
}

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

.collection-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 40px;

    color: #fff;
    z-index: 15;

    pointer-events: none;

}

/* ===============================
 *  * TOP
 *   * =============================== */

.collection-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* DATE */
.collection-date {
    font-size: 15px;
    opacity: 0.75;
    letter-spacing: 0.08em;

    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.55);

}

/* BADGE */
.collection-badge {
    font-size: 15px;

    padding: 6px 10px;

    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;

    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);

    letter-spacing: 0.05em;

    transition: 0.2s ease;
}

/* ===============================
 *  * BOTTOM TEXT (ONLY FIXED PART)
 *   * =============================== */

.collection-bottom {
    max-width: 75%;
}

.collection-name {
    font-size: 32px;
    font-weight: 700;

    margin: 0 0 6px 0;

    line-height: 1.15;
    letter-spacing: 0.04em;

    color: #ffffff;
    transition: color 0.25s ease, text-shadow 0.25s ease;

    transition: transform 0.25s ease;
}

.collection-meta {
    font-size: 16px; /* was 14px */

    opacity: 0.85;
    letter-spacing: 0.06em;

    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.55);

    text-transform: uppercase;
}

/* ===============================
 *  * HOVER
 *   * =============================== */

.wrapper:hover .collection-name {
    color: rgba(255, 255, 255, 0.96);
    text-shadow:
        0 8px 22px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 0.65),
        0 0 28px rgba(0, 0, 0, 0.3);

    filter: saturate(1.05);
}

/* ===============================
 *  * GRADIENT
 *   * =============================== */

.wrapper::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.35) 40%,
        rgba(0,0,0,0) 70%
    );

    pointer-events: none;
}

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

@media (max-width: 1024px) {

    .collection-name {
        font-size: 24px;
    }

    .collection-meta {
        font-size: 15px;
    }
}

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

@media (max-width: 768px) {

    .wrapper {
        width: 160vw;
        max-width: none;
        margin-bottom: 50px;
    }

    .collection-overlay {
        padding: 26px;
    }

    .collection-name {
        font-size: 22px;
    }

    .collection-meta {
        font-size: 14px;
    }

    .collection-badge {
        font-size: 15px;
        padding: 5px 8px;
    }
}

@media (max-width: 480px) {

    .wrapper {
        width: 180vw;
    }
}


@media (max-width: 768px) {

    .collection-top {
        position: relative;
    }

/*    .collection-badge {
        position: absolute;

        left: 95vw;
        transform: translateX(calc(-100% - 25px));

        white-space: nowrap;
    }*/
}

.network-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.network-icon svg {
    width: 14px;
    height: 14px;

    display: block;
}

/* row for title + badge */
.collection-title-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .collection-name {
        max-width: 310px;
	overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}


/* ===============================
 *    INLINE BADGE (NEXT TO TITLE)
 *       =============================== */

.collection-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 16px;
    font-weight: 500;

    opacity: 0.7;

    border: none;
    background: none;
    backdrop-filter: none;
    padding: 0;

    letter-spacing: 0.04em;

    white-space: nowrap;
}

/* icon */
.collection-badge-inline .badge-icon {
    width: 16px;
    height: 16px;

    opacity: 0.8;

    transform: translateY(1px);
}

/*.wrapper {
    overflow: visible;
}*/

.base-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}




