.ag-hf{--ag-hf-ink:#30253d;--ag-hf-accent:#76508b;--ag-hf-gold:#d9a867;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ag-hf-ink);max-width:100%;margin:0 auto 18px}
.ag-hf *{box-sizing:border-box}
.ag-hf-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;padding:10px 12px;background:#f7f4f1;border:1px solid #ded7dc;border-bottom:0;border-radius:10px 10px 0 0}
.ag-hf-hint{font-weight:600;font-size:13px;color:#685174}
.ag-hf-controls{display:flex;gap:5px;align-items:center}
.ag-hf-controls button{font:600 13px system-ui,sans-serif;color:#453354;background:#fff;border:1px solid #cfc3d6;border-radius:8px;min-width:40px;min-height:36px;padding:7px 10px;cursor:pointer}
.ag-hf-controls button:hover,.ag-hf-controls button:focus-visible{background:#eae0ef}
.ag-hf-viewport{position:relative;width:100%;overflow:auto;overscroll-behavior-x:contain;scrollbar-color:#b5a0bb #f8f4f9;background:white;border:1px solid #ded7dc;scroll-behavior:smooth;touch-action:pan-x pan-y}
.ag-hf-canvas{position:relative;width:2048px;height:332px;isolation:isolate;line-height:0}
.ag-hf-timeline{display:block;width:100%;height:100%;max-width:none!important;max-height:none!important;object-fit:fill;border:0}
.ag-hf-hits{position:absolute;inset:0;pointer-events:none}
.ag-hf-hit{position:absolute;transform:translate(-50%,-50%);display:block;pointer-events:auto;min-width:30px;min-height:34px;width:max(30px,var(--width));height:max(34px,var(--height));margin:0;padding:0;border:1px solid transparent!important;border-radius:35%;background:transparent!important;cursor:pointer;outline-offset:3px;box-shadow:none!important}
.ag-hf-hit:hover,.ag-hf-hit:focus-visible{border:2px solid #8a5f9c!important;background:#a878c424!important;outline:2px solid #ead2b0;outline-offset:1px}
.ag-hf-foot{font-size:12px;color:#867487;display:flex;gap:6px;align-items:center;padding:7px 10px}
.ag-hf-dialog{border:1px solid #ded2df;background:#fffcf7;color:#31243b;border-radius:14px;padding:26px 25px 23px;width:min(430px,calc(100vw - 26px));max-height:min(80vh,680px);overflow-y:auto;box-shadow:0 14px 60px #110e1b45;font:400 14px/1.58 system-ui,sans-serif}
.ag-hf-dialog::backdrop{background:#150c23a8;backdrop-filter:blur(2px)}
.ag-hf-close{position:absolute;top:7px;right:8px;border:0;background:transparent;font:400 25px/1 system-ui;padding:5px 9px;cursor:pointer;color:#765a76}
.ag-hf-kicker{text-transform:uppercase;letter-spacing:.13em;font-size:10px;font-weight:750;color:#8c678c;margin-bottom:7px}
.ag-hf-card-title{font:600 clamp(19px,3vw,25px)/1.25 Georgia,serif!important;margin:0 25px 5px 0!important;color:#392a40!important}
.ag-hf-card-date{font-size:12px;color:#916358;margin:0 0 15px!important;font-weight:650}
.ag-hf-card-description{font-size:13px;line-height:1.62;margin:12px 0 18px!important;color:#413746}
.ag-hf-card-image{width:auto;max-height:205px;max-width:min(100%,270px);display:block;margin:4px auto 14px;object-fit:contain}
.ag-hf-action{display:inline-flex;text-align:center;justify-content:center;align-items:center;text-decoration:none!important;background:#624478;border:1px solid #624478;border-radius:9px;color:#fff!important;padding:10px 16px;font:650 12px/1.35 system-ui,sans-serif!important;cursor:pointer;min-height:41px}
.ag-hf-action:hover,.ag-hf-action:focus-visible{background:#7f6391;color:white!important}
.ag-hf-secondary{background:#f9f5f5;color:#5d4c62!important;border-color:#d5c8d8}
.ag-hf-secondary:hover{background:#eee3ef;color:#463552!important}
.ag-hf-card-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:15px}
.ag-hf-card-actions .ag-hf-external{flex:1}
@media(max-width:600px){.ag-hf-toolbar{padding:7px 8px}.ag-hf-hint{font-size:11px}.ag-hf-controls button{min-width:34px;min-height:34px;padding:5px 7px}.ag-hf-dialog{padding:24px 16px 18px}}

/* v0.2 immersive explorer + optional hotspot display */
.ag-hf [hidden]{display:none!important}
.ag-hf .ag-hf-controls button{touch-action:manipulation}
.ag-hf .ag-hf-controls [data-ag-hf-exit]{font-size:24px;line-height:1;color:#5b3a66;background:#f4e9f5}
.ag-hf .ag-hf-controls [data-ag-hf-immersive]{font-size:20px}
.ag-hf-viewport.ag-hf-dragging{cursor:grabbing;user-select:none}
.ag-hf-show-markers .ag-hf-hit{outline:1.5px solid #79518b!important;background:rgba(247,232,255,.5)!important;box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #a070a940!important}
.ag-hf-show-markers .ag-hf-hit::after{content:'';position:absolute;top:50%;left:50%;width:8px;height:8px;border-radius:50%;background:#744489;transform:translate(-50%,-50%);box-shadow:0 0 0 3px #fff}
.ag-hf-hit.ag-hf-focus-pulse{outline:3px solid #dfb666!important;background:rgba(242,211,152,.27)!important}
.ag-hf-more-details{font-size:12px;color:#4e405a;margin:0 0 12px}
.ag-hf-more-details summary{cursor:pointer;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.ag-hf-more-details .ag-hf-card-description{margin:8px 0 0!important}
.ag-hf-immersive{position:fixed!important;inset:0!important;margin:0!important;padding:0!important;max-width:none!important;min-width:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;z-index:2147482000!important;display:flex!important;flex-direction:column!important;background:#fffcf8!important;overflow:hidden!important;color:#30253d!important}
.ag-hf-immersive .ag-hf-toolbar{flex:0 0 auto;border-radius:0;background:#f8f3f0;border:0;border-bottom:1px solid #ded4df;padding:10px 14px}
.ag-hf-immersive .ag-hf-viewport{flex:1 1 auto;min-height:0;min-width:0;display:flex;align-items:center;overflow:auto;background:#fffdfb;border:0;scrollbar-width:thin}
.ag-hf-immersive .ag-hf-canvas{flex:0 0 auto;line-height:0;margin:0}
.ag-hf-immersive .ag-hf-foot{flex:0 0 auto;min-height:26px;border-top:1px solid #e5dde4;background:#f8f4f7;padding:5px 10px}
.ag-hf-immersive .ag-hf-hit{outline-offset:2px}
.ag-hf-immersive .ag-hf-dialog{z-index:2147483000}
.ag-hf-card-image{max-height:265px;max-width:min(100%,330px)}
.ag-hf-dialog{width:min(450px,calc(100vw - 26px));max-height:min(88vh,720px);padding:23px 24px 20px}
@media(max-width:600px){.ag-hf-immersive .ag-hf-toolbar{gap:6px;padding:8px}.ag-hf-hint{font-size:11px}.ag-hf-immersive .ag-hf-controls{gap:3px}.ag-hf-immersive .ag-hf-controls button{min-width:35px;min-height:36px;padding:5px 7px}.ag-hf-immersive .ag-hf-foot{font-size:10px}.ag-hf-dialog{padding:23px 16px 16px}.ag-hf-card-image{max-height:38vh}}
/* v0.3: stable hand-pan, pinch-to-zoom and bilingual compatibility */
.ag-hf .ag-hf-viewport,.ag-hf .ag-hf-viewport *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none}
.ag-hf .ag-hf-viewport{-webkit-touch-action:none;touch-action:none;cursor:grab;scroll-behavior:auto}
.ag-hf .ag-hf-viewport.ag-hf-dragging{cursor:grabbing}
.ag-hf .ag-hf-viewport img{-webkit-user-drag:none;user-drag:none;pointer-events:none}
.ag-hf .ag-hf-more-details{display:none!important}
@media (prefers-reduced-motion:reduce){.ag-hf *{animation:none!important;transition:none!important}}

/* The two compact language buttons are proxies to the global setLang()
   function and remain reachable while the immersive viewer/dialog covers the header. */
.ag-hf-modal-language{position:absolute;top:8px;right:45px;min-width:35px;min-height:30px;padding:5px 6px;border:0;border-radius:7px;background:#f2e8f4;color:#674f75;font:700 11px system-ui;cursor:pointer}
.ag-hf-modal-language:hover{background:#e8d7ed}
/* v0.3.1: AG Bilingual Toggle controls the language site-wide.
   These narrowly scoped rules make the card readable when the parent theme
   uses its own broad language selectors, and show English by default. */
html:not(.lang-gr) .ag-hf .ag-hf-bilingual .ag-english,
html.lang-en .ag-hf .ag-hf-bilingual .ag-english{display:inline!important;visibility:visible!important}
html:not(.lang-gr) .ag-hf .ag-hf-bilingual .ag-greek,
html.lang-gr .ag-hf .ag-hf-bilingual .ag-english{display:none!important}
html.lang-gr .ag-hf .ag-hf-bilingual .ag-greek{display:inline!important;visibility:visible!important}
/* v1.1 visible markers, project start view, and optional dotted group guides. */
.ag-hf .ag-hf-canvas{margin-inline:auto}
.ag-hf .ag-hf-group-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:1}
.ag-hf .ag-hf-hits{z-index:2}
.ag-hf .ag-hf-hit::after{content:'';position:absolute;left:50%;top:50%;width:12px;height:12px;transform:translate(-50%,-50%);border-radius:50%;background-color:var(--ag-hf-marker-color,#79518b);box-shadow:0 0 0 2px #fff,0 1px 4px #0003;opacity:0;pointer-events:none}
.ag-hf .ag-hf-hit.ag-hf-marker-image::after{width:26px;height:26px;background-color:transparent;background-image:var(--ag-hf-marker-image,none);background-position:center;background-size:contain;background-repeat:no-repeat;border-radius:0;box-shadow:0 1px 3px #0004}
.ag-hf.ag-hf-show-markers .ag-hf-hit:not(.ag-hf-marker-hidden)::after,.ag-hf .ag-hf-hit.ag-hf-marker-always::after{opacity:1}
.ag-hf.ag-hf-show-markers .ag-hf-hit,.ag-hf.ag-hf-show-markers .ag-hf-hit.ag-hf-marker-hidden{background:transparent!important;box-shadow:none!important;outline:none!important}
.ag-hf.ag-hf-show-markers .ag-hf-hit:hover,.ag-hf .ag-hf-hit:focus-visible{outline:2px solid #dfb666!important;background:rgba(230,202,156,.18)!important}
body.ag-hf-standalone{margin:0!important;padding:0!important;background:#f8f4f8}
body.ag-hf-standalone .ag-hf{margin:0}
body.ag-hf-standalone .ag-hf:not(.ag-hf-immersive) .ag-hf-viewport{height:calc(100dvh - 105px)}

/* v1.1.1: less intrusive visual markers, without reducing the clickable hit area. */
.ag-hf .ag-hf-hit::after{width:8px;height:8px;background-color:var(--ag-hf-marker-color,#79518b);opacity:0;box-shadow:0 0 0 1px #fff,0 0 0 2px color-mix(in srgb,var(--ag-hf-marker-color,#79518b) 65%,transparent);}
.ag-hf.ag-hf-show-markers .ag-hf-hit:not(.ag-hf-marker-hidden)::after,.ag-hf .ag-hf-hit.ag-hf-marker-always::after{opacity:.72}
.ag-hf .ag-hf-hit.ag-hf-marker-image::after{width:20px;height:20px;background-color:transparent;box-shadow:0 1px 3px #0002}
.ag-hf .ag-hf-hit.ag-hf-marker-pos-above::after{top:calc(50% - 13px)}
.ag-hf .ag-hf-hit.ag-hf-marker-pos-below::after{top:calc(50% + 13px)}
.ag-hf .ag-hf-hit.ag-hf-marker-pos-left::after{left:calc(50% - 13px)}
.ag-hf .ag-hf-hit.ag-hf-marker-pos-right::after{left:calc(50% + 13px)}
.ag-hf .ag-hf-hit.ag-hf-marker-hidden::after{opacity:0!important}
.ag-hf .ag-hf-hit:hover::after,.ag-hf .ag-hf-hit:focus-visible::after{opacity:1}

/* v1.2: restrained, configurable marker shapes. Click targets remain accessible. */
.ag-hf .ag-hf-hit.ag-hf-shape-wide,.ag-hf .ag-hf-hit.ag-hf-shape-tall{
 width:max(30px,var(--width),var(--ag-hf-outline-w))!important;
 height:max(34px,var(--height),var(--ag-hf-outline-h))!important;
}
.ag-hf .ag-hf-hit.ag-hf-shape-dot::after{
 content:'';width:8px;height:8px;border:1px solid #fff;border-radius:50%;
 background:var(--ag-hf-marker-fill,#79518b);box-shadow:0 0 0 1px var(--ag-hf-marker-stroke,#79518b);transform:translate(-50%,-50%);
}
.ag-hf .ag-hf-hit.ag-hf-shape-ring::after{
 content:'';width:28px;height:28px;border:2px solid var(--ag-hf-marker-stroke,#79518b);border-radius:50%;
 background:transparent;box-shadow:0 0 0 1px #fff6;box-sizing:border-box;transform:translate(-50%,-50%);
}
.ag-hf .ag-hf-hit.ag-hf-shape-ring.ag-hf-size-small::after{width:19px;height:19px}
.ag-hf .ag-hf-hit.ag-hf-shape-ring.ag-hf-size-large::after{width:41px;height:41px}
.ag-hf .ag-hf-hit.ag-hf-shape-wide::after,.ag-hf .ag-hf-hit.ag-hf-shape-tall::after{
 content:'';width:calc(100% - 3px);height:calc(100% - 3px);
 border:2px solid var(--ag-hf-marker-stroke,#79518b);border-radius:4px;background:transparent;
 box-shadow:0 0 0 1px #fff7;box-sizing:border-box;transform:translate(-50%,-50%);
}
.ag-hf .ag-hf-hit.ag-hf-fill-faded:not(.ag-hf-shape-dot)::after{
 background:color-mix(in srgb,var(--ag-hf-marker-fill,#79518b) 16%,transparent);
}
/* Prevent legacy solid-marker styles from covering the new outlines. */
.ag-hf.ag-hf-show-markers .ag-hf-hit.ag-hf-shape-wide,
.ag-hf.ag-hf-show-markers .ag-hf-hit.ag-hf-shape-tall,
.ag-hf.ag-hf-show-markers .ag-hf-hit.ag-hf-shape-ring{background:transparent!important;box-shadow:none!important;outline:none!important}
.ag-hf .ag-hf-hit.ag-hf-marker-hidden::after{opacity:0!important}
.ag-hf .ag-hf-hit.ag-hf-marker-image::after{border:0;border-radius:0;background-image:var(--ag-hf-marker-image,none);background-color:transparent; background-position:center;background-repeat:no-repeat;background-size:contain;box-shadow:none}
