/*
 * Album embeds fit the space they are placed in, including narrow editor columns.
 * Load after the main styles, before the homepage's intentional paste-up overrides.
 * No container queries or scripts needed.
 */
.album-release,
.entry-content .album-release {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    gap: 2rem 3rem;
    container-type: normal;
    min-width: 0;
    max-width: 100%;
}

.album-release > .album-artwork {
    flex: 1 1 340px;
    min-width: 0;
    max-width: 100%;
    width: auto;
}

.album-release > .album-details {
    flex: 1 1 360px;
    min-width: 0;
    max-width: 100%;
    width: auto;
    margin-top: 0;
}

.album-release .album-artwork img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.album-release .album-title {
    margin: 0 0 .35em;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* General entry headings must not insert a gap above an embedded album title. */
.entry-content .album-release .album-title {
    font-size: 3rem;
    margin-top: 0;
}

.album-release .album-tracks {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    border-top: 0;
    max-width: 100%;
}

.album-release .album-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .65rem;
    padding: .7rem 0;
    min-width: 0;
    max-width: 100%;
    border-bottom: 1px dashed rgba(32, 32, 28, .28);
    line-height: 1.4;
}

.album-release .album-track-number {
    flex: 0 0 2ch;
    grid-column: auto;
    font-size: .75rem;
}

.album-release .album-track-art {
    display: block;
    flex: 0 0 36px;
    grid-column: auto;
    width: 36px;
    height: 36px;
    max-width: 36px;
    object-fit: cover;
}

.album-release .album-track-name {
    flex: 1 1 6rem;
    grid-column: auto;
    min-width: 0;
    font-size: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.album-release .album-track-duration {
    display: inline-block;
    flex: 0 0 auto;
    grid-column: auto;
    font-size: .75rem;
    white-space: nowrap;
}

.album-release .album-track-link {
    display: inline-flex;
    flex: 0 0 auto;
    grid-column: auto;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 3px;
    margin-left: auto;
    font-size: .8rem;
    white-space: nowrap;
}

.album-release .album-stream {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Plain outlines also work in browsers without :focus-visible. */
.album-release a:focus {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media print {
    .album-release,
    .entry-content .album-release {
        break-inside: auto;
    }
    .album-release .album-track {
        break-inside: avoid;
    }
}
