/* Resources and rules are loaded only on product fichas and the GreenSol page. */
product-gallery.ox-approved-gallery{display:flex;flex-direction:column;position:relative;width:100%;min-width:0;gap:12px!important;--product-gallery-dimension:1.28;}
.ox-approved-gallery .product-gallery__carousel--main{width:100%;min-width:0;background:#f1f3f4;}
.ox-approved-gallery .product-gallery__picture{position:relative;aspect-ratio:1.28!important;height:auto!important;overflow:hidden;background:#f1f3f4;}
.ox-approved-gallery .product-gallery__picture>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;padding:0!important;}
.ox-approved-gallery .ox-photo-open{position:absolute;inset:0;z-index:2;width:100%;height:100%;border:0;padding:0;background:transparent;cursor:zoom-in;}
.ox-photo-open>span{position:absolute;right:14px;bottom:14px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #c5d0d6;border-radius:50%;background:#fff;color:#142631;font-size:20px;}
.ox-approved-gallery .product-gallery__carousel--thumbs{width:100%;height:66px!important;min-width:0;padding-inline:32px!important;}
.ox-approved-gallery .product-gallery__thumb{display:flex;align-items:center;justify-content:center;cursor:pointer;}
.ox-approved-gallery .product-gallery__thumb--container{width:64px!important;height:64px!important;aspect-ratio:1!important;flex:none;border:1px solid #bdc7cd!important;background:#f1f3f4;}
.ox-approved-gallery .product-gallery__thumb img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center;}
.ox-approved-gallery .swiper-slide-thumb-active .product-gallery__thumb--container{border:2px solid #12212b!important;}
.ox-approved-gallery :is(button,[role=button]):focus-visible{outline:2px solid #0089b0;outline-offset:-3px;}
#ox-greensol-intro .ox-approved-gallery .product-gallery__image{border:0;aspect-ratio:auto;}
#ox-greensol-intro .ox-approved-gallery .product-gallery__image--thumb{aspect-ratio:1!important;}
#ox-greensol-intro .ox-gallery-caption{font-size:11px!important;color:#52616a;line-height:1.6!important;margin:0!important;min-height:3.2em;}
/* Preserve the complete equipment and all mounting points in the designated blocks. */
:is(#theme-section-media-with-text-23392,#theme-section-media-with-text-80467,#theme-section-media-with-text-74959) .theme-section__picture>img.ox-function-approved,
:is(#ox-stixx10-func-section,#ox-klein-func-section) img.ox-function-approved,
#ox-greensol-sistema img.ox-function-approved{object-fit:contain!important;object-position:center!important;transform:none!important;}
#ox-greensol-sistema .ox-g-sistema-media{background:#e9edef;}
:is(#ox-stixx-modelos,#ox-stixx5-modelos,#ox-stixx10-modelos) img.ox-comparison-approved{object-fit:contain!important;object-position:center!important;transform:none!important;padding:12px!important;background:transparent!important;}
.ox-photo-dialog{width:min(1360px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #445661;border-radius:0;background:#101c25;color:#fff;overflow:auto;}
.ox-photo-dialog::backdrop{background:rgba(3,12,18,.88);}
.ox-photo-dialog__bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 18px;border-bottom:1px solid #3c4d57;}
.ox-photo-dialog__bar p{margin:0;font:14px/1.5 inherit;color:#e5edf2;}
.ox-photo-dialog button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:1px solid #647884;background:#101c25;color:#fff;font-size:30px;cursor:pointer;}
.ox-photo-dialog button:focus-visible{outline:2px solid #00afe0;outline-offset:3px;}
.ox-photo-dialog__stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:16px;}
.ox-photo-dialog__stage img{display:block;max-width:100%;width:100%;height:min(76dvh,1000px);object-fit:contain;background:#101c25;}
@media(max-width:783px){
 .ox-approved-gallery .product-gallery__carousel--thumbs{height:54px!important;}
 .ox-approved-gallery .product-gallery__thumb--container{width:50px!important;height:50px!important;}
 .ox-photo-open>span{width:32px;height:32px;right:10px;bottom:10px;font-size:18px;}
 .ox-photo-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);}
 .ox-photo-dialog__bar{padding:8px;gap:8px;}
 .ox-photo-dialog__bar p{font-size:12px;}
 .ox-photo-dialog__stage{gap:4px;padding:8px 4px;grid-template-columns:36px minmax(0,1fr) 36px;}
 .ox-photo-dialog__stage button{min-width:36px;}
 .ox-photo-dialog__stage img{height:70dvh;}
}

/* La zona de arrastre permanece libre; la ampliación tiene un control propio. */
.ox-approved-gallery .ox-photo-open{inset:auto 10px 10px auto;width:44px;height:44px;}
.ox-approved-gallery .ox-photo-open>span{inset:0;margin:auto;}
.ox-approved-gallery .product-gallery__carousel--main{touch-action:pan-y;}
.ox-approved-gallery .product-gallery__image{user-select:none;-webkit-user-drag:none;}
