@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #111;
    font-family: "EB Garamond", Garamond, serif;
    font-size: 18px;
    line-height: 1.25;
}


/* MENU */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 25px;
    z-index: 100;
    pointer-events: none;
}

.site-title {
    position: absolute;
    left: 25px;
    top: 18px;
    font-size: clamp(28px, 4vw, 58px);
    line-height: .82;
    text-transform: uppercase;
    pointer-events: auto;
}

nav {
    position: absolute;
    right: 25px;
    top: 22px;
    text-align: right;
    pointer-events: auto;
}

nav a {
    display: block;
    color: #111;
    text-decoration: none;
    transition: opacity .2s ease;
}

nav a:hover {
    opacity: .45;
}

nav .space {
    height: 18px;
}


/* HOME */

.home {
    height: 100vh;
    min-height: 650px;
}


/* PAGES */

.page {
    padding: 150px 25px 100px;
    max-width: 1500px;
    margin: auto;
}

.project-title {
    text-align: center;
    font-size: clamp(30px, 4vw, 60px);
    margin-bottom: 90px;
}


/* PROJECT INFORMATION */

.project-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 100px;
    margin-bottom: 150px;
}

.project-info .press {
    text-align: right;
}

.project-info p {
    margin: 0 0 20px;
}

.project-info a {
    color: inherit;
}


/* EXHIBITION INFORMATION */

.exhibition-info {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 50px;
    margin-top: 180px;
    margin-bottom: 70px;
}

.exhibition-info p {
    margin: 0 0 20px;
}

.exhibition-press {
    font-size: 16px;
}

.exhibition-description {
    max-width: 700px;
}


/* EXHIBITION LINKS */

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: baseline;

    margin-bottom: 150px;

    font-size: 16px;
}

.project-links a,
.project-links a:visited {
    color: #111;
    text-decoration: none;
}

.project-links a:hover {
    opacity: .45;
}


/* IMAGES */

.image-large {
    width: 70%;
    display: block;
    margin: 0 auto 100px;
}

.image-medium {
    width: 70%;
    display: block;
    margin: 0 auto 100px;
}

.image-small {
    width: 45%;
    display: block;
    margin: 0 auto 100px;
}


/* ISOLATED WORKS */

.work.image-large img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}


/* TWO IMAGES */

.two-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 100px;
}

.two-images .work {
    position: relative;
    margin: 0;
}

.two-images img {
    width: 100%;
    height: auto;
    display: block;
}


/* HOVER CAPTIONS */

.work {
    position: relative;
}

.work figcaption {
    position: absolute;
    bottom: 0;
    left: 0;

    padding: 12px 16px;

    background: rgba(255, 255, 255, 0.88);
    color: #111;

    font-size: 16px;
    line-height: 1.2;

    opacity: 0;
    transition: opacity 0.25s ease;

    pointer-events: none;
}


/* NORMAL CAPTIONS */

.work figcaption:not(.caption-left):not(.caption-right) {
    width: 100%;
}


/* TWO CAPTIONS — IMAGE 5 */

.work .caption-left {
    left: 0;
    right: auto;
    width: auto;
    white-space: nowrap;
}

.work .caption-right {
    left: auto;
    right: 0;
    width: auto;
    white-space: nowrap;
}

.work:hover figcaption {
    opacity: 1;
}



/* =========================================================
   MEMORABÍLIA
   ========================================================= */

#memorabilia .memorabilia-mosaic {
    display: grid;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto 100px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 45px;
    gap: 14px;
    align-items: stretch;
}

#memorabilia .mosaic-item {
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

#memorabilia .mosaic-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Posições do mosaico */

#memorabilia .mosaic-7 {
    grid-column: 1 / span 3;
    grid-row: 1 / span 5;
}

#memorabilia .mosaic-8 {
    grid-column: 4 / span 3;
    grid-row: 1 / span 4;
}

#memorabilia .mosaic-9 {
    grid-column: 7 / span 2;
    grid-row: 1 / span 3;
}

#memorabilia .mosaic-0 {
    grid-column: 9 / span 4;
    grid-row: 1 / span 5;
}

#memorabilia .mosaic-10 {
    grid-column: 1 / span 3;
    grid-row: 6 / span 4;
}

#memorabilia .mosaic-11 {
    grid-column: 4 / span 4;
    grid-row: 5 / span 4;
}

#memorabilia .mosaic-5 {
    grid-column: 8 / span 2;
    grid-row: 6 / span 4;
}

#memorabilia .mosaic-12 {
    grid-column: 10 / span 3;
    grid-row: 6 / span 3;
}

#memorabilia .mosaic-13 {
    grid-column: 1 / span 3;
    grid-row: 10 / span 4;
}

#memorabilia .mosaic-14 {
    grid-column: 4 / span 3;
    grid-row: 9 / span 4;
}

#memorabilia .mosaic-15 {
    grid-column: 7 / span 3;
    grid-row: 10 / span 4;
}

#memorabilia .mosaic-3 {
    grid-column: 10 / span 3;
    grid-row: 10 / span 3;
}

#memorabilia .mosaic-17 {
    grid-column: 1 / span 4;
    grid-row: 15 / span 4;
}

#memorabilia .mosaic-18 {
    grid-column: 5 / span 3;
    grid-row: 14 / span 4;
}

#memorabilia .mosaic-19 {
    grid-column: 8 / span 5;
    grid-row: 14 / span 5;
}

/* Fotografias a preto e branco + texto */

#memorabilia .memorabilia-bottom {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin: 0 auto 100px;
    max-width: 1250px;
}

#memorabilia .memorabilia-bw-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 360px;
    align-items: start;
}

#memorabilia .memorabilia-bw-pair figure {
    min-width: 0;
    margin: 0;
}

#memorabilia .memorabilia-bw-pair img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

#memorabilia .memorabilia-text {
    width: 100%;
    max-width: 500px;
    margin: 0;
}

#memorabilia .memorabilia-text p {
    margin: 0;
}

/* Telemóveis */

@media (max-width: 700px) {
    #memorabilia .memorabilia-mosaic {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 45px;
        gap: 8px;
        margin-bottom: 60px;
    }

    #memorabilia .mosaic-item {
        grid-column: auto / span 2;
        grid-row: auto / span 4;
    }

    #memorabilia .mosaic-0,
    #memorabilia .mosaic-17,
    #memorabilia .mosaic-19 {
        grid-column: span 4;
        grid-row: auto / span 5;
    }

    #memorabilia .memorabilia-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    #memorabilia .memorabilia-bw-pair {
        max-width: 320px;
        gap: 10px;
    }

    #memorabilia .memorabilia-text {
        max-width: none;
    }
}

/* =========================================================
   NOS BONS LUGARES HÁ SEMPRE VENTO
   ========================================================= */


/* TÍTULO */

.project-title-video {
    line-height: 1;
    margin-bottom: 80px;
}

.project-title-video span {
    display: block;
    margin-top: 14px;

    color: #999;

    font-size: 0.42em;
    font-style: normal;
    line-height: 1.2;
}


/* VIMEO */

.vimeo-container {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto 100px;

    position: relative;
    aspect-ratio: 16 / 9;
}

.vimeo-container iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

/* NOS BONS LUGARES — imagem 7 + texto */

#nosbonslugareshasemprevento .nos-bons-lugares-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 100px auto 0;
    gap: 80px;
}

#nosbonslugareshasemprevento .nos-bons-lugares-view {
    display: block;
    width: 30% !important;
    flex: 0 0 30% !important;
    margin: 0;
    position: relative;
}

#nosbonslugareshasemprevento .nos-bons-lugares-view img {
    display: block;
    width: 100%;
    height: auto;
}

#nosbonslugareshasemprevento .nos-bons-lugares-view figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.88);
    color: #111;
    font-size: 14px;
    line-height: 1.3;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

#nosbonslugareshasemprevento .nos-bons-lugares-view:hover figcaption {
    opacity: 1;
}

#nosbonslugareshasemprevento .nos-bons-lugares-text {
    display: block;
    flex: 1 1 0;
    width: auto !important;
    max-width: 600px;
    margin: 0;
}

/* MOBILE */

@media (max-width: 700px) {

    body {
        font-size: 17px;
    }

    header {
        position: absolute;
    }

    .site-title {
        position: relative;
        left: 0;
        top: 0;
        font-size: 38px;
    }

    nav {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 35px;
        text-align: left;
    }

    .home {
        height: auto;
        min-height: 100vh;
    }

    .page {
        padding: 300px 15px 60px;
    }

    .project-title {
        text-align: left;
        margin-bottom: 60px;
    }

    .project-info {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 60px;
        margin-bottom: 100px;
    }

    .project-info .press {
        text-align: left;
    }


    /* EXHIBITION INFORMATION ON MOBILE */

    .exhibition-info {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 100px;
        margin-bottom: 60px;
    }

    .exhibition-description {
        max-width: none;
    }

    .exhibition-press {
        font-size: 16px;
    }


    /* EXHIBITION LINKS ON MOBILE */

    .project-links {
        gap: 15px 25px;
        margin-bottom: 100px;
    }


    /* ISOLATED WORKS ON MOBILE */

    .image-large {
        width: 100%;
        margin-bottom: 50px;
    }

    .work.image-large img {
        width: 100%;
    }

    .image-medium,
    .image-small {
        width: 100%;
        margin-bottom: 50px;
    }


    /* TWO IMAGES ON MOBILE */

    .two-images {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 50px;
    }


    /* CAPTIONS ON MOBILE */

    .work figcaption {
        position: static;
        width: 100% !important;
        opacity: 1;
        background: none;
        padding: 8px 0 0;
        font-size: 15px;
        white-space: normal !important;
    }


    /* ABOUT */

    .about {
        margin: 0;
    }


   /* =========================================================
   MEMORABÍLIA — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .memorabilia-main {
        width: 100%;
        margin-bottom: 70px;
    }

    .memorabilia-main figcaption {
        font-size: 15px;
        padding-top: 8px;
    }


    .memorabilia-pair {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 90px;
    }


    .memorabilia-mosaic {

        width: 100%;
        margin-bottom: 100px;

        grid-template-columns: repeat(2, 1fr);

        grid-auto-rows: auto;

        column-gap: 8px;
        row-gap: 8px;
    }


    /* No telemóvel deixamos o mosaico
       voltar a uma composição simples,
       porque 12 colunas seriam demasiado apertadas. */

    .mosaic-7 {
        grid-column: 1 / span 1;
        grid-row: auto;
    }

    .mosaic-8 {
        grid-column: 2 / span 1;
        grid-row: auto;
    }

    .mosaic-9 {
        grid-column: 1 / span 1;
        grid-row: auto;
    }

    .mosaic-10 {
        grid-column: 2 / span 1;
        grid-row: auto;
    }

    .mosaic-11 {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

    .mosaic-12 {
        grid-column: 1 / span 1;
        grid-row: auto;
    }

    .mosaic-13 {
        grid-column: 2 / span 1;
        grid-row: auto;
    }

    .mosaic-14 {
        grid-column: 1 / span 1;
        grid-row: auto;
    }

    .mosaic-15 {
        grid-column: 2 / span 1;
        grid-row: auto;
    }

    .mosaic-3 {
        grid-column: 1 / span 1;
        grid-row: auto;
    }

    .mosaic-17 {
        grid-column: 2 / span 1;
        grid-row: auto;
    }

    .mosaic-18 {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

    .mosaic-19 {
        grid-column: 1 / span 2;
        grid-row: auto;
    }


    .memorabilia-text {
        width: 100%;
    }

}
    }
#nosbonslugareshasemprevento .nos-bons-lugares-info {
    display: block !important;
    width: 100%;
    margin-top: 60px;
}

#nosbonslugareshasemprevento .nos-bons-lugares-view {
    width: 65% !important;
    margin: 0 auto 50px;
}

#nosbonslugareshasemprevento .nos-bons-lugares-text {
    width: 100% !important;
    max-width: none;
}

/* =========================================================
   DÉJÀ VU — CAROUSEL + LAYOUT
   Tudo está limitado a #deja-vu
   ========================================================= */

#deja-vu .project-title-film {
    margin-bottom: 80px;
}

#deja-vu .film-poster {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 110px;
}

#deja-vu .film-poster img {
    display: block;
    width: 100%;
    height: auto;
}


/* =========================
   CAROUSEL
   ========================= */

#deja-vu .film-carousel {
    position: relative;
    width: 75%;
    max-width: 1100px;
    margin: 0 auto 120px;
}

#deja-vu .carousel-slides {
    position: relative;
    width: 100%;
}

#deja-vu .carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    margin: 0;
}

#deja-vu .carousel-slide.active {
    display: block;
}

#deja-vu .carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Setas */

#deja-vu .carousel-prev,
#deja-vu .carousel-next {
    position: absolute;
    top: 50%;
    z-index: 5;

    transform: translateY(-50%);

    background: none;
    border: none;

    padding: 10px;

    font-family: inherit;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;

    color: #111;

    cursor: pointer;
}


/* Setas do carrossel */

#deja-vu .carousel-prev,
#deja-vu .carousel-next {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    padding: 0;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #111;
    border-radius: 50%;

    font-family: inherit;
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    color: #111;

    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#deja-vu .carousel-prev {
    left: 12px;
}

#deja-vu .carousel-next {
    right: 12px;
}

#deja-vu .carousel-prev:hover,
#deja-vu .carousel-next:hover {
    background: #111;
    color: #fff;
}
/* Caption */

#deja-vu .carousel-slide figcaption {
    position: absolute;
    right: 10px;
    bottom: 8px;
    left: auto;

    width: auto;

    padding: 3px 6px;

    background: rgba(255, 255, 255, 0.75);

    font-size: 11px;
    line-height: 1.2;

    opacity: 1;

    pointer-events: none;
}

/* =========================
   SINOPSE + FICHA TÉCNICA
   ========================= */

#deja-vu .film-info {
    display: flex;
    align-items: flex-start;
    gap: 100px;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto 100px;
}

#deja-vu .film-synopsis {
    flex: 1 1 0;
    max-width: 600px;
}

#deja-vu .film-credits {
    flex: 0 0 300px;
}

#deja-vu .film-credits .film-links {
    width: 100%;
    margin: 30px 0 0;
}

#deja-vu .film-credits .film-links p {
    margin: 0 0 8px;
}

#deja-vu .film-credits .film-links a,
#deja-vu .film-credits .film-links a:visited {
    color: #111;
    text-decoration: underline;
    text-decoration-color: #111;
}

#deja-vu .film-credits .film-links a:hover,
#deja-vu .film-credits .film-links a:focus {
    color: #111;
    opacity: 0.5;
}

#deja-vu .film-info h3,
#deja-vu .film-request h3 {
    margin-top: 0;
    margin-bottom: 25px;

    font-size: inherit;
    font-weight: normal;
}

#deja-vu .film-info p {
    margin-bottom: 25px;
}


/* =========================
   SCREENING
   ========================= */

#deja-vu .film-screening {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto 60px;
}

#deja-vu .film-screening p {
    margin: 0;
}


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


#deja-vu .film-links a,
#deja-vu .film-links a:visited {
    color: #111;
    text-decoration: underline;
    text-decoration-color: #111;
}

#deja-vu .film-links a:hover,
#deja-vu .film-links a:focus {
    color: #111;
    opacity: 0.5;
}

/* =========================
   REQUEST THE FILM
   ========================= */

#deja-vu .film-request {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 100px;
}

#deja-vu .film-request a {
    color: inherit;
    text-decoration: none;
}

#deja-vu .film-request a:hover {
    text-decoration: underline;
}

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

@media (max-width: 700px) {

    #deja-vu .project-title-film {
        margin-bottom: 50px;
    }

    #deja-vu .film-poster {
        width: 90%;
        margin-bottom: 70px;
    }

    #deja-vu .film-carousel {
        width: 100%;
        margin-bottom: 80px;
    }

    #deja-vu .carousel-prev,
    #deja-vu .carousel-next {
        font-size: 30px;
        padding: 12px;
    }

    #deja-vu .carousel-prev {
        left: -5px;
    }

    #deja-vu .carousel-next {
        right: -5px;
    }

    #deja-vu .carousel-slide figcaption {
        font-size: 12px;
        padding: 8px 10px;
    }

    #deja-vu .film-info {
        display: block;
        width: 90%;
        margin-bottom: 70px;
    }

    #deja-vu .film-synopsis {
        max-width: none;
        margin-bottom: 60px;
    }

    #deja-vu .film-credits {
        width: 100%;
    }

    #deja-vu .film-screening,
    #deja-vu .film-links {
        width: 90%;
    }

    #deja-vu .film-links {
        margin-bottom: 80px;
    }

    #deja-vu .film-request {
        width: 90%;
        margin-bottom: 80px;
    }
}

/* =========================================================
   REQUEST THE FILM — SEPARATE PAGE
   ========================================================= */

.request-film-page {
    min-height: 100vh;
    box-sizing: border-box;

    padding: 100px 40px;
}

.request-film-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.request-film-content h1 {
    margin: 0 0 50px;

    font-size: inherit;
    font-weight: normal;
}

.request-film-intro {
    margin-bottom: 50px;
    max-width: 500px;
}

.request-film-content form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.request-film-content label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.request-film-content input,
.request-film-content textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 10px;

    border: 1px solid #111;
    border-radius: 0;

    background: transparent;

    font-family: inherit;
    font-size: inherit;
}

.request-film-content textarea {
    resize: vertical;
}

.request-film-content button {
    align-self: flex-start;

    padding: 10px 18px;

    border: 1px solid #111;
    border-radius: 0;

    background: transparent;

    font-family: inherit;
    font-size: inherit;

    cursor: pointer;
}

.request-film-content button:hover {
    background: #111;
    color: #fff;
}

.request-film-back {
    display: inline-block;

    margin-top: 60px;

    color: inherit;
    text-decoration: none;
}

.request-film-back:hover {
    text-decoration: underline;
}


@media (max-width: 700px) {

    .request-film-page {
        padding: 70px 25px;
    }

    .request-film-content {
        max-width: none;
    }

}
