.infoboxes .infobox + .infobox {
    margin-top: 2.5em;
}
/* Gallery Modal (Patreon) with static image background */
.modal-content.patreon-modal-content {
    background: linear-gradient(rgba(20,20,20,0.92), rgba(20,20,20,0.92)), url('assets/patreon_bg.png') no-repeat center center;
    background-size: cover;
    background-blend-mode: darken, normal;
}
/* Portfolio Modal with static image background */
.modal-content.portfolio-modal-content {
    background: linear-gradient(rgba(20,20,20,0.92), rgba(20,20,20,0.92)), url('assets/portfolio_bg.png') no-repeat center center;
    background-size: cover;
    
}

/* More Button uses portfolio-btn styling for consistency */
.more-btn {
    background: #ffd700;
    color: #222;
    padding: 0.7em 1.2em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-top: 2em;
    flex-direction: column;
    gap: 1rem;
}
.more-btn:hover {
    background: #fffbe6;
    color: #222;
}

/* Patreon Modal uses modal-content styling for consistency */
.patreon-modal-content {
    background: #222;
    margin: 5% auto;
    padding: 2em;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    color: #fff;
    text-align: center;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.patreon-btn {
    background: #ffd700;
    color: #222;
    padding: 0.7em 1.2em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    margin-top: 1.5em;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.patreon-btn:hover {
    background: #fffbe6;
    color: #222;
}
.portfolio-smp-link {
    font-weight: bold;
}
@media (max-width: 600px) {
    body {
        background-attachment: scroll;
    }
    main {
        max-width: 100vw;
        margin: 1rem 0 4rem 0;
        padding: 0.5rem;
        border-radius: 0;
        box-shadow: none;
    }
    .bio-container, .infoboxes {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    .infobox {
        max-width: 100vw;
        min-width: 0;
        margin: 0 auto;
    }
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    .gallery-img {
        max-width: 100vw;
        aspect-ratio: auto;
        height: auto;
    }
    .modal-content {
        margin: 10% auto;
        padding: 1em;
        width: 98vw;
        max-width: 98vw;
    }
    .portfolio-buttons {
        flex-direction: column;
        gap: 0.7em;
    }
    .links {
        flex-direction: column !important;
        gap: 1.5em !important;
    }
    .links-iframe {
        margin-top: 0 !important;
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        display: flex;
        justify-content: center;
    }
    .links-iframe iframe {
        width: 85vw !important;
        min-width: 0 !important;
        max-width: 400px !important;
        height: 350px !important;
    }
    
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.7);
}
.modal-content {
    background: #222;
    margin: 5% auto;
    padding: 2em;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    color: #fff;
    text-align: center;
}
.close {
    color: #ffd700;
    float: right;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
}
.portfolio-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    margin-top: 2em;
}
.portfolio-btn {
    background: #ffd700;
    color: #222;
    padding: 0.7em 1.2em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}
.portfolio-btn:hover {
    background: #fffbe6;
    color: #222;
}
.media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    justify-items: center;
    align-items: start;
}
.gallery-img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
    border-radius: 8px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: block;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: url('assets/background.png') no-repeat center center fixed;
    background-size: cover;
    color: #f5f5f5;
    margin: 0;
    padding: 0;
}
header {
    background: #232323;
    padding: 1rem 0;
    text-align: center;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
nav a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
nav a:hover {
    color: #fffbe6;
}

a {
    color: #ffd700;
    text-decoration: underline;
    transition: color 0.2s;
}
a:hover {
    color: #fffbe6;
}
main {
    max-width: 900px;
    margin: 2rem auto 7.5rem auto;
    padding: 1rem;
    background: #222;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.bio-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}
.bio {
    flex: 2;
    min-width: 0;
}
.infoboxes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    min-width: 260px;
    max-width: 320px;
}
.infobox {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}
.bio {
    flex: 2;
}
.bio h2 {
    color: #ffd700;
}
.infobox {
    flex: 1;
    background: #232323;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    min-width: 220px;
    max-width: 260px;
    text-align: center;
}
.infobox-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid #ffd700;
}
.infobox ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}
.infobox li {
    margin-bottom: 0.5rem;
    color: #f5f5f5;
}
.infobox strong {
    color: #ffd700;
}
footer {
    text-align: center;
    padding: 1rem 0;
    background: #232323;
    color: #aaa;
}
