/* ============================================
   EVA OSTROWSKA — Multi-page portfolio
   Sidebar nav · White cube · Gallery standard
   ============================================ */

/* Screen-reader only — visible to SEO & assistive tech */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

:root {
    --black: #111;
    --text: #111;
    --gray: #666;
    --gray-light: #aaa;
    --rule: #e0e0e0;
    --bg: #fff;
    --serif: 'Cormorant Garamond', 'Georgia', serif;
    --sans: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --sidebar-w: 220px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--black);
    color: #fff;
}


/* ============================
   SIDEBAR — Fixed left nav
   ============================ */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--bg);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 40px 30px 30px;
    overflow-y: auto;
}

.sidebar-name {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 40px;
    line-height: 1.3;
}

.sidebar-name:hover {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.sidebar-label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 10px;
    margin-top: 28px;
}

.sidebar-label:first-of-type {
    margin-top: 0;
}

.sidebar-link {
    display: block;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
    padding: 3px 0;
    transition: color 0.3s;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--black);
}

/* Collapsible "Other" toggle */
.sidebar-toggle {
    cursor: pointer;
    transition: color 0.3s;
}

.sidebar-toggle:hover {
    color: var(--gray);
}

.sidebar-toggle::after {
    content: ' +';
    font-size: 10px;
}

.sidebar-toggle.open::after {
    content: ' \2212';
}

.sidebar-other-items {
    display: none;
    flex-direction: column;
}

.sidebar-other-items.open {
    display: flex;
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-bottom .sidebar-link {
    font-size: 13px;
}


/* ============================
   MOBILE HEADER
   ============================ */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 50px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
}

.mobile-header-name {
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 400;
    color: var(--black);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
    padding: 3px 0;
}

.hamburger span {
    height: 1px;
    background: var(--black);
    display: block;
    transition: transform 0.35s ease, opacity 0.25s;
    transform-origin: center;
}

.hamburger.active span:first-child {
    transform: translateY(3px) rotate(45deg);
}
.hamburger.active span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    top: 50px;
    background: #fff;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    padding: 28px 24px 50px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 2px;
    margin-top: 18px;
}

.mobile-label:first-child {
    margin-top: 0;
}

.mobile-link {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    padding: 2px 0;
}

.mobile-link:hover {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.mobile-link.active {
    color: var(--black);
    font-weight: 500;
}

/* Mobile collapsible "Other" toggle */
.mobile-toggle {
    cursor: pointer;
}

.mobile-toggle::after {
    content: ' +';
    font-size: 10px;
}

.mobile-toggle.open::after {
    content: ' \2212';
}

.mobile-other-items {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.mobile-other-items.open {
    display: flex;
}

.mobile-divider {
    height: 1px;
    background: var(--rule);
    margin: 14px 0;
}


/* ============================
   MAIN CONTENT
   ============================ */

.content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}


/* ============================
   HERO — Home page only
   ============================ */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg);
}

.hero-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-img.loaded {
    opacity: 1;
}

/* Hero caption — subtle location label */
.hero-caption {
    position: absolute;
    bottom: 24px;
    right: 28px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.7);
    pointer-events: none;
}


/* ============================
   SERIES — Category pages
   ============================ */

.series-header {
    text-align: center;
    padding: 80px 40px 0;
    max-width: 700px;
    margin: 0 auto;
}

.series-title {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 4px;
}

.series-years {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.series-statement {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}


/* ============================
   WORKS — Single column, centered
   ============================ */

.works {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px 100px;
}

.work {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.work.visible {
    opacity: 1;
    transform: translateY(0);
}

.work:last-child {
    margin-bottom: 0;
}

/* Image */
.work-img {
    cursor: pointer;
    line-height: 0;
    background-color: #f7f7f7;
}

.work-img img {
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.work-img img.loaded {
    opacity: 1;
}

.work-img.video-embed {
    line-height: normal;
    cursor: default;
}

/* Caption — gallery standard: left-aligned, discreet */
.work-info {
    text-align: left;
    padding-top: 14px;
}

.work-title {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

.work-details {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.5;
    letter-spacing: 0.01em;
}


/* ============================
   ABOUT
   ============================ */

.about {
    padding: 120px 40px 100px;
}

.about-inner {
    max-width: 680px;
    margin: 0 auto;
}

.about-photo-link {
    display: block;
    max-width: 440px;
    margin-bottom: 32px;
}

.about-photo {
    display: block;
    width: 100%;
    height: auto;
}

.about-text p {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 18px;
}

.about-text p:first-child {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.75;
}

.about-text p:last-of-type {
    margin-bottom: 0;
}


/* ============================
   EXHIBITION VIEWS
   ============================ */

.exhibition-views {
    padding: 0 40px 100px;
    max-width: 900px;
    margin: 0 auto;
}

.exhibition-block {
    margin-bottom: 60px;
}

.exhibition-block:last-child {
    margin-bottom: 0;
}

.exhibition-block h3 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 6px;
}

.exhibition-block .exhibition-details {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    margin-bottom: 20px;
}

.exhibition-block img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
    background: var(--img-bg);
}

.exhibition-block img:last-child {
    margin-bottom: 0;
}

.exhibition-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    margin-top: 12px;
    transition: color 0.3s;
}

.exhibition-link:hover {
    color: var(--text);
}


/* ============================
   CV
   ============================ */

.cv {
    padding: 80px 40px 100px;
}

.cv-inner {
    max-width: 680px;
    margin: 0 auto;
}

.cv-intro {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 50px;
}

.cv-block {
    margin-bottom: 48px;
}

.cv-block:last-child {
    margin-bottom: 0;
}

.cv-block h3 {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 20px;
}

.cv-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.cv-list li {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
    padding: 3px 0;
}

.cv-list li::marker {
    color: var(--text);
    font-size: 10px;
}

.cv-list li em {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 500;
}

/* Legacy cv-line support */
.cv-line {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 20px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
    padding: 8px 0;
}

.cv-line span {
    color: var(--gray);
    white-space: nowrap;
}

.cv-line em {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 500;
}


/* ============================
   PDF LINKS
   ============================ */

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.pdf-link:hover {
    color: var(--black);
}

.pdf-link svg {
    flex-shrink: 0;
}

.about-downloads {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

.cv-download {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}


/* ============================
   PRESS
   ============================ */

.press {
    padding: 80px 40px 100px;
}

.press-inner {
    max-width: 680px;
    margin: 0 auto;
}

.press-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--rule);
    align-items: baseline;
}

.press-item:first-child {
    padding-top: 0;
}

.press-item:last-child {
    border-bottom: none;
}

.press-year {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
    min-width: 44px;
    flex-shrink: 0;
}

.press-content h3 {
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.press-publication {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray);
    margin-bottom: 10px;
}

.press-publication em {
    font-family: var(--sans);
    font-style: italic;
    font-weight: 500;
}

.press-excerpt {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 12px;
}


/* ============================
   CONTACT
   ============================ */

.contact {
    padding: 120px 40px 100px;
}

.contact-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.contact-email {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    display: inline-block;
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.contact-email:hover {
    opacity: 0.5;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-links a {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    transition: color 0.3s;
}

.contact-links a:hover {
    color: var(--black);
}


/* ============================
   FOOTER
   ============================ */

.footer {
    border-top: 1px solid var(--rule);
    padding: 20px 40px;
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    color: var(--gray-light);
}


/* ============================
   LIGHTBOX
   ============================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 26px;
    font-weight: 400;
    color: var(--gray);
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--black);
}

.lightbox-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 80vw;
    max-height: 88vh;
    transform: scale(0.97);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s;
}

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

.lightbox-body img {
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
}

.lightbox-caption {
    text-align: center;
    margin-top: 16px;
}

.lightbox-caption h3 {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    color: var(--text);
    margin-bottom: 4px;
}

.lightbox-caption p {
    font-size: 11px;
    font-weight: 400;
    color: var(--gray);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--gray-light);
    padding: 12px;
    transition: color 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--black);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }


/* ============================
   RESPONSIVE
   ============================ */

/* iPad landscape & small laptops */
@media (max-width: 1024px) {
    :root { --sidebar-w: 190px; }
    .sidebar { padding: 36px 24px 24px; }
    .sidebar-name { font-size: 18px; margin-bottom: 32px; }
    .sidebar-link { padding: 4px 0; }
}

/* iPad portrait & tablets */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .mobile-header { display: flex; }

    .content {
        margin-left: 0;
        padding-top: 50px;
    }

    /* Hero takes full width on mobile, no top padding */
    .content--home {
        padding-top: 0;
    }

    .hero-img {
        object-position: 25% 30%;
    }

    .hero-caption {
        bottom: 20px;
        right: 20px;
        font-size: 10px;
    }

    .series-header {
        padding: 40px 24px 0;
    }

    .works {
        padding: 40px 24px 60px;
    }

    .work {
        margin-bottom: 60px;
    }

    .about,
    .cv,
    .press,
    .contact {
        padding: 40px 24px 60px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-portrait {
        max-width: 320px;
    }

    .press-item {
        flex-direction: column;
        gap: 4px;
    }

    .lightbox-body { max-width: 92vw; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* iPhone & small phones */
@media (max-width: 480px) {
    .mobile-header { height: 46px; padding: 0 20px; }
    .mobile-header-name { font-size: 18px; }

    .content { padding-top: 46px; }
    .content--home { padding-top: 0; }

    .hero-img {
        object-position: 20% 35%;
    }

    .hero-caption {
        bottom: 16px;
        right: 16px;
        left: 16px;
        text-align: right;
        font-size: 9px;
    }

    .series-header { padding: 30px 20px 0; }
    .series-statement { font-size: 13px; line-height: 1.7; }
    .works { padding: 30px 20px 50px; }
    .work { margin-bottom: 50px; }
    .work-title { font-size: 12px; }
    .work-details { font-size: 11px; }
    .about, .cv, .press, .contact { padding: 30px 20px 50px; }
    .contact-email { font-size: 18px; }
    .footer { padding: 16px 20px; font-size: 10px; }
}
