/* Phase 22: all rules belong to Gallery components or the installed Gallery page. */
@font-face{font-family:TekgenGalleryInter;src:url('../fonts/InterVariable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
.tg-gallery .tg-gallery-open:hover,.tg-gallery .tg-gallery-open:focus,.tg-gallery .tg-gallery-title{color:#273339}.tg-gallery .tg-gallery-play{background:#273339;color:#fff}
.tekgen-gallery-layout #content>.ast-container{max-width:none;padding:0;width:100%}.tekgen-gallery-layout #primary{margin:0;width:100%}.tekgen-gallery-layout .entry-content>.elementor>.tekgen-gallery-page{max-width:none;width:100%;padding:0;gap:0}.tekgen-gallery-page>.elementor-element{width:100%}.tekgen-gallery-page .elementor-widget-html{margin:0}.tekgen-gallery-page{--container-max-width:100%;--padding-top:0;--padding-bottom:0;--padding-left:0;--padding-right:0;--gap:0}
.tg-gallery,.tg-gallery-hero,.tg-gallery-dialog{font-family:TekgenGalleryInter,Inter,Arial,sans-serif;color:var(--tekgen-ui-charcoal,#273339);font-size:16px;line-height:1.5}.tg-gallery *,.tg-gallery-hero *,.tg-gallery-dialog *{box-sizing:border-box}.tg-gallery-container{width:min(calc(100% - 64px),1280px);margin-inline:auto}.tg-gallery-hero{background:var(--tekgen-ui-deep,#1f2a30);color:#fff;padding:56px 0 48px;border-top:1px solid #39464c;border-bottom:3px solid #48ae50}.tg-gallery-hero .tg-gallery-eyebrow{font-size:12px;font-weight:700;letter-spacing:.15em;color:#accf38;margin:0 0 16px}.tg-gallery-hero h1{font-family:inherit;font-size:clamp(36px,4vw,56px);line-height:1.14;font-weight:700;letter-spacing:-.035em;color:#fff;margin:0}.tg-gallery-hero .tg-gallery-intro{max-width:680px;font-size:18px;line-height:1.6;margin:20px 0 0;color:#d9e0e2}.tg-gallery{padding:48px 0 72px;background:var(--tekgen-ui-canvas,#f7f9f8);min-height:350px}.tg-gallery-filters{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0}.tg-gallery-filters fieldset{border:0;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px;min-width:0}.tg-gallery-filters button,.tg-gallery-more{font:600 14px/1.4 TekgenGalleryInter,Inter,Arial,sans-serif;min-height:44px;padding:10px 16px;border:1px solid #d9e0e2;border-radius:4px;background:#fff;color:#273339;cursor:pointer;text-decoration:none}.tg-gallery-filters button:hover,.tg-gallery-more:hover{border-color:#273339;background:#eef2f2;color:#273339}.tg-gallery-filters [aria-pressed=true]{background:#273339;color:#fff;border-color:#273339}.tg-gallery-media-label{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;flex-shrink:0}.tg-gallery-filters select{min-height:44px;padding:8px 32px 8px 12px;border:1px solid #d9e0e2;border-radius:4px;font:400 14px/1.4 TekgenGalleryInter,Inter,Arial,sans-serif;background-color:#fff;color:#273339;width:auto;max-width:100%}.tg-gallery-status{font-size:14px;color:#5e6b71;min-height:0;margin:20px 0 24px}.tg-gallery-status:empty{display:none}.tg-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}.tg-gallery-card{min-width:0;background:#fff;border:1px solid #d9e0e2;border-radius:6px;overflow:hidden}.tg-gallery-open{display:block;height:100%;color:#273339;text-decoration:none!important}.tg-gallery-open:hover{color:#273339}.tg-gallery-cover{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#eef2f2}.tg-gallery-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}.tg-gallery-open:hover .tg-gallery-cover img{transform:scale(1.025)}.tg-gallery-card-copy{display:flex;flex-direction:column;gap:8px;padding:20px 20px 24px}.tg-gallery-category{font-size:11px;line-height:1.5;color:#2e7d32;font-weight:600;letter-spacing:.04em}.tg-gallery-title{font-size:20px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}.tg-gallery-count{font-size:13px;color:#5e6b71}.tg-gallery-play{position:absolute;left:16px;bottom:16px;background:#273339;color:white;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;font-size:16px;border:1px solid rgba(255,255,255,.7)}.tg-gallery-placeholder{display:grid;place-items:center;width:100%;height:100%;background:#273339;color:white}.tg-gallery-empty{text-align:center;border:1px solid #d9e0e2;background:#fff;padding:56px 24px;margin:0 auto;max-width:850px;border-radius:6px}.tg-gallery-empty>span{display:block;font-size:36px;color:#5e6b71;margin-bottom:16px}.tg-gallery-empty h2{font:600 26px/1.3 TekgenGalleryInter,Inter,Arial,sans-serif;letter-spacing:-.02em;color:#273339;margin:0 0 12px}.tg-gallery-empty p{max-width:510px;margin:0 auto!important;font-size:16px;color:#5e6b71}.tg-gallery-more{display:table;margin:40px auto 0}.tg-gallery-more[aria-disabled=true]{opacity:.6;cursor:wait}.tg-gallery [hidden],.tg-gallery-dialog [hidden]{display:none!important}.tg-gallery-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tg-gallery :focus-visible,.tg-gallery-hero :focus-visible{outline:3px solid #2e7d32;outline-offset:4px}.tg-gallery-hero :focus-visible{outline-color:#accf38}
.tg-gallery-dialog{width:min(calc(100% - 40px),1200px);max-width:1200px;max-height:calc(100dvh - 40px);margin:auto;padding:24px;background:#1f2a30;color:white;border:1px solid #5e6b71;border-radius:6px;overscroll-behavior:contain}.tg-gallery-dialog[open]{display:flex;flex-direction:column;gap:12px}.tg-gallery-dialog::backdrop{background:rgba(15,22,26,.88)}.tg-gallery-dialog header{display:flex;gap:20px;align-items:center;justify-content:space-between;flex:none}.tg-gallery-dialog h2{font:600 22px/1.3 TekgenGalleryInter,Inter,Arial,sans-serif;margin:0;color:#fff;overflow-wrap:anywhere}.tg-gallery-dialog button{font:600 14px/1.4 TekgenGalleryInter,Inter,Arial,sans-serif;border:1px solid #5e6b71;border-radius:4px;background:#273339;color:white;min-height:44px;min-width:44px;padding:10px 16px;cursor:pointer}.tg-gallery-dialog header button{font-size:28px;padding:0;flex:none}.tg-gallery-dialog button:hover{background:#39474e}.tg-gallery-dialog button:disabled{opacity:.45;cursor:default}.tg-gallery-dialog :focus-visible{outline:3px solid #accf38;outline-offset:3px}.tg-gallery-description{font-size:14px;color:#d9e0e2;max-height:90px;overflow:auto;margin:0}.tg-gallery-stage{min-height:160px;min-width:0;flex:1;display:grid;place-items:center;background:#131d22;overflow:hidden}.tg-gallery-stage>img{display:block;max-height:calc(100dvh - 290px);width:auto;max-width:100%;object-fit:contain}.tg-gallery-stage video{display:block;max-height:calc(100dvh - 290px);width:100%;object-fit:contain}.tg-gallery-stage iframe{display:block;aspect-ratio:16/9;width:100%;max-height:calc(100dvh - 290px);border:0}.tg-gallery-video-poster{width:100%;min-height:220px;max-height:calc(100dvh - 290px);aspect-ratio:16/9;position:relative;display:grid;place-items:center;overflow:hidden}.tg-gallery-video-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.tg-gallery-video-poster button{position:relative;background:#273339;border-color:#d9e0e2;padding:12px 24px}.tg-gallery-caption{font-size:14px;line-height:1.5;color:#d9e0e2;margin:0;max-height:90px;overflow:auto;flex:none}.tg-gallery-viewer-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none}.tg-gallery-viewer-nav>span{font-size:14px;font-variant-numeric:tabular-nums}.tg-gallery-dialog a{color:#fff;text-decoration:underline}.tg-gallery-stage>p{padding:24px;color:#fff;text-align:center}
@media(max-width:1024px){.tg-gallery-container{width:calc(100% - 48px)}.tg-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tg-gallery-filters{align-items:stretch;flex-direction:column;gap:8px}.tg-gallery-filters fieldset{flex-wrap:nowrap;overflow-x:auto;max-width:calc(100% + 16px);width:calc(100% + 16px);padding:8px;margin:0 -8px;scroll-padding-inline:8px;overscroll-behavior-inline:contain;scrollbar-width:thin}.tg-gallery-filters fieldset button{flex-shrink:0;white-space:nowrap}.tg-gallery-media-label{align-self:flex-start}.tg-gallery-hero{padding:40px 0}.tg-gallery{padding-top:32px}}
@media(max-width:600px){.tg-gallery-container{width:calc(100% - 40px)}.tg-gallery-hero{padding:32px 0}.tg-gallery-hero .tg-gallery-eyebrow{margin-bottom:12px}.tg-gallery-hero .tg-gallery-intro{font-size:16px;line-height:1.6;margin:16px 0 0}.tg-gallery{padding:32px 0 48px}.tg-gallery-grid{grid-template-columns:1fr;gap:24px}.tg-gallery-filters fieldset{gap:8px}.tg-gallery-filters button{padding:10px 12px;font-size:12px}.tg-gallery-empty{padding:36px 20px}.tg-gallery-empty h2{font-size:23px}.tg-gallery-card-copy{padding:18px}.tg-gallery-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:12px}.tg-gallery-dialog[open]{gap:8px}.tg-gallery-dialog h2{font-size:18px}.tg-gallery-dialog button{padding:10px 12px}.tg-gallery-stage{min-height:140px}.tg-gallery-stage>img,.tg-gallery-stage video,.tg-gallery-stage iframe{max-height:calc(100dvh - 240px)}.tg-gallery-video-poster{min-height:160px}.tg-gallery-description,.tg-gallery-caption{max-height:56px}.tg-gallery-description:empty,.tg-gallery-caption:empty{display:none}}
@media(prefers-reduced-motion:reduce){.tg-gallery *,.tg-gallery-dialog *{transition:none!important;animation:none!important}.tg-gallery-open:hover .tg-gallery-cover img{transform:none}}

/* Phase 22B: optional hero photograph, managed by its Elementor Media control. */
.tg-gallery-hero__copy{min-width:0}
.tg-gallery-hero--with-image .tg-gallery-hero__layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:48px;align-items:center}
.tg-gallery-hero__media{min-width:0;margin:0;aspect-ratio:16/10;overflow:hidden;border-radius:8px;background:#273339}
.tg-gallery-hero__media .tg-gallery-hero__image{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center}
@media(max-width:1024px){.tg-gallery-hero--with-image .tg-gallery-hero__layout{gap:32px}.tg-gallery-hero--with-image h1{font-size:40px}}
@media(max-width:850px){.tg-gallery-hero--with-image .tg-gallery-hero__layout{grid-template-columns:1fr;gap:28px}}
@media(max-width:600px){.tg-gallery-hero--with-image .tg-gallery-hero__layout{gap:24px}.tg-gallery-hero--with-image h1{font-size:36px}}
