@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
}

header {
    background: #fff;
    color: #222;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 50px;
}

header h1 {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 10px;
}

header p {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-optical-sizing: auto;
    margin: 0 2rem;
}

.logo {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 10px;
}

nav {
    background: #fff;
    padding: 10px 0;
    text-align: center;
}

nav a {
    color: #222;
    text-decoration: none;
    margin: 0 20px;
    font-weight: normal;
    padding: 10px;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    cursor: pointer;
    border-bottom: 2px solid #222;
}

nav a.active {
    border-bottom: 2px solid #222;
    font-weight: bold;
}

main {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
}

main p {
    text-align: justify;
}

main a {
    color: darkblue;
}

main a:visited {
    color: darkblue;
}

main a:hover {
    text-decoration: none;
}

.artist-page {
    min-height: 500px;
}

/* Responsive Video Container */
/* #youtube-container {
    text-align: center;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 = 0.5625)
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; (Optional: background for loading or iframes that don't fill)
}

#youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
} */

.painting-container {
    margin-top: 25px;
}

.painting-container p {
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

.painting-container img{
    max-width: 100%;
    height: auto;
}


main p,
main ul,
main li {
    line-height: 2em;
}

main ul {
    text-align: justify;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background: #222;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #444;
}

footer {
    border-top: 1px solid #ccc;
    font-size: 14px;;
    text-align: center;
    padding: 20px 0;
    /* background: #f9f9f9; */
    color: #222;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #222;
    text-decoration: none;
    margin: 0;
}

.link {
    text-decoration: none;
    cursor: pointer;
    color: darkblue;
}

.link:hover {
        border-bottom: 1px solid #222;
        cursor: pointer;
        padding-bottom: 8px;
        transition: 0.3s;
}

.icon-container {
    text-align: center;
}

.icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

#post-list {
    /* list-style-type: none; */
    margin-left: 15px;
    padding: 0;
    line-height: 3em;

    a {
        text-decoration: none;
        color: #222;
    }

    a:hover {
        border-bottom: 1px solid #222;
        cursor: pointer;
        padding-bottom: 8px;
        transition: 0.3s;
    }
}

.artist-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}
.artist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 180px;
}
.artist-list li {
    margin-bottom: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 1.1em;
}
.artist-list li:hover {
    color: grey;
}
.artist-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}
.artist-image-container img {
    max-width: 350px;
    max-height: 350px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    background: #fff;
}

/* Blog cards */
.blog-section {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 30px;
    text-align: center;
}

.blog-section h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    margin-bottom: 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    text-align: left;
}

.blog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #222;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-body {
    padding: 16px;
}

.blog-card-date {
    display: block;
    font-size: 0.75em;
    color: #999;
    margin-bottom: 6px;
}

.blog-card-body h3 {
    margin: 0 0 8px;
    font-size: 1em;
    font-family: "DM Serif Text", serif;
    font-weight: 400;
}

.blog-card-body p {
    margin: 0;
    font-size: 0.85em;
    color: #555;
    line-height: 1.5;
}

/* Shorts grid */
.shorts-section {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 30px;
    text-align: center;
}

.shorts-section h2 {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    margin-bottom: 8px;
}

.shorts-subtitle {
    color: #555;
    font-size: 0.95em;
    margin-bottom: 28px;
}

.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.short-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #222;
}

.short-item img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 6px;
    transition: opacity 0.2s;
}

.short-item:hover img {
    opacity: 0.75;
}

.short-item span {
    font-size: 11px;
    margin-top: 6px;
    line-height: 1.4;
    text-align: center;
    color: #444;
}

/* Mobile UI */
@media (max-width: 600px) {
    
    nav {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
    }
    nav a {
        margin: 0;
        border-bottom: none;
        /* width: 100vw; */
        max-width: 320px;
        text-align: left;
        padding: 14px 24px;
        display: block;
    }
    nav a.active {
        border-bottom: none;
    }
    .artist-image-container {
        display: none;
    }
}