/* Art House Theme - Main Styles */

/* CSS Variables for customizable colors */
:root {
    --primary-color: #ca6641;
    --secondary-color: #8B4513;
    --background-color: #ffffff;
    --text-color: #333;
    --white: #ffffff;
}

/* Font Import */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--body-font-size, 16px);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Simple approach - Content flows naturally after header */
body {
    margin: 0;
    padding: 0;
}

/* Header positioned normally at top, becomes sticky when scrolling */
.site-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    will-change: transform, position;
}

/* When scrolled, header becomes fixed */
.site-header.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateZ(0); /* Force hardware acceleration */
}

/* Main content flows after header naturally */
main, 
.homepage, 
.page, 
.single, 
.archive,
.page-content, 
.single-content, 
.archive-content {
    padding-top: 0;
    line-height: 1.6;
}

/* Add small gap between header and content */
main {
    margin-top: 2rem;
}

/* Utility Classes */
.flush-header {
    margin-top: 0 !important;
}

.header-clearance {
    margin-top: 3rem !important;
}

.extra-header-clearance {
    margin-top: 4rem !important;
}

/* Full Width Image Block - Breaks out of container */
.full-width-image {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 350px; /* Limited height */
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.full-width-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Responsive Full Width Image */
@media (max-width: 768px) {
    .full-width-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .full-width-image {
        height: 120px;
    }
}

/* Text Content Styles */
.page-content p, .single-content p, .archive-content p, 
.entry-content p, .post-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.page-content h1, .page-content h2, .page-content h3, 
.page-content h4, .page-content h5, .page-content h6,
.single-content h1, .single-content h2, .single-content h3, 
.single-content h4, .single-content h5, .single-content h6,
.entry-content h1, .entry-content h2, .entry-content h3, 
.entry-content h4, .entry-content h5, .entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Alegreya', serif;
}

.page-content h1:first-child, .single-content h1:first-child,
.entry-content h1:first-child {
    margin-top: 0;
}

.page-content ul, .page-content ol, 
.single-content ul, .single-content ol,
.entry-content ul, .entry-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content li, .single-content li, .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Page Titles */
.page-title, .entry-title, h1.page-title, h1.entry-title {
    font-family: 'Alegreya', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Header Styles */
/* This is replaced by the new relative positioning above */

.header-background {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: auto;
    position: relative;
    padding: 0.2rem 0 0.8rem 0;
    transition: all 0.3s ease;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, var(--header-overlay-opacity, 0));
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.site-branding {
    display: flex;
    align-items: center;
    margin-bottom: 0.1rem;
}

.custom-logo-container img {
    max-height: var(--logo-size, 216px);
    width: auto;
    transition: all 0.3s ease;
}

.site-title a {
    text-decoration: none;
    color: var(--white);
    font-size: 3.4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.site-description {
    color: var(--white);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-left: 1rem;
}

/* Navigation Styles */
.main-navigation {
    font-family: 'Alegreya', serif;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.2rem;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.primary-menu a:hover {
    opacity: 0.8;
}

/* Scrolled Header State - compact header when fixed */
.site-header.header-scrolled .header-background {
    background-image: none !important;
    background-color: var(--primary-color);
    padding: 0.8rem 0;
}

.site-header.header-scrolled .header-overlay {
    display: none;
}

.site-header.header-scrolled .site-branding {
    display: none;
}

.site-header.header-scrolled .header-content {
    justify-content: center;
}

.site-header.header-scrolled .primary-menu a {
    text-shadow: none;
    color: var(--white);
}

/* Add body padding when header becomes fixed to prevent content jump */
body.header-is-scrolled {
    padding-top: 80px;
    transition: padding-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu CSS - Complete Rewrite - Updated v2 */

/* Remove duplicate mobile media queries and rewrite */

/* Mobile Menu Base Styles */
.mobile-menu-toggle {
    display: none;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white) !important;
    transition: all 0.3s ease;
    display: block !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border-radius: 1px;
    transform-origin: center;
}

/* Clean cross animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Media Query */
@media (max-width: 768px) {
    .header-background {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .site-branding {
        margin-bottom: 0.5rem;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
        order: 1;
        text-align: center;
    }
    
    .custom-logo-container {
        max-width: 100%;
    }
    
    .custom-logo-container img {
        max-height: var(--mobile-logo-size, 24px) !important;
        max-width: 200px !important;
        height: auto;
        width: auto;
    }
    
    .site-title a {
        font-size: 0.9rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
        display: inline-block;
    }
    
    .main-navigation {
        order: 2;
        display: block;
        position: relative;
    }
    
    .nav-container {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        position: static;
        flex-shrink: 0;
        margin: 0 auto;
    }
    
    .nav-container {
        text-align: center;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        background: var(--primary-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        border-radius: 0;
        margin-top: 0;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-shadow: none;
        font-size: 1.1rem;
    }
    
    .site-header.header-scrolled .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1rem;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .site-header.header-scrolled .site-branding {
        display: flex;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .site-header.header-scrolled .custom-logo-container img {
        max-height: var(--mobile-scrolled-logo-size, 20px) !important;
        max-width: 150px !important;
    }
    
    .site-header.header-scrolled .site-title a {
        font-size: 0.8rem !important;
        max-width: 150px;
    }
    
    /* Mobile body padding when header is fixed */
    body.header-is-scrolled {
        padding-top: 60px;
        transition: padding-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Small screens */
@media (max-width: 360px) {
    .custom-logo-container img {
        max-height: var(--mobile-logo-size, 20px) !important;
        max-width: 120px !important;
    }
    
    .site-title a {
        font-size: 0.8rem !important;
        max-width: 120px !important;
    }
    
    .site-header.header-scrolled .custom-logo-container img {
        max-height: var(--mobile-scrolled-logo-size, 16px) !important;
        max-width: 100px !important;
    }
    
    .site-header.header-scrolled .site-title a {
        font-size: 0.7rem !important;
        max-width: 100px !important;
    }
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary-color);
    padding: 4rem 0;
    color: var(--white);
    margin-top: 4rem;
}

.newsletter-content {
    text-align: left;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: 'Alegreya', serif;
}

.newsletter-form {
    margin-top: 2rem;
}

.newsletter-input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    gap: 1rem;
}

.newsletter-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 5px solid var(--white);
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--white);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-submit {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: 0;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    align-self: flex-end;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.newsletter-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}



/* Footer Styles */
.site-footer {
    background-color: var(--background-color);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-address {
    margin-bottom: 2rem;
}

.footer-address p {
    margin: 0.5rem 0;
    font-size: 22px;
    color: var(--text-color);
    opacity: 0.8;
    font-family: 'Alegreya', serif;
}

.footer-address a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-address a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.footer-navigation {
    margin-bottom: 2rem;
}

.footer-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.footer-menu a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-menu a:hover {
    opacity: 1;
}

/* Homepage Hero */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    margin-top: 0; /* Removed since body has padding-top now */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: 'Alegreya', serif;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.hero-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-button:hover {
    background: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-1px);
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--white);
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-family: 'Alegreya', serif;
}

/* Featured Artworks */
.featured-artworks {
    padding: 4rem 0;
    background: #f8f9fa;
}

.featured-artworks h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-family: 'Alegreya', serif;
}

/* Artwork Grid */
.artwork-grid, .featured-artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.artwork-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.artwork-item:hover {
    transform: translateY(-5px);
}

.artwork-item a {
    text-decoration: none;
    color: inherit;
}

.artwork-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.artwork-info {
    padding: 1.5rem;
}

.artwork-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Alegreya', serif;
}

.artwork-year, .artwork-medium {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Single Artwork */
.artwork-single {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    margin-top: 0; /* Removed since body has padding-top now */
}

.artwork-header {
    margin-bottom: 2rem;
}

.artwork-single .artwork-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Alegreya', serif;
}

.artwork-meta {
    display: flex;
    gap: 1rem;
    color: #666;
}

.artwork-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.artwork-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.artwork-price {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 1.1rem;
}

/* Archive pages */
.artwork-archive, .gallery-archive {
    margin-top: 0; /* Removed since body has padding-top now */
}

/* Gallery Styles */
.single-gallery {
    margin-top: 0; /* Removed since body has padding-top now */
}

.gallery-single {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.gallery-header {
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'Alegreya', serif;
    color: var(--text-color);
}

.gallery-contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.gallery-contact-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.gallery-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-phone a,
.gallery-website a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

.gallery-phone a:hover,
.gallery-website a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.gallery-description {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.gallery-artworks h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: 'Alegreya', serif;
}

.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.artwork-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.artwork-item:hover {
    transform: translateY(-3px);
}

.artwork-image {
    position: relative;
    overflow: hidden;
}

.artwork-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artwork-item:hover .artwork-image img {
    transform: scale(1.05);
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sold-text {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transform: rotate(-15deg);
}

.artwork-info {
    padding: 1.5rem;
}

.artwork-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'Alegreya', serif;
}

.artwork-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artwork-status.available {
    background: #d4edda;
    color: #155724;
}

.artwork-status.sold {
    background: #f8d7da;
    color: #721c24;
}

/* Gallery Archive */
.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-card .gallery-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'Alegreya', serif;
}

.gallery-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.gallery-artwork-count {
    margin-bottom: 1rem;
}

.gallery-artwork-count span {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.gallery-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Gallery Page Shortcodes */
.white-box-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Galleries with Images */
.galleries-with-images {
    margin-bottom: 3rem;
}

.gallery-with-images-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    margin-left: 2rem;
    margin-right: 2rem;
    align-items: center; /* Vertically align content */
}

.gallery-info-left .gallery-name {
    font-family: 'Alegreya', serif;
    font-size: 1.8rem;
    font-weight: 700; /* Make bold */
    font-style: italic;
    margin-bottom: 0.25rem; /* Much less spacing */
    color: var(--text-color);
}

.gallery-details {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.gallery-details .gallery-address {
    margin-bottom: 0.25rem; /* Much less spacing */
    color: var(--text-color);
    line-height: 1.3; /* Tighter line height */
    white-space: pre-line;
}

.gallery-details .gallery-phone,
.gallery-details .gallery-website {
    margin-bottom: 0.25rem; /* Much less spacing */
    color: var(--text-color);
    line-height: 1.3; /* Tighter line height */
}

.gallery-details .gallery-website a,
.gallery-without-images-item .gallery-website a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

.gallery-details .gallery-website a:hover,
.gallery-without-images-item .gallery-website a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.gallery-details > div:last-child {
    margin-bottom: 0;
}

.gallery-images-right {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.gallery-artwork-square {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    min-height: 120px;
}

.gallery-artwork-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-artwork-square:hover img {
    transform: scale(1.05);
}

.artwork-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-artwork-square:hover .artwork-overlay {
    transform: translateY(0);
}

.artwork-overlay .artwork-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.artwork-overlay .artwork-sold {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Galleries without Images */
.galleries-without-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.gallery-without-images-item {
    margin-bottom: 2rem;
}

.gallery-without-images-item .gallery-name {
    font-family: 'Alegreya', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem; /* Much less spacing */
    color: var(--text-color);
}

.gallery-without-images-item .gallery-details {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.gallery-without-images-item .gallery-address {
    margin-bottom: 0.25rem; /* Much less spacing */
    color: var(--text-color);
    line-height: 1.3; /* Tighter line height */
    white-space: pre-line;
}

.gallery-without-images-item .gallery-phone,
.gallery-without-images-item .gallery-website {
    margin-bottom: 0.25rem; /* Much less spacing */
    color: var(--text-color);
    line-height: 1.3; /* Tighter line height */
}

.gallery-without-images-item .gallery-details > div:last-child {
    margin-bottom: 0;
}

/* Gallery Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.lightbox-container {
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-info {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.lightbox-artwork-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Alegreya', serif;
    color: white;
}

.lightbox-artwork-status {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
    font-weight: 500;
}

.lightbox-artwork-status.sold {
    background: rgba(234, 67, 53, 0.9);
    color: white;
}

/* Thumbnails removed - no longer used */

/* Responsive Design */
@media (max-width: 768px) {
    .header-background {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .site-branding {
        margin-bottom: 0;
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100vw - 60px);
        order: 1;
    }
    
    .custom-logo-container {
        max-width: 100%;
    }
    
    .custom-logo-container img {
        max-height: var(--mobile-logo-size, 24px) !important;
        max-width: 200px !important;
        height: auto;
        width: auto;
    }
    
    .site-title a {
        font-size: 0.9rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
        display: inline-block;
    }
    
    .main-navigation {
        order: 2;
        display: block;
        position: relative;
    }
    
    .nav-container {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        position: static;
        flex-shrink: 0;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: -200px;
        right: -200px;
        width: calc(100vw - 2rem);
        background: var(--primary-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        border-radius: 8px;
        margin-top: 8px;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-shadow: none;
        font-size: 1.1rem;
    }
    
    .site-header.header-scrolled .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1rem;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .site-header.header-scrolled .site-branding {
        display: flex;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .site-header.header-scrolled .custom-logo-container img {
        max-height: var(--mobile-scrolled-logo-size, 20px) !important;
        max-width: 150px !important;
    }
    
    .site-header.header-scrolled .site-title a {
        font-size: 0.8rem !important;
        max-width: 150px;
    }
    
    /* Mobile body padding when header is fixed */
    body.header-is-scrolled {
        padding-top: 60px;
        transition: padding-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Small screens */
@media (max-width: 360px) {
    .custom-logo-container img {
        max-height: var(--mobile-logo-size, 20px) !important;
        max-width: 120px !important;
    }
    
    .site-title a {
        font-size: 0.8rem !important;
        max-width: 120px !important;
    }
    
    .site-header.header-scrolled .custom-logo-container img {
        max-height: var(--mobile-scrolled-logo-size, 16px) !important;
        max-width: 100px !important;
    }
    
    .site-header.header-scrolled .site-title a {
        font-size: 0.7rem !important;
        max-width: 100px !important;
    }
}

/* Image Captions - Centered */
.wp-caption-text, 
figcaption, 
.gallery-caption,
.attachment-caption,
.image-caption {
    text-align: center !important;
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    padding: 0 1rem;
}

/* Text Alignment Utility Classes */
.text-justify {
    text-align: justify !important;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Whitebox Utility Class */
.whitebox {
    background-color: var(--white);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.whitebox p:last-child {
    margin-bottom: 0;
}

.whitebox h1:first-child,
.whitebox h2:first-child,
.whitebox h3:first-child,
.whitebox h4:first-child,
.whitebox h5:first-child,
.whitebox h6:first-child {
    margin-top: 0;
}

/* Hyperlink Styling */
a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Navigation Links Hover Effect */
.primary-menu a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Override for footer and other specific links that shouldn't be bold */
.footer-menu a,
.social-icon,
.logo-link {
    font-weight: normal;
}

/* Keep navigation links white */
.primary-menu a,
.site-title a {
    color: var(--white);
    font-weight: 400;
}

.primary-menu a:hover {
    color: var(--white);
}

/* Hide Page Titles */
.page-title, .entry-title, 
h1.page-title, h1.entry-title,
.single .entry-title,
.page .entry-title {
    display: none !important;
}

/* Heading Fonts - Alegreya */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Alegreya', serif !important;
}

/* H1 Styling - Bigger, Not Bold */
h1, .h1 {
    font-size: 4rem !important; /* Bigger than default */
    font-weight: 400 !important; /* Not bold */
}

@media (max-width: 768px) {
    h1, .h1 {
        font-size: 3rem !important;
    }
}

@media (max-width: 480px) {
    h1, .h1 {
        font-size: 2.5rem !important;
    }
}

/* H2 Font Size - Increased by 100% */
h2, .h2 {
    font-size: 2.5rem !important; /* Doubled from 2.5rem */
    font-weight: 400 !important; /* Not bold */
}

/* Gallery names should stay normal size */
h3.gallery-name {
    font-size: 1.8rem !important;
    font-style: italic;
    font-weight: 700 !important; /* Make bold */
}

@media (max-width: 768px) {
    h2, .h2 {
        font-size: 3.5rem !important; /* Responsive scaling */
    }
    
    h3.gallery-name {
        font-size: 1.6rem !important;
    }
}

@media (max-width: 480px) {
    h2, .h2 {
        font-size: 2.5rem !important; /* Smaller mobile */
    }
    
    h3.gallery-name {
        font-size: 1.4rem !important;
    }
}

/* Commission Gallery - 4x3 Grid with No Spacing */
.commission-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    aspect-ratio: 4/3;
}

.commission-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

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

.commission-item:hover img {
    transform: scale(1.05);
}

/* Commission Item Overlay */
.commission-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem 0.75rem 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.commission-item:hover .commission-overlay {
    opacity: 1;
}

.commission-title {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Mobile responsive for commission gallery */
@media (max-width: 768px) {
    .commission-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: none !important;
        gap: 0;
        max-width: 600px;
        aspect-ratio: auto;
        width: 100%;
        display: grid;
    }
    
    .commission-item {
        width: 100%;
        aspect-ratio: 1;
    }
}

@media (max-width: 480px) {
    .commission-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: none !important;
        gap: 0;
        max-width: 400px;
        aspect-ratio: auto;
        width: 100%;
        display: grid;
    }
    
    .commission-item {
        width: 100%;
        aspect-ratio: 1;
    }
}

/* Contact Form 7 Styles */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.wpcf7-form label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.wpcf7-textarea {
    resize: vertical;
    min-height: 120px;
}

.wpcf7-submit {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wpcf7-submit:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3) !important;
}

.wpcf7-submit:active {
    transform: translateY(0) !important;
}

.wpcf7-response-output {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #c3e6cb;
    margin-top: 1rem;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Newsletter Plugin Styles (MailChimp for WP, Newsletter, etc.) */
.mc4wp-form,
.newsletter-form,
.mailchimp-form,
#mc_embed_signup form {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 1rem !important;
}

.mc4wp-form input[type="email"],
.newsletter-form input[type="email"],
.mailchimp-form input[type="email"],
#mc_embed_signup input[type="email"] {
    width: 100% !important;
    align-self: stretch !important;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    color: white;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

.mc4wp-form input[type="email"]::placeholder,
.newsletter-form input[type="email"]::placeholder,
.mailchimp-form input[type="email"]::placeholder,
#mc_embed_signup input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.mc4wp-form input[type="submit"],
.newsletter-form input[type="submit"],
.mailchimp-form input[type="submit"],
#mc_embed_signup input[type="submit"],
.mc4wp-form button,
.newsletter-form button,
.mailchimp-form button {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: auto !important;
    display: block !important;
    margin-left: auto !important;
}

.mc4wp-form input[type="submit"]:hover,
.newsletter-form input[type="submit"]:hover,
.mailchimp-form input[type="submit"]:hover,
#mc_embed_signup input[type="submit"]:hover,
.mc4wp-form button:hover,
.newsletter-form button:hover,
.mailchimp-form button:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-1px) !important;
}

/* Newsletter CF7 Specific Styles */
.newsletter-section .wpcf7-form {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 1rem !important;
    padding: 0 !important;
}

.newsletter-section .wpcf7-form p {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.newsletter-section .wpcf7-form p:first-of-type {
    align-items: stretch !important;
}

.newsletter-section .wpcf7-form p:last-of-type {
    align-items: flex-end !important;
}

.newsletter-section .wpcf7-form input[type="email"],
.newsletter-section .wpcf7-email {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    background: rgba(3, 3, 3, 0.2) !important;
    border: 2px solid #ffffff !important;
    border-radius: 0 !important;
    font-size: 1rem !important;
    color: #333 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    transition: all 0.3s ease !important;
}

.newsletter-section .wpcf7-form input[type="email"]:focus,
.newsletter-section .wpcf7-email:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--primary-color) !important;
}

.newsletter-section .wpcf7-form input[type="email"]::placeholder,
.newsletter-section .wpcf7-email::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.newsletter-section .wpcf7-submit {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2rem !important;
    border-radius: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: auto !important;
    display: block !important;
    margin-left: auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    font-family: inherit !important;
}

.newsletter-section .wpcf7-submit:hover {
    background: var(--primary-color) !important;
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.newsletter-section .wpcf7-submit:active {
    transform: translateY(0) !important;
}

.newsletter-section .wpcf7-response-output {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    padding: 1rem !important;
    border-radius: 0 !important;
    text-align: center !important;
    border: none !important;
    margin-top: 1rem !important;
    font-weight: 600 !important;
}

.newsletter-section .wpcf7-not-valid-tip {
    color: #ff4444 !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem !important;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .wpcf7-form {
        padding: 1rem;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form input[type="url"],
    .wpcf7-form textarea,
    .wpcf7-text,
    .wpcf7-email,
    .wpcf7-tel,
    .wpcf7-textarea {
        padding: 0.8rem;
    }
    
    .wpcf7-submit {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Homepage Feature Block Styles */
.homepage-feature-block {
    background: white;
    padding: 3rem 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    margin: 2rem 0;
    width: 100%;
    max-width: none;
    text-align: center;
}

.homepage-feature-block .feature-title {
    font-family: 'Alegreya', serif;
    color: black;
    margin-bottom: 1rem;
    font-size: 18px;
    font-weight: 400;
}

.homepage-feature-block .feature-separator {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.homepage-feature-block .feature-text {
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.homepage-feature-block .feature-text p {
    margin-bottom: 1rem;
}

.homepage-feature-block .feature-text p:last-child {
    margin-bottom: 0;
}

.feature-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1.5rem;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    filter: grayscale(100%);
}

.feature-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.feature-button:hover::before {
    background: rgba(0, 0, 0, 0.2);
}

.feature-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    filter: grayscale(0%);
}

.feature-button .button-text {
    position: relative;
    z-index: 2;
    font-family: 'Alegreya', serif;
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .homepage-feature-block {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .homepage-feature-block .feature-title {
        font-size: 16px;
    }
    
    .feature-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-button {
        min-height: 100px;
        padding: 1rem;
    }
    
    .feature-button .button-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .homepage-feature-block {
        padding: 1.5rem 1rem;
    }
    
    .homepage-feature-block .feature-title {
        font-size: 14px;
    }
    
    .feature-button {
        min-height: 80px;
        padding: 0.8rem;
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Enhanced Responsive Design */

/* Small tablets and large phones - 600px to 768px */
@media (max-width: 768px) and (min-width: 601px) {
    .container {
        padding: 0 2rem;
    }
    
    .artwork-grid, .featured-artworks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .galleries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .newsletter-title {
        font-size: 2.2rem;
    }
}

/* Tablets and medium screens */
@media (max-width: 768px) {
    .header-background {
        padding: 0.5rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .site-branding {
        margin-bottom: 0.5rem;
        flex-shrink: 1;
        min-width: 0;
        max-width: 100%;
        order: 1;
        text-align: center;
    }
    
    .custom-logo-container {
        max-width: 100%;
    }
    
    .custom-logo-container img {
        max-height: var(--mobile-logo-size, 24px) !important;
        max-width: 200px !important;
        height: auto;
        width: auto;
    }
    
    .site-title a {
        font-size: 0.9rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
        display: inline-block;
    }
    
    .main-navigation {
        order: 2;
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .nav-container {
        position: relative;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        position: static;
        flex-shrink: 0;
        margin: 0 auto;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        background: var(--primary-color);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        border-radius: 0;
        margin-top: 0;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    .primary-menu a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-shadow: none;
        font-size: 1.1rem;
    }
    
    .site-header.header-scrolled .header-content {
        flex-direction: column;
        justify-content: center;
        padding: 0 1rem;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .site-header.header-scrolled .site-branding {
        display: flex;
        flex-shrink: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .site-header.header-scrolled .custom-logo-container img {
        max-height: var(--mobile-scrolled-logo-size, 20px) !important;
        max-width: 150px !important;
    }
    
    .site-header.header-scrolled .site-title a {
        font-size: 0.8rem !important;
        max-width: 150px;
    }
    
    /* Mobile body padding when header is fixed */
    body.header-is-scrolled {
        padding-top: 60px;
        transition: padding-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Hero section improvements */
    .hero-section {
        min-height: 50vh;
        margin-top: 0;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Artwork grid responsive */
    .artwork-grid, .featured-artworks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .artwork-item {
        margin-bottom: 1rem;
    }
    
    .artwork-title {
        font-size: 1rem;
    }
    
    /* Single artwork page */
    .artwork-single {
        margin-top: 0;
        padding: 1rem 0;
    }
    
    .artwork-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .artwork-single .artwork-title {
        font-size: 1.8rem;
    }
    
    /* Newsletter section */
    .newsletter-section {
        margin-top: 2rem;
        padding: 3rem 0;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }
    
    .newsletter-submit {
        align-self: flex-end;
        width: auto;
    }
    
    .newsletter-title {
        font-size: 2rem;
    }
    
    /* Footer improvements */
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-address p {
        font-size: 18px;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    /* Gallery improvements */
    .gallery-with-images-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .gallery-info-left .gallery-name {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .gallery-images-right {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .galleries-without-images {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-without-images-item {
        padding: 1.5rem;
    }
    
    /* Lightbox mobile improvements */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-image {
        max-width: 95vw;
        max-height: 75vh;
    }
    
    .lightbox-info {
        bottom: 20px;
        padding: 0.8rem 1.5rem;
    }
    
    .lightbox-artwork-name {
        font-size: 1.1rem;
    }
    
    /* Feature block mobile */
    .homepage-feature-block {
        padding: 2rem 1rem;
    }
    
    .homepage-feature-block .feature-title {
        font-size: 16px;
    }
    
    .feature-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-button {
        width: 100%;
        min-height: 120px;
    }
    
    .feature-button .button-text {
        font-size: 1.4rem;
    }
    
    /* Additional mobile header constraints for second media query */
    .site-header.header-scrolled .header-content {
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    .site-header.header-scrolled .site-branding {
        flex-shrink: 1 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: center;
        margin-bottom: 0.25rem;
    }
    
    .site-header.header-scrolled .custom-logo-container img {
        max-height: 20px !important;
        max-width: 150px !important;
    }
    
    .site-header.header-scrolled .site-title a {
        font-size: 0.8rem !important;
        max-width: 150px;
    }
}

/* Mobile phones - 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 1.8rem;
    }
    
    .newsletter-title {
        font-size: 1.6rem;
    }
    
    .page-title, .entry-title {
        font-size: 1.8rem;
    }
    
    .footer-address p {
        font-size: 16px;
    }
    
    /* Single column layouts */
    .artwork-grid, .featured-artworks-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .galleries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-images-right {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Smaller spacing */
    .hero-section {
        min-height: 40vh;
        padding: 1.5rem 0;
    }
    
    .newsletter-section {
        padding: 2.5rem 0;
    }
    
    .about-section {
        padding: 2.5rem 0;
    }
    
    .featured-artworks {
        padding: 2.5rem 0;
    }
    
    /* Commission gallery mobile */
    .commission-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Feature block very small screens */
    .homepage-feature-block {
        padding: 1.5rem 0.8rem;
    }
    
    .homepage-feature-block .feature-title {
        font-size: 14px;
    }
    
    .feature-button {
        min-height: 100px;
    }
    
    .feature-button .button-text {
        font-size: 1.2rem;
    }
    
    /* Form improvements */
    .wpcf7-form {
        padding: 0;
    }
    
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form input[type="url"],
    .wpcf7-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .wpcf7-submit {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

/* Extra small screens - 360px and below */
@media (max-width: 360px) {
    .container {
        padding: 0 0.8rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .newsletter-title {
        font-size: 1.4rem;
    }
    
    .site-title a {
        font-size: 0.8rem !important;
        max-width: 120px !important;
    }
    
    .custom-logo-container img {
        max-height: 20px !important;
        max-width: 120px !important;
    }
    
    .site-header.header-scrolled .custom-logo-container img {
        max-height: 16px !important;
        max-width: 100px !important;
    }
    
    .site-header.header-scrolled .site-title a {
        font-size: 0.7rem !important;
        max-width: 100px !important;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .homepage-feature-block {
        padding: 1rem 0.5rem;
    }
    
    .feature-button .button-text {
        font-size: 1.1rem;
    }
}

/* Large screens optimization */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .artwork-grid, .featured-artworks-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .galleries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .newsletter-title {
        font-size: 2.8rem;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .custom-logo-container img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .artwork-thumbnail img,
    .gallery-thumbnail img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    .primary-menu a,
    .footer-menu a,
    .hero-button,
    .newsletter-submit,
    .wpcf7-submit,
    .feature-button {
        min-height: 44px; /* Apple's recommended touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .artwork-item a,
    .gallery-card a {
        min-height: 44px;
        display: block;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    .lightbox-prev,
    .lightbox-next,
    .lightbox-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus improvements for keyboard navigation */
.primary-menu a:focus,
.footer-menu a:focus,
.hero-button:focus,
.newsletter-submit:focus,
.wpcf7-submit:focus,
.social-icon:focus,
.artwork-item a:focus,
.gallery-card a:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px white, 0 0 0 5px var(--primary-color);
}

.mobile-menu-toggle:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.newsletter-input:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Utility classes */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* Performance optimizations */
.artwork-thumbnail img,
.gallery-thumbnail img,
.lightbox-image {
    will-change: transform;
}

/* Prevent iOS zoom on form inputs */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    textarea {
        font-size: 16px !important;
    }
}

/* Universal mobile header scrolled logo hide - override all instances */
@media (max-width: 768px) {
    .site-header.header-scrolled .site-branding {
        display: none !important;
    }
}
