/* ================================
   PAGE-ALBUMS.CSS
   Styles specific to albums.html (the discography landing page)
   Loaded AFTER styles.css
   ================================ */

/* ================================
   CALLOUT BOX
   Centered informational box at the top of the page,
   replaces the old albumoverview2019.jpg image
   ================================ */
.albums-callout {
    max-width: 520px;
    margin: 5px auto 8px;
    padding: 12px 20px;
    border: 1.5px solid rgba(58, 100, 147, 0.6);
    border-radius: 2px;
    text-align: justify;
}

.albums-callout p {
    font-family: 'Rosario', sans-serif;
    font-size: 15.5px;
    color: #545454;
    line-height: 1.35;
    margin-bottom: 10px;
}

.albums-callout p:last-of-type {
    margin-bottom: 0;
}

.albums-callout strong {
    font-weight: 800;
    text-transform: uppercase;
}

.albums-callout a {
    color: rgb(58, 100, 147);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.albums-callout a:hover {
    opacity: 0.7;
}

/* "ALBUM BUYING GUIDE" link below the callout box */
.albums-callout-link {
    display: block;
    text-align: center;
    margin: 4px auto 30px;
    font-family: 'Rosario', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgb(58, 100, 147);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.albums-callout-link:hover {
    opacity: 0.7;
}

/* ================================
   ALBUM GRID
   3-column CSS Grid on desktop, 1-column on mobile.
   Albums are displayed in reverse chronological order.
   ================================ */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 30px;
    max-width: 820px;
    margin: 0 auto;
    padding: 10px 0 40px;
}

/* ================================
   ALBUM CARD
   Each album entry: title, year, cover image, caption.
   Everything centered within the card.
   ================================ */
.album-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.album-title {
    font-family: 'IM Fell DW Pica', serif;
    font-size: 19px;
    font-weight: 400;
    color: rgb(58, 100, 147);
    text-decoration: none;
    transition: opacity 0.3s ease;
    line-height: 1.1;
    margin-bottom: -2px;
}

.album-title:hover {
    opacity: 0.7;
}

.album-year {
    font-family: 'Rosario', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
    margin-top: -3px;
    margin-bottom: 2px;
}

.album-cover-link {
    display: block;
    transition: opacity 0.3s ease;
}

.album-cover-link:hover {
    opacity: 0.85;
}

.album-cover {
    width: 240px;
    height: 240px;
    object-fit: cover;
    display: block;
}

.album-caption {
    font-family: 'Rosario', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}

/* ================================
   CONTENT SECTION OVERRIDE
   The albums page uses a wider content area than the
   default 48rem to accommodate the 3-column grid.
   ================================ */
.content-section.albums-content {
    max-width: 900px;
}

/* ================================
   RESPONSIVE — MOBILE (≤768px)
   ================================ */
@media (max-width: 768px) {

    .albums-callout {
        max-width: 90%;
        padding: 16px 20px;
        margin: 5px auto 28px;
        border-color: rgba(58, 100, 147, 0.25);
    }

    /* Hide redundant buying guide link on mobile */
    .albums-callout-link {
        display: none;
    }

    .albums-callout p {
        font-size: 13px;
    }

    .albums-callout a {
        text-decoration: underline;
    }

    /* Switch to single column */
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 320px;
        padding: 5px 0 30px;
    }

    .album-cover {
        width: 280px;
        height: 280px;
    }

    .album-title {
        font-size: 21px;
    }

    .album-year {
        font-size: 14px;
    }
}
