.featured-image-xsmall img {
    height: 10rem;
    max-width: 20rem;
    object-fit: contain;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}


/* ========================
   Social Link Buttons (Wide)
=========================== */

.social-linktree-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    background-color: var(--color-off-white);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
}

.social-linktree-grid .link-button {
    padding: 10px;
    min-width: auto;
    max-width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

/* ========================
   Music Links
=========================== */

.music-links-container {
    width: 100%;
    max-width: 800px;
    margin: auto;
    text-align: center;
    padding: 20px;
}

.music-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    justify-content: center;
    align-items: center;
}

/* ========================
   Link Buttons
=========================== */

.linktree-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Auto-adjust column size */
    grid-auto-rows: auto;
    gap: 6px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px; /* Keeps grid compact */
    margin: 0 auto;
}

.linktree-grid .link-button {
    font-size: var(--font-size-xs);
    padding: 6px 10px;
    min-width: 125px;
    max-width: 200px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap; 
    flex-grow: 1; 
    width: auto; 
    min-width: 20rem; 
}

.logo-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ========================
   Artist Link Tree Releases
=========================== */

.LinkTreeRelease {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-off-white);
    padding: var(--spacing-md);
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius-sm);
    max-width: var(--max-width-md);
    margin: 0 auto;
}

.LinkTreeRelease .album-cover {
    flex: 0 0 30%;
}

.LinkTreeRelease .album-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

.LinkTreeRelease .linktree-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(80px, 1fr)); /* Keeps buttons in grid */
    gap: 10px; 
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Prevents the buttons from spreading too wide */
    margin: 0 auto;
}

/* ========================
   Dark Mode
=========================== */

body.dark-mode .linktree-grid {
    background-color: var(--color-dark);
    color: var(--color-white);
}

body.dark-mode .LinkTreeRelease {
    background-color: var(--color-dark);
    border: 1px solid var(--color-secondary);
}

body.dark-mode .LinkTreeRelease .album-cover img {
    border-radius: var(--border-radius-sm);
}

body.dark-mode .LinkTreeRelease .linktree-grid .link-button {
    background-color: var(--color-dark-mode);
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

body.dark-mode .LinkTreeRelease .linktree-grid .link-button:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

body.dark-mode .social-linktree-grid {
    background-color: var(--color-dark);
    color: var(--color-white);
}


/* Mobile: Stack buttons vertically */
@media (max-width: 880px) {

    .music-links-grid {
        grid-template-columns: 1fr;
    }


    .social-linktree-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        grid-template-columns: repeat(3, 1fr); /* Keeps two columns */
        max-width: var(--max-width-md); /* Matches music links */
    }

    .logo-button-container {
        display: flex;
        align-items: center;
        grid-template-columns: repeat(3, 1fr); /* Keeps two columns */
        max-width: var(--max-width-md); /* Matches music links */
    }

    .social-linktree-grid .link-button {
        width: 100%; /* Full width on mobile */
    }


    .LinkTreeRelease {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .LinkTreeRelease .album-cover {
        max-width: 100%;
    }

    .LinkTreeRelease .linktree-grid {
        width: 100%;
    }

    .featured-image-xsmall img {
        max-height: 8rem;
        max-width: 20rem;
        object-fit: contain;
    }

    .LinkTreeRelease {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .LinkTreeRelease .album-cover {
        max-width: 80%; /* Ensures images are not too small */
    }

    .LinkTreeRelease .linktree-grid {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}