/* DETALLE DE PROYECTOS - RESPONSIVE
-------------------------------------------------- */

@media (max-width: 767px) {

    .project-detail {
        padding: 12.5rem var(--side) 7rem;
    }

    .project-detail h1 {
        font-size: clamp(3.8rem, 9vw, 6rem);
    }

    .project-detail .category {
        font-size: 1.8rem;
        margin: 1.4rem 0 3.5rem;
    }

    .detail-content {
        gap: 1.5rem;
    }

    /* Las filas múltiples pasan a una columna */

    .detail-row--two,
    .detail-row--three,
    .detail-row--two-one,
    .detail-row--one-two {
        grid-template-columns: minmax(0, 1fr);
        aspect-ratio: auto;
        gap: 1.5rem;
    }

/* Imágenes en mobile: respetar su proporción natural */

.detail-row:not(.detail-row--full),
.detail-split {
    height: auto;
    aspect-ratio: auto;
}

.detail-row:not(.detail-row--full) .detail-media,
.detail-split .detail-media {
    height: auto;
    aspect-ratio: auto;
}

.project-detail .detail-media img,
.project-detail .detail-media video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

    .detail-media {
        border-radius: 1.5rem;
    }

    /* Imagen + texto */

    .detail-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .detail-split__text {
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .detail-split__text h2 {
        font-size: 3.5rem;
    }

    .detail-split__text p {
        font-size: 1.8rem;
    }

    /* Texto completo */

    .detail-text {
        padding: 3rem 0;
    }

    .detail-text h2 {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .detail-text p {
        font-size: 1.9rem;
    }

    .project-detail .caption {
        font-size: 1.9rem;
        margin: 3rem 0;
    }

}



/* NICOLA IEVA responsive — mismas medidas de thumbs y detalle WooHu. */
@media(max-width:1199px){.brand-logo,.site-header.is-small .brand-logo{width:14rem}.lightbox-logo{width:14rem}}
@media(max-width:767px){:root{--side:5vw;--nav-edge:3vw;--thumb-gap:1.5rem;--header-top:2rem;--control:4.3rem;--size-lg:clamp(5rem,13vw,8rem);--size-md:clamp(2.5rem,6.2vw,3.5rem);--size-sm:1.7rem;--hero-radius:2.6rem}.brand-logo,.site-header.is-small .brand-logo{width:13rem}.hero-scene{height:210vh}.hero-base,.light-frame{object-position:50% 50%}.intro-section{min-height:0;gap:3rem;padding:5vh var(--side) 6vh}.passion-section{padding:4vh 0 clamp(6rem,20vh,14rem)}.passion-content h2{font-size:clamp(3rem,9vw,6rem)}.personal-section{min-height:0;padding:0 var(--side)}.photo-fan{height:clamp(23rem,65vw,37rem)}.personal-card{width:clamp(8rem,24vw,15rem);border-radius:1.6rem}.philosophy-section{min-height:0;padding:5rem var(--side) 10rem}.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-thumb{border-radius:2rem;aspect-ratio:1/1}.thumb-title{font-size:1.7rem}.thumb-info{left:1.2rem;right:1.2rem;bottom:1.2rem}.thumb-actions{gap:.3rem}.thumb-action{width:2.8rem;height:2.8rem}.thumb-action img{width:2.3rem;height:2.3rem}.lightbox-header{height:8rem;padding-top:2.7rem}.lightbox-logo{width:12.5rem}.lightbox-close{width:4.4rem;height:4.4rem}.lightbox-close img{width:3rem;height:3rem}.footer{border-radius:3rem 3rem 0 0;padding:5rem 1.5rem 4rem;gap:2.4rem}.contacts{gap:0;flex-direction:column}.magnetic-area{padding:1rem}.brands{--pill-size:5rem;--right-expanded:13.5rem;--left-expanded:11.3rem;height:5rem}.brand-pill{height:5rem;width:5rem}.pill-icon{height:5rem;width:5rem;padding:.8rem}.brand-pill:hover,.brand-pill:focus-visible{width:13.5rem}.pill-logo{width:11rem}.left .pill-logo{right:1.25rem;width:8.8rem;height:3.6rem}.right .pill-logo{left:1.25rem}.more-wrap{padding:3rem 0 0}}
@media(hover:none),(pointer:coarse){.project-thumb .thumb-overlay{opacity:1}.thumb-info{opacity:1;transform:none}.brand-pill:hover{width:5rem}.brand-pill:hover .pill-logo{opacity:0}.brand-pill:hover .pill-icon{opacity:1}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}.hero-scene{height:100vh}.hero-sticky,.passion-content{position:relative}.hero-photo{transform:none!important;border-radius:0!important}.marquee{display:none}.hero-canvas{display:none}.hero-photo.canvas-ready .hero-base{visibility:visible}.passion-section{height:auto}.passion-content{height:auto}.passion-line{transform:none!important;filter:none!important;opacity:1!important}.intro-section{min-height:0}.scroll-line{color:#000!important;-webkit-text-fill-color:#000!important;background:none!important}}

@media(max-width:767px){.marquee{left:0;right:0}.lightbox-brand{width:13rem}.footer-bottom{gap:2rem;margin-top:1.2rem}.profile-links{gap:1.4rem;font-size:1.275rem}.profile-label{flex-basis:100%}.profile-link img{width:2.3rem;height:2.5rem}.project-detail{padding-top:12.5rem}.footer{margin-bottom:0}.lightbox-header{padding-top:var(--header-top)}.site-header.is-small .brand-logo{width:13rem}}
/* En pantallas pequeñas se conserva una calle lateral fija para los controles.
   Una columna de proyectos en móviles estrechos evita thumbnails diminutos. */
@media(max-width:767px){:root{--side:clamp(5.5rem,13.8vw,6.3rem)}.personal-card{width:27%;min-width:0}.photo-fan{height:clamp(20rem,56vw,37rem)}.passion-content h2{font-size:clamp(2.5rem,7.4vw,5.7rem)}.footer{padding-left:1rem;padding-right:1rem}.magnetic-link{overflow-wrap:anywhere}.profile-links{gap:1rem}.project-detail{padding-left:var(--side);padding-right:var(--side)}}
@media(max-width:479px){.portfolio-grid{grid-template-columns:minmax(0,1fr)}.project-thumb{aspect-ratio:4/3}.thumb-info{left:1.3rem;right:1.3rem}.footer .brands{--left-expanded:9rem;--right-expanded:10.4rem}.footer .pill-logo{max-width:8.5rem}.footer .left .pill-logo{width:7rem;right:1rem}.footer .right .pill-logo{left:.95rem}}

@media(max-width:479px){.footer .brand-pill.left:is(:hover,:focus-visible){width:var(--left-expanded)}.footer .brand-pill.right:is(:hover,:focus-visible){width:var(--right-expanded)}}
@media(max-width:767px) and (hover:none) and (pointer:coarse){.footer .brand-pill.left:hover:not(:focus-visible),.footer .brand-pill.right:hover:not(:focus-visible){width:var(--pill-size)}}
