@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    line-height: 1.6;
    padding-top: 100px; /* Account for fixed navbar */
}


#tw-slider {
    margin-top: 70px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-bottom: 0.5px solid #d3d3d3; /* slightly thinner */
    z-index: 999;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
}

.menu-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 18px 0 0; /* increased top margin to add space between logo and menu */
    width: 100%;
}

.nav-logo img {
    height: 52px; /* slightly smaller logo */
    width: auto;
    padding: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 350; /* lightened */
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link:hover {
    color: #666;
}

/* === Minimalist Dropdown Menu Redesign === */
/* Design goals: flat, quiet, precise alignment, subtle motion, keyboard-friendly */
 :root {
    --dd-bg: #ffffff;
    --dd-border: #e8e8e8;
    --dd-shadow: 0 6px 18px -8px rgba(0,0,0,0.15), 0 2px 4px -1px rgba(0,0,0,0.08);
    --dd-radius: 10px;
    --dd-link-hover-bg: #f5f5f5;
    --dd-accent: #1a1a1a;
    /* compensation (approx half icon + margin) to visually center underline under text only */
    --dd-arrow-comp: 8px;
 }

.dropdown {
    position: relative;
    display: inline-block;
}

/* Parent link underline indicator (hover + open) */
.dropdown > .nav-link {
    position: relative;
    padding: 10px 0 12px 0; /* balanced vertical rhythm */
}

/*.dropdown parent underline – thinner & shorter*/
.dropdown > .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    height: 1px; /* keep thin */
    width: 0; /* animation target */
    background: var(--dd-accent);
    /* shift extra to the left so line centers under word, not including arrow */
    transform: translateX(calc(-50% - var(--dd-arrow-comp)));
    transition: width .35s cubic-bezier(.4,.14,.3,1);
    will-change: width;
}

.dropdown:hover > .nav-link::after,
.dropdown.dropdown-open > .nav-link::after,
.dropdown.active > .nav-link::after {
    width: 54%; /* narrower & visually centered */
}

.dropdown-arrow {
    margin-left: 6px;
    font-size: 0.75em;
    transition: transform .35s cubic-bezier(.4,.14,.3,1), color .3s;
    vertical-align: middle;
    color: #9a9a9a;
}

.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow,
.dropdown.dropdown-open .dropdown-arrow {
    transform: translateY(1px) rotate(180deg);
    color: #222;
}

.dropdown-content {
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    transform: translate(-50%, 4px) scale(.96);
    transform-origin: 50% 0;
    min-width: 160px;
    background: var(--dd-bg);
    border: 1px solid var(--dd-border);
    box-shadow: var(--dd-shadow);
    border-radius: var(--dd-radius);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, transform .32s cubic-bezier(.32,.72,.21,1), filter .4s ease;
    filter: blur(2px);
    z-index: 1001;
}

/* Show logic (hover OR JS-added classes) */
.dropdown:hover > .dropdown-content,
.dropdown.dropdown-open > .dropdown-content,
.dropdown.active > .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 10px) scale(1);
    filter: blur(0);
}

.dropdown-content a {
    --link-pad-x: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    padding: 7px var(--link-pad-x) 7px calc(var(--link-pad-x));
    color: #222;
    text-decoration: none;
    position: relative;
    transition: background .25s ease, color .25s ease;
    border-radius: 6px;
    line-height: 1.3;
    font-weight: 350; /* match parent nav-link weight */
    /* minimalist indicator baseline */
    --indicator-color: #1a1a1a;
}

/* Left slim indicator (appears on hover/focus) */
/* child hover indicator thinner */
.dropdown-content a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 1px; /* thinner */
    height: 0;
    background: var(--indicator-color);
    border-radius: 1px;
    opacity: 0;
    transform: translateY(-50%) scaleY(.35);
    transition: height .38s cubic-bezier(.4,.14,.3,1), opacity .25s ease, transform .38s cubic-bezier(.4,.14,.3,1);
}

.dropdown-content a:hover::before,
.dropdown-content a:focus-visible::before,
.dropdown-content a:active::before {
    height: 48%; /* slightly smaller vertical indicator */
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
    background: transparent;
    color: #111;
    outline: none;
}

/* Subtle active style if needed */
.dropdown-content a:active {
    background: #f2f2f2;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    .dropdown-content { transition: opacity .2s ease; transform: translate(-50%,8px) scale(1); filter:none; }
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 2px; /* thinner visual weight */
    background-color: #333;
    transition: all 0.3s ease;
}

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

h1 {
    text-align: center;
    margin-bottom: 0px;
    margin-top: 50px;
    color: #1a1a1a;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 0px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
   
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 70%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 0px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(20px);
}

.lightbox.active .lightbox-img {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.lightbox-info {
    max-width: 25%;
    max-height: 90%;
    overflow-y: auto;
    padding: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active .lightbox-info {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.15s;
}

.lightbox-info h2 {
    font-size: 2.2rem;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-weight: 400; /* reduced from 600 for lighter appearance */
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lightbox-info p {
    max-width: 100%;
    font-size: 1.1rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300; /* reduced from 400 for lighter appearance */
}

.lightbox-info .details {
    padding: 20px 0;
    margin-top: 5px;
}

.lightbox-info .details strong {
    color: #666;
    font-weight: 300; /* reduced from 400 for lighter appearance */
    font-size: 0.85rem;
    line-height: 1.6;
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    padding: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Open Sans', sans-serif;
}

.close:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.2);
    opacity: 1;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.close:active {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: #1f2937; /* gray-800 */
    border: 1px solid #d1d5db; /* ring-gray-300 */
    font-size: 0; /* hide any text node */
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease-out;
    z-index: 1001;
    border-radius: 9999px; /* fully rounded */
    width: 40px; /* match index controls */
    height: 40px; /* match index controls */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    font-family: 'Open Sans', sans-serif;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #cbd5e1; /* slightly darker ring */
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.98);
    background: rgba(255,255,255,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.16);
    transition: all 0.12s ease;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.05);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

/* On large screens, shift next button left by info panel width so it aligns with image edge */
@media (min-width: 1201px) {
  .next-btn { right: calc(25% + 40px); }
}

/* Arrows without tails using CSS triangles */
.prev-btn::before,
.next-btn::before {
    content: none;
}

/* Ensure consistent icon sizing inside nav buttons */
.nav-btn i {
    font-size: 1rem;
    line-height: 1;
}

/* Custom scrollbar for lightbox info */
.lightbox-info::-webkit-scrollbar {
    width: 6px;
}

.lightbox-info::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.lightbox-info::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.lightbox-info::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Biography Page Styles */
.bio-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 40px;
    ;
}

.bio-image {
    flex: 0 0 45%;
}

.bio-image img {
    width: 80%;
    height: auto;
    margin-top: 40px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.bio-content {
    flex: 1;
}

.bio-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
    text-align: left;
}

.bio-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 24px;
    font-weight: 400;
}

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

.bio-text h2 {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 16px;
    margin-top: 32px;
    font-weight: 600;
}

.bio-text ul {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 24px;
    padding-left: 20px;
    width: 100%;
}

.bio-text li {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 8px;
    font-weight: 400;
}

.bio-text strong {
    font-size: 1rem;
    line-height: 1.8;
    color: #4a4a4a;
    font-weight: 600;
}

/* === Redesigned Biography Layout === */
/* Modern, balanced, typographic refinement */
.bio-hero {
  max-width: 1300px;
  margin: 0 auto 70px auto;
  padding: 40px clamp(16px,4vw,60px) 10px;
}
.bio-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px,6vw,110px);
  position: relative;
}
.bio-portrait { position: sticky; top: 110px; align-self: start; }
.bio-figure { margin:0; position: relative; }
.bio-figure img { width:100%; height:auto; border-radius: 22px; box-shadow: 0 18px 55px -18px rgba(0,0,0,0.25), 0 4px 18px -4px rgba(0,0,0,0.12); object-fit: cover; }
.bio-main { display:flex; flex-direction: column; gap: 38px; }
.bio-header { display:flex; flex-direction: column; gap: 20px; }
.bio-header h1 { font-size: clamp(2.2rem,4vw,3.1rem); font-weight:300; letter-spacing:-0.02em; line-height:1.05; margin:0; text-align:left; }
.bio-intro { font-size: clamp(0.98rem,1.05vw + .6rem,1.15rem); line-height:1.75; font-weight:300; color:#2f2f2f; max-width: 70ch; }
.bio-section { position: relative; padding: 4px 0 4px 0; }
.bio-subheading { font-size: 0.78rem; letter-spacing: 0.16em; font-weight:600; text-transform: uppercase; color:#1a1a1a; margin:0 0 18px 0; position:relative; }
.bio-subheading:after { content:""; position:absolute; left:0; bottom:-8px; width:46px; height:2px; background:#1a1a1a; border-radius:2px; }
.exhibition-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; font-size: clamp(0.92rem,0.9vw + .55rem,1.02rem); font-weight:300; color:#333; }
.exhibition-list li { position:relative; padding:6px 0 6px 0; line-height:1.45; }
.exhibition-list li:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.06); }
.languages { font-size: 0.9rem; font-weight:400; letter-spacing:0.02em; color:#333; }
.languages strong { font-weight:600; margin-right:6px; }

/* Micro-alignment helpers */
.bio-main > .bio-section:last-child { margin-top: -10px; }

/* Scroll reveal progressive subtle fade (optional future JS hook) */
.bio-section, .bio-header { opacity:1; transform: translateY(0); transition: opacity .6s ease, transform .6s cubic-bezier(.4,.14,.3,1); }
.bio-section[data-reveal] { opacity:0; transform: translateY(24px); }
.bio-section[data-reveal].visible { opacity:1; transform: translateY(0); }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) { .bio-section[data-reveal] { opacity:1 !important; transform:none !important; transition:none !important; } }

/* Medium screens adjustments */
@media (max-width: 1100px) { .bio-grid { gap: clamp(40px,5vw,80px); grid-template-columns: minmax(220px,340px) 1fr; } }

/* Tablet breakpoint */
@media (max-width: 920px) {
  .bio-grid { grid-template-columns: 100%; }
  .bio-portrait { position: relative; top:auto; max-width: 480px; margin: 0 auto 40px auto; }
  .bio-main { gap: 46px; }
  .bio-figure img { border-radius: 20px; }
}

/* Tablet (portrait & small landscape) */
@media (max-width: 920px) and (min-width: 601px) {
    body.page-bio .bio-figure img { width: 70%; max-width: 420px; }
}
/* Standard mobile */
@media (max-width: 600px) {
    body.page-bio .bio-figure img { width: 75%; max-width: 340px; }
}
/* Very small devices */
@media (max-width: 400px) {
    body.page-bio .bio-figure img { width: 78%; max-width: 300px; }
}
/* Mobile refinement */
@media (max-width: 600px) {
  .bio-hero { padding: 28px 18px 0 18px; }
  .bio-main { gap: 40px; }
  .bio-header h1 { font-size: clamp(1.9rem,8.2vw,2.4rem); }
  .bio-intro { font-size: 0.95rem; line-height:1.65; }
  .exhibition-list { gap:6px; font-size: 0.9rem; }
  .exhibition-list li { padding:5px 0; }
  .bio-subheading { font-size: 0.7rem; letter-spacing:0.18em; }
  .bio-subheading:after { width:40px; }
  .languages { font-size:0.8rem; }
}

/* Edge very small */
@media (max-width: 380px) { .bio-intro { font-size:0.9rem; } }

/* Dark mode future-proof (optional) */
@media (prefers-color-scheme: dark) {
  .bio-intro, .exhibition-list, .languages { color: #d0d0d0; }
  .bio-subheading { color:#fff; }
  .bio-subheading:after { background:#fff; }
  .exhibition-list li:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.12); }
}

/* Mobile Responsive for Biography */
@media (max-width: 768px) {
    .bio-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .bio-image {
        flex: none;
    }
    
    .bio-content h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .bio-text p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bio-text h2 {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bio-text ul {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bio-text li {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bio-text strong {
        font-size: 1rem;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .bio-container {
        gap: 20px;
    }
    
    .bio-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .bio-text p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    .bio-text h2 {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bio-text ul {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bio-text li {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bio-text strong {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 65px; /* Significantly reduced for minimal mobile spacing */
    }
    
    /* Increased slider top margin on mobile (+20px) */
    #tw-slider {
        margin-top: 35px; /* Previously 5px */
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .nav-container {
        margin: 5px auto;
        padding: 8px 0;
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px; /* Reduced height for compact mobile layout */
    }
    
    .nav-logo img {
        height: 54px; /* slightly smaller */
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        z-index: 1100;
    }
    
    .hamburger .bar {
        width: 25px;
    height: 2px; /* thinner visual weight */
        background-color: #333;
        transition: all 0.3s ease;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Mobile Dropdown (stacked, frictionless) */
    .dropdown-content {
        position: static !important;
        transform: none !important;
        width: 100%;
        border: 1px solid #ececec;
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
        padding: 2px 0 6px 0;
        margin: 0 0 4px 0;
        background: #fafafa;
        filter: none;
        display: none; /* collapsed by default */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .dropdown.active > .dropdown-content { display: block; }
    .dropdown > .nav-link { padding: 10px 0; }
    .dropdown > .nav-link::after { bottom: -2px; }
    .dropdown-content a {
        padding: 11px 6px 11px 2px;
        font-size: 0.9rem;
        border-radius: 0;
        border: none;
        margin: 0;
        position: relative;
        display: flex;
        color: #222;
    }
    .dropdown-content a:before {
        content: "";
        width: 0;
        height: 1px;
        background: #222;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        transition: width .3s ease;
    }
    .dropdown-content a:hover:before { width: 26px; }
    .dropdown-content a:hover { background: #f0f0f0; }
    
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2.2rem;
        margin-bottom: 30px;
        margin-top: 15px; /* Significantly reduced for mobile */
    }
    
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item {
        border-radius: 12px;
    }
    
    .lightbox {
        padding: 20px 15px;
    }
    
    .lightbox-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .lightbox-img {
        max-width: 100%;
        max-height: 55%;
    }
    
    .lightbox-info {
        max-width: 100%;
        max-height: 35%;
        padding: 0;
    }
    
    .lightbox-info h2 {
        font-size: 1.6rem;
    }
    
    .lightbox_info p {
        font-size: 1rem;
    }
    
    .lightbox-info .details strong {
        font-size: 0.8rem;
    }
    
    .nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .prev-btn {
        left: 20px;
    }
    
    .next-btn {
        right: 20px;
    }
    
    .close {
        right: 25px;
        top: 25px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px; /* More compact for small mobile devices */
    }
    
    /* Maintain increased spacing on very small devices (+20px from original 0) */
    #tw-slider {
        margin-top: 30px; /* Previously 0px */
    }
    
    /* Optimize mobile slider controls spacing */
    .flex.lg\\:hidden {
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }
    
    /* Further reduce h1 spacing for small mobile */
    h1 {
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        gap: 20px;
    }
    
    .lightbox-img {
        max-height: 50%;
    }
    
    .lightbox-info {
        max-height: 40%;
    }
    
    .nav-btn {
        width: 44px;
        height: 44px;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
    
    .close {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .lightbox-info .details strong {
        font-size: 0.75rem;
    }
}

/* --- Dropdown Delay Helper Class --- */
.dropdown.dropdown-open .dropdown-content,
  .dropdown-content.dropdown-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(12px) !important;
  }

/* Legacy slideshow styles removed (replaced by Tailwind slider) */

/* --- Responsive Logo and Mobile Menu Fixes --- */
/* Tablet specific styles (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        max-width: 100%;
        margin: 8px auto;
        padding: 8px 15px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .nav-logo img {
        height: 46px; /* keep proportionally smaller */
    }
    
    .menu-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 22px;
        margin: 14px 0 0; /* extra spacing under logo */
        width: 100%;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 5px;
    }
    
    .social-buttons {
        gap: 6px;
        margin-left: 15px;
    }
    
    .social-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .hamburger {
        display: none;
        margin-top: 10px;
    }
    
    /* Adjust dropdown for tablet */
    .dropdown-content {
        min-width: 160px;
        font-size: 0.88rem;
    }
    
    .dropdown-content a {
        padding: 6px 15px;
        font-size: 0.88rem;
    }
    
    /* Disable hover dropdown on tablets, force click behavior */
    .dropdown:hover .dropdown-content,
    .dropdown-content:hover {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* But allow active dropdown to show on click */
    .dropdown.active .dropdown-content {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(12px) !important;
    }
}

/* Mobile specific styles (≤768px) */
@media (max-width: 768px) {
    .nav-logo img {
        height: 40px; /* slightly smaller for mobile */
    }
    
    .nav-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding: 8px 15px;
        position: relative;
    }
    
    .hamburger {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1100;
        margin-top: 15px;
    }
    
    .menu-row {
        width: 100%;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        text-align: center;
        transition: left 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    gap: 12px;
    padding: 26px 0 22px; /* a bit more padding for spacing */
        border-bottom: 1px solid black;
        align-items: center;
        position: fixed;
        z-index: 1002;
    }
    .menu-row.active {
        left: 0;
    }
    .hamburger {
        display: flex;
        position: absolute;
        right: 20px;
        top: 18px;
        z-index: 1100;
    }
    .nav-logo {
        margin-bottom: 0;
        width: 100%;
        justify-content: center;
    }
    /* Remove old dropdown icon for mobile */
    .dropdown > .nav-link::after {
        content: none !important;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 38px !important; /* keep scale consistent */
    }
    .nav-logo {
        width: 100%;
        justify-content: center;
    }
    .nav-container {
        padding: 5px 5px 0 5px;
    }
    .hamburger {
        right: 10px;
        top: 10px;
    }
}

/* Remove dropdown hover open on mobile only (≤768px) */
@media (max-width: 768px) {
  .dropdown:hover .dropdown-content,
  .dropdown-content:hover {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: none !important;
  }
  
  /* But allow active dropdown to show */
  .dropdown.active .dropdown-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}

/* Dropdown open on click for mobile only (≤768px) */
@media (max-width: 768px) {
    .dropdown-content {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        background-color: rgba(248, 248, 248, 0.95) !important;
        backdrop-filter: blur(5px) !important;
        margin-top: 8px !important;
        padding: 8px 0 !important;
        transform: none !important;
        left: auto !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .dropdown.active .dropdown-content {
        display: block !important;
    }
    
    .dropdown-content a {
        display: block !important;
        padding: 15px 25px !important;
        font-size: 0.95rem !important;
        color: #333 !important;
        text-decoration: none !important;
        border-bottom: 1px solid rgba(238, 238, 238, 0.8) !important;
        background: transparent !important;
        cursor: pointer !important;
        touch-action: manipulation !important; /* Better touch handling */
        -webkit-tap-highlight-color: transparent !important; /* Remove iOS highlight */
    }
    
    .dropdown-content a:hover,
    .dropdown-content a:active,
    .dropdown-content a:focus {
        background-color: rgba(245, 245, 245, 0.9) !important;
        color: #333 !important;
    }
    
    .dropdown-content a:last-child {
        border-bottom: none !important;
    }
    
    /* Ensure dropdown arrows work on mobile */
    .dropdown-arrow {
        margin-left: 5px !important;
        font-size: 0.85em !important;
        transition: transform 0.3s ease !important;
        vertical-align: middle !important;
        color: #888 !important;
    }
    
    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg) !important;
        color: #222 !important;
    }
}

/* --- Modern Simple Footer --- */
.site-footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 36px 0 18px 0;
    margin-top: 60px;
    font-family: 'Open Sans', sans-serif;
    color: #444;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.04);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-logo img {
    height: 38px;
    width: auto;
    margin-bottom: 8px;
    filter: grayscale(0.2) brightness(0.95);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    font-size: 0.85rem; /* reduced from 0.92rem */
    margin-bottom: 2px;
}
.footer-links a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 350; /* match navbar text weight */
    font-size: 0.85rem; /* reduced from 0.92rem */
}
.footer-links a:hover {
    color: #1e90ff;
}
.footer-social {
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
}
.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: white;
    color: #333;
    border: 1px solid #666;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}
.footer-social-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}
.footer-social-btn.facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
}
.footer-social-btn.instagram:hover {
    color: #e4405f;
    border-color: #e4405f;
}
.footer-copy {
    font-size: 0.75rem; /* reduced from 0.8rem */
    color: #888;
    margin-top: 4px;
    text-align: center;
    font-weight: 300;
}
@media (max-width: 768px) {
    .footer-container {
        padding: 0 10px;
    }
    .footer-links {
        gap: 8px;
    font-size: 0.8rem; /* reduced from 0.88rem */
    }
    .footer-logo img {
        height: 35px;
    }
    .footer-links a {
    font-size: 0.8rem; /* reduced from 0.88rem */
        font-weight: 350; /* keep consistent */
    }
}
@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
    .footer-logo img {
        height: 30px;
    }
    .site-footer {
        padding: 20px 0 8px 0;
    }
    .footer-links a {
    font-size: 0.78rem; /* reduced from 0.85rem */
        font-weight: 350; /* keep consistent */
    }
    .footer-copy {
    font-size: 0.72rem; /* reduced from 0.8rem */
    }
}

/* Statement Section Styles */
.statement-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    width: 100%;
    background: none;
    margin: 0 0 0 0;
    font-family: 'Open Sans', sans-serif;
}

.statement-container {
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;
    text-align: center;
    padding: 16px 18px 32px 18px;
    background: none;
}

.statement-heading {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    text-align: left;
}

.statement-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.08rem;
    font-weight: 300;
    color: #333;
    line-height: 1.8;
    text-align: left;
    margin: 0 auto;
}

.statement-text p {
    margin-bottom: 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 300;
    color: #333;
    line-height: 1.8;
    text-align: left;
}

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

@media (max-width: 768px) {
    .statement-container {
        max-width: 98vw;
        padding: 4px 6vw 18px 6vw;
    }
    .statement-heading {
        font-size: 1.5rem;
        margin-bottom: 20px;
        margin-top: 10px; /* Reduced top margin for mobile */
    }
    .statement-text, .statement-text p {
        font-size: 0.88rem;
        line-height: 1.7;
        padding: 0;
    }
    .statement-section {
        margin: 0 0 0 0;
        min-height: 45vh; /* Reduced min-height for tablet/mobile */
        padding-top: 0; /* Remove top padding */
    }
}

@media (max-width: 480px) {
    .statement-container {
        max-width: 100vw;
        padding: 2px 2vw 10px 2vw;
    }
    .statement-heading {
        font-size: 1.1rem;
        margin-bottom: 12px;
        margin-top: 5px; /* Minimal top margin */
    }
    .statement-text, .statement-text p {
        font-size: 0.88rem;
        line-height: 1.6;
        padding: 0;
    }
    .statement-section {
        margin: 0 0 0 0;
        min-height: 30vh; /* Significantly reduced for mobile */
        padding-top: 0; /* Remove top padding */
    }
}

/* --- Fix for Hamburger Menu Not Showing Navbar on Mobile Only --- */
/* Ensure .menu-row is hidden by default on mobile and shown when .active is present */

@media (max-width: 768px) {
  .menu-row {
    position: fixed;
    left: -100%;
    top: 70px;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 0;
    transition: left 0.3s ease;
    z-index: 1002;
    box-shadow: 0 4px 16px 0 rgba(60,60,60,0.13);
    overflow-y: auto;
  }
  
  .menu-row.active {
    left: 0;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
    align-items: center;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
    margin: 8px 0;
  }
  
  .nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .social-buttons {
    margin: 20px 0 0 0;
    gap: 15px;
  }
  
  .social-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* Soft Divider Style */
.soft-divider {
    width: 100%;
    max-width: 270px;
    height: 1px;
    margin: 24px auto 36px auto;
    background: linear-gradient(90deg, rgba(200, 200, 200, 0.058) 0%, rgba(180,180,180,0.25) 20%, rgba(120,120,120,0.18) 50%, rgba(180,180,180,0.25) 80%, rgba(200,200,200,0) 100%);
    border-radius: 2px;
    
}

/* Exhibitions Page Styles */
.exhibitions-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
}

.exhibitions-container h1 {
    margin-top: 30px;
    margin-bottom: 80px;
}

.exhibition-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.exhibition-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.exhibition-image {
    flex: 0 0 300px;
}

.exhibition-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exhibition-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.exhibition-details {
    flex: 1;
}

.exhibition-details h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.exhibition-details h3 {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.exhibition-info {
    margin-bottom: 20px;
}

.exhibition-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

.exhibition-info strong {
    font-weight: 600;
    color: #1a1a1a;
}

.exhibition-description {
    margin-top: 20px;
}

.exhibition-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* Responsive design for exhibitions */
@media screen and (max-width: 768px) {
    .exhibition-item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .exhibition-image {
        flex: none;
        width: 100%;
    }
    
    .exhibition-image img {
        height: 200px;
    }
    
    .exhibition-details h2 {
        font-size: 1.5rem;
    }
    
    .exhibitions-container {
        padding: 20px 15px;
    }
}

@media screen and (max-width: 480px) {
    .exhibition-details h2 {
        font-size: 1.3rem;
    }
    
    .exhibition-details h3 {
        font-size: 1rem;
    }
    
    .exhibition-info p,
    .exhibition-description p {
        font-size: 0.9rem;
    }
    
    .exhibition-image img {
        height: 180px;
    }
}

/* Contact Page Styles */
.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
}

.contact-container h1 {
    margin-top: 30px;
    margin-bottom: 40px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8e8e8;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.contact-section {
    padding: 30px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.contact-section:hover {
    border-left-color: #999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.contact-details p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

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

.contact-details strong {
    font-weight: 600;
    color: #1a1a1a;
}

.contact-details a {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #666;
    border-bottom-color: #666;
}

.note {
    font-style: italic;
    color: #777;
    font-size: 0.9rem;
    margin-top: 10px;
}

.contact-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.professional-note {
    max-width: 700px;
    margin: 0 auto;
}

.professional-note p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design for Contact Page */
@media screen and (max-width: 768px) {
    .contact-container {
        padding: 15px;
    }
    
    .contact-container h1 {
        margin-bottom: 30px;
    }
    
    .contact-intro {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .contact-section {
        padding: 25px 20px;
    }
    
    .contact-section h2 {
        font-size: 1.2rem;
    }
    
    .contact-footer {
        padding-top: 30px;
    }
}

@media screen and (max-width: 480px) {
    .contact-section {
        padding: 20px 15px;
    }
    
    .contact-section h2 {
        font-size: 1.1rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
    
    .professional-note p {
        font-size: 0.9rem;
    }
}

/* Tablet Responsive for Lightbox (balanced side-by-side) */
@media (min-width: 901px) and (max-width: 1200px) {
    .lightbox { padding: 20px; }
    .lightbox-content { gap: 24px; align-items: center; justify-content: center; }
    .lightbox-img { max-width: 62%; max-height: 70%; margin-top: 10px; }
    .lightbox-info { max-width: 34%; max-height: 70%; padding: 0; }
    .lightbox-info h2 { font-size: 1.5rem; }
    .lightbox-info p { font-size: 0.98rem; }
    /* Controls centered vertically like desktop */
    .nav-btn { width: 40px; height: 40px; top: 50%; bottom: auto; transform: translateY(-50%); }
    .prev-btn { left: 40px; }
    /* Align next button with image edge (info is ~34% width) */
    .next-btn { right: calc(34% + 40px); }
    .close { top: 20px; right: 20px; width: 42px; height: 42px; }
}

/* Mobile & narrow tablet Lightbox Improvements */
@media (max-width: 900px) {
    .lightbox {
        padding: 15px 10px;
    }
    
    .lightbox-content {
        flex-direction: column;
        gap: 15px;
        position: relative;
        height: 100%;
        justify-content: flex-start;
        align-items: center;
    }
    
    .lightbox-img {
        max-width: 95%;
        max-height: 50%;
        margin: 60px auto 0;
        object-fit: contain;
        order: 1;
    }
    
    .lightbox-info {
        max-width: 95%;
        max-height: 30%;
        padding: 0;
        margin: 0 auto;
        order: 3;
        overflow-y: auto;
    }
    
    .lightbox-info h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .lightbox-info p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 7px;
    }
    
    .lightbox-info .details strong {
        font-size: 0.75rem;
    }
    
    /* Mobile navigation container */
    .lightbox-nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 25px;
        width: 100%;
        height: 60px;
        order: 2;
        margin: 10px 0;
    }
    
    /* Override nav button positioning for mobile/narrow tablet */
    .lightbox-content .nav-btn {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 40px;
        height: 40px;
        margin: 0;
    }
    
    .close {
        right: 15px;
        top: 15px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* Fallback for mobile/narrow tablet lightbox navigation */
@media (max-width: 900px) {
    /* Hide the original positioned buttons on mobile if JS fails */
    .lightbox .nav-btn:not(.lightbox-nav-container .nav-btn) {
        display: none !important;
    }
    
    /* Ensure mobile nav container buttons are visible */
    .lightbox-nav-container .nav-btn {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 40px;
        height: 40px;
        transform: none !important;
    }
}

/* Ensure desktop navigation works properly */
@media (min-width: 769px) {
    .lightbox-nav-container {
        display: none !important;
    }
    
    .lightbox .nav-btn {
        display: flex !important;
        position: absolute !important;
    }
}

/* Add hover states for smaller navigation buttons on tablets */
@media (max-width: 768px) {
    .nav-btn:hover {
        transform: scale(1.1);
    }
    
    .nav-btn:active {
        transform: scale(1.05);
    }
}

/* Constrain slider navigation buttons on wide screens */
@media (min-width: 1400px) {
    #tw-slider [data-prev] {
        left: max(3rem, calc(42% - 700px));
    }
    
    #tw-slider [data-next] {
        right: max(3rem, calc(42% - 700px));
    }
}

/* (Removed custom mobile overrides for slider nav buttons to unify design across breakpoints) */

/* === Biography Page Optimizations (iteration 2) === */
.page-bio body, body.page-bio { background:#ffffff; }
body.page-bio { --bio-text:#2e2e2e; --bio-muted:#5e5e5e; --bio-border:rgba(0,0,0,0.07); --bio-accent:#111; }
body.page-bio .navbar { backdrop-filter: blur(6px); background: rgba(255,255,255,0.9); }
body.page-bio .bio-hero { padding-top: clamp(10px, 4vh, 30px); margin-top: clamp(55px, 9vh, 110px); }
body.page-bio .bio-header h1 { color: var(--bio-accent); }
body.page-bio .bio-intro { color: var(--bio-text); }
body.page-bio .exhibition-list { color: var(--bio-text); }
body.page-bio .exhibition-list li:not(:last-child) { border-bottom: 1px solid var(--bio-border); }
body.page-bio .bio-subheading { color: var(--bio-accent); opacity:0.9; }
body.page-bio .bio-subheading:after { background: var(--bio-accent); opacity:0.9; }
body.page-bio .languages { color: var(--bio-muted); }
/* Slightly reduce gap on very wide screens to bring cohesion */
@media (min-width:1600px) { .bio-grid { gap: 120px; } }
/* Reduce top padding below certain height to avoid wasted space */
@media (max-height:760px) and (min-width:921px) { body.page-bio .bio-hero { padding-top: 10px; } .bio-portrait { top: 90px; } }
/* Print friendly */
@media print { body.page-bio .navbar, .site-footer { display:none !important; } body.page-bio { padding-top:0; } .bio-portrait { position:relative; top:auto; } .bio-grid { display:block; } .bio-figure img { max-width:300px; float:right; margin:0 0 20px 30px; box-shadow:none; } }

/* === Biography Page: Font & Image Size Reduction (iteration 3) === */
body.page-bio .bio-header h1 { font-size: clamp(2rem, 3.5vw, 2.7rem); }
body.page-bio .bio-intro { font-size: clamp(0.9rem, 0.95vw + 0.55rem, 1.05rem); }
body.page-bio .exhibition-list { font-size: clamp(0.86rem, 0.78vw + 0.54rem, 0.96rem); }
body.page-bio .languages { font-size: 0.82rem; }
body.page-bio .bio-figure img { width: 92%; margin: 0 auto; display:block; }

@media (max-width: 768px) {
    /* Reduce excessive white space on tablets and mobile */
    body.page-bio { padding-top: 65px; } /* Noticeable reduction from desktop 100px */
    body.page-bio .bio-hero { margin-top: clamp(20px, 3.5vh, 35px); padding-top: clamp(6px, 2vh, 15px); }
}

@media (max-width: 600px) {
    body.page-bio .bio-header h1 { font-size: clamp(1.8rem, 7.4vw, 2.25rem); }
    body.page-bio .bio-intro { font-size: 0.9rem; }
    body.page-bio .exhibition-list { font-size: 0.84rem; }
    body.page-bio .languages { font-size: 0.76rem; }
    body.page-bio .bio-figure img { width: 88%; }
    /* Slightly more space for mobile phones */
    body.page-bio { padding-top: 62px; }
    body.page-bio .bio-hero { margin-top: clamp(16px, 2.5vh, 30px); padding-top: clamp(6px, 2vh, 12px); }
}

@media (max-width: 380px) {
    body.page-bio .bio-intro { font-size: 0.86rem; }
    body.page-bio .exhibition-list { font-size: 0.8rem; }
    body.page-bio .languages { font-size: 0.72rem; }
    /* More noticeable reduction for very small screens */
    body.page-bio .bio-hero { margin-top: clamp(8px, 1.5vh, 18px); padding-top: clamp(2px, 1vh, 6px); }
    
    /* Ultra-compact spacing for very small screens */
    body {
        padding-top: 55px; /* Ultra-minimal for maximum content visibility */
    }
    
    #tw-slider {
        margin-top: 0px; /* No margin for ultra-compact layout */
    }
    
    /* Ultra-compact mobile slider controls */
    .flex.lg\\:hidden {
        margin-top: 5px !important;
        margin-bottom: 15px !important;
    }
    
    /* Ultra-compact h1 spacing */
    h1 {
        margin-top: 5px !important;
        margin-bottom: 15px !important;
    }
}