/* Collection pages: the "watch / read / listen here ›" button and the Resources list under
   the gallery (personal/media-extras.js). Link colours follow the Resources tree (links.css). */

.media-go {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 14px;
    border: 1px solid #666666;
    background: #fff;
    color: #444;
    font-family: 'Optima', arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.media-go:hover {
    background: #45a049;
    border-color: #45a049;
    color: #fff;
    transform: translateX(3px);
}

/* Under the gallery: the gallery and Resources share the left column, the sticky preview
   panel spans both rows on the right. */
/* the sticky panel's height goes into the second row, so the list sits right under the gallery */
.archive-main.has-media-res { grid-template-rows: auto 1fr; }
.archive-main.has-media-res > .gallery { grid-column: 1; grid-row: 1; margin-bottom: 40px; }
.archive-main.has-media-res > .preview-section { grid-column: 2; grid-row: 1 / span 2; }
.archive-main > .media-res { grid-column: 1; min-width: 0; margin-bottom: 100px; }

.media-res-title {
    margin: 0;
    font-family: 'Optima', arial, sans-serif;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #444444;
}
.media-res hr { margin: 10px 0 18px; }

.media-res-block { margin-bottom: 26px; }
.media-res-head {
    margin: 0 0 6px;
    font-family: 'Optima', arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #444;
}
.media-res-more {
    margin-left: 8px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
}
.media-res-more:hover { color: #45a049; }
.media-res-sub {
    margin: 14px 0 2px;
    font-family: 'Optima', arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.media-res-links {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 30px;
}
.media-res-links li {
    break-inside: avoid;
    padding: 5px 0;
    font-size: 15px;
    line-height: 1.35;
    color: #666666;
}
.media-res-links a {
    color: #47649a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.media-res-links a:hover { color: #45a049; border-bottom-color: currentColor; }
.media-res-note { font-size: 13px; color: #888; }

@media (max-width: 768px) {
    .archive-main > .media-res { grid-column: 1 / -1; margin-bottom: 60px; }
    .archive-main.has-media-res > .gallery,
    .archive-main.has-media-res > .preview-section { grid-column: auto; grid-row: auto; }
    .media-res-links { columns: 1; }
    .media-go { display: inline-block !important; width: fit-content !important; min-height: 0 !important; margin-top: 8px; padding: 5px 10px; font-size: 12px; line-height: 1.3; }
}

/* music.html's album grid isn't in a two-column grid, so the list just follows it */
.archive-main > .grid ~ .media-res { margin-top: 50px; }
