:root {
    /* Colors extracted from paintings */
    --coral: #ff6b4a;
    --teal: #2d9b9b;
    --purple: #6b4c93;
    --rose: #e75c88;
    --ocean: #1a5f7a;
    --cream: #f5f3ee;
    --charcoal: #2c2c2c;
    --warm-white: #fdfbf7;

    /* Frame colors */
    --frame-coral: var(--coral);
    --frame-teal: var(--teal);
    --frame-purple: var(--purple);
    --frame-rose: var(--rose);
    --frame-ocean: var(--ocean);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background: linear-gradient(
        135deg,
        var(--warm-white) 0%,
        var(--cream) 100%
    );
    color: var(--charcoal);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Bio Section */
.bio-section {
    max-width: 800px;
    margin: 0 auto 120px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.photo-medallion {
    width: 259px;
    height: 259px;
    margin: 0 auto 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--coral);
    box-shadow:
        0 10px 30px rgba(255, 107, 74, 0.3),
        0 0 0 10px rgba(255, 107, 74, 0.1);
    opacity: 0;
    animation: fadeInScale 1s ease 0.3s forwards;
    transition: transform 0.3s ease;
}

.photo-medallion:hover {
    transform: scale(1.05);
}

.photo-medallion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.site-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    color: var(--coral);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.bio-content h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.bio-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: left;
    color: var(--charcoal);
    opacity: 0.9;
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 100px;
}

.section-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 3px;
}

/* Gallery Layout - Organic Gallery Wall */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 70px 45px;
    padding: 40px;
    max-width: 2000px;
    margin: 0 auto;
}

.painting-item {
    opacity: 1;
    position: relative;
    transition:
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.6s ease;
    will-change: transform;
}

/* Very subtle fade in on scroll */
@keyframes subtleFadeIn {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.painting-item {
    animation: subtleFadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--offset) * 0.005s);
}


/* Gallery Wall - "desordre organise" offsets applied via inline style from template */

/* "Plus de tableaux" CTA */
.gallery-cta {
    display: flex;
    justify-content: center;
    padding: 40px 0 10px;
}
.gallery.show-all + .gallery-cta {
    display: none;
}
.gallery-cta button {
    background: transparent;
    color: var(--coral);
    border: 2px solid var(--coral);
    padding: 14px 40px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.gallery-cta button:hover {
    background: var(--coral);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.35);
}

/* Buttery smooth hover - gentle lift */
.painting-item:hover {
    transform: translateY(-8px) scale(1.015);
    z-index: 10;
}

.painting-frame {
    padding: 20px;
    background: white;
    box-shadow:
        0 15px 42px rgba(0, 0, 0, 0.22),
        0 6px 18px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
        0 6px 18px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Add texture to frame */
.painting-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px
        );
    background-size: 100% 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* Add subtle paper texture noise */
.painting-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

.painting-item:hover .painting-frame {
    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.28),
        0 8px 22px rgba(0, 0, 0, 0.18),
        0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Frame colors based on data-frame attribute */
.painting-item[data-frame="coral"] .painting-frame {
    border: 4px solid var(--frame-coral);
}

.painting-item[data-frame="teal"] .painting-frame {
    border: 4px solid var(--frame-teal);
}

.painting-item[data-frame="purple"] .painting-frame {
    border: 4px solid var(--frame-purple);
}

.painting-item[data-frame="rose"] .painting-frame {
    border: 4px solid var(--frame-rose);
}

.painting-item[data-frame="ocean"] .painting-frame {
    border: 4px solid var(--frame-ocean);
}

.painting-frame img {
    width: 100%;
    height: auto;
    display: block;
}

/* Painting Info */
.painting-info {
    margin-top: 20px;
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.painting-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--charcoal);
    font-style: italic;
}

.painting-year {
    font-size: 0.95rem;
    color: var(--charcoal);
    opacity: 0.7;
}

.painting-status {
    font-size: 0.9rem;
    color: var(--coral);
    font-weight: 400;
    font-style: italic;
}

.painting-medium {
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.6;
    font-weight: 300;
}

.painting-dimension {
    font-size: 0.9rem;
    color: var(--charcoal);
    opacity: 0.6;
    font-weight: 300;
}

/* Contact Section */
.contact-section {
    margin-top: 100px;
    padding: 60px 40px 80px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-3px);
}

.contact-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-value {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    color: var(--charcoal);
    font-weight: 400;
    transition: color 0.3s ease;
}

.contact-link:hover .contact-value {
    color: var(--coral);
}

/* Modal (Desktop only) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    z-index: 10000;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
    padding: 0;
    animation: modalZoom 0.3s ease;
}

@keyframes modalZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.modal-close:hover {
    background: var(--coral);
    color: white;
    transform: rotate(90deg);
}

/* Modal frame wrapper - same style as gallery wall */
.modal-frame {
    padding: 30px;
    background: white;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    max-width: 75%;
    position: relative;
}

/* Modal frame texture - same as gallery */
.modal-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.02) 2px,
            rgba(0, 0, 0, 0.02) 4px
        );
    background-size: 100% 100%;
    pointer-events: none;
    opacity: 0.6;
}

/* Modal frame paper texture noise - same as gallery */
.modal-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

/* Modal frame colors matching gallery - wider border */
.modal-frame[data-frame="coral"] {
    border: 6px solid var(--frame-coral);
}

.modal-frame[data-frame="teal"] {
    border: 6px solid var(--frame-teal);
}

.modal-frame[data-frame="purple"] {
    border: 6px solid var(--frame-purple);
}

.modal-frame[data-frame="rose"] {
    border: 6px solid var(--frame-rose);
}

.modal-frame[data-frame="ocean"] {
    border: 6px solid var(--frame-ocean);
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
    color: white;
    padding: 0;
    min-width: 300px;
}

.modal-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 5px;
    color: white;
}

.modal-year {
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    color: #4ecdc4;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.modal-medium {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 300;
}

.modal-dimension {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    color: white;
    opacity: 0.9;
    line-height: 1.6;
    font-weight: 300;
}

.modal-status {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    color: #ff6b4a;
    font-weight: 400;
    font-style: italic;
}

/* Gallery wall - subtle buttery interactions */
.painting-frame {
    cursor: pointer;
}

/* Responsive modal for mobile */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
        max-width: 100vw;
        max-height: 100vh;
        height: 100%;
        width: 100%;
        gap: 20px;
        padding: 60px 20px 30px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-items: stretch;
    }

    .modal-frame {
        max-width: 100%;
        padding: 10px;
        display: inline-block;
        align-self: center;
    }

    .modal-image {
        max-height: 55vh;
        max-width: 100%;
        width: auto;
        height: auto;
        display: block;
    }

    .modal-info {
        min-width: unset;
        gap: 12px;
        text-align: center;
        padding: 0 10px 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-year {
        font-size: 1.1rem;
    }

    .modal-medium,
    .modal-dimension {
        font-size: 1rem;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 1.6rem;
    }

    .modal-share {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .bio-section {
        margin-bottom: 80px;
    }

    .photo-medallion {
        width: 216px;
        height: 216px;
        margin-bottom: 30px;
    }

    .contact-section {
        padding: 40px 20px 60px;
        margin-top: 80px;
    }

    .contact-info {
        gap: 40px;
    }

    .contact-value {
        font-size: 1.1rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 40px 20px;
        padding: 20px;
    }

    .painting-item:nth-child(n) {
        margin-top: 0 !important;
        transform: none !important;
    }

    .site-title {
        letter-spacing: 1px;
    }

    .subtitle {
        letter-spacing: 4px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1201px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 80px 40px 60px;
    margin-top: 120px;
    background: linear-gradient(
        135deg,
        rgba(245, 243, 238, 0.3) 0%,
        rgba(253, 251, 247, 0.5) 100%
    );
}

footer .container {
    max-width: 900px;
}

.prix-demande {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    color: var(--teal);
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 400;
    opacity: 0.9;
}

.footer-divider {
    width: 100px;
    height: 1px;
    background-color: var(--coral);
    margin: 25px auto;
    opacity: 0.4;
}

.footer-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--charcoal);
    letter-spacing: 2px;
    margin-bottom: 35px;
    line-height: 1.2;
}

.footer-contact {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: var(--charcoal);
    opacity: 0.75;
}

.footer-contact p {
    margin: 0;
    letter-spacing: 0.5px;
    font-weight: 300;
    line-height: 1.8;
}

.footer-contact a {
    color: var(--charcoal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--coral);
}

@media (max-width: 768px) {
    footer {
        padding: 60px 20px 40px;
        margin-top: 80px;
    }

    .footer-title {
        letter-spacing: 1px;
    }

    .footer-contact {
        font-size: 0.9rem;
    }
}

/* Studio Micho Ad Banners */
.micho-ad { display: flex; justify-content: center; padding: 30px 20px 40px; }
.micho-wrap { text-decoration: none; display: inline-block; }
.micho-banner { position: relative; overflow: hidden; cursor: pointer; font-family: 'JetBrains Mono', monospace; border: 1px solid rgba(74, 144, 226, 0.3); }

/* Leaderboard 728x90 */
.micho-banner-lb { width: 728px; height: 90px; background: linear-gradient(135deg, #030712 0%, #0a1628 50%, #030712 100%); display: flex; align-items: center; }
.micho-inner-lb { display: flex; align-items: center; justify-content: space-evenly; width: 100%; height: 100%; padding: 0 20px; position: relative; z-index: 1; }
.micho-sep { width: 1px; height: 44px; background: linear-gradient(180deg, transparent, #4A90E2, #9B59B6, transparent); flex-shrink: 0; }
.micho-mid { display: flex; flex-direction: column; gap: 2px; }

/* Square 300x250 */
.micho-banner-sq { width: 300px; height: 250px; background: linear-gradient(135deg, #030712 0%, #0a1628 50%, #030712 100%); display: flex; flex-direction: column; }
.micho-inner-sq { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; padding: 24px 24px 22px; position: relative; z-index: 1; text-align: center; }
.micho-divider { width: 60px; height: 2px; background: linear-gradient(90deg, #4A90E2, #9B59B6, #F39C12); }

/* Shared elements */
.micho-brand { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 2.5px; white-space: nowrap; text-transform: uppercase; flex-shrink: 0; }
.micho-banner-sq .micho-brand { font-size: 22px; letter-spacing: 4px; }
.micho-type-wrap { height: 18px; white-space: nowrap; }
.micho-type-wrap span:first-child { font-size: 12px; font-weight: 700; }
.micho-type-wrap span:last-child { display: inline-block; width: 8px; height: 14px; vertical-align: middle; animation: micho-bk 0.7s step-end infinite; }
@keyframes micho-bk { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.micho-sub { font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 400; letter-spacing: 0.5px; white-space: nowrap; }
.micho-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; background: #4A90E2; color: #030712; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; flex-shrink: 0; transition: all 0.3s ease; position: relative; overflow: hidden; white-space: nowrap; }
.micho-banner-sq .micho-cta { padding: 10px 24px; font-size: 11px; }
.micho-cta::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #9B59B6; transition: left 0.3s ease; z-index: -1; }
.micho-banner:hover .micho-cta::before { left: 0; }
.micho-banner:hover .micho-cta { color: #fff; }
.micho-arr { font-size: 13px; transition: transform 0.3s ease; }
.micho-banner:hover .micho-arr { transform: translateX(3px); }

/* Animated borders */
.micho-lt { position: absolute; top: 0; left: 0; width: 200%; height: 2px; background: linear-gradient(90deg, transparent, #4A90E2, #9B59B6, #F39C12, transparent); animation: micho-sg 3s linear infinite; }
.micho-lb { position: absolute; bottom: 0; right: 0; width: 200%; height: 2px; background: linear-gradient(90deg, transparent, #F39C12, #9B59B6, #4A90E2, transparent); animation: micho-sg 3s linear infinite reverse; }
.micho-sl { position: absolute; top: 0; left: 0; width: 2px; height: 200%; background: linear-gradient(180deg, transparent, #4A90E2, #9B59B6, transparent); animation: micho-sv 4s linear infinite; z-index: 2; }
.micho-sr { position: absolute; top: 0; right: 0; width: 2px; height: 200%; background: linear-gradient(180deg, transparent, #9B59B6, #4A90E2, transparent); animation: micho-sv 4s linear infinite reverse; z-index: 2; }
@keyframes micho-sg { 0% { transform: translateX(-50%); } 100% { transform: translateX(0%); } }
@keyframes micho-sv { 0% { transform: translateY(-50%); } 100% { transform: translateY(0%); } }

/* Orbs */
.micho-orb { position: absolute; border-radius: 50%; filter: blur(25px); z-index: 0; }
.micho-o1 { width: 120px; height: 120px; background: #4A90E2; opacity: 0.12; top: -30px; left: 60px; animation: micho-fo 6s ease-in-out infinite; }
.micho-o2 { width: 80px; height: 80px; background: #9B59B6; opacity: 0.1; bottom: -20px; right: 200px; animation: micho-fo 8s ease-in-out infinite reverse; }
.micho-o3 { width: 60px; height: 60px; background: #F39C12; opacity: 0.08; top: 10px; right: 80px; animation: micho-fo 7s ease-in-out infinite 1s; }
.micho-banner-sq .micho-o1 { width: 140px; height: 140px; filter: blur(30px); top: -40px; left: auto; right: -20px; }
.micho-banner-sq .micho-o2 { width: 100px; height: 100px; filter: blur(30px); bottom: 20px; right: auto; left: -20px; }
@keyframes micho-fo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Responsive: show leaderboard on desktop, square on mobile */
.micho-mobile { display: none; }
.micho-desktop { display: flex; }

@media (max-width: 768px) {
    .micho-desktop { display: none; }
    .micho-mobile { display: flex; }
}

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.share-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.7;
}

.modal-info .share-label {
    color: white;
}

.painting-page-info .share-label {
    color: var(--charcoal);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--coral);
    border-color: var(--coral);
    transform: translateY(-2px);
}

.share-btn.copied {
    background: var(--teal);
    border-color: var(--teal);
}

.painting-page-info .share-btn {
    border-color: rgba(0, 0, 0, 0.2);
    background: transparent;
    color: var(--charcoal);
}

.painting-page-info .share-btn:hover {
    background: var(--coral);
    border-color: var(--coral);
    color: white;
}

.painting-page-info .share-btn.copied {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

/* Individual Painting Page */
.painting-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.painting-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--teal);
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    margin-bottom: 40px;
}

.painting-back:hover {
    color: var(--coral);
}

.painting-back-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.painting-back:hover .painting-back-arrow {
    transform: translateX(-4px);
}

.painting-page-main {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
}

.painting-page-frame {
    flex: 1;
    max-width: 65%;
    padding: 25px;
    background: white;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.painting-page-frame::before,
.painting-page-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.painting-page-frame::before {
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
    opacity: 0.6;
}

.painting-page-frame::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.4;
}

.painting-page-frame[data-frame="coral"]  { border: 5px solid var(--coral); }
.painting-page-frame[data-frame="teal"]   { border: 5px solid var(--teal); }
.painting-page-frame[data-frame="purple"] { border: 5px solid var(--purple); }
.painting-page-frame[data-frame="rose"]   { border: 5px solid var(--rose); }
.painting-page-frame[data-frame="ocean"]  { border: 5px solid var(--ocean); }

.painting-page-frame img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.painting-page-info {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
}

.painting-page-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.3;
    margin: 0;
}

.painting-page-year {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    color: var(--teal);
    font-weight: 500;
}

.painting-page-medium,
.painting-page-dimension {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: var(--charcoal);
    opacity: 0.7;
    font-weight: 300;
}

.painting-page-status {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: var(--coral);
    font-weight: 400;
    font-style: italic;
}

/* More paintings section */
.more-paintings-section {
    max-width: 1200px;
    margin: 80px auto 0;
    padding-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.more-paintings-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.more-paintings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.more-painting-item {
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.more-painting-frame {
    padding: 12px;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.more-painting-item[data-frame="coral"]  .more-painting-frame { border: 3px solid var(--coral); }
.more-painting-item[data-frame="teal"]   .more-painting-frame { border: 3px solid var(--teal); }
.more-painting-item[data-frame="purple"] .more-painting-frame { border: 3px solid var(--purple); }
.more-painting-item[data-frame="rose"]   .more-painting-frame { border: 3px solid var(--rose); }
.more-painting-item[data-frame="ocean"]  .more-painting-frame { border: 3px solid var(--ocean); }

.more-painting-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.more-painting-title {
    display: block;
    margin-top: 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--charcoal);
    text-align: center;
}

.btn-galerie {
    display: inline-block;
    background: transparent;
    color: var(--coral);
    border: 2px solid var(--coral);
    padding: 14px 40px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-galerie:hover {
    background: var(--coral);
    color: white;
}

.more-paintings-section .gallery-cta {
    text-align: center;
    margin-top: 40px;
}

/* Painting page responsive */
@media (max-width: 768px) {
    .painting-page {
        padding: 10px 0 40px;
    }

    .painting-page-main {
        flex-direction: column;
        gap: 30px;
    }

    .painting-page-frame {
        max-width: 100%;
    }

    .painting-page-info {
        flex: unset;
        text-align: center;
        align-items: center;
    }

    .painting-page-title {
        font-size: 1.8rem;
    }

    .more-paintings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .painting-page-info .share-buttons {
        justify-content: center;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .painting-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
