/* Scoped to shortcode: no global body, header, or footer changes. */
.mdp-gallery{--mdp-blue:#1687ff;--mdp-text:#f2f6ff;--mdp-muted:#a5b4c9;--mdp-line:#2a3a50;background:#090e17;color:var(--mdp-text);width:100%;max-width:none;overflow:clip;font-family:Inter,Arial,sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}
.mdp-gallery,.mdp-gallery *,.mdp-gallery *::before,.mdp-gallery *::after{box-sizing:border-box}
.mdp-gallery img{max-width:100%;display:block}
.mdp-gallery button,.mdp-gallery input{font:inherit}
.mdp-gallery button{cursor:pointer}
.mdp-gallery .mdp-wrap{max-width:1450px;width:calc(100% - 76px);margin:0 auto}
.mdp-gallery [hidden]{display:none!important}
.mdp-gallery .mdp-hero{padding:58px 0 35px;position:relative}
.mdp-gallery .mdp-eyebrow{color:#74baff;font-size:11px;letter-spacing:.21em;font-weight:750;text-transform:uppercase;display:flex;align-items:center;gap:12px}
.mdp-gallery .mdp-eyebrow:before{content:"";height:2px;width:28px;background:var(--mdp-blue)}
.mdp-gallery h2{color:#f8fbff!important;font-size:clamp(42px,5vw,70px)!important;line-height:1.04!important;letter-spacing:-.055em!important;font-weight:800!important;margin:17px 0 15px!important}
.mdp-gallery .mdp-dot{color:var(--mdp-blue)}
.mdp-gallery .mdp-hero p{color:var(--mdp-muted);font-size:16px;line-height:1.85;max-width:720px;margin:0}
.mdp-gallery .mdp-totals{display:flex;gap:26px;flex-wrap:wrap;margin-top:23px;color:#92a6c0;font-size:12px;letter-spacing:.02em}
.mdp-gallery .mdp-totals b{font-size:18px;color:#fff;margin-right:4px}
.mdp-gallery .mdp-toolbar{padding:17px 18px;background:#111a28;border:1px solid #273751;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.mdp-gallery .mdp-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.mdp-gallery .mdp-filter{background:transparent;color:#a9bdd5;border:1px solid transparent;border-radius:7px;padding:9px 12px;font-size:12px;font-weight:700;line-height:1.5;transition:background .2s,border-color .2s}
.mdp-gallery .mdp-filter:hover{background:#1a2b42;color:#fff}
.mdp-gallery .mdp-filter.is-active{background:var(--mdp-blue);border-color:var(--mdp-blue);color:#fff}
.mdp-gallery .mdp-search-wrap{display:flex;align-items:center;gap:8px;background:#090f19;border:1px solid #304561;padding:0 12px;border-radius:8px;min-width:225px;color:#88a1be;flex-shrink:0}
.mdp-gallery .mdp-search-wrap>span:not(.screen-reader-text){font-size:23px}
.mdp-gallery .mdp-search{color:#fff!important;border:0!important;background:transparent!important;outline:0!important;font-size:13px!important;box-shadow:none!important;line-height:1.5!important;height:43px!important;min-width:0;width:100%;padding:0!important}
.mdp-gallery .mdp-search::placeholder{color:#899bb2}
.mdp-gallery .mdp-result-summary{color:#849bb6;font-size:12px;margin:0 0 16px 4px}
.mdp-gallery .mdp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding-bottom:80px}
.mdp-gallery .mdp-card{appearance:none;text-align:left;padding:0;overflow:hidden;min-width:0;display:flex;flex-direction:column;background:linear-gradient(150deg,#151f30,#101725)!important;border:1px solid #273348!important;color:inherit!important;border-radius:14px!important;box-shadow:0 14px 45px rgba(0,0,0,.1);transition:transform .24s,border-color .24s,box-shadow .24s;line-height:inherit!important}
.mdp-gallery .mdp-card:hover{transform:translateY(-5px);border-color:#2871c5!important;box-shadow:0 20px 40px rgba(0,0,0,.22)}
.mdp-gallery .mdp-cover{display:block;position:relative;width:100%;aspect-ratio:16/10;background:#1a2638;overflow:hidden}
.mdp-gallery .mdp-cover img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.mdp-gallery .mdp-card:hover .mdp-cover img{transform:scale(1.04)}
.mdp-gallery .mdp-overlay-action{position:absolute;right:13px;bottom:13px;font-size:11px;background:rgba(8,19,33,.89);border:1px solid #ffffff40;color:#fff;padding:9px 12px;border-radius:7px;backdrop-filter:blur(8px)}
.mdp-gallery .mdp-video-cover{display:flex;width:100%;height:100%;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#bbd3ee;font-size:14px;letter-spacing:.05em}
.mdp-gallery .mdp-video-cover span{display:grid;place-content:center;width:66px;height:66px;border:1px solid #4a88d1;border-radius:50%;font-size:25px;background:#1a3c61}
.mdp-gallery .mdp-card-body{padding:22px 22px 23px;display:flex;flex-direction:column;gap:8px;flex:1}
.mdp-gallery .mdp-category-label{color:#68b4ff;text-transform:uppercase;font-size:11px;letter-spacing:.14em;font-weight:700}
.mdp-gallery .mdp-card-body strong{color:#f2f6ff;font-size:21px;font-weight:750;line-height:1.25;letter-spacing:-.028em}
.mdp-gallery .mdp-desc{color:#aabbd0;font-size:13px;line-height:1.55}
.mdp-gallery .mdp-media-count{color:#80bcff;font-size:12px;margin-top:auto;padding-top:9px}
.mdp-gallery .mdp-empty,.mdp-gallery .mdp-no-content{padding:30px;color:#b0c1d6;border:1px dashed #405575;border-radius:10px;text-align:center}
.mdp-gallery .mdp-bottom-cta{margin:0 auto;padding:32px 36px 38px;background:radial-gradient(ellipse at 85% 100%,#133d6a,transparent 60%),#121f32;border:1px solid #295584;border-radius:14px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.mdp-gallery .mdp-bottom-cta small{color:#67b5ff;font-size:11px;font-weight:700;letter-spacing:.16em}
.mdp-gallery .mdp-bottom-cta h3{font-size:clamp(23px,3vw,36px);letter-spacing:-.04em;line-height:1.2;color:#fff!important;margin:9px 0!important}
.mdp-gallery .mdp-bottom-cta p{margin:0;color:#b5c6db;font-size:14px}
.mdp-gallery .mdp-bottom-cta a{display:inline-flex;white-space:nowrap;align-items:center;justify-content:center;text-decoration:none;background:#1687ff;color:#fff;padding:15px 22px;border-radius:8px;font-size:13px;font-weight:750}
.mdp-gallery .mdp-bottom-cta a:hover{color:#fff;background:#0572e1}
.mdp-gallery .mdp-wrap{padding-bottom:70px}
.mdp-gallery .mdp-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(3,7,12,.92);backdrop-filter:blur(9px);padding:18px;display:flex;align-items:center;justify-content:center}
.mdp-gallery .mdp-lightbox-panel{height:min(92dvh,900px);width:min(1250px,100%);display:flex;flex-direction:column;background:#0b1420;border-radius:14px;border:1px solid #314a68;overflow:hidden;box-shadow:0 30px 130px rgba(0,0,0,.6)}
.mdp-gallery .mdp-lightbox-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #2a3b50;flex-shrink:0}
.mdp-gallery .mdp-lightbox-header strong{display:block;color:#fff;font-size:17px;line-height:1.35}
.mdp-gallery .mdp-lightbox-subtitle{display:block;color:#8ba8c7;font-size:12px;margin-top:2px}
.mdp-gallery .mdp-close{background:#203048;color:#fff;border:1px solid #4a617c;border-radius:10px;font-size:29px;width:43px;height:43px;line-height:1;padding:0}
.mdp-gallery .mdp-stage{position:relative;display:flex;flex:1;min-height:0;align-items:center;justify-content:center;background:#070b12;padding:12px 54px}
.mdp-gallery .mdp-stage-media{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}
.mdp-gallery .mdp-stage-media img,.mdp-gallery .mdp-stage-media video{max-width:100%;max-height:100%;height:auto;width:auto;object-fit:contain}
.mdp-gallery .mdp-stage-media iframe{width:min(100%,1100px);max-height:100%;height:auto;aspect-ratio:16/9;border:0;border-radius:6px}
.mdp-gallery .mdp-prev,.mdp-gallery .mdp-next{position:absolute;top:50%;transform:translateY(-50%);background:#14243ce0;border:1px solid #59718d;border-radius:10px;color:#fff;font-size:29px;width:39px;height:49px;z-index:2;padding:0}
.mdp-gallery .mdp-prev{left:8px}.mdp-gallery .mdp-next{right:8px}
.mdp-gallery .mdp-thumbs{display:flex;align-items:center;gap:14px;padding:12px 17px;border-top:1px solid #2c405c;flex-shrink:0}
.mdp-gallery .mdp-thumblist{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;flex:1}
.mdp-gallery .mdp-thumb{width:68px;height:47px;flex:0 0 68px;border:2px solid transparent;padding:0;background:#1d3148;border-radius:7px;display:grid;place-content:center;color:#b6d7fa;overflow:hidden;font-size:22px}
.mdp-gallery .mdp-thumb.is-active{border-color:var(--mdp-blue)}
.mdp-gallery .mdp-thumb img{width:100%;height:100%;object-fit:cover}
.mdp-gallery .mdp-counter{color:#8ca8c8;font-size:12px;white-space:nowrap}
.mdp-gallery :focus-visible{outline:2px solid #74bdff!important;outline-offset:3px}
@media(max-width:1050px){.mdp-gallery .mdp-wrap{width:calc(100% - 48px)}.mdp-gallery .mdp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mdp-gallery .mdp-toolbar{flex-direction:column;align-items:stretch}.mdp-gallery .mdp-search-wrap{width:100%}}
@media(max-width:640px){.mdp-gallery .mdp-wrap{width:calc(100% - 32px)}.mdp-gallery .mdp-hero{padding:38px 0 24px}.mdp-gallery h2{font-size:42px!important}.mdp-gallery .mdp-hero p{font-size:14px}.mdp-gallery .mdp-totals{margin-top:17px}.mdp-gallery .mdp-toolbar{padding:12px;margin-bottom:16px}.mdp-gallery .mdp-filter{font-size:11px;padding:8px 10px}.mdp-gallery .mdp-grid{grid-template-columns:1fr;gap:16px;padding-bottom:47px}.mdp-gallery .mdp-card-body{padding:18px}.mdp-gallery .mdp-card-body strong{font-size:19px}.mdp-gallery .mdp-bottom-cta{flex-direction:column;align-items:stretch;padding:25px}.mdp-gallery .mdp-bottom-cta a{width:100%}.mdp-gallery .mdp-wrap{padding-bottom:40px}.mdp-gallery .mdp-lightbox{padding:5px}.mdp-gallery .mdp-lightbox-panel{height:calc(100dvh - 10px)}.mdp-gallery .mdp-stage{padding:9px 37px}.mdp-gallery .mdp-prev,.mdp-gallery .mdp-next{width:30px;height:40px}.mdp-gallery .mdp-thumbs{padding:10px}.mdp-gallery .mdp-thumb{width:55px;height:40px;flex-basis:55px}}
@media(prefers-reduced-motion:reduce){.mdp-gallery *{transition:none!important}}

/* v1.1 — edge-to-edge Elementor page and clear spacing below floating sticky header. */
body.mdp-portfolio-page {
  margin: 0 !important;
  padding: 0 !important;
  background: #090e17 !important;
  overflow-x: clip;
}
body.mdp-portfolio-page #content,
body.mdp-portfolio-page .site-main {
  background: #090e17;
}
body.mdp-portfolio-page .mdp-gallery {
  position: relative;
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: 145px; /* Reserved for Madly's transparent sticky header. */
  min-height: 100vh;
}
/* Gracefully use the available width where Elementor places gallery in its shortcode widget. */
body.mdp-portfolio-page .elementor-widget-shortcode:has(> .elementor-widget-container > .mdp-gallery) {
  margin: 0 !important;
  padding: 0 !important;
}
body.mdp-portfolio-page .mdp-gallery .mdp-hero { padding-top: 0; }
body.mdp-portfolio-page .mdp-gallery .mdp-wrap { max-width: 1480px; }

/* A single published project becomes a premium horizontal feature rather than a tiny left card. */
.mdp-gallery .mdp-grid.mdp-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1230px;
  margin: 0 auto;
}
.mdp-gallery .mdp-grid--single .mdp-card {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(330px, .82fr);
  min-height: 420px;
  align-items: stretch;
}
.mdp-gallery .mdp-grid--single .mdp-cover {
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
}
.mdp-gallery .mdp-grid--single .mdp-card-body {
  justify-content: center;
  padding: clamp(30px,4vw,65px);
  gap: 18px;
  background: radial-gradient(ellipse at 100% 100%,#193452,transparent 68%);
}
.mdp-gallery .mdp-grid--single .mdp-card-body strong {
  font-size: clamp(28px,3.1vw,43px);
  line-height: 1.15;
}
.mdp-gallery .mdp-grid--single .mdp-desc {font-size:15px;line-height:1.75}
.mdp-gallery .mdp-grid--single .mdp-media-count {margin-top:12px;font-size:14px}
.mdp-gallery .mdp-grid.mdp-grid--two {
  grid-template-columns: repeat(2,minmax(0,1fr));
  max-width: 1230px;
  margin: 0 auto;
}
@media(max-width:1024px) {
  body.mdp-portfolio-page .mdp-gallery {padding-top: 124px;}
  .mdp-gallery .mdp-grid--single .mdp-card {
    grid-template-columns: minmax(0,1fr);
  }
  .mdp-gallery .mdp-grid--single .mdp-cover {min-height:0;aspect-ratio:16/10;}
  .mdp-gallery .mdp-grid--single .mdp-card-body {padding:26px;}
  .mdp-gallery .mdp-grid--single .mdp-card-body strong {font-size:27px;}
}
@media(max-width:640px) {
  body.mdp-portfolio-page .mdp-gallery {padding-top: 117px;}
  .mdp-gallery .mdp-grid.mdp-grid--two {grid-template-columns:1fr;}
}
