:root {
    --bg-color: #fcfbf9;
    /* Soft paper white */
    --text-primary: #1a1a1a;
    /* Soft black */
    --text-sec: #666;
    --accent: #d4cfc5;
    /* Hanji paper accent */
    --border: #e6e3dd;
    --modal-bg: rgba(252, 251, 249, 0.95);

    --font-kr: 'Noto Serif KR', serif;
    --font-en: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;

    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* Aligned with ultra-compact header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(252, 251, 249, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: var(--transition);
}

.logo a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kr-subtitle {
    font-family: var(--font-kr);
    font-size: 1rem;
    color: var(--text-sec);
    font-weight: 300;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.cart-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.cart-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.cart-btn:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-title {
    font-family: var(--font-en);
    font-size: 6rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.3s;
}

.hero-subtitle {
    font-family: var(--font-kr);
    font-size: 1.5rem;
    color: var(--text-sec);
    font-weight: 300;
    letter-spacing: 5px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.6s;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.9s;
    z-index: 10;
}

.line {
    width: 1px;
    height: 60px;
    background-color: var(--text-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
    0% {
        height: 20px;
    }

    100% {
        height: 60px;
    }
}




.filter-fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.filter-fade-in.visible {
    opacity: 1;
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    position: sticky;
    top: 50px; /* Aligned with ultra-compact header */
    background: rgba(252, 251, 249, 0.9);
    backdrop-filter: blur(10px);
    z-index: 90;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding: 0.3rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.kr-title {
    font-family: var(--font-kr);
    font-size: 0.8rem;
    color: var(--text-sec);
}

/* Upcoming Section (Full-Width Banner) */
.exhibition-banner-full {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Move content to the right */
    background: #8FD1E2; /* Matches the artwork background */
    overflow: hidden;
    margin-top: 1rem;
}

.banner-img-full {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: #8FD1E2; /* Ensures no white gaps */
}

.banner-img-full .img-container {
    height: 100%;
    width: 100%;
}

.banner-img-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center; /* Image is now symmetrically padded, so center works perfectly */
    opacity: 1;
    transition: transform 3.5s ease;
}

.exhibition-banner-full:hover .banner-img-full img {
    transform: scale(1.02);
}

.banner-overlay-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    margin-right: 4rem; /* Reduced from 8rem to allow more stretching */
    background: rgba(252, 251, 249, 0.9);
    backdrop-filter: blur(8px);
    max-width: 750px; /* Increased to fit title on one line */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-right: none; /* Removed the black edge */
}

.banner-tag {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--text-sec);
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 500;
}

.banner-title {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.banner-title .lang-en {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    line-height:1.1;
}

.banner-title .lang-kr {
    font-family: var(--font-kr);
    font-size: 1.6rem;
    color: var(--text-sec);
    font-weight: 300;
}

.banner-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

.banner-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #999;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .banner-overlay-content {
        margin-left: 4rem;
    }
}

@media (max-width: 768px) {
    .exhibition-banner-full {
        height: 550px; /* Slightly taller to frame art better */
        flex-direction: row;
        align-items: flex-end; /* Docked to bottom */
        justify-content: center;
        padding: 1.2rem;
    }
    .banner-img-full {
        position: absolute;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
    }
    .banner-img-full img {
        object-position: center !important;
    }
    .banner-overlay-content {
        position: relative;
        margin: 0;
        max-width: 100%;
        padding: 1.8rem 1.4rem;
        background: rgba(252, 251, 249, 0.85); /* Glassmorphism: more transparent */
        backdrop-filter: blur(12px); /* Soften background details */
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: none;
        z-index: 2;
    }
    /* Tighten typography to reduce footprint */
    .banner-tag {
        margin-bottom: 0.6rem;
        font-size: 0.65rem;
    }
    .banner-title {
        margin-bottom: 0.8rem;
    }
    .banner-title .lang-en {
        font-size: 1.5rem;
    }
    .banner-title .lang-kr {
        font-size: 0.95rem;
    }
    .banner-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    .banner-details {
        padding-top: 0.8rem;
        gap: 0.6rem;
    }
    .detail-item {
        gap: 0.2rem;
    }
    .detail-label {
        font-size: 0.6rem;
    }
    .detail-value {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .upcoming-section .section-title {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

/* Featured Grid (Home Page) */
.featured-grid {
    display: block;
    column-count: 2;
    column-gap: 4rem;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-card {
    display: flex;
    flex-direction: column;
    gap: 0; /* Fully compressed leading */
    break-inside: avoid;
    margin-bottom: 6rem;
}

.featured-card:nth-child(3n) {
    column-span: all;
    display: block;
}

.featured-card .img-container {
    aspect-ratio: auto;
    background-color: transparent;
}

.featured-card .art-img {
    height: auto;
    object-fit: contain;
    display: block;
}

/* Full Portfolio Grid (5 Columns) */
.full-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.full-grid .img-container {
    aspect-ratio: 1/1; /* Square for high density */
    margin-bottom: 0;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(252, 251, 249, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    text-align: center;
}

.img-container:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .art-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    flex-direction: column;
    gap: 0.2rem;
}

.portfolio-overlay .art-title .lang-kr {
    font-size: 0.85rem;
}

.portfolio-overlay .meta-specs {
    font-size: 0.75rem;
    color: #888;
    font-weight: 300;
}

.art-card {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.art-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.img-container {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f7f6f4;
    margin-bottom: 2rem;
    position: relative;
    cursor: pointer;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* Ink Wash Animation Styles */
.ink-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 1;
}

.img-container .ink-blob:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(60, 50, 40, 0.12) 0%, rgba(60, 50, 40, 0.04) 50%, transparent 70%);
    filter: blur(15px);
    animation: inkSpread1 4s infinite ease-in-out;
}

.img-container .ink-blob:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 25%;
    background: radial-gradient(circle, rgba(40, 35, 30, 0.10) 0%, transparent 70%);
    filter: blur(12px);
    animation: inkSpread2 4s infinite ease-in-out;
}

.img-container .ink-blob:nth-child(3) {
    width: 90px;
    height: 90px;
    bottom: 25%;
    right: 20%;
    background: radial-gradient(circle, rgba(50, 45, 35, 0.10) 0%, transparent 70%);
    filter: blur(14px);
    animation: inkSpread3 4s infinite ease-in-out;
}

@keyframes inkSpread1 {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    50%  { transform: translate(-50%, -50%) scale(3.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
}

@keyframes inkSpread2 {
    0%   { transform: scale(0.4); opacity: 0; }
    50%  { transform: scale(2.8); opacity: 0.8; }
    100% { transform: scale(0.4); opacity: 0; }
}

@keyframes inkSpread3 {
    0%   { transform: scale(0.4); opacity: 0; }
    50%  { transform: scale(2.5); opacity: 0.8; }
    100% { transform: scale(0.4); opacity: 0; }
}

.img-container:has(.art-img.loaded) .ink-blob {
    animation: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.art-card:hover .img-container {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.art-img.loaded {
    opacity: 1;
}

.img-container:hover .art-img {
    transform: scale(1.05);
}

.art-info {
    display: flex;
    flex-direction: column;
    gap: 0; /* No gap, let specific margins handle it if needed */
}

.art-title {
    font-family: var(--font-en);
    font-size: 1.1rem; /* Slightly smaller for elegance */
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px; 
    line-height: 1.1;
}

.art-title-kr {
    font-family: var(--font-kr);
    font-size: 0.85rem;
    color: var(--text-sec);
    margin: 0;
    line-height: 1.1;
}

.art-price {
    font-size: 1rem;
    font-weight: 300;
}

/* Metadata for Featured Works */
.art-metadata {
    display: flex;
    flex-direction: column;
    gap: 0; /* Fully compressed */
    margin-top: 2px; /* Tiny gap from title */
}

.meta-category {
    text-transform: uppercase;
    font-size: 0.7rem; /* Even more compact */
    letter-spacing: 1px;
    color: var(--text-sec);
    font-weight: 400;
    font-family: var(--font-sans);
    line-height: 1.1;
}

.meta-specs {
    font-size: 0.7rem; /* Even more compact */
    color: #999;
    font-weight: 300;
    font-family: var(--font-sans);
    line-height: 1.1;
}

/* View More Button */
.view-more-container {
    margin-top: 6rem;
    text-align: center;
}

.view-more-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}


.view-more-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}


.buy-btn {
    align-self: flex-start;
    margin-top: 1rem;
    padding: 0 0 2px 0;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--text-sec);
    color: var(--text-sec);
    font-size: 0.8rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}

.buy-btn:hover {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    background-color: transparent;
}

/* General Sections */
.about-section,
.exhibitions-section,
.contact-section {
    padding: 6rem 4rem;
    max-width: 1400px; /* Widened for better text flow */
    margin: 0 auto;
}

.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: none;
}

/* About Section */
.about-content {
    text-align: center;
}

.about-layout {
    display: flex;
    gap: 5rem;
    align-items: center;
    text-align: left;
    margin-top: 3rem;
    max-width: 1200px;
    margin-inline: auto;
}

.about-img-container {
    flex: 0 0 45%;
    max-width: 550px;
    overflow: hidden;
    background-color: var(--accent);
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.about-text .kr-text {
    font-family: var(--font-kr);
    font-size: 1.1rem;
    color: var(--text-sec);
}

/* Exhibitions Section */
.exhibition-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exhibition-item {
    display: flex;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.ex-year {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--text-sec);
    min-width: 80px;
}

.ex-details h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.ex-details p {
    color: var(--text-sec);
}

/* Contact Section Redesign */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-top: 4rem;
}

.contact-info-col {
    text-align: left;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-sec);
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}

.contact-email {
    display: block;
    font-family: var(--font-en);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 3rem;
    transition: var(--transition);
    line-height: 1.2;
}

.contact-email:hover {
    color: var(--text-sec);
}

.contact-address-box {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-address-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-sec);
    margin-bottom: 1rem;
}

.contact-address {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
    text-transform: none; /* Clean lowercase/proper case */
    letter-spacing: 0;
}

.contact-map-col {
    width: 100%;
}

.map-container {
    height: 450px;
    width: 100%;
    filter: grayscale(0.8) contrast(1.1);
    transition: var(--transition);
}

.map-container:hover {
    filter: grayscale(0);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modal / Cart */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 3rem;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateX(0);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    align-self: flex-end;
    color: var(--text-primary);
}

.section-title {
    font-family: var(--font-en);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Sticky Gallery Nav Wrapper */
.sticky-gallery-nav {
    position: sticky;
    top: 60px; /* Aligned with homepage sticky title offset */
    z-index: 90;
    background-color: rgba(252, 251, 249, 0.9);
    padding: 0.8rem 4rem;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    transition: var(--transition);
}

.sticky-gallery-nav .section-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: none;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: none;
    font-family: var(--font-en);
    font-size: 0.95rem;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
}

/* Gallery Grid */
.modal-title {
    font-family: var(--font-en);
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-details h4 {
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 500;
}

.cart-item-details p {
    font-family: var(--font-kr);
    font-size: 0.9rem;
    color: var(--text-sec);
}

.remove-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: #999;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.5rem;
}

.cart-total {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-family: var(--font-en);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--text-primary);
    color: var(--bg-color);
    border: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background-color: #333;
}

.hidden {
    display: none !important;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2000;
    pointer-events: none;
}

.toast {
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.footer {
    padding: 4rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-kr {
    font-family: var(--font-kr);
    color: var(--text-sec);
    margin-top: 0.5rem;
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .full-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-grid {
        column-count: 1;
    }

    .featured-card:nth-child(3n) {
        column-span: none;
    }


    .gallery-section,
    .about-section,
    .exhibitions-section,
    .contact-section {
        padding: 6rem 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-email {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
        flex-direction: row; /* Horizontal on mobile now */
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .logo a {
        font-size: 1.1rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 101;
    }

    .nav.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 3rem;
        margin-top: 4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .gallery-section,
    .about-section,
    .exhibitions-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }


    .sticky-gallery-nav {
        top: 50px;
        background: rgba(252, 251, 249, 0.9);
        backdrop-filter: blur(10px);
        z-index: 90;
        padding: 0.1rem 0;
        border-bottom: 1px solid var(--border);
        margin-bottom: 1.5rem;
    }

    .sticky-gallery-nav .section-title {
        position: static;
        margin-bottom: 0.5rem;
        border-bottom: none;
        padding: 0.2rem 1.5rem;
        background: transparent;
        backdrop-filter: none;
        font-size: 0.85rem;
        letter-spacing: 2px;
        text-align: left;
    }

    .gallery-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 1.5rem 0.8rem 1.5rem;
        gap: 1.2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .gallery-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        font-size: 0.75rem;
        white-space: nowrap;
        padding-bottom: 0.2rem;
        letter-spacing: 0.05em;
        flex: 0 0 auto;
    }

    .modal {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .exhibition-item {
        flex-direction: column;
        gap: 0.5rem;
        padding-bottom: 1.5rem;
    }

    .contact-box {
        padding: 3rem 1.5rem;
    }

    .contact-email {
        font-size: 1.5rem;
        margin: 1.5rem 0;
    }

    .about-layout {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .footer {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .gallery-section,
    .about-section,
    .exhibitions-section,
    .contact-section {
        padding: 3rem 1rem;
    }

    .modal {
        max-width: 100%;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }
}

/* Language Toggle & Links */
body[data-lang="en"] .lang-kr { display: none !important; }
body[data-lang="kr"] .lang-en { display: none !important; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 110;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

.lang-toggle-btn {
    background: transparent;
    border: 1px solid var(--text-primary);
    padding: 0.3rem 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    cursor: pointer;
    letter-spacing: 0.05rem;
    color: var(--text-primary);
    transition: var(--transition);
    margin-top: 1rem; /* Space in mobile menu */
}

@media (min-width: 769px) {
    .lang-toggle-btn {
        margin-top: 0;
    }
}

.lang-toggle-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.art-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(252, 251, 249, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: none;
    border: none;
    font-size: 3rem;
    font-weight: 300;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.lightbox-close:hover {
    transform: scale(1.1);
}
.ad-image {
    cursor: zoom-in;
}

/* Mini Related Artworks */
.mini-related-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
}
.mini-related-title {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mini-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.mini-art-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f9f9f9;
}
.mini-art-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.mini-art-link:hover .mini-art-img {
    transform: scale(1.05);
}