
:root {
    --primary: #ffffff; /* 全て白に変更（実験） */
    --secondary: #ffffff; 
    --accent: rgba(30, 58, 36, 0.85); /* Semi-transparent dark green box */
    --text: #ffffff; /* White text for contrast */
    --text-muted: #ffffff; /* サブテキストも白に変更 */
    --bg: #0b1a10; /* Dark Green Base Background */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Watercolor Animal Background */
    background-image: url("img/bg.webp");
    background-size: cover;
    background-position: center;
    opacity: 1.0; /* Full opacity to guarantee visibility if loaded */
    pointer-events: none;
    z-index: -2; 
    animation: bgDrift 40s linear infinite alternate;
    will-change: transform;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Animated Fireflies / Light Particles */
    background-image: radial-gradient(circle at 20% 30%, rgba(168, 230, 207, 0.4) 0%, transparent 2%),
                      radial-gradient(circle at 80% 60%, rgba(168, 230, 207, 0.4) 0%, transparent 2%),
                      radial-gradient(circle at 40% 80%, rgba(168, 230, 207, 0.4) 0%, transparent 2%);
    background-size: 200px 200px;
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
    animation: floatParticles 15s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes bgDrift {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.15); }
}

@keyframes floatParticles {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-50px) translateX(30px); }
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    font-family: 'Outfit', 'HGMaruGothicMPRO', 'HG丸ｺﾞｼｯｸM-PRO', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', sans-serif;
    background-color: transparent;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); /* Add shadow to ensure text pops against background */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Hiragino Mincho ProN', 'MS Mincho', serif;
    font-weight: 200;
    letter-spacing: 0.15em;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--accent);
    backdrop-filter: blur(8px);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(43, 122, 59, 0.3);
}

.logo {
    font-size: 1.4rem;
    font-weight: 200; /* Matching headings */
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.15em;
    font-family: 'Hiragino Mincho ProN', 'MS Mincho', serif;
    text-transform: none; /* Keep natural case */
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 2000;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.artist-img {
    width: 100%;
    height: 350px;
    background-size: contain !important; /* Forces original ratio */
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bg);
    border-radius: 4px 4px 0 0;
}

.artist-info {
    padding: 2.5rem 2rem;
}

.artist-info h3 {
    font-weight: 200;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
}

/* Modal Content Adjustments - Compact & Left Aligned */
.modal-content {
    background-color: var(--accent);
    margin: 5% auto;
    padding: 3rem;
    border: 1px solid var(--accent);
    width: 90%;
    max-width: 900px; /* Compact width */
    position: relative;
    color: var(--text);
    border-radius: 4px;
}

#modal-face-img {
    width: 300px; /* Fixed compact width */
    height: 400px;
    background-size: contain !important;
    background-position: left center; /* Aligned to left */
    background-repeat: no-repeat;
    background-color: transparent;
    margin-bottom: 2rem;
    border: none;
}

/* Modal Redesign - Unified Single Black Background */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--bg) !important; /* Single Solid White */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg) !important; /* Seamless match */
    margin: 0 auto; /* Center naturally */
    padding: 10vh 5%;
    width: 90%;
    max-width: 1000px; /* More generous width */
    border: none;
    text-align: left;
    box-shadow: none;
}

/* Close button - Top Right */
.close-modal {
    position: fixed;
    top: 30px;
    right: 40px;
    color: var(--text);
    font-size: 3rem;
    font-weight: 200;
    cursor: pointer;
    z-index: 2100;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
}

/* Artist Profile Head Section */
.modal-profile-header {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

#modal-face-img {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    background-size: contain !important;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    padding: 0;
    border-radius: 2px;
}

#modal-artist-name {
    font-weight: 200;
    font-size: 16pt;
    color: var(--primary);
    margin: 0;
}

/* Text Blocks */
.modal-text-section {
    margin-bottom: 6rem;
}

.modal-text-section h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 2rem;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
}

.modal-text-section p {
    font-size: 1.15rem;
    line-height: 2.2;
    color: var(--text-muted);
    white-space: pre-wrap;
    padding-left: 1.8rem;
}

/* Works Grid */
.modal-works-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem;
    margin: 4rem 0 6rem 1.8rem;
}

.modal-work-item {
    cursor: pointer;
    background: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 280px;
    border: 1px solid var(--accent);
    transition: all 0.4s ease;
}

.modal-work-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.grid-work-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
}

.close-modal-btn {
    display: inline-block;
    padding: 1.2rem 4rem;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    margin: 4rem 0 6rem 1.8rem;
    font-size: 1rem;
    letter-spacing: 0.2em;
    transition: all 0.3s;
}

.close-modal-btn:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .modal-profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    #modal-face-img {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }
    #modal-artist-name {
        font-size: 2.5rem;
    }
    .modal-works-grid {
        grid-template-columns: 1fr !important;
        margin-left: 0;
    }
    .modal-text-section p, .close-modal-btn {
        padding-left: 0;
        margin-left: 0;
    }
}

.modal-work-item:hover .grid-work-img {
    transform: scale(1.05);
}

/* Lightbox Pop-up - Optimized */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 5000; /* Extremely high to be above modal */
    display: none; /* Switch to display for reliability */
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

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

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    object-fit: contain; 
    transition: opacity 0.3s ease-in-out;
}

.lightbox-content::after {
    content: "";
    display: block;
    clear: both;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 5010;
    line-height: 1;
}

.lightbox-prev, .lightbox-next {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    padding: 3rem 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5020;
    transition: 0.3s;
    border-radius: 4px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
}

.lightbox-prev { left: -6rem; }
.lightbox-next { right: -6rem; }

#lightbox-caption {
    position: absolute;
    bottom: -4rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--primary);
    font-size: 1.2rem;
    font-family: 'Hiragino Mincho ProN', 'MS Mincho', serif;
    letter-spacing: 0.1em;
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (max-width: 1100px) {
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
}

@media (max-width: 768px) {
    .logo { font-size: 1.1rem; }
    .hero h1 { font-size: 2.2rem; }
    .modal-works-grid {
        gap: 0.5rem;
    }
    .lightbox-prev, .lightbox-next {
        padding: 1.5rem 1rem;
        font-size: 1.5rem;
    }
}

nav .nav-link {
    color: var(--text);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

nav .nav-link:hover {
    color: var(--primary);
}

#nav-email-link {
    font-size: 1.2rem;
    color: #fff !important;
}

/* Hero Section - Refined Thin Mincho Title (Centered) */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center !important;
    /* 背景をCSS側で先に指定し、読み込み遅延によるガタつきを防止 */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8)), url("img/hero/animal018.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 5%;
    position: relative;
    /* 登場アニメーション：背景素材から滑らかに切り替える */
    opacity: 0;
    animation: heroEntrance 0.8s ease-out forwards;
}

@keyframes heroEntrance {
    0% { opacity: 0; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Light overlay for readability */
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    text-align: center !important; /* Force Center */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 7rem; /* Increased offset to prevent overlapping with header links */
}

.hero h1 {
    font-size: 1.8rem !important; /* Extremely reduced */
    margin-bottom: 2rem;
    letter-spacing: 0.5em !important;
    line-height: 2 !important;
    color: var(--text) !important;
    width: 100% !important;
    text-align: center !important;
    white-space: pre-wrap;
}

.hero p:first-child {
    font-size: 1rem;
    letter-spacing: 0.5em;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.subtitle b {
    font-weight: 700;
    color: var(--primary);
}

.hero-logo-silhouette, .hero-logo-wrap i {
    width: auto;
    height: 80px;
    margin-bottom: 2rem;
    color: transparent !important;
    -webkit-text-stroke: 1.5px var(--primary);
    opacity: 0.9;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 2.2;
    letter-spacing: 0.1em;
    white-space: pre-wrap;
    text-align: left !important;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary);
    color: var(--accent);
}

/* Introduction */
.intro {
    padding: 3.8rem 10% 4rem 10%;
    text-align: left;
    background: var(--accent);
}

.intro h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    white-space: pre-wrap;
}

.intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: left;
    white-space: pre-wrap;
}

/* Highlights Section */
.highlights {
    padding: 3.8rem 5%;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.highlight-item {
    background: var(--accent);
    padding: 3rem;
    border-radius: 8px;
    border-left: 2px solid var(--primary);
    transition: var(--transition);
}

.highlight-item:hover {
    background: var(--bg);
    transform: translateX(10px);
}

.highlight-item h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 200;
    white-space: pre-wrap;
}

.highlight-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: left;
    white-space: pre-wrap;
}

/* Artists Section */
.artists {
    padding: 3.8rem 5%;
    background: var(--bg);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 12pt;
    color: var(--primary);
    letter-spacing: 0.15em;
    font-weight: 300;
    margin: 0;
}

section {
    scroll-margin-top: 60px; /* Header height */
}

.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.artist-card {
    background: var(--accent);
    border: 1px solid rgba(43, 122, 59, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.artist-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.artist-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--bg);
    display: block;
    transition: var(--transition);
}

.artist-card:hover .artist-img {
    transform: scale(1.05);
}

.artist-info {
    padding: 1.5rem;
    text-align: center;
}

.artist-name {
    font-size: 16pt;
    color: var(--primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.artist-name-en {
    display: block;
    font-size: 12pt;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.artist-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-muted);
    white-space: pre-wrap;
}

.artist-detail-btn {
    margin-top: 1rem;
    width: auto;
    padding: 0.6rem 2rem;
    font-size: 0.8rem;
}

/* Slideshow / Past Exhibitions */
.past-exhibitions {
    padding: 2rem 5%;
    background: var(--accent);
}

.slideshow-wrapper {
    position: relative;
    width: 60%;
    max-width: 900px;
    margin: 1rem auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow-title-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.slideshow-title-flex h2 {
    grid-column: 2;
}

.slideshow-subtitle {
    text-align: center;
    font-size: 10pt;
    color: #ffffff;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.1em;
}

.slideshow-counter {
    grid-column: 3;
    justify-self: start;
    margin-left: 1.5rem;
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 10px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
}

.swiper {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.swiper-slide img {
    width: 100%;
    aspect-ratio: 16 / 9; /* 横16:縦9 に固定 */
    max-height: 55vh; /* 縦のはみ出し防止 */
    object-fit: contain; /* 余白を使い全体を表示 */
    margin: 0 auto;
    display: block;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
    border-radius: 4px;
}

.swiper-slide img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.slideshow-enlarge-wrap {
    margin: 1.5rem 0;
    text-align: center;
}

.slideshow-enlarge-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 0.1em;
}

.slideshow-enlarge-btn:hover {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

.slideshow-enlarge-btn i {
    font-size: 0.8rem;
}

/* --- Slideshow / Past Exhibitions (Consolidated) --- */
.past-exhibitions {
    padding: 2rem 5% 4rem 5%;
    background: var(--accent);
}

.slideshow-wrapper {
    position: relative;
    width: 70%;
    max-width: 1000px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow-title-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.slideshow-title-flex h2 {
    grid-column: 2;
}

.slideshow-subtitle {
    text-align: center;
    font-size: 10pt;
    color: #ffffff;
    margin-top: -0.5rem;
    margin-bottom: 2.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.1em;
}

.slideshow-counter {
    grid-column: 3;
    justify-self: start;
    margin-left: 1.5rem;
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 12px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    backdrop-filter: blur(4px);
}

.swiper {
    width: 100%;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.swiper-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.slideshow-toggle, .swiper-button-prev, .swiper-button-next {
    cursor: pointer;
    color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.slideshow-toggle:hover, .swiper-button-prev:hover, .swiper-button-next:hover {
    background: var(--primary);
    color: var(--bg);
}

.swiper-button-prev::after, .swiper-button-next::after {
    display: none !important;
}

.swiper-button-prev i {
    transform: rotate(180deg);
}

/* Lightbox Pop-up (Refined) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.98);
    z-index: 5000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
}

#lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 2px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 5010;
    opacity: 0.6;
    transition: 0.3s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 2rem 1rem;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5020;
    transition: 0.3s;
    border-radius: 4px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
    color: var(--bg);
}

.lightbox-prev { left: -6rem; }
.lightbox-next { right: -6rem; }

.lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.2em;
}

/* --- Event Overview Box (Featured Event) --- */
.featured-event-box {
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(43, 122, 59, 0.3);
    border-radius: 4px;
    max-width: 800px;
    text-align: left;
}

.box-header {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.1em;
    font-family: 'Hiragino Mincho ProN', 'MS Mincho', serif;
}

.box-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.box-row {
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.box-row .label {
    min-width: 100px;
    color: var(--primary);
    font-weight: 600;
    position: relative;
    flex-shrink: 0;
}

.box-row .label::after {
    content: "：";
    position: absolute;
    right: 10px;
}

.box-row span:not(.label) {
    flex: 1;
    color: var(--text-muted);
    white-space: pre-wrap;
}

.highlight-link {
    color: #ff4d4d !important;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    font-weight: 600;
}

.highlight-link:hover {
    color: #ff8080 !important;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.8), 0 0 15px rgba(255, 77, 77, 0.4);
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.6));
}

.primary-glow-link {
    color: #fff !important;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.primary-glow-link:hover {
    color: #fff !important;
    text-shadow: 0 0 8px #ff4d4d, 0 0 15px rgba(255, 77, 77, 0.4);
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 0 5px #ff4d4d);
}

@media (max-width: 768px) {
    .box-row {
        flex-direction: column;
        gap: 0.2rem;
    }
    .box-row .label::after {
        content: "";
    }
}

/* Event Details Refinement */
.event-info {
    padding: 4rem 5%;
}

.info-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
}

.info-block:first-child {
    background: var(--accent);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(43, 122, 59, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    margin-bottom: 2.5rem;
}

.info-item:last-of-type {
    margin-bottom: 0;
}

.info-item h3 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    text-transform: uppercase;
}

.info-item p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-left: 1.8rem;
}

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(43, 122, 59, 0.2);
    height: 100%;
    min-height: 500px;
}

/* Artist Modal Refinement (Static Structure) */
.modal-content {
    background: var(--bg) !important;
    padding: 8rem 10% !important;
}

.modal-profile-header {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

#modal-face-img {
    width: 320px;
    height: 320px;
    background-size: cover !important;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#modal-artist-name {
    font-size: 2.2rem;
    letter-spacing: 0.2em;
}

.modal-works-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem;
    margin: 4rem 0 6rem 0;
}

.modal-work-item {
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(255,255,255,0.05);
}

.modal-work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modal-work-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 1100px) {
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
}

@media (max-width: 768px) {
    header, header.scrolled {
        padding: 1.5rem 5% !important;
        background: transparent !important;
        border-bottom: none !important;
        backdrop-filter: none !important;
        justify-content: flex-end;
    }

    .logo {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .hero {
        height: auto !important;
        min-height: 100vh;
        padding: 8rem 5% 4rem 5%; /* Top padding for fixed header */
    }

    .hero-content {
        margin-top: 0 !important;
    }

    .intro {
        padding-top: 6rem !important; /* Extra space to prevent overlap */
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1500;
    }

    #nav-menu.active {
        right: 0;
    }

    #nav-menu .nav-link {
        font-size: 1.2rem;
        margin: 0;
    }

    #nav-menu #nav-email-link {
        font-size: 1.8rem;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .intro, .highlights, .artists, .past-exhibitions, .event-info {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .intro p {
        max-width: 100% !important;
    }

    .featured-event-box {
        padding: 1.5rem !important;
        margin: 2rem 0 !important;
        width: 100% !important;
    }

    .box-row {
        gap: 1rem !important;
    }

    .info-container { grid-template-columns: 1fr; }
    .info-block:first-child { padding: 2rem 1.5rem !important; }
    .info-item p { margin-left: 1rem !important; }

    .slideshow-wrapper { width: 100%; }
    .modal-profile-header { flex-direction: column; text-align: center; gap: 2rem; }
    #modal-face-img { width: 100%; max-width: 300px; height: 300px; margin: 0 auto; }
    
    /* Lightbox Navigation for Mobile (Bottom Arrows) */
    .lightbox-prev, .lightbox-next {
        display: flex !important;
        position: fixed !important;
        bottom: 3rem !important;
        top: auto !important;
        transform: none !important;
        width: 60px !important;
        height: 60px !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        font-size: 1.5rem !important;
        z-index: 5020 !important;
        opacity: 0.8 !important;
    }
    .lightbox-prev { left: calc(50% - 80px) !important; }
    .lightbox-next { right: calc(50% - 80px) !important; }

    .modal-content {
        padding: 6rem 1.5rem !important;
    }
    .slideshow-controls { gap: 0.8rem; }
}

/* Google Car Navigation Card Styles */
.nav-car-text {
    display: none;
}

@media (max-width: 768px) {
    .nav-car-text {
        display: inline;
        margin-left: 0.5rem;
        font-size: 0.9rem;
        vertical-align: middle;
    }
}

.nav-car-nav-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0 !important;
    padding: 0.8rem 2rem !important;
    font-size: 0.9rem !important;
    text-transform: none !important;
    width: 280px !important; /* Fixed width */
    box-sizing: border-box;
}

#event-map {
    width: 280px !important; /* Match fixed width */
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem !important; /* One line gap */
    box-sizing: border-box;
}

@keyframes iconFlash {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.3); filter: brightness(2) drop-shadow(0 0 15px var(--primary)); }
    100% { transform: scale(1); filter: brightness(1); }
}

.icon-flash {
    animation: iconFlash 0.4s ease-out;
}

/* Footer Styling */
footer {
    padding: 6rem 5% 4rem 5%;
    text-align: center;
    background: var(--bg);
}

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

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.footer-link:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.version-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.05em;
}
