﻿/* Chamber header uses Index spacing/typography */
.chamber {
    padding: 56px 16px;
    color: var(--mtr-text);
}

.chamber__header {
    max-width: 1100px;
    margin: 0 auto 28px;
    text-align: center;
}

.chamber__title {
    margin: 0 0 8px;
    letter-spacing: .02em;
}


.chamber__subtitle {
    margin: 0;
    color: var(--mtr-muted);
}

/* TIMELINE LAYOUT (this is what you lost) */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 18px 0 10px;
}

.timeline__spine {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient( 180deg, transparent, var(--mtr-border), transparent );
    opacity: .85;
}

/* Each item anchors to left/right of the spine */
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 18px 0;
}

/* left item -> content on left col */
.timeline__item--left .card {
    grid-column: 1 / 2;
    justify-self: end;
}

/* right item -> content on right col */
.timeline__item--right .card {
    grid-column: 2 / 3;
    justify-self: start;
}

/* The dot on the spine */
.timeline__item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 26px;
    width: 12px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.2));
    border: 1px solid var(--mtr-border);
    box-shadow: 0 0 0 6px rgba(255,255,255,.03);
}

/* CARD: make it feel like Index cards */
.card {
    width: min(460px, 92%);
    text-decoration: none;
    color: inherit;
    background: var(--mtr-card);
    border: 1px solid var(--mtr-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.15) inset;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .card:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,.18);
        box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.12) inset, 0 0 40px rgba(74,190,210,.10);
    }

.card__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 18px; /* match your card rounding */
}


.card__img {
    width: 100%;
    aspect-ratio: 1 / 1; /* square album art */
    object-fit: cover; /* OR contain, your choice */
    display: block;
    transition: filter .2s ease, transform .2s ease;
}
.card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    /* start hidden */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    /* darken wash behind text */
    background: linear-gradient( 180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100% );
    pointer-events: none; /* keeps hover on the <a> */
}

/* 4) On hover: darken image + show overlay */
.card:hover .card__img,
.card:focus-visible .card__img {
    filter: brightness(.55) contrast(1.05);
}

.card:hover .card__overlay,
.card:focus-visible .card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.card__meta {
    width: 100%;
}

.card__artist {
    font-size: .95rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 6px;
}

.card__title {
    font-size: 1.15rem;
    line-height: 1.15;
    margin-bottom: 8px;
}

.card__details {
    font-size: .9rem;
    color: rgba(255,255,255,.78);
}

/* MOBILE: collapse to single column, spine left */
@media (max-width: 820px) {
    .timeline__spine {
        left: 18px;
        transform: none;
    }

    .timeline__item {
        grid-template-columns: 1fr;
        padding-left: 36px;
    }

    .timeline__item--left .card,
    .timeline__item--right .card {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
    }

    .timeline__item::before {
        left: 18px;
        transform: none;
    }

    .card__img {
        height: 200px;
    }
}

/* Ensure this page isn’t painting white over the layout background */
.chamber {
    background: transparent;
    text-align: center;
}

/* If you have any generic wrappers doing white backgrounds, kill them */
main, .container, .container-fluid {
    background: transparent;
}

/* Grid layout (4 across) */
.discography-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
}

    /* Remove timeline positioning behavior */
    .discography-grid .timeline__item {
        margin: 0; /* kill vertical timeline spacing */
        display: block; /* stop grid/columns from old timeline rules */
    }

    /* Ensure cards fill the grid cell */
    .discography-grid .card {
        width: 100%;
    }

@media (max-width: 1200px) {
    .discography-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .discography-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .discography-grid {
        grid-template-columns: 1fr;
    }
}
