/**
 * Simple Image Gallery (JoomlaWorks) with SIGE parameters
 *
 * The gallery rules are taken over from SIGE 3.x (sige.css, (c) Viktor Vogel, GNU/GPL v3 or later) so that
 * existing galleries keep their look. The lightbox rules (.sige-lb*) belong to this plugin.
 */

.sige{clear:both;display:table-cell;margin:16px 4px;padding:0;list-style-type:none;}
.sige a:hover,.sige a:focus,.sige a:active{text-decoration:none;}
.sige_single{text-align:center;list-style-type:none;}
.sige .sige_clr{clear:both;}
.sige_noimages{font-weight:bold;}
.sige_hidden{display:none;}
.sige_thumb{float:left;background:url(../images/shadowAlpha.png) no-repeat bottom right;margin:10px;padding:0;}
.sige_thumb img{display:inline-block;position:relative;background:#FFF;border:1px solid #ccc;margin:-5px 5px 5px -5px;padding:4px;}
.sige_caption{margin-left:auto;margin-right:auto;text-align:center;display:block;font-weight:bold;clear:both;}
.sige li{margin:0;overflow:visible;background-image:none;padding:0;}
.sige_clr{clear:both;}

/* ---- Lightbox (no dependencies, see sige-lightbox.js) ---- */
html.sige-lb-open{overflow:hidden;}
.sige-lb{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(0,0,0,.92);color:#fff;font:16px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;}
.sige-lb[hidden]{display:none;}
.sige-lb-stage{display:flex;align-items:center;justify-content:center;width:100%;flex:1 1 auto;min-height:0;padding:56px 64px 8px;box-sizing:border-box;}
.sige-lb-img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;background:#111;box-shadow:0 4px 30px rgba(0,0,0,.6);transition:opacity .15s;}
.sige-lb-img.is-loading{opacity:.25;}
.sige-lb-bar{flex:0 0 auto;width:100%;box-sizing:border-box;padding:6px 64px 16px;text-align:center;min-height:2.6em;}
.sige-lb-caption{margin:0 auto;max-width:60em;overflow-wrap:anywhere;}
.sige-lb-meta{margin-top:.25em;font-size:.875em;opacity:.8;}
.sige-lb-meta a{color:#fff;margin-left:1em;text-decoration:underline;}
.sige-lb button{position:absolute;z-index:1;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font:28px/44px Arial,sans-serif;text-align:center;cursor:pointer;}
.sige-lb button:hover{background:rgba(255,255,255,.3);}
.sige-lb button:focus-visible,.sige-lb-meta a:focus-visible{outline:3px solid #8ec5ff;outline-offset:2px;}
.sige-lb-close{top:10px;right:10px;}
.sige-lb-prev{left:10px;top:50%;margin-top:-22px !important;}
.sige-lb-next{right:10px;top:50%;margin-top:-22px !important;}
.sige-lb.is-single .sige-lb-prev,.sige-lb.is-single .sige-lb-next{display:none;}
@media (max-width:600px){
	.sige-lb-stage{padding:52px 8px 4px;}
	.sige-lb-bar{padding:4px 12px 12px;}
	.sige-lb-prev,.sige-lb-next{top:auto;bottom:10px;margin-top:0 !important;}
}
@media (prefers-reduced-motion:reduce){
	.sige-lb-img{transition:none;}
}
