body:has(.elli-project-nasser) #project-nav,body:has(.elli-project-nasser) footer{display:none!important}
/* Keep the theme's viewport-wide wrapper inside the available page width. */
.dark-section-wrapper:has(.elli-project-makdissi){width:100%!important;max-width:100%!important;left:0!important;margin-left:0!important;margin-right:0!important}
.elli-project-makdissi .nasser-hero-title h1{font-size:clamp(64px,10vw,180px)!important}
.elli-project-makdissi .makdissi-photo-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:center;padding:0 7vw 70px!important}
.makdissi-photo-pair>.elementor-widget-image{width:100%!important;min-width:0}
.makdissi-photo-pair img{display:block;width:100%;height:auto!important;object-fit:contain}
.elli-project-makdissi .nasser-detail img,.elli-project-makdissi .nasser-meeting img{height:auto!important;max-height:none;object-fit:contain}
@media(max-width:600px){.elli-project-makdissi .makdissi-photo-pair{gap:12px;padding:0 6vw 40px!important}.elli-project-makdissi .nasser-hero-title h1{font-size:clamp(54px,14vw,84px)!important}}
.elli-project-nasser .nasser-extra-pair{display:grid;grid-template-columns:1fr 1fr;gap:30px;padding:0 7vw 90px}
.nasser-extra-pair img{aspect-ratio:3/4;object-fit:cover}
.elli-project-nasser .nasser-extra-wide{margin-top:35px}
.elli-project-nasser .nasser-extra-landscape{padding-top:35px;grid-template-columns:1.5fr 1fr}
.elli-project-nasser .nasser-study-gallery{display:block;padding:0}
.elli-project-nasser .nasser-study-card{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:center;gap:5vw;padding:50px 0;border-top:1px solid #8a743955}
.elli-project-nasser .nasser-study-card:nth-child(even){grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.nasser-study-card:nth-child(even) .nasser-study-image{order:2}
.elli-project-nasser .nasser-study-image,.elli-project-nasser .nasser-study-note{display:block;padding:0}
.nasser-study-image img{width:100%;height:auto!important;object-fit:contain}
.nasser-study-note p:first-child{color:#8a7439;font-size:13px;letter-spacing:.12em;border-bottom:1px solid #8a7439;padding-bottom:16px}
.nasser-study-note p{font-size:17px}
.nasser-study-note strong{font-weight:500}
@media(max-width:767px){.elli-project-nasser .nasser-extra-pair{padding:0 6vw 45px;gap:12px}.elli-project-nasser .nasser-study-card,.elli-project-nasser .nasser-study-card:nth-child(even){grid-template-columns:1fr;gap:25px}.nasser-study-card:nth-child(even) .nasser-study-image{order:0}}
.elli-project-nasser{background:#1a1a1e;color:#d9d9e3}
.elli-project-nasser>.e-con{display:block;padding:90px 7vw}
.elli-project-nasser .nasser-hero{position:relative;padding:0!important;height:90svh;min-height:500px}
.nasser-hero>.elementor-widget-image,.nasser-hero>.elementor-widget-image .elementor-widget-container{height:100%;width:100%}
.nasser-hero img{height:100%!important;object-fit:cover;filter:brightness(.62)}
.elli-project-nasser .nasser-hero-title{position:absolute;inset:auto 7vw 6vh;display:block;padding:0;width:auto}
.elli-project-nasser .nasser-hero-title h1{font-size:clamp(100px,15vw,250px);margin:0}
.elli-project-nasser .nasser-hero-title p{font-size:14px;letter-spacing:.08em}
.elli-project-nasser .nasser-intro{display:grid;grid-template-columns:1fr 2fr;gap:8vw;padding-top:120px;padding-bottom:120px}
.nasser-label p{font-size:14px!important}
.elli-project-nasser .nasser-copy{display:block}
.elli-project-nasser .nasser-pair{display:grid;grid-template-columns:1.6fr 1fr;gap:30px;align-items:end;padding-top:0;padding-bottom:0}
.nasser-pair img{height:600px!important;object-fit:cover}
.nasser-pair>.elementor-widget-image:last-child img{height:440px!important}
.elli-project-nasser .nasser-caption{max-width:950px;padding-top:65px;padding-bottom:100px}
.elli-project-nasser .nasser-wide{padding:0 3vw}
.elli-project-nasser .nasser-detail,.elli-project-nasser .nasser-meeting{display:grid;grid-template-columns:1fr 1fr;gap:10vw;align-items:center;padding-top:110px;padding-bottom:110px}
.nasser-detail img,.nasser-meeting img{max-height:750px;object-fit:cover}
.elli-project-nasser .nasser-studies{margin-top:100px;background:#d9d9e3;color:#1a1a1e}
.elli-project-nasser .nasser-render-pair{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:40px}
.nasser-render-pair img{aspect-ratio:4/3;object-fit:cover}
.elli-project-nasser .nasser-end{text-align:center;padding-top:110px;padding-bottom:110px;background:#3a1a29}
.nasser-end .elementor-button{background:transparent;border-bottom:1px solid #a9aeb5;border-radius:0;padding:16px 0;color:#d9d9e3;font-family:'Poppins',sans-serif}
@media(max-width:767px){
.elli-project-nasser>.e-con{padding:55px 6vw}
.elli-project-nasser .nasser-intro,.elli-project-nasser .nasser-detail,.elli-project-nasser .nasser-meeting{grid-template-columns:1fr;gap:30px;padding:60px 6vw}
.elli-project-nasser .nasser-pair{gap:12px;padding:0 6vw;grid-template-columns:1fr 1fr}
.nasser-pair img{height:300px!important}.nasser-pair>.elementor-widget-image:last-child img{height:230px!important}
.elli-project-nasser .nasser-render-pair{grid-template-columns:1fr}
.elli-project-nasser .nasser-hero-title{left:6vw;right:6vw}
.elli-project-nasser .nasser-studies{margin-top:50px}
}
/* Project containers must not inherit Montoya's full-width negative margins. */
body:has(.elli-project-nasser) .dark-section-container:has(.elli-project-nasser){width:100%!important;max-width:none!important;padding:0!important}
.elli-project-nasser.e-con{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
.elli-project-nasser .e-con{max-width:100%;margin-left:0!important;margin-right:0!important;min-width:0}
body:has(.elli-project-nasser) main{height:auto!important;min-height:0!important;overflow:visible!important;transition:none!important}
body:has(.elli-project-nasser) .cd-main-content{height:auto!important;min-height:0!important}
.elli-project-nasser .nasser-workspace-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;padding:0 3vw!important;gap:24px!important}
.nasser-workspace-pair>.elementor-widget-image{width:100%!important;min-width:0}
.nasser-workspace-pair img{aspect-ratio:3/2;height:auto!important;object-fit:cover}
/* Keep the two photographs after Trabalhar together, with their full framing. */
.elli-project-nasser .nasser-detail + .nasser-extra-pair,
.elli-project-nasser .nasser-meeting + .nasser-extra-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(12px,2vw,30px);padding:0 7vw 70px}
.nasser-detail + .nasser-extra-pair > .elementor-widget-image,
.nasser-meeting + .nasser-extra-pair > .elementor-widget-image{width:100%!important;min-width:0}
.nasser-detail + .nasser-extra-pair img,
.nasser-meeting + .nasser-extra-pair img{display:block;width:100%;height:auto!important;max-height:none;aspect-ratio:auto!important;object-fit:contain}
.elli-project-nasser .nasser-meeting + .nasser-extra-pair{grid-template-columns:minmax(0,2.25fr) minmax(0,1fr)}
.elli-project-nasser .nasser-extra-landscape{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(12px,2vw,30px);padding:35px 7vw 70px}
.nasser-extra-landscape > .elementor-widget-image{width:100%!important;min-width:0}
.nasser-extra-landscape img{display:block;width:100%;height:auto!important;max-height:none;aspect-ratio:auto!important;object-fit:contain}
.elli-project-nasser .nasser-render-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:center;padding:0;margin-top:45px}
.nasser-render-gallery > .elementor-widget-image{width:100%!important;min-width:0}
.nasser-render-gallery img{display:block;width:100%;height:auto!important;aspect-ratio:auto!important;object-fit:contain}
.nasser-render-gallery > .elementor-widget-image:last-child:nth-child(odd){grid-column:1/-1;width:100%!important;justify-self:center}
@media(max-width:767px){
 .elli-project-nasser .nasser-render-gallery{grid-template-columns:1fr;gap:20px}
 .nasser-render-gallery > .elementor-widget-image:last-child:nth-child(odd){width:100%!important}
}

body:has(.elli-project-makdissi) .dark-section-wrapper,body:has(.elli-project-makdissi) .dark-section-container{width:100%!important;max-width:100%!important;left:0!important;margin:0!important;padding-left:0!important;padding-right:0!important}
body .elli-residential.elli-project-makdissi.e-con{width:100%!important;max-width:100%!important;left:0!important;margin:0!important}

/* One document scrollbar; gallery height may grow as lazy images load. */
body.elli-document-scroll:not(.elementor-editor-active){height:auto!important;min-height:100vh;overflow-x:clip!important;overflow-y:visible!important}
body.elli-document-scroll #content-scroll,
body.elli-document-scroll #main,
body.elli-document-scroll #main-content,
body.elli-document-scroll #main-page-content{
 position:relative!important;height:auto!important;max-height:none!important;
 overflow:visible!important;
}

/* Confraria: equal-height rows without cropping photographs.
   Landscape 4:3 + portrait 3:4 need widths in a 16:9 ratio. */
.elli-project-confraria .makdissi-photo-pair{
 align-items:start!important;
 gap:clamp(16px,2vw,28px)!important;
}
.elli-project-confraria .makdissi-photo-pair:has(img[src$="/foto-26.webp"]),
.elli-project-confraria .makdissi-photo-pair:has(img[src$="/foto-1.webp"]){
 grid-template-columns:minmax(0,16fr) minmax(0,9fr)!important;
}
.elli-project-confraria .makdissi-photo-pair .elementor-widget-container{margin:0!important;padding:0!important;line-height:0}
.elli-project-confraria .makdissi-photo-pair img{width:100%!important;height:auto!important;max-height:none!important;display:block}
/* Confraria captions: a readable editorial column below each heading. */
.elli-project-confraria .nasser-caption{align-items:flex-start!important;text-align:left!important;gap:0!important}
.elli-project-confraria .nasser-caption > .elementor-widget-text-editor:last-child{width:100%!important;max-width:640px!important;margin-top:28px!important;align-self:flex-start!important}
.elli-project-confraria .nasser-caption > .elementor-widget-text-editor:last-child p{line-height:1.75;margin-bottom:0}
@media(max-width:767px){.elli-project-confraria .nasser-caption > .elementor-widget-text-editor:last-child{max-width:100%!important;margin-top:20px!important}}

/* Luigi: full photographs, equal row heights and compact reading columns. */
.elli-project-luigi .makdissi-photo-pair{align-items:start!important}
.elli-project-luigi .luigi-pair-2128-2133{grid-template-columns:minmax(0,1.7069701280227596fr) minmax(0,1.5056461731493098fr)!important}
.elli-project-luigi .luigi-pair-2151-2189{grid-template-columns:minmax(0,1.5047021943573669fr) minmax(0,1.488833746898263fr)!important}
.elli-project-luigi .luigi-pair-2158-2164{grid-template-columns:minmax(0,0.6279166666666667fr) minmax(0,0.6641666666666667fr)!important}
.elli-project-luigi .luigi-pair-2218-2230{grid-template-columns:minmax(0,0.7170833333333333fr) minmax(0,0.6741666666666667fr)!important}
.elli-project-luigi .luigi-pair-2201-2215{grid-template-columns:minmax(0,1.4449127031908489fr) minmax(0,0.6641666666666667fr)!important}
.elli-project-luigi .nasser-caption{align-items:flex-start!important;text-align:left!important;gap:0!important}
.elli-project-luigi .nasser-caption>.elementor-widget-text-editor:last-child{width:100%!important;max-width:640px!important;margin-top:28px!important}
.elli-project-luigi .nasser-caption p{line-height:1.75}
.elli-project-luigi .makdissi-photo-pair img{display:block;width:100%!important;height:auto!important;max-height:none!important}

/* Brew Pub: complete photographs with equal-height rows. */
.elli-project-brew .makdissi-photo-pair{align-items:start!important}
.elli-project-brew .brew-pair-1025-1030{grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr)!important}
.elli-project-brew .brew-pair-1031-1023{grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr)!important}
.elli-project-brew .brew-pair-1041-1042{grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr)!important}
.elli-project-brew .brew-pair-1037-1038{grid-template-columns:minmax(0,0.6666666666666666fr) minmax(0,0.6666666666666666fr)!important}
.elli-project-brew .brew-pair-1039-1040{grid-template-columns:minmax(0,1.5fr) minmax(0,1.486988847583643fr)!important}
.elli-project-brew .nasser-caption{align-items:flex-start!important;text-align:left!important;gap:0!important}
.elli-project-brew .nasser-caption>.elementor-widget-text-editor:last-child{width:100%!important;max-width:640px!important;margin-top:28px!important}
.elli-project-brew .nasser-caption p{line-height:1.75}
.elli-project-brew .makdissi-photo-pair img{display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain}
@media(max-width:600px){.elli-project-brew .makdissi-photo-pair{grid-template-columns:1fr!important;gap:20px!important}}

.elli-project-brew .brew-portrait-trio{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:600px){.elli-project-brew .brew-portrait-trio{grid-template-columns:1fr!important}}

/* Delinear: uncropped photographs and balanced editorial rows. */
.elli-project-delinear .makdissi-photo-pair{align-items:start!important}
.elli-project-delinear .delinear-row-6335-6337{grid-template-columns:minmax(0,1.5003663003663004fr) minmax(0,1.5003663003663004fr)!important}
.elli-project-delinear .delinear-row-6323-6325{grid-template-columns:minmax(0,0.66650390625fr) minmax(0,0.66650390625fr)!important}
.elli-project-delinear .delinear-row-6327-6333{grid-template-columns:minmax(0,1.5003663003663004fr) minmax(0,1.4927113702623906fr)!important}
.elli-project-delinear .delinear-row-6344-6348-6353{grid-template-columns:minmax(0,0.66650390625fr) minmax(0,0.66650390625fr) minmax(0,0.66650390625fr)!important}
.elli-project-delinear .delinear-row-6330-6338{grid-template-columns:minmax(0,1.5003663003663004fr) minmax(0,1.5003663003663004fr)!important}
.elli-project-delinear .nasser-caption{align-items:flex-start!important;text-align:left!important;gap:0!important}
.elli-project-delinear .nasser-caption>.elementor-widget-text-editor:last-child{width:100%!important;max-width:640px!important;margin-top:28px!important}
.elli-project-delinear .nasser-caption p{line-height:1.75}
.elli-project-delinear .makdissi-photo-pair img{display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain}
@media(max-width:600px){.elli-project-delinear .makdissi-photo-pair{grid-template-columns:1fr!important;gap:20px!important}}

/* Additional Delinear interior views. */
.elli-project-delinear .delinear-row-6321-6324{grid-template-columns:minmax(0,0.66650390625fr) minmax(0,0.66650390625fr)!important}
.elli-project-delinear .delinear-row-6328-6329{grid-template-columns:minmax(0,0.66650390625fr) minmax(0,0.66650390625fr)!important}
.elli-project-delinear .delinear-row-6331-6332-6334{grid-template-columns:minmax(0,0.67138671875fr) minmax(0,0.66650390625fr) minmax(0,0.66650390625fr)!important}
@media(max-width:600px){.elli-project-delinear .makdissi-photo-pair{grid-template-columns:1fr!important}}

/* Delinear 2018: photographs retain their complete proportions. */
.elli-project-delinear2 .makdissi-photo-pair{align-items:start!important}
.elli-project-delinear2 .delinear2-row-18-19{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
.elli-project-delinear2 .delinear2-row-16-17{grid-template-columns:minmax(0,1.49489fr) minmax(0,1.49054fr)!important}
.elli-project-delinear2 .nasser-caption{align-items:flex-start!important;text-align:left!important;gap:0!important}
.elli-project-delinear2 .nasser-caption>.elementor-widget-text-editor:last-child{width:100%!important;max-width:640px!important;margin-top:28px!important}
.elli-project-delinear2 .nasser-caption p{line-height:1.75}
.elli-project-delinear2 .makdissi-photo-pair img{display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain}
@media(max-width:600px){.elli-project-delinear2 .makdissi-photo-pair{grid-template-columns:1fr!important;gap:20px!important}}

/* Cinthia e Gustavo: full photographs, balanced rows and narrow captions. */
.elli-project-cg .makdissi-photo-pair{align-items:start!important}
.elli-project-cg .cg-row-0874-HDR-0877{grid-template-columns:minmax(0,1.0fr) minmax(0,1.5fr)!important}
.elli-project-cg .cg-row-0879-Aprimorado-NR-0883{grid-template-columns:minmax(0,0.6666666666666666fr) minmax(0,0.6666666666666666fr)!important}
.elli-project-cg .cg-row-0842-HDR-0853-HDR-Editar{grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr)!important}
.elli-project-cg .cg-row-0848-0890-Editar{grid-template-columns:minmax(0,0.6666666666666666fr) minmax(0,0.6666666666666666fr)!important}
.elli-project-cg .cg-row-0894-Editar-0902-Editar{grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr)!important}
.elli-project-cg .cg-row-0788-HDR-0794-HDR{grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr)!important}
.elli-project-cg .cg-row-0800-0804-HDR-Editar{grid-template-columns:minmax(0,0.6666666666666666fr) minmax(0,0.6666666666666666fr)!important}
.elli-project-cg .cg-row-0819-HDR-0828-Aprimorado-NR-Editar{grid-template-columns:minmax(0,1.5fr) minmax(0,1.5fr)!important}
.elli-project-cg .cg-row-0829-Editar-0835{grid-template-columns:minmax(0,0.6666666666666666fr) minmax(0,0.6666666666666666fr)!important}
.elli-project-cg .cg-row-0911-Editar-0916-Editar{grid-template-columns:minmax(0,0.6666666666666666fr) minmax(0,0.6666666666666666fr)!important}
.elli-project-cg .nasser-caption{align-items:flex-start!important;text-align:left!important;gap:0!important}
.elli-project-cg .nasser-caption>.elementor-widget-text-editor:last-child{width:100%!important;max-width:640px!important;margin-top:28px!important}
.elli-project-cg .nasser-caption p{line-height:1.75}
.elli-project-cg .makdissi-photo-pair img{display:block;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain}
@media(max-width:600px){.elli-project-cg .makdissi-photo-pair{grid-template-columns:1fr!important;gap:20px!important}}
/* Revised selection: match row height to each uncropped photograph. */
.elli-project-cg .cg-row-0879-Aprimorado-NR-0883{grid-template-columns:minmax(0,0.6666667fr) minmax(0,1fr)!important}
@media(max-width:600px){.elli-project-cg .cg-row-0879-Aprimorado-NR-0883{grid-template-columns:1fr!important}}

/* Marco e Cibele: whole images and compact editorial captions. */
.elli-project-mc .nasser-caption{align-items:flex-start!important;text-align:left!important;gap:0!important}
.elli-project-mc .nasser-caption>.elementor-widget-text-editor:last-child{width:100%!important;max-width:640px!important;margin-top:28px!important}
.elli-project-mc .makdissi-photo-pair{align-items:start!important}
.elli-project-mc .makdissi-photo-pair img{width:100%!important;height:auto!important;max-height:none!important;object-fit:contain}
@media(max-width:600px){.elli-project-mc .makdissi-photo-pair{grid-template-columns:1fr!important;gap:20px!important}}

/* Match gallery frames in Nasser Advogados I, including mixed orientations. */
body.postid-4188 .makdissi-photo-pair img {
 aspect-ratio: 1 / 1;
 object-fit: cover;
}
