/* Image zoom: hover magnifier + click-to-enlarge lightbox (1 Dec 2026). Used with assets/js/img-zoom.js */
a.zoomable { position: relative; display: block; overflow: hidden; cursor: zoom-in; color: inherit; }
a.zoomable img { display: block; width: 100%; height: auto; }
a.zoomable:focus-visible { outline: 3px solid #e5f570; outline-offset: 2px; }
a.zoomable::after {
  content: "Enlarge"; position: absolute; right: 8px; bottom: 8px;
  background: rgba(17, 20, 18, .82); color: #fff; font: 600 12px/1 system-ui, sans-serif;
  padding: 6px 9px 6px 26px; border-radius: 999px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 13px; background-position: 8px center;
  transition: opacity .2s;
}
@media (hover: hover) and (pointer: fine) {
  a.zoomable::after { content: "Hover to magnify"; }
  a.zoomable:hover::after { opacity: 0; }
}
.iz-lens {
  position: absolute; width: 230px; height: 230px; border-radius: 50%; pointer-events: none; opacity: 0;
  border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.35);
  background-color: #fff; background-repeat: no-repeat; transition: opacity .12s; z-index: 2;
}
@media not all and (hover: hover) and (pointer: fine) { .iz-lens { display: none; } }

html.iz-open { overflow: hidden; }
dialog.iz-box {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 12, 11, .94); color: #fff;
  display: none; align-items: center; justify-content: center;
}
dialog.iz-box[open] { display: flex; }
dialog.iz-box::backdrop { background: rgba(10, 12, 11, .6); }
.iz-box figure { margin: 0; max-width: 94vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.iz-box img { max-width: 94vw; max-height: calc(92vh - 40px); width: auto; height: auto; background: #fff; border-radius: 6px; }
.iz-box figcaption { font: 700 16px/1.3 system-ui, sans-serif; text-align: center; }
.iz-box button {
  position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 32px; line-height: 1; display: grid; place-items: center;
}
.iz-box button:hover, .iz-box button:focus-visible { background: #e5f570; color: #111; outline: none; }
.iz-close { top: 14px; right: 14px; }
.iz-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.iz-next { right: 14px; top: 50%; transform: translateY(-50%); }
.iz-box.iz-single .iz-prev, .iz-box.iz-single .iz-next { display: none; }
@media (max-width: 600px) { .iz-prev, .iz-next { top: auto; bottom: 14px; transform: none; } .iz-box img { max-height: calc(92vh - 110px); } }
