/* Exclusive to the two training galleries; never loaded by existing pages. */
.gallery-page {min-height:100dvh;display:flex;flex-direction:column;background:#172126}
.gallery-main {flex:1;display:flex;align-items:center;justify-content:center;padding:24px 28px;background:linear-gradient(110deg,#06202bd9,#0a3546a8),url('consultoria-home.png') center/cover no-repeat}
.gallery-layout {width:min(1280px,100%);margin-inline:auto}
.gallery-heading {text-align:center;color:#f4f8f8}
.gallery-heading h1 {margin:0;font-size:clamp(26px,3.1vw,46px);line-height:1.15;font-weight:700;letter-spacing:-.025em;text-wrap:balance}
.gallery-accent {display:block;width:108px;height:5px;margin:16px auto 0;border-radius:8px;background:#16b78e}
.gallery-tools {display:flex;justify-content:flex-end;margin-top:0;min-height:36px}
.gallery-music {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:5px 13px;border:1px solid #90b9b66b;border-radius:20px;background:#102c36d9;color:#ecf5f4;font-size:12px;line-height:1.4}
.gallery-music:hover,.gallery-music[aria-pressed="true"] {background:#24434c;border-color:#16b78e}
.gallery-music span[aria-hidden] {font-size:18px;line-height:1}
.gallery-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:14px auto 0;width:min(100%,max(320px,calc((100dvh - var(--gallery-header-height,91px) - var(--gallery-footer-height,108px) - var(--gallery-heading-height,110px) - 100px) * 64 / 27)))}
.gallery-item {margin:0;min-width:0;aspect-ratio:16/9;position:relative}
.gallery-video {display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:contain;background:transparent;pointer-events:none}
.gallery-video::-webkit-media-controls {display:none!important}
.gallery-start {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:12px;border:0;background:transparent;color:#fff;cursor:pointer}
.gallery-start[hidden] {display:none}
.gallery-title-band {display:flex;align-items:center;justify-content:center;gap:9px;max-width:100%;padding:10px 12px;border-radius:7px;background:rgba(8,53,68,.83);color:#fff;font-size:clamp(12px,1.05vw,16px);font-weight:650;line-height:1.35;text-align:center;text-wrap:balance}
.gallery-play-icon {flex-shrink:0;font-size:21px;line-height:1}
.gallery-start:hover .gallery-title-band {background:rgba(8,53,68,.94)}
.gallery-start:focus-visible {outline-offset:-5px}
.gallery-caption {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.gallery-error:not([hidden]) {position:absolute;inset:0;display:grid;place-items:center;padding:16px;text-align:center;background:#172126;color:#f4f8f8;font-size:13px}
@media(max-width:1023px) {
  .gallery-main {padding:30px 24px;align-items:flex-start}
  .gallery-heading h1 {font-size:clamp(26px,4vw,38px)}
  .gallery-tools {margin-top:14px}
  .gallery-grid {width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media(max-width:600px) {
  .gallery-main {padding:26px 16px 32px}
  .gallery-heading h1 {font-size:28px}
  .gallery-tools {justify-content:center;margin-top:18px}
  .gallery-grid {grid-template-columns:minmax(0,1fr);gap:18px;margin-top:22px}
}

/* The existing video node is temporarily moved; its figure keeps its dimensions. */
body.gallery-zoom-open {overflow:hidden}
.gallery-zoom {position:fixed;inset:0;margin:auto;padding:0;border:0;overflow:visible;width:min(75vw,calc((100dvh - 96px) * 16 / 9));max-width:none;max-height:none;aspect-ratio:16/9;background:transparent;color:#fff;opacity:0;transform:scale(.96);transition:opacity 180ms ease,transform 180ms ease}
.gallery-zoom.is-visible {opacity:1;transform:scale(1)}
.gallery-zoom::backdrop {background:rgba(0,12,18,.58)}
.gallery-zoom-stage {width:100%;height:100%;aspect-ratio:16/9}
.gallery-zoom-close {position:absolute;right:0;top:-42px;width:36px;height:36px;padding:0;border:1px solid #ffffff80;border-radius:50%;background:#083544;color:#fff;font-size:28px;line-height:1;cursor:pointer}
@starting-style {.gallery-zoom.is-visible {opacity:0;transform:scale(.96)}}
@media(max-width:1023px) {.gallery-zoom {width:min(92vw,calc((100dvh - 96px) * 16 / 9))}}
@media(prefers-reduced-motion:reduce) {.gallery-zoom {transition:none}}
