/* =========================================================
   SANJA LATINOVIĆ — GLAVNI STILOVI
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 4vw;
    border-bottom: 1px solid #ececec;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.brand {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    gap: 28px;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.main-nav a {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
}

.menu-toggle {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
}

/* =========================================================
   HOME
   ========================================================= */

.hero {
    min-height: calc(100vh - 78px);
    display: grid;
    place-items: center;
    padding: 8vw 4vw;
    text-align: center;
    background: #f4f4f2;
}

.hero h1 {
    margin: 0;
    font-size: clamp(48px, 9vw, 128px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.hero p {
    max-width: 650px;
    margin: 30px auto 0;
    color: #5b5b5b;
    font-size: 18px;
}

/* =========================================================
   WORKS
   ========================================================= */

.section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 76px 40px 110px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 42px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 400;
    letter-spacing: -0.04em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px 28px;
}

.project-card {
    display: block;
    min-width: 0;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: transparent;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.012);
    opacity: 0.94;
}

.project-card h2 {
    margin: 15px 0 4px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
}

.project-card p {
    margin: 0;
    color: #777;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* =========================================================
   POJEDINAČNI PROJEKAT
   ========================================================= */

.project-page {
    width: 100%;
    overflow: hidden;
}

.project-title-wrap {
    padding: 68px 40px 42px;
}

.project-title-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.project-kicker {
    margin: 0 0 16px;
    color: #888;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.project-title-wrap h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(46px, 7vw, 96px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 24px;
    color: #777;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-meta span + span::before {
    content: "•";
    margin-right: 20px;
    color: #bbb;
}

/* Naslovna slika — bez sivog rama */

.project-cover {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
}

.project-cover-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.project-cover-button img {
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: cover;
    object-position: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: opacity 0.3s ease;
}

.project-cover-button:hover img {
    opacity: 0.95;
}

.image-zoom-label {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

/* Tekst projekta */

.project-copy-section {
    padding: 76px 40px 86px;
}

.bilingual-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(50px, 7vw, 100px);
    width: min(1080px, 100%);
    margin: 0 auto;
}

.language-copy {
    min-width: 0;
    font-size: 16px;
    line-height: 1.72;
}

.language-label {
    margin-bottom: 24px;
    padding-bottom: 11px;
    border-bottom: 1px solid #ddd;
    color: #777;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legacy-project-copy {
    width: min(820px, 100%);
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.72;
}

.rich-text {
    font-size: 16px;
}

.rich-text p:first-child {
    margin-top: 0;
}

.rich-text h2,
.rich-text h3 {
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.rich-text a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Galerija */

.project-gallery-section {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
    padding: 0 0 110px;
}

.project-gallery-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
    color: #777;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-gallery-item {
    min-width: 0;
    margin: 0;
}

.project-gallery-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.project-gallery-button img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.project-gallery-button:hover img {
    transform: scale(1.02);
    opacity: 0.94;
}

.gallery-item-number {
    position: absolute;
    right: 10px;
    bottom: 10px;
    min-width: 32px;
    padding: 7px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 10px;
    letter-spacing: 0.08em;
    backdrop-filter: blur(10px);
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.project-lightbox.is-open {
    display: block;
}

.project-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.94);
}

.project-lightbox-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    padding: 52px 74px 28px;
}

.project-lightbox-stage {
    display: grid;
    place-items: center;
    min-height: 0;
}

.project-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 125px);
    object-fit: contain;
}

.project-lightbox-close,
.project-lightbox-nav {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-lightbox-close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 30px;
}

.project-lightbox-nav {
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    font-size: 36px;
}

.project-lightbox-prev {
    left: 18px;
}

.project-lightbox-next {
    right: 18px;
}

.project-lightbox-close:hover,
.project-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.project-lightbox-footer {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding-top: 16px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.08em;
}

body.lightbox-open {
    overflow: hidden;
}

/* =========================================================
   CV
   ========================================================= */

.cv-page {
    width: 100%;
    padding-bottom: 110px;
}

.cv-page-header {
    padding: 68px 40px 42px;
}

.cv-page-header-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.cv-kicker {
    margin: 0 0 16px;
    color: #888;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cv-page-header h1 {
    margin: 0;
    font-size: clamp(46px, 7vw, 96px);
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.cv-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(55px, 7vw, 110px);
    width: min(1280px, calc(100% - 80px));
    margin: 0 auto;
    padding-top: 24px;
}

.cv-column {
    min-width: 0;
}

.cv-section {
    padding: 0 0 36px;
}

.cv-column-right .cv-section + .cv-section {
    padding-top: 34px;
    border-top: 1px solid #e1e1e1;
}

.cv-section h2 {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.cv-content {
    color: #5d5d5d;
    font-size: 16px;
    line-height: 1.56;
}

.cv-content p {
    margin: 0 0 16px;
}

.cv-content ul,
.cv-content ol {
    margin: 0;
    padding-left: 24px;
}

.cv-content li {
    margin-bottom: 7px;
}

.cv-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cv-written-by {
    margin: -8px 0 18px;
    color: #555;
    font-size: 15px;
}

.cv-legacy,
.cv-empty {
    width: min(1080px, calc(100% - 80px));
    margin: 0 auto;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   OSTALE STRANICE
   ========================================================= */

.content-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 80px 40px;
}

.content-page h1 {
    margin: 0 0 48px;
    font-size: clamp(46px, 7vw, 90px);
    font-weight: 400;
    letter-spacing: -0.05em;
}

.contact-card {
    padding: 42px;
    background: #f4f4f2;
}

.contact-card a {
    text-decoration: underline;
}

.site-footer {
    padding: 30px 4vw;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 13px;
}

.empty {
    padding: 70px 0;
    color: #777;
}

/* =========================================================
   LEGACY SADRŽAJ
   ========================================================= */

.legacy-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    margin: 0 0 44px;
}

.legacy-col {
    min-width: 0;
}

.legacy-text > :first-child {
    margin-top: 0;
}

.legacy-space {
    height: 28px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {
    .section,
    .project-title-wrap,
    .project-copy-section,
    .cv-page-header {
        padding-left: 30px;
        padding-right: 30px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-cover,
    .project-gallery-section,
    .cv-layout {
        width: min(100% - 60px, 1180px);
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cv-layout {
        gap: 50px;
    }
}

/* =========================================================
   MOBILNI
   ========================================================= */

@media (max-width: 760px) {
    .site-header {
        padding: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        gap: 18px;
        padding: 24px 20px;
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section {
        padding: 52px 20px 80px;
    }

    .section-head {
        margin-bottom: 30px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-title-wrap {
        padding: 48px 20px 32px;
    }

    .project-title-wrap h1 {
        font-size: clamp(42px, 14vw, 68px);
    }

    .project-cover {
        width: calc(100% - 40px);
    }

    .project-cover-button img {
        max-height: none;
        object-fit: contain;
    }

    .project-copy-section {
        padding: 56px 20px 64px;
    }

    .bilingual-copy {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .project-gallery-section {
        width: calc(100% - 40px);
        padding-bottom: 80px;
    }

    .project-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-gallery-button img {
        aspect-ratio: auto;
        max-height: none;
        object-fit: contain;
    }

    .project-lightbox-dialog {
        padding: 58px 14px 22px;
    }

    .project-lightbox-nav {
        top: auto;
        bottom: 18px;
        width: 42px;
        height: 42px;
    }

    .project-lightbox-prev {
        left: 14px;
    }

    .project-lightbox-next {
        right: 14px;
    }

    .project-lightbox-footer {
        justify-content: center;
        padding: 15px 55px 0;
        text-align: center;
    }

    #project-lightbox-caption {
        display: none;
    }

    .cv-page {
        padding-bottom: 75px;
    }

    .cv-page-header {
        padding: 48px 20px 34px;
    }

    .cv-page-header h1 {
        font-size: clamp(42px, 14vw, 68px);
    }

    .cv-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        width: calc(100% - 40px);
        padding-top: 10px;
    }

    .cv-column-right {
        padding-top: 30px;
        border-top: 1px solid #ddd;
    }

    .cv-content {
        font-size: 16px;
        line-height: 1.62;
    }

    .content-page {
        padding: 58px 20px;
    }

    .legacy-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 390px) {
    .section,
    .project-title-wrap,
    .project-copy-section,
    .content-page,
    .cv-page-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .project-cover,
    .project-gallery-section,
    .cv-layout {
        width: calc(100% - 32px);
    }
}
/* =========================================================
   NOVA NASLOVNA STRANA
   ========================================================= */

.home-art {
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    padding: 54px 40px 70px;
}

.home-art-inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(48px, 7vw, 110px);
    width: min(1280px, 100%);
    margin: 0 auto;
}

.home-art-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 0;
}

.home-art-eyebrow {
    margin: 0 0 28px;
    color: #777;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-art-copy h1 {
    margin: 0;
    font-size: clamp(58px, 8vw, 118px);
    font-weight: 400;
    line-height: 0.83;
    letter-spacing: -0.065em;
}

.home-art-copy h1 span {
    display: block;
}

.home-art-intro {
    max-width: 410px;
    margin: 34px 0 0;
    color: #5d5d5d;
    font-size: 17px;
    line-height: 1.65;
}

.home-art-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding-bottom: 5px;
    border-bottom: 1px solid #111;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-art-link span {
    transition: transform 0.25s ease;
}

.home-art-link:hover span {
    transform: translate(3px, -3px);
}

.home-art-visual {
    min-width: 0;
}

.home-art-image-link {
    display: block;
    overflow: hidden;
    background: transparent;
}

.home-art-image-link img {
    width: 100%;
    height: min(68vh, 760px);
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s ease, opacity 0.4s ease;
}

.home-art-image-link:hover img {
    transform: scale(1.012);
    opacity: 0.96;
}

.home-art-placeholder {
    min-height: 620px;
    display: grid;
    place-items: center;
    background: #f1f1ef;
    color: #888;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-art-caption {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-top: 16px;
}

.home-art-caption > div {
    display: grid;
    gap: 4px;
}

.home-art-caption-label {
    color: #888;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-art-caption strong {
    font-size: 16px;
    font-weight: 400;
}

.home-art-caption small {
    color: #777;
    font-size: 12px;
}

.home-art-caption > a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding-top: 2px;
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Tablet */

@media (max-width: 980px) {
    .home-art {
        padding-left: 30px;
        padding-right: 30px;
    }

    .home-art-inner {
        grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
        gap: 42px;
    }

    .home-art-copy h1 {
        font-size: clamp(52px, 8vw, 88px);
    }

    .home-art-image-link img {
        height: min(62vh, 680px);
    }
}

/* Mobilni */

@media (max-width: 760px) {
    .home-art {
        min-height: auto;
        padding: 48px 20px 72px;
    }

    .home-art-inner {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .home-art-copy {
        padding: 0;
    }

    .home-art-eyebrow {
        margin-bottom: 20px;
    }

    .home-art-copy h1 {
        font-size: clamp(58px, 20vw, 92px);
        line-height: 0.87;
    }

    .home-art-intro {
        margin-top: 26px;
        font-size: 16px;
    }

    .home-art-link {
        margin-top: 27px;
    }

    .home-art-image-link img {
        width: 100%;
        height: auto;
        max-height: 72vh;
        object-fit: contain;
    }

    .home-art-placeholder {
        min-height: 430px;
    }

    .home-art-caption {
        gap: 20px;
        padding-top: 14px;
    }
}

@media (max-width: 430px) {
    .home-art {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-art-caption {
        flex-direction: column;
        gap: 14px;
    }
}
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-credit a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.site-credit a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
.project-video-section{width:min(1180px,calc(100% - 80px));margin:70px auto 0}.project-video-frame{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#000}.project-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}@media(max-width:760px){.project-video-section{width:calc(100% - 40px);margin-top:42px}}@media(max-width:390px){.project-video-section{width:calc(100% - 32px)}}
/* VIDEO NA STRANICI PROJEKTA */

.project-video-section {
    width: min(1180px, calc(100% - 80px));
    margin: 70px auto 0;
}

.project-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.project-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-video-fallback {
    width: min(1180px, calc(100% - 80px));
    margin: 55px auto 0;
    padding: 24px;
    border: 1px solid #e2e2e2;
    text-align: center;
}

.project-video-fallback p {
    margin: 0 0 10px;
    color: #777;
}

.project-video-fallback a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    .project-video-section,
    .project-video-fallback {
        width: calc(100% - 40px);
        margin-top: 42px;
    }
}

@media (max-width: 390px) {
    .project-video-section,
    .project-video-fallback {
        width: calc(100% - 32px);
    }
}
@media (max-width: 760px) {
    .project-video-section,
    .project-video-fallback {
        width: calc(100% - 40px) !important;
        margin-top: 42px !important;
    }
}

@media (max-width: 390px) {
    .project-video-section,
    .project-video-fallback {
        width: calc(100% - 32px) !important;
    }
}