/* ==================================================================
   LISTS — loaded only on pages (front page, Engelske, Julesalmer, ...)
   ================================================================== */

/* ============================
   "ALLE DANSKE JULESANGE" QUERY LOOP LIST
   ============================ */

/* Even spacing on all screens.
   (This rule was being ignored before: a stray "}" right above it in
   Additional CSS made the browser throw it away.) */
.wp-block-post-template.columns-3 > .wp-block-post > .wp-block-group {
    min-height: 0 !important;
    padding: 10px 0 !important;
}

.wp-block-post-template.columns-3 .wp-block-post-title {
    margin: 0 !important;
    line-height: 1.35;
}

/* Mobile: less padding and no indent */
@media (max-width: 600px) {
    .wp-block-post-template.columns-3 {
        margin: 0 !important;
        padding: 0 !important;
    }
    .wp-block-group.has-border-color:has(.wp-block-post-template.columns-3) {
        padding: 12px 16px !important;
    }
    .wp-block-post-template.columns-3 > .wp-block-post > .wp-block-group {
        padding: 8px 0 !important;
    }
}

/* ============================
   "VIS FLERE SANGE" BUTTON (mobile only)
   ============================ */
.jsdk-load-more { display: none; }

@media (max-width: 600px) {
    .jsdk-lm-hidden { display: none !important; }
    .jsdk-load-more {
        display: block;
        width: 100%;
        margin: 16px 0 0;
        padding: 12px 16px;
        background: #8b0d16;
        color: #fff;
        border: 0;
        border-radius: 8px;
        font: inherit;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
    }
    .jsdk-load-more[hidden] { display: none; }
}

/* ============================
   POPULÆRE JULESANGE (card grid)
   ============================ */
.js-popular {
    margin: 0 0 55px;
}

.js-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.js-section-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.js-section-heading h2 {
    margin: 0;
    color: #102337;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.2;
}

.js-section-icon {
    color: #a51414;
    font-size: 20px;
}

.js-section-heading > a {
    color: #a51414 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.js-section-heading > a:hover {
    color: #751010 !important;
}

/* Columns are set in global.css (1 column up to 900px, 6 above) */
.js-song-grid {
    display: grid;
    gap: 18px;
}

.js-song-card {
    display: block;
    overflow: hidden;
    color: #102337 !important;
    background: #fff;
    border: 1px solid #e7e1d8;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.js-song-card:hover {
    color: #102337 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
}

.js-song-image {
    height: 155px;
    overflow: hidden;
}

.js-song-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.js-song-card:hover .js-song-image img {
    transform: scale(1.04);
}

.js-song-info {
    position: relative;
    padding: 15px 40px 16px 16px;
}

.js-song-info h3 {
    margin: 0 0 4px;
    color: #182b3c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.3;
}

.js-song-info p {
    margin: 0;
    color: #707070;
    font-size: 13px;
}

.js-song-info span {
    position: absolute;
    right: 15px;
    top: 50%;
    color: #a51414;
    font-size: 18px;
    transform: translateY(-50%);
}

@media (max-width: 600px) {
    .js-section-heading h2 {
        font-size: 25px;
    }
    .js-section-heading > a {
        font-size: 13px;
    }
    .js-song-grid {
        gap: 12px;
    }
    .js-song-image {
        height: 125px;
    }
    .js-song-info {
        padding: 12px 32px 13px 12px;
    }
    .js-song-info h3 {
        font-size: 16px;
    }
    .js-song-info p {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .js-song-image {
        height: 180px;
    }
}

/* Page titles (Astra's H1) — match the design's headings */
.page .entry-header .entry-title {
    font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

/* Roulette: break out of Astra's content width (full-bleed) */
.entry-content[data-ast-blocks-layout] > .jsr {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Roulette banner: "How about …" result links in white */
.jsr__banner-result .jsr__banner-picked a,
.jsr__banner-result .jsr__banner-picked a:visited,
.jsr__banner-result .jsr__banner-picked a:hover,
.jsr__banner-result .jsr__banner-picked a:focus {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.jsr__banner-result .jsr__banner-picked a:hover,
.jsr__banner-result .jsr__banner-picked a:focus {
    text-decoration-thickness: 2px;
}