/* =========================================================
   Case studies, in the original rashwanzaza.com layout:
   each page keeps its own column widths, spacers and galleries
   (in its <style> block), centred in the 1080px column with the
   15% side columns — exactly as on the RZ site. Links and the
   closing buttons use the KRZ blue.
   ========================================================= */

/* the RZ type kit that the per-page styles refer to */
:root{
  --e-global-color-primary:#000000;--e-global-color-secondary:#FFFFFF;--e-global-color-text:#000000;--e-global-color-accent:#929292;
  --e-global-color-f5ea521:#FFFFFF00;--e-global-color-5d41906:#F4FF00;--e-global-color-2b1865d:#E000FF;--e-global-color-bcb51dc:#57573a;
  --e-global-color-fbca130:#8DD8C4;--e-global-color-3d105e5:#8593E8;--e-global-color-0e1b38a:#F2B22B40;--e-global-color-4927abe:#707D60;--e-global-color-b7dca95:#F2B22B;
  --e-global-typography-primary-font-family:"Sora";--e-global-typography-primary-font-size:30px;--e-global-typography-primary-font-weight:bold;--e-global-typography-primary-text-transform:uppercase;--e-global-typography-primary-font-style:normal;--e-global-typography-primary-text-decoration:none;--e-global-typography-primary-line-height:32px;
  --e-global-typography-secondary-font-family:"Sora";--e-global-typography-secondary-font-size:23px;--e-global-typography-secondary-font-weight:200;--e-global-typography-secondary-text-transform:none;--e-global-typography-secondary-font-style:normal;--e-global-typography-secondary-text-decoration:none;--e-global-typography-secondary-line-height:32px;
  --e-global-typography-text-font-family:"Sora";--e-global-typography-text-font-size:14px;--e-global-typography-text-font-weight:normal;--e-global-typography-text-text-transform:none;--e-global-typography-text-font-style:normal;--e-global-typography-text-text-decoration:none;--e-global-typography-text-line-height:22px;
  --e-global-typography-accent-font-family:"Sora";--e-global-typography-accent-font-size:14px;--e-global-typography-accent-font-weight:bold;--e-global-typography-accent-font-style:italic;--e-global-typography-accent-text-decoration:underline;
  --e-global-typography-336752b-font-family:"Sora";--e-global-typography-336752b-font-size:14px;--e-global-typography-336752b-font-weight:200;--e-global-typography-336752b-text-transform:none;--e-global-typography-336752b-font-style:normal;--e-global-typography-336752b-text-decoration:none;--e-global-typography-336752b-line-height:27px;
  --e-global-typography-d3a3ce2-font-family:"Sora";--e-global-typography-d3a3ce2-font-size:13px;--e-global-typography-d3a3ce2-font-weight:300;--e-global-typography-d3a3ce2-text-transform:none;--e-global-typography-d3a3ce2-font-style:italic;--e-global-typography-d3a3ce2-text-decoration:none;--e-global-typography-d3a3ce2-line-height:22px;
  --e-global-typography-db4ee2a-font-family:"Sora";--e-global-typography-db4ee2a-font-size:23px;--e-global-typography-db4ee2a-font-weight:400;--e-global-typography-db4ee2a-text-transform:none;--e-global-typography-db4ee2a-font-style:normal;--e-global-typography-db4ee2a-text-decoration:none;--e-global-typography-db4ee2a-line-height:32px;
  --e-global-typography-c177c93-font-family:"Sora";--e-global-typography-c177c93-font-size:14px;--e-global-typography-c177c93-font-weight:600;--e-global-typography-c177c93-line-height:19px;
}
@media(max-width:1023px){:root{--e-global-typography-primary-line-height:54px;--e-global-typography-secondary-line-height:1.2em;--e-global-typography-db4ee2a-line-height:1.2em}}
@media(max-width:767px){:root{--e-global-typography-primary-line-height:1.3em;--e-global-typography-secondary-line-height:1em;--e-global-typography-db4ee2a-line-height:1.3em}}

/* page frame: the RZ top spacer (133px) and the shared side margins */
.project.rz{padding:133px var(--pad) 0}

/* ---- layout model (RZ) — same selectors and weight as the RZ site, so each page's own <style> still wins ---- */
.sec{position:relative}
.sec > .con{display:flex;margin:0 auto;position:relative;max-width:var(--wrap)}
.sec.mid > .con{align-items:center}
.col{display:flex;min-height:1px;position:relative}
.colin{display:flex;flex-wrap:wrap;align-content:flex-start;width:100%;position:relative}
.colin.gapd{padding:10px}
.w,.colin > .sec{width:100%;position:relative}
.w.elementor-widget__width-auto{width:auto}
.w.elementor-widget__width-inherit{width:100%}
.w .spacer{height:50px}
@media(min-width:768px) and (max-width:1023px){.elementor-hidden-tablet{display:none !important}}
@media(min-width:1024px){.elementor-hidden-desktop{display:none !important}}

/* ---- type (RZ) ---- */
.ht{margin:0;padding:0}
:where(.rz) h1{color:var(--ink);font-family:var(--font);font-size:30px;font-weight:700;text-transform:uppercase;line-height:32px}
:where(.rz) h2{color:var(--ink);font-size:40px;font-weight:200;line-height:54px}
:where(.rz) h3{color:var(--ink);font-size:25px}
:where(.rz) h4{color:var(--ink);font-size:23px;font-weight:300;margin-bottom:15px}
:where(.rz) h5{color:var(--ink);font-size:16px;font-weight:200;line-height:24px;margin-bottom:7px}
:where(.rz) h6{color:var(--ink);font-size:14px;font-weight:500;line-height:27px;margin-bottom:5px}
:where(.rz) p{margin-bottom:9px}
:where(.rz) ul{padding-left:1.4em}
.text p:empty,.text p.blank{height:21px;margin-bottom:9px}
.text ul,.text ol{margin-bottom:0}
.text li{line-height:21px}
.text a{color:var(--blue)}
@media(hover:hover){.text a:hover{text-decoration:underline;font-style:italic}}
@media(max-width:1023px){:where(.rz) h2{font-size:33px;line-height:1.4em}:where(.rz) h4{font-size:23px;line-height:1.2em}}
@media(max-width:767px){:where(.rz) p{margin-bottom:18px}:where(.rz) h2{font-size:26px;line-height:1.4em}:where(.rz) h3{font-size:25px;line-height:1.4em}:where(.rz) h4{font-size:23px;line-height:1.3em}:where(.rz) h5{font-size:13px}:where(.rz) h6{font-size:13px}}

/* ---- images ---- */
:where(.rz) figure{margin:0;text-align:center;font-size:0;line-height:0}
:where(.rz) figure img{display:inline-block;vertical-align:middle;max-width:100%;height:auto}
:where(.rz) figure a{display:inline-block;cursor:zoom-in;max-width:100%}
:where(.rz) img,:where(.rz) video{max-width:100%;height:auto}

/* ---- videos ---- */
.embed{position:relative;width:100%;background:#000;aspect-ratio:16/9;overflow:hidden}
.embed iframe,.embed video{position:absolute;inset:0;width:100%;height:100%;border:0}
.embed video{object-fit:cover;background:#000}

/* ---- galleries ---- */
.gallery{display:grid;gap:var(--ggap,10px);width:100%}
.gallery.grid{grid-template-columns:repeat(var(--cols,1),minmax(0,1fr))}
.gallery.masonry{grid-template-columns:repeat(var(--cols,1),minmax(0,1fr));align-items:start}
.gallery.masonry .col{display:flex;flex-direction:column;gap:var(--ggap,10px);width:100%}
.gallery a{display:block;cursor:zoom-in;overflow:hidden;position:relative}
.gallery img{width:100%}
.gallery.ratio-16-9 img{aspect-ratio:16/9;object-fit:cover}
.gallery.ratio-21-9 img{aspect-ratio:21/9;object-fit:cover}
.gallery a::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.5);opacity:0;transition:opacity 1.352s}
@media(hover:hover){.gallery a:hover::after{opacity:1}}

/* ---- closing buttons: in the text column ---- */
.project.rz .page-cta{max-width:var(--wrap);margin:40px auto 0;padding-left:15%}

/* ---- tablet / phone (RZ) ---- */
@media(max-width:1023px){.project.rz{padding-top:110px}}
@media(max-width:767px){
  .project.rz{padding:70px 0 0}             /* phone: each RZ section carries its own 25px side padding */
  .sec > .con{flex-wrap:wrap}
  .col{width:100% !important}
  .elementor-hidden-mobile,.elementor-hidden-phone{display:none !important}
  .project.rz .page-cta{padding:0 25px;margin-top:30px}
}
