/* Single-page gallery. Deliberately zero external assets, fonts, video previews or API calls. */
.hdi-gallery-page #zak-primary {width:100%;max-width:100%;flex:1 1 100%}
/* Zakra renders the real sidebar for this page. Keep the wide gallery on desktop. */
@media (min-width:768px) {
  .hdi-gallery-page #zak-primary {padding-right:0!important}
  .hdi-gallery-page #zak-secondary {display:none!important}
}
/* On phones, put the existing sidebar menu and all other widgets below the gallery. */
@media (max-width:767px) {
  .hdi-gallery-page #zak-primary {width:100%;max-width:100%;flex:0 0 100%;padding-right:0!important;padding-bottom:20px}
  .hdi-gallery-page #zak-secondary {display:block!important;width:100%;max-width:100%;flex:0 0 100%;min-width:0;padding:0 0 28px;border:0}
  .hdi-gallery-page #zak-secondary > .widget {max-width:100%}
}
.hdi-gallery-page #page .zak-post-content{overflow:visible;margin-left:0!important;margin-right:0!important;padding:24px!important}
.hdi-gallery-page .zak-post-content > .hdi-gallery {width:100%}
.hdi-gallery, .hdi-gallery * {box-sizing:border-box}
.hdi-gallery {--hdi-ink:#23394b;--hdi-orange:#e8881e;--hdi-muted:#647586;--hdi-line:#e7ebee;color:var(--hdi-ink);max-width:1110px;margin:0 auto 30px;font-family:inherit}
.hdi-gallery [hidden] {display:none!important}
.hdi-gallery__intro {background:#f7f9fa;border:1px solid #e8ecef;border-radius:12px;padding:23px 26px;margin:0 0 34px;text-align:center}
.hdi-gallery__intro p {font-size:15px;line-height:1.65;color:#425363;margin:8px auto 12px;max-width:735px}
.hdi-gallery__eyebrow {font-weight:750;font-size:11px;color:#a35b0d;letter-spacing:.12em}
.hdi-gallery__total {font-size:12px;color:#657485;letter-spacing:.015em}
.hdi-gallery__section {margin:0 0 40px}
.hdi-gallery__section-header {display:flex;justify-content:space-between;align-items:start;gap:16px;border-bottom:1px solid #e6eaed;padding:0 0 17px;margin-bottom:18px}
.hdi-gallery__section h2 {font-size:24px;line-height:1.27;font-weight:720;margin:6px 0 7px;color:#1e3445;letter-spacing:-.018em}
.hdi-gallery__stage{font-size:11px;letter-spacing:.12em;font-weight:800;color:#c67214}
.hdi-gallery__section-header p{max-width:790px;color:#637586;font-size:14px;line-height:1.55;margin:0}
.hdi-gallery__count{border-radius:30px;padding:6px 11px;background:#f5f7f8;color:#5b6c7a;border:1px solid #e7ecef;font-size:12px;white-space:nowrap;margin-top:4px}
.hdi-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.hdi-gallery__tile{background:#fff;border:1px solid #e4e8ec;border-radius:10px;box-shadow:0 3px 13px rgba(20,37,55,.045);margin:0;padding:7px;display:flex;flex-direction:column;min-width:0;cursor:pointer;text-align:left;font:inherit;color:inherit;transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}
.hdi-gallery__tile:hover{transform:translateY(-3px);box-shadow:0 8px 25px rgba(20,37,55,.12);border-color:#d6dde3}
.hdi-gallery__tile:focus-visible,.hdi-gallery__close:focus-visible{outline:3px solid #ed8b22;outline-offset:3px}
.hdi-gallery__visual{display:flex;align-items:center;justify-content:center;aspect-ratio:5/4;overflow:hidden;border-radius:7px;position:relative;isolation:isolate;background:linear-gradient(140deg,#294357 0%,#405d6c 65%,#637e85 100%)}
.hdi-gallery__section--limpieza .hdi-gallery__visual{background:linear-gradient(135deg,#284f62 0%,#416a71 55%,#67848a 100%)}
.hdi-gallery__section--terminados .hdi-gallery__visual{background:linear-gradient(140deg,#3b4e54 0%,#73776d 67%,#a39c88 100%)}
.hdi-gallery__pattern{position:absolute;inset:-5%;opacity:.3;background:repeating-linear-gradient(-35deg,transparent 0 15px,rgba(255,255,255,.10) 16px 18px,transparent 19px 40px),radial-gradient(circle at 80% 20%,#d7b987 0,transparent 35%)}
.hdi-gallery__watermark{position:absolute;left:14px;bottom:-24px;font-size:120px;font-weight:850;letter-spacing:-.12em;color:rgba(255,255,255,.095);line-height:1}
.hdi-gallery__visual img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0}
.hdi-gallery__visual::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(0deg,rgba(10,24,39,.37),transparent 62%);pointer-events:none}
.hdi-gallery__play{display:flex;align-items:center;justify-content:center;width:57px;height:57px;border-radius:50%;background:#fff;color:#d77413;box-shadow:0 3px 15px rgba(0,0,0,.25);z-index:1;transition:transform .18s ease}
.hdi-gallery__tile:hover .hdi-gallery__play{transform:scale(1.08)}
.hdi-gallery__preview{position:absolute;right:13px;bottom:11px;font-size:10px;letter-spacing:.1em;font-weight:800;color:#fff;z-index:1}
.hdi-gallery__tile-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 5px 5px;font-size:12px;min-height:39px;color:#263b4b}
.hdi-gallery__tile-bottom strong{font-size:13px;font-weight:700;line-height:1.25}
.hdi-gallery__tile-bottom span{white-space:nowrap;color:#647482;font-size:12px}
.hdi-gallery__modal{position:fixed;inset:0;z-index:999999;display:flex;justify-content:center;align-items:center;padding:20px}
.hdi-gallery__backdrop{position:absolute;inset:0;background:rgba(13,23,32,.87)}
.hdi-gallery__dialog{position:relative;z-index:1;max-width:min(950px,96vw);width:100%;max-height:96vh;display:flex;flex-direction:column;border-radius:12px;background:#162737;color:white;box-shadow:0 24px 80px #0007;overflow:hidden}
.hdi-gallery__dialog-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px 10px 17px;min-height:52px;font-size:14px}
.hdi-gallery__close{border:none;background:rgba(255,255,255,.10);border-radius:50%;width:34px;height:34px;display:flex;align-items:center;justify-content:center;font-size:27px;line-height:1;color:white;cursor:pointer;padding:0}
.hdi-gallery__close:hover{background:rgba(255,255,255,.23)}
.hdi-gallery__video-slot{background:#030607;display:flex;align-items:center;justify-content:center;min-height:200px;max-height:calc(96vh - 125px)}
.hdi-gallery__video-slot video{display:block;max-width:100%;max-height:calc(96vh - 125px);width:auto;height:auto;min-width:0;object-fit:contain}
body.hdi-gallery-modal-open{overflow:hidden}
@media(max-width:800px){.hdi-gallery__grid{gap:12px}.hdi-gallery__section h2{font-size:21px}.hdi-gallery__tile-bottom{gap:4px;flex-wrap:wrap}.hdi-gallery__intro{margin-bottom:27px}}
@media(max-width:600px){.hdi-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hdi-gallery__intro{padding:19px 14px}.hdi-gallery__intro p{font-size:13px}.hdi-gallery__section-header{align-items:start;gap:8px}.hdi-gallery__section h2{font-size:19px}.hdi-gallery__stage{font-size:10px}.hdi-gallery__section-header p{font-size:12px}.hdi-gallery__count{padding:4px 7px;font-size:10px}.hdi-gallery__tile{padding:5px;border-radius:8px}.hdi-gallery__visual{aspect-ratio:4/5}.hdi-gallery__play{width:48px;height:48px}.hdi-gallery__play svg{width:21px;height:21px}.hdi-gallery__tile-bottom{padding:8px 4px 3px}.hdi-gallery__tile-bottom strong{font-size:11px}.hdi-gallery__tile-bottom span{font-size:11px}.hdi-gallery__preview{font-size:9px}.hdi-gallery__modal{padding:8px}.hdi-gallery__dialog{max-width:100%;max-height:96dvh}.hdi-gallery__video-slot,.hdi-gallery__video-slot video{max-height:calc(96dvh - 125px)}.hdi-gallery__section{margin-bottom:34px}}
@media(prefers-reduced-motion:reduce){.hdi-gallery__tile,.hdi-gallery__play{transition:none}}

@media(max-width:600px){.hdi-gallery-page #page .zak-post-content{padding:15px!important}}
