:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #333;
    --card-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --modal-info-bg: #fafafa;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #f0f0f0;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --modal-info-bg: #1a1a1a;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Header */
header {
    position: relative;
    /* For canvas positioning */
    text-align: center;
    padding: 3rem 0;
    /* Remove horizontal padding from main container */
    width: 100%;
    overflow: hidden;
    /* Contain canvas */
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

#bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.site-logo {
    width: 80px;
    height: auto;
    display: block;
    filter: invert(0);
    transition: filter 0.3s;
}

[data-theme="dark"] .site-logo {
    filter: invert(1);
}

.main-title {
    font-size: 3rem;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.bio-container {
    max-width: 800px;
}

.site-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: var(--accent-color);
}

.artist-bio {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .glass-panel {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 1rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    position: relative;
    /* For pseudo-element */
    padding-bottom: 4px;
    opacity: 0.6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.filter-btn:hover {
    opacity: 1;
}

.filter-btn:hover::after,
.filter-btn.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.filter-btn.active {
    opacity: 1;
    font-weight: normal;
    /* Prevent jumping */
}

/* Grid - Masonry */
.grid-container {
    padding: 0 2rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.grid {
    display: block;
    column-count: 3;
    column-gap: 30px;
}

@media (max-width: 1024px) {
    .grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .grid {
        column-count: 1;
    }
}

@keyframes breathe {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.10);
    }

    100% {
        transform: scale(1);
    }
}

.grid-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease-out;
    border-radius: 16px;
    background: var(--card-bg);
    /* Animation removed from container */
}

/* Stagger breathing slightly - NOT NEEDED for image animation, but maybe delay start? */

.grid-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.grid-item img {
    width: 100%;
    /* No height/aspect-ratio for masonry */
    display: block;
    margin: 0;
    transition: filter 0.5s ease;
    /* Transform handled by animation/hover */
    filter: grayscale(100%);
    animation: breathe 8s infinite ease-in-out;
    will-change: transform;
}

.grid-item:hover img {
    filter: grayscale(0%);
    animation-play-state: paused;
    transform: scale(1.15);
    /* Stronger zoom on hover */
}

/* Mobile Scroll Hover Effect Class */
.grid-item.mobile-hover img {
    filter: grayscale(0%);
    animation-play-state: paused;
    transform: scale(1.15);
}

.grid-item.mobile-hover .item-overlay,
.grid-item.no-image .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.grid-item.no-image {
    min-height: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-end;
}

.grid-item.no-image .item-overlay {
    position: relative;
    background: none;
    padding: 20px;
}

.grid-item.no-image h3,
.grid-item.no-image p {
    color: var(--text-color);
    text-shadow: none;
}



/* Mobile specific adjustments */
@media (max-width: 600px) {
    header {
        padding: 2rem 0 1rem;
        /* Reduce header padding */
    }

    .header-inner {
        gap: 1rem;
        /* Reduce gap between header elements */
    }

    .logo-title-wrapper {
        margin-bottom: 0.5rem;
        /* Reduce space after logo/title */
    }

    .site-title {
        margin-bottom: 0.5rem;
        /* Reduce space after subtitle */
    }

    .artist-bio {
        font-size: 0.9rem;
        /* Smaller font */
        line-height: 1.5;
        /* Lower line height */
        margin-bottom: 1rem;
    }

    /* Filters spacing */
    .filters {
        margin-bottom: 1.5rem;
        /* Reduce space before grid */
        padding: 0 1rem;
        margin-left: 2rem;
        margin-right: 2rem;
        /* Increase side padding */
        gap: 1rem;
        /* gap between buttons */
    }
}

/* Icons */
.category-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4); /* Dark background */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    padding: 6px;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, background 0.3s;
    opacity: 0.9;
    color: white; /* Forces stroke and fill currentColor onto SVGs */
}

.category-icon:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.65);
}

.category-icon svg {
    width: 100%;
    height: 100%;
}

.item-overlay {
    position: absolute;
    /* Overlay is back */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-align: left;
    pointer-events: none;
}

.grid-item:hover .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.item-overlay h3 {
    font-size: 1.2rem;
    margin: 0 0 4px 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.item-overlay p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}


/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly lighter backdrop */
    backdrop-filter: blur(5px);
    /* Add blur */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-color);
    color: var(--text-color);
    max-width: 1400px;
    /* Much larger */
    width: 95%;
    height: 90vh;
    /* Fixed height to create a "window" feel */
    max-height: 90vh;
    overflow: hidden;
    /* Scroll inside columns */
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 20px;
}

.modal.open .modal-content {
    transform: scale(1) translateY(0);
}

@media (max-width: 767px) {
    .modal-content {
        overflow-y: auto;
        /* Enable scroll on mobile */
        height: auto;
        /* Let content dictate height up to max-height */
        display: block;
        /* Stack block elements */
    }

    .modal-image {
        height: 55vh;
        /* Fixed taller height for image */
    }

    .modal-content.image-only-mode .modal-image {
        height: 85vh;
        /* Much taller for image-only mode */
    }

    .modal-info {
        overflow: visible;
        /* Let text flow */
        height: auto;
    }
}

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }

    .modal-image {
        flex: 2;
        /* Give image more space (66%) */
        position: relative;
        overflow: hidden;
        background: #000;
        /* Dark background for images */
    }

    .modal-info {
        flex: 1;
        padding: 50px;
        overflow-y: auto;
        position: relative;
        /* Anchor for lang toggle */
    }

    /* Image Only Mode */
    .modal-content.image-only-mode .modal-image {
        flex: 1;
        width: 100%;
    }
}

/* Image Only Mode - Global */
.modal-content.image-only-mode .modal-info,
.modal-content.no-media-mode .modal-image {
    display: none !important;
}

.modal-content.no-media-mode .modal-info {
    flex: 1;
    max-width: 100%;
}

/* Overlay for image only mode */
.image-only-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 40px 90px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    z-index: 100;
    pointer-events: none;
    text-align: center;
    box-sizing: border-box; /* Fix centering shift */
}

.image-only-overlay h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.image-only-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Rich Text Formatting */
.modal-info p {
    margin-bottom: 0.8em;
    /* Reduced from default */
    line-height: 1.6;
}

/* Squash empty lines from Quill */
/* Squash empty lines from Quill */
.modal-info p:has(br:only-child),
.modal-info p:empty,
.empty-line,
.modal-info p.empty-line {
    margin: 0 !important;
    line-height: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: none !important;
    margin-block: 0 !important;
    display: none;
    /* Hide completely if that is the goal, or use empty block */
}

.modal-info h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Modal Controls Container (Close & Lang Toggles) */
.modal-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1001;
    /* Above images and content */
}

.lang-toggle-container {
    display: flex;
    gap: 10px;
}

/* Common Modal Button Style */
.modal-control-btn {
    background: rgba(244, 244, 244, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(224, 224, 224, 0.5);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-control-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-control-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

[data-theme="dark"] .modal-control-btn {
    background: rgba(30, 30, 30, 0.85);
    color: #eee;
    border-color: rgba(60, 60, 60, 0.5);
}

[data-theme="dark"] .modal-control-btn.active {
    background: #eee;
    color: #111;
}

[data-theme="dark"] .modal-control-btn:hover {
    background: #111;
    color: #fff;
}




/* Slider Styles */
.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    width: 100%;
    flex: 0 0 100%;
    /* Explicitly lock width */
    height: 100%;
    position: relative;
    box-sizing: border-box;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    /* Force visible */
}

/* Video Support */
.fit-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

iframe.fit-contain {
    border: none;
}

.slider-arrow {
    /* Fallback or logic for single image */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 1rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 10px;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    max-width: 80%;
    overflow-x: auto;
    padding: 5px;
}

.slider-caption {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s;
}

.music-player-container {
    margin-bottom: 15px; /* Spacing between multiple players */
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.music-player-container:last-child {
    margin-bottom: 30px; /* More space before text */
}

.music-player-container iframe {
    display: block;
    border: none;
}

.slider-dot {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    flex-shrink: 0;
}

.slider-dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dot .video-thumb-icon {
    color: white;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.slider-dot:hover {
    opacity: 0.9;
}

.slider-dot.active {
    opacity: 1;
    border-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.aspect-toggle {
    position: absolute;
    top: 20px;
    left: 20px; /* Moved to top-left */
    z-index: 100;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.aspect-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1); /* Removed translateX */
}

.aspect-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.modal-image.is-contained .aspect-toggle {
    background: white;
    color: #000;
}

.modal-image.is-contained .aspect-toggle svg {
    transform: scale(0.85);
}

.modal-image.is-contained .slider-slide img {
    object-fit: contain;
    background: #000;
}

.modal-image img {
    /* Fallback or logic for single image */
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 40px;
    position: relative;
    background: var(--modal-info-bg);
    border-left: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
}

/* Rich Text Content */
.rich-text {
    line-height: 1.8;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .rich-text {
        font-size: 0.95rem;
        /* Slightly smaller on mobile */
        line-height: 1.6;
        /* Optionally tighter line height */
    }
}

.rich-text p {
    margin-bottom: 1rem;
}

.rich-text strong {
    font-weight: 600;
}

.rich-text em {
    font-style: italic;
}

.rich-text h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.rich-text ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.close-modal {
    background: rgba(255, 60, 60, 0.9);
    color: white;
    border-color: rgba(255, 60, 60, 0.5);
}

.close-modal:hover {
    background: red;
    color: white;
    transform: translateY(-2px);
}

[data-theme="dark"] .close-modal {
    background: rgba(200, 40, 40, 0.9);
    color: white;
    border-color: rgba(200, 40, 40, 0.5);
}

[data-theme="dark"] .close-modal:hover {
    background: red;
    color: white;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.7;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Typography Details */
.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-top: 0;
}

.modal-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
    display: block;
}

.modal-desc {
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-desc h2, .modal-desc h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.modal-desc h2 { font-size: 1.5rem; }
.modal-desc h3 { font-size: 1.25rem; }
.modal-desc h4 {
    font-size: inherit !important;
    font-weight: 400 !important;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    font-family: var(--font-body) !important;
    line-height: inherit !important;
    opacity: 1 !important;
    color: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* View Transitions */
::view-transition-group(hero-image) {
    animation-duration: 0.5s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

::view-transition-old(hero-image),
::view-transition-new(hero-image) {
    /* Prevent default cross-fade for the image itself, pure morph */
    mix-blend-mode: normal;
    height: 100%;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.blog-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    /* Entry animation state */
    display: flex;
    flex-direction: column;
}

.blog-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-item img {
    width: 100%;
    height: 300px;
    /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-content .meta {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 15px;
    display: block;
}

.blog-preview {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nav Toggle Button (Global / Desktop) */
.nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 1000;
    /* High z-index to stay on top */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-family: var(--font-body);
    letter-spacing: 0.1em;
}

.nav-toggle:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.nav-toggle .nav-icon {
    display: none;
    /* Hide icon on desktop */
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* 1. Header Layout: Title Top, Logo Bottom */
    .logo-title-wrapper {
        flex-direction: column;
        /* Logo (1st) Top, Title (2nd) Bottom */
        gap: 1rem;
    }

    .main-title {
        font-size: 2.2rem;
        /* Slightly smaller Title */
    }

    .site-logo {
        width: 60px;
        /* Smaller Logo */
    }

    /* 2. Optimize Bio Text */
    .header-inner {
        padding: 0 1rem;
        /* Reduce side padding of container */
    }

    .bio-container {
        width: 100%;
    }

    .artist-bio {
        font-size: 0.95rem;
        /* Smaller font */
        margin-bottom: 0.5rem;
    }

    .glass-panel {
        padding: 1.5rem 1rem;
        /* Reduce padding inside glass panel */
    }

    /* 3. Adjust Filter Spacing */
    .filters {
        gap: 15px;
        /* Reduce gap */
        padding: 1rem 0;
    }

    .filter-btn {
        font-size: 0.75rem;
        /* Slightly smaller filter text */
    }

    /* 4. Move Blog/Home Button to Bottom Left */
    .nav-toggle {
        top: auto !important;
        right: auto !important;
        bottom: 20px;
        left: 20px;
        font-size: 0.75rem;
        padding: 10px;
        /* Match theme-toggle padding */
        width: auto;
        /* Let content define size like theme-toggle */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .nav-toggle .nav-text {
        display: none;
    }

    .nav-toggle .nav-icon {
        display: block;
        width: 24px;
        /* Match theme-toggle icon size */
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

    .theme-toggle {
        bottom: 20px;
        right: 20px;
        /* Ensure theme toggle stays bottom right */
    }
}

.blog-article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.blog-article-footer img {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    opacity: 0.9;
}

.blog-article-footer p {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 400px;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}