/**************************************************************
    Pau Luzon Stylesheet
    by celiamateu.com
**************************************************************/



/**************************************************************
    TYPOGRAPHY — PP Gosha Sans
**************************************************************/

@font-face {
    font-family: 'PP Gosha Sans';
    src: url('../fonts/PPGoshaSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Gosha Sans';
    src: url('../fonts/PPGoshaSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}



/**************************************************************
    DESKTOP SCALE
    Keeps the current look up to 1728px wide and scales up
    smoothly on larger desktop screens until 2560px.
**************************************************************/

:root {
    --desktop-fluid-width: 1728px;
}

@media (min-width: 1728px) {
    :root {
        --desktop-fluid-width: clamp(1728px, 100vw, 2560px);
    }
}



/**************************************************************
    BASE: HORIZONTAL LAYOUT
**************************************************************/

body {
    margin: 0 !important;
    padding: 0 !important;
    
}

#home h1,
#home h2 {
    font-weight: normal !important;
}

.pl-wrapper {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100vw;
    height: 100vh;
    scrollbar-width: none;
}

.pl-wrapper::-webkit-scrollbar {
    display: none;
}

.pl-panel {
    flex: 0 0 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}




/* 🔒 BLOQUEIG GLOBAL DEL SCROLL */
body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* 🔒 bloqueig del teu container horitzontal */
.pl-wrapper.no-scroll {
  overflow: hidden;
}

/* 📦 LIGHTBOX SCROLLABLE (clau per iPad) */
#video-lightbox {
  position: fixed;
  inset: 0;

  -webkit-overflow-scrolling: touch;
}

/* opcional però recomanat */
.lb-content {
  min-height: 100vh;
}
/**************************************************************
    HOME
**************************************************************/

.home-panel {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.home-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.home-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}



/* ================================
   TOPBAR
=================================== */

.home-topbar {
    position: absolute;
    top: 0;
    left: 0;
    min-width: calc(800px * (var(--desktop-fluid-width) / 1728px));
    max-width: 100vw;
    min-height: calc(96px * (var(--desktop-fluid-width) / 1728px));
    padding-top: calc(25.6px * (var(--desktop-fluid-width) / 1728px));
    padding-bottom: calc(16px * (var(--desktop-fluid-width) / 1728px));
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background-image: url('../img/menu-bars-4.svg');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    z-index: 10;
}

.home-name {
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(28px * (var(--desktop-fluid-width) / 1728px));
    line-height: 1;
    margin: 0;
    padding-left: calc(42px * (var(--desktop-fluid-width) / 1728px));
}

.home-about {
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(20px * (var(--desktop-fluid-width) / 1728px));
    margin-left: auto;
    padding-right: calc(45px * (var(--desktop-fluid-width) / 1728px));
    cursor: pointer;
    padding-top: calc(5px * (var(--desktop-fluid-width) / 1728px));
}



/* ================================
   WORK BUTTON
=================================== */

.home-work-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 102vh;
    width: 100%;
    position: relative;
    z-index: 5;
}

.work-button {
    background-image: url("../img/bg-work.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: calc(260px * (var(--desktop-fluid-width) / 1728px));
    height: calc(160px * (var(--desktop-fluid-width) / 1728px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work-button:hover {
    transform: translateY(calc(-15px * (var(--desktop-fluid-width) / 1728px)));
}

.work-label {
    font-family: "PP Gosha Sans", sans-serif;
    font-weight: normal;
    font-size: calc(26px * (var(--desktop-fluid-width) / 1728px));
    line-height: 1;
    margin: 0;
    text-transform: lowercase;
    text-align: center;
}

.work-icon {
    width: calc(50px * (var(--desktop-fluid-width) / 1728px));
    height: auto;
    margin-top: calc(10px * (var(--desktop-fluid-width) / 1728px));
}



/**************************************************************
    3×3 GRID (GALLERY)
**************************************************************/

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 33.33vh);
    width: 100vw;
    height: 100vh;
}



/**************************************************************
    VIDEO CARD
**************************************************************/

.video-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.video-thumb,
.video-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-hover {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-wrapper:hover .video-hover {
    opacity: 1;
}



/**************************************************************
    VIDEO CARD — INFO BAR
**************************************************************/

.info-bar {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%;
    height: calc(100px * (var(--desktop-fluid-width) / 1728px));
    padding: calc(14px * (var(--desktop-fluid-width) / 1728px)) calc(20px * (var(--desktop-fluid-width) / 1728px));
    background: url('/wp-content/themes/pauluzon/assets/img/video-bar.svg') no-repeat top left;
    background-size: cover;
    transform: translateY(55%);
    transition: transform 0.35s ease;
}

.info-bar:hover {
    transform: translateY(0);
}

.title {
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(16px * (var(--desktop-fluid-width) / 1728px));
    line-height: calc(18px * (var(--desktop-fluid-width) / 1728px));
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.title-main {
    display: inline;
    font-weight: 700;
    text-transform: uppercase;
}

.title-sub {
    display: inline;
    font-weight: 400;
    margin-left: calc(6px * (var(--desktop-fluid-width) / 1728px));
}

.title-main::before {
    content: url("/wp-content/themes/pauluzon/assets/img/rectangle-5.svg");
    display: inline-block;
    vertical-align: middle;
    margin-right: calc(4px * (var(--desktop-fluid-width) / 1728px));
    height: calc(20px * (var(--desktop-fluid-width) / 1728px));
}

.genere,
.details {
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(14px * (var(--desktop-fluid-width) / 1728px));
    line-height: calc(16px * (var(--desktop-fluid-width) / 1728px));
    display: none;
}

.genere {
    margin-top: calc(5px * (var(--desktop-fluid-width) / 1728px));
}

.details {
    margin-top: calc(2px * (var(--desktop-fluid-width) / 1728px));
}

.info-bar:hover .genere,
.info-bar:hover .details {
    display: block;
}



/**************************************************************
    LIGHTBOX GLOBAL
**************************************************************/

#video-lightbox {
    position: fixed;
    inset: 0;
    
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    padding-left: 1vw;
    padding-right: 1vw;
    z-index: 99999;
}

#video-lightbox.active {
    display: flex;
}

.lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.lb-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: calc(1500px * (var(--desktop-fluid-width) / 1728px));
    gap: calc(20px * (var(--desktop-fluid-width) / 1728px));
}

.lb-left {
    flex: 1;
}

.lb-left iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.lb-right {
    width: clamp(20%, 20vw, 30%);
    max-width: calc(400px * (var(--desktop-fluid-width) / 1728px));
}

.lb-right .lb-info {
    width: 100%;
    padding: clamp(20px, calc(-148px + 12vw), 40px) clamp(20px, calc(-148px + 12vw), 40px) calc(100px * (var(--desktop-fluid-width) / 1728px)) clamp(20px, calc(-148px + 12vw), 40px);
    box-sizing: border-box;
    background-image: url("/wp-content/themes/pauluzon/assets/img/lightbox-bg.svg");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 100%;
    color: #000;
}

/* text negre dins del lightbox */
#video-lightbox .title,
#video-lightbox .title-archive,
#video-lightbox .genere,
#video-lightbox .details {
    color: #000 !important;
}

/* mantenir una sola linia tambe al lightbox */
#video-lightbox .title,
#video-lightbox .title-archive {
    font-size: calc(16px * (var(--desktop-fluid-width) / 1728px));
    line-height: calc(18px * (var(--desktop-fluid-width) / 1728px));
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#video-lightbox .title-main,
#video-lightbox .title-sub {
    display: block;
}

#video-lightbox .title-sub {
    margin-left: 0;
    margin-bottom: calc(6px * (var(--desktop-fluid-width) / 1728px));
}

/* rectangle negre dins del lightbox */
#video-lightbox .title-main::before {
    content: url("/wp-content/themes/pauluzon/assets/img/rectangle-5.svg");
}

#video-lightbox .genere,
#video-lightbox .details {
    display: block !important;
}

.lb-close {
    position: absolute;
    top: calc(20px * (var(--desktop-fluid-width) / 1728px));
    right: calc(20px * (var(--desktop-fluid-width) / 1728px));
    z-index: 999999;
    background: none !important;
    border: none !important;
    cursor: pointer;
}

.lb-close img {
    width: calc(22px * (var(--desktop-fluid-width) / 1728px));
    height: calc(22px * (var(--desktop-fluid-width) / 1728px));
}



/**************************************************************
    ARCHIVE PAGE
**************************************************************/

#archive {
    height: 100vh;
    padding: calc(80px * (var(--desktop-fluid-width) / 1728px)) calc(80px * (var(--desktop-fluid-width) / 1728px)) 0 calc(80px * (var(--desktop-fluid-width) / 1728px));
    background: #000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.archive-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: calc(40px * (var(--desktop-fluid-width) / 1728px));
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-bottom: calc(80px * (var(--desktop-fluid-width) / 1728px));
}

.archive-item {
    position: relative;
    padding-bottom: 1px;
    break-inside: avoid;
    cursor: pointer;
}

.archive-title {
    font-weight: normal;
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(20px * (var(--desktop-fluid-width) / 1728px));
    color: #F3FF4F;
    padding-bottom: 2em;
}

.archive-title::before {
    content: url("/wp-content/themes/pauluzon/assets/img/rectangle-y.svg");
    display: inline-block;
    vertical-align: middle;
    margin-right: calc(8px * (var(--desktop-fluid-width) / 1728px));
}

.archive-item:nth-child(3n + 1) {
    position: static !important;
}

.archive-item:nth-child(3n + 1)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--row-bottom));
    height: 1px;
    background: #F3FF4F;
    pointer-events: none;
}

.title-archive {
    display: block;
    padding: calc(4px * (var(--desktop-fluid-width) / 1728px)) 0;
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(14px * (var(--desktop-fluid-width) / 1728px));
    line-height: calc(16px * (var(--desktop-fluid-width) / 1728px));
    color: #F3FF4F;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

 
.title-archive .title-main::before {
    content: none;!important
}



/**************************************************************
    ABOUT PANEL
**************************************************************/

#about {
    background-color: #F3FF4F;
    background-image: url("/wp-content/themes/pauluzon/assets/img/about-bg.svg");
    background-repeat: no-repeat;
    background-position: calc(100% + 500px) calc(100% - 50px);
    background-size: 100%;
}

.about-panel {
    background: #F3FF4F;
    color: #000;
    height: 100vh;
    box-sizing: border-box;
    padding: calc(80px * (var(--desktop-fluid-width) / 1728px));
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.about-title {
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(20px * (var(--desktop-fluid-width) / 1728px));
    font-weight: normal;
    margin-bottom: 2em;
    color: #000;
    text-transform: lowercase;
}

.about-title::before {
    content: url("/wp-content/themes/pauluzon/assets/img/rectangle.svg");
    vertical-align: middle;
    margin-right: calc(8px * (var(--desktop-fluid-width) / 1728px));
}

.about-inner {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: calc(60px * (var(--desktop-fluid-width) / 1728px));
}

.about-left {
    width: 75%;
}



.about-right {
    position: absolute;
    right: calc(80px * (var(--desktop-fluid-width) / 1728px));
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    bottom: calc(-0px * (var(--desktop-fluid-width) / 1728px));
}

.about-right .fotopau {
    width: calc(900px * (var(--desktop-fluid-width) / 1728px));
    height: auto;
    display: block;
}

.about-left p,
.about-right p {
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(16px * (var(--desktop-fluid-width) / 1728px));
    line-height: 1.4;
    margin-bottom: 1.5em;
}

.about-left p {
    text-align: left;
    color: black;
}

.about-left a {
    color: inherit;
    text-decoration: underline;
}

.back-button {
    position: absolute;
    bottom: calc(-20px * (var(--desktop-fluid-width) / 1728px));
    z-index: 20;
    width: calc(160px * (var(--desktop-fluid-width) / 1728px));
    height: calc(160px * (var(--desktop-fluid-width) / 1728px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-image: url("/wp-content/themes/pauluzon/assets/img/bg-back.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.back-button:hover {
    transform: translateY(calc(-12px * (var(--desktop-fluid-width) / 1728px)));
}

.back-button h1 {
    font-family: "PP Gosha Sans", sans-serif;
    font-size: calc(22px * (var(--desktop-fluid-width) / 1728px));
    margin: 0;
    text-transform: lowercase;
    color: #F3FF4F;
}

.back-button img {
    width: calc(50px * (var(--desktop-fluid-width) / 1728px));
    margin-top: calc(8px * (var(--desktop-fluid-width) / 1728px));
}






/**************************************************************
    RESPONSIVE
**************************************************************/

@media (max-width: 1299px) {
    #about {
        background-position: calc(100% + 350px) calc(100% - 120px);
        background-size: 120%;
    }
    
       .back-button {
        display: none !important;
    }
}

@media (min-width: 1600px) {
    #about {
        background-position: calc(100% + 700px) calc(100% - 50px);
    }
}


/* MOBIL LANDSCAPE*/
@media (max-width: 1299px) and (orientation: landscape) {
    .about-right .fotopau {
        width: 50vw;
        max-width: 400px;
    }
    
       #about {
        background-size: 70%;
        background-position: right -100px bottom;
    }
}




@media (max-width: 1099px) {
    .pl-wrapper {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pl-panel {
        min-height: 100vh;
        height: auto;
        width: 100%;
        overflow: visible;
        position: relative;
        flex: 0 0 auto;
    }

    .pl-panel,
    .gallery-panel,
    .gallery-grid {
        height: auto !important;
        overflow: visible !important;
    }

    .home-topbar {
        min-width: 90vw;
        padding: 2.2em 1em;
        background-size: 90vw;
    }

    .home-name{
        font-size: 24px;
    }
    
   
    .home-about {
        font-size: 18px;
    }

    .home-about {
        padding-right: 65px;
    }

    .work-button {
        width: 220px;
        height: 140px;
    }

    .back-button {
        width: 140px;
        height: 140px;
        bottom: 0;
    }

    .home-work-container {
        min-height: 100vh;
        justify-content: flex-start;
    }

    .work-button:hover {
        transform: none;
    }

    .work-icon {
        width: 40px;
        height: auto;
        margin-top: 20px;
        transform: rotate(90deg);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: auto;
    }

    .video-card {
        height: auto;
    }

    .info-bar {
        height: 70px;
        padding: 10px 20px 0 20px;
        margin-bottom: 10px;
        transform: translateY(55%) !important;
    }

    .info-bar:hover {
        transform: translateY(55%) !important;
    }

    .gallery-grid .details {
        display: none !important;
    }

    .video-hover {
        display: none !important;
    }

    .lb-content {
        flex-direction: column;
        width: 100%;
        max-width: none;
        gap: 20px;
        padding: 20px;
    }

    .lb-right {
        order: 1;
        width: 40%;
        min-width: 300px;
        max-width: none;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }



    .lb-left {
        order: 2;
        width: 100%;
    }

    .lb-left iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    #archive {
        padding: 50px 20px 0 20px;
    }

    .archive-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        column-gap: 20px;
        row-gap: 0;
        width: 100%;
    }

    .archive-item {
        width: 100%;
        overflow: hidden;
    }

    .title-archive {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 10px;
   
}

#video-lightbox .title-archive {

        padding: 0;
   
}

@media (max-width: 900px) {
    .home-topbar {
        min-width: 90vw;
        padding: 1.5em 1em;
        background-size: 90vw;
    } }
    
    
@media (max-width: 768px) {
    .home-name {
        font-size: 18px;
        padding-left: 10px;
    }

    .home-about {
        font-size: 18px;
        margin-left: auto;
        padding-right: 60px;
        padding-top: 8px;
    }

    .home-topbar {
        min-width: 100vw;
        min-height: 180px;
        padding: 20px 10px;
        background-size: 95vw;
        background-image: url('/wp-content/themes/pauluzon/assets/img/menu-mobile.svg') !important;
        background-repeat: no-repeat;
        background-position: top left;
    }

    .home-name b::after {
        content: "\A";
        white-space: pre;
    }

    .gallery-grid {
        display: flex !important;
        flex-wrap: wrap;
    }

    .video-card {
        aspect-ratio: 1.4;
        height: auto;
    }

    #archive {
        padding: 50px 0;
    }

    .archive-title {
        font-size: 20px;
        padding-left: 36px;
    }

    .archive-list {
        display: block !important;
    }

    .archive-item:nth-child(3n + 1)::after {
        top: auto !important;
        content: none !important;
    }

    .title-archive {
        position: relative;
        display: block;
        padding: 15px 56px 15px 36px;
    }

    .title-archive::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100vw;
        height: 1px;
        background: #F3FF4F;
    }

    #video-lightbox .title-archive {
        padding: 0;
    }

    #about {
        padding-top: 50px;
        padding-bottom: -50px;
        background-position: right -600px bottom 20px;
        background-size: 220%;
        min-height: 100svh;
    }

    .about-panel {
        padding: 0;
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        overflow: hidden;
    }

    .about-title {
        font-size: 20px;
        padding-left: 36px;
        margin: 0;
    }

    .about-inner {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        padding: 0 36px;
        box-sizing: border-box;
    }

    .about-left,
    .about-right {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .about-right {
        position: relative;
        right: auto;
        bottom: auto;
        display: flex;
        justify-content: flex-end;
        text-align: right;
        align-items: flex-end;
        margin-top: auto;
        padding-top: 2.5em;
    }

.about-right .fotopau {
    width: calc(700px * (var(--desktop-fluid-width) / 1728px));
    height: auto;
    display: block;
}

    .back-button {
        display: none !important;
    }
    
    
}

/**************************************************************
    FIX LIGHTBOX — iPad + scroll + background
**************************************************************/

/* 1. Base: NO scroll en desktop */
#video-lightbox {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* 2. Només iPad / touch → scroll actiu */
@media (hover: none) and (pointer: coarse) {
  #video-lightbox {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 3. BACKGROUND FIX (clau per evitar veure el fons) */
.lb-bg {
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

/* 4. assegurar que el contingut està per sobre */
.lb-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* 5. iPad landscape → amplada 70% */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .lb-right .lb-info {
    width: 70%;
  }
  #video-lightbox {

    padding-top: 50px;

}

}