/* Only gallery-containing cards and the dedicated lightbox are affected. */
.greco-hall-editable .greco-venue-layout-card__image-link:has(.ghg){aspect-ratio:auto;overflow:visible}
.greco-hall-editable .greco-venue-layout-card__image:has(.ghg){width:100%;text-align:initial}
.ghg{width:100%;color:#3e2f22;background:#fff9f2;font:14px/1.5 "Yu Gothic",system-ui,sans-serif}
.ghg [hidden]{display:none!important}
.ghg__frame{position:relative;aspect-ratio:3/2;background:#2f241b;overflow:hidden}
.ghg__slide{display:block;width:100%;height:100%;touch-action:pan-y pinch-zoom}
.ghg__slide picture{display:block;width:100%;height:100%}
.greco-hall-editable .ghg .ghg__slide img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;transition:none!important;border-radius:0}
.ghg__hint{position:absolute;right:10px;bottom:10px;padding:5px 10px;border-radius:20px;background:#251b14d9;color:#fff9f2;font-size:12px;pointer-events:none}
.ghg__nav{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:7px 8px;border-top:1px solid #d9c8b2}
.ghg button,.ghg-modal button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:6px;border:1px solid transparent;border-radius:50%;background:transparent;color:inherit;font:inherit;cursor:pointer;box-sizing:border-box}
.ghg__pages{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px}
.ghg__pages button{min-width:36px;font-size:12px;border-radius:6px}
.ghg button[aria-current="true"]{border-color:#8b6843;background:#eee4d7;font-weight:700}
.ghg button:hover{background:#eee4d7;color:#3e2f22}
.ghg__count{display:block;padding:0 8px 8px;text-align:center;font-size:12px;color:#6f5b49}
.ghg :focus-visible,.ghg-modal :focus-visible{outline:3px solid #c7a15b;outline-offset:-3px}
.ghg-modal{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#201a16;color:#fff9f2;z-index:2147483000;font:14px/1.5 "Yu Gothic",system-ui,sans-serif;box-sizing:border-box}
.ghg-modal[open]{display:flex;flex-direction:column}
.ghg-modal::backdrop{background:#201a16f5}
.ghg-modal__bar{display:flex;align-items:center;gap:8px;flex:none;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));border-bottom:1px solid #ffffff25}
.ghg-modal__title{flex:1;min-width:0;margin:0;font-size:14px;font-weight:500}
.ghg-modal button{border-color:#ffffff40;border-radius:24px;padding:8px 14px;flex-shrink:0;background:#352a22;color:#fff9f2}
.ghg-modal button:hover{background:#594331}
.ghg-modal__stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;flex:1;overflow:auto;touch-action:pan-y pinch-zoom;overscroll-behavior:contain}
.ghg-modal__image{display:block;width:100%;height:100%;object-fit:contain;padding:12px;box-sizing:border-box;flex-shrink:0}
.ghg-modal__stage[data-zoomed="true"]{display:block;touch-action:auto}
.ghg-modal__stage[data-zoomed="true"] .ghg-modal__image{width:var(--ghg-zoom-width);height:auto;max-width:none;max-height:none;padding:0}
.ghg-modal__bottom{display:flex;align-items:center;justify-content:center;gap:20px;flex:none;padding:10px 12px max(10px,env(safe-area-inset-bottom));border-top:1px solid #ffffff25}
.ghg-modal__counter{min-width:76px;text-align:center}
.ghg-modal__status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;padding:12px;background:#201a16e6;text-align:center;pointer-events:none}
.ghg-modal__status:empty{display:none}
@media(max-width:480px){.ghg-modal__bar{gap:5px}.ghg-modal__title{font-size:12px}.ghg-modal button{padding:8px 11px}.ghg-modal__bottom{gap:14px}}
@media(prefers-reduced-motion:reduce){.greco-venue-layout-card:has(.ghg){transition:none!important}}
/* Elementor's generated container rules must not shrink the new image area. */
.greco-hall-editable .greco-venue-layout-card__image-link:has(.ghg){padding:0!important}
.greco-hall-editable .greco-venue-layout-card__image-link:has(.ghg)>.e-con-inner{padding:0!important;width:100%!important;max-width:none!important}
.greco-hall-editable .greco-venue-layout-card__image:has(.ghg){margin:0!important}
.ghg__nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:0;padding:4px 5px 6px}
.ghg__nav>[data-card-prev]{grid-column:1;grid-row:1}
.ghg__nav>[data-card-next]{grid-column:3;grid-row:1}
.ghg__nav>.ghg__count{grid-column:2;grid-row:1;padding:0;font-size:11px}
.ghg__nav>.ghg__pages{grid-column:1/-1;grid-row:2;flex-wrap:nowrap;gap:1px}
.ghg__pages button{min-width:44px}
.ghg button:focus,.ghg button:active{background:#eee4d7;color:#3e2f22}
.ghg-modal button:focus,.ghg-modal button:active{background:#594331;color:#fff9f2}
