/* ===========================================================
 * 画像の拡大表示（モーダル）— サイト共通
 * class="taskel-zoom" を付けた画像だけが対象（inc/image-modal.php）
 * =========================================================== */
img.taskel-zoom,
.taskel-zoom img { cursor: zoom-in; transition: opacity .15s; }
img.taskel-zoom:hover,
.taskel-zoom img:hover { opacity: .85; }
img.taskel-zoom:focus-visible,
.taskel-zoom img:focus-visible { outline: 3px solid var(--tk-main, #4076a6); outline-offset: 2px; }

html.taskel-modal-open { overflow: hidden; }
.taskel-modal {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px; background: rgba(0, 0, 0, .82);
  animation: taskelModalIn .18s ease-out;
}
.taskel-modal[hidden] { display: none !important; }
@keyframes taskelModalIn { from { opacity: 0; } to { opacity: 1; } }
.taskel-modal-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.taskel-modal-figure img {
  display: block; max-width: 100%; max-height: calc(100vh - 140px);
  width: auto; height: auto; object-fit: contain;
  background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); cursor: default;
}
.taskel-modal-figure figcaption { margin-top: 12px; color: #fff; font-size: 14px; text-align: center; line-height: 1.6; }
.taskel-modal-figure figcaption[hidden] { display: none !important; }
.taskel-modal-close,
.taskel-modal-nav {
  position: absolute; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  cursor: pointer; line-height: 1; padding: 0; transition: background .15s;
}
.taskel-modal-close:hover,
.taskel-modal-nav:hover { background: var(--tk-main, #4076a6); }
.taskel-modal-close { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 26px; }
.taskel-modal-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 32px; }
.taskel-modal-nav[hidden] { display: none !important; }
.taskel-modal-prev { left: 12px; }
.taskel-modal-next { right: 12px; }
@media (max-width: 600px) {
  .taskel-modal { padding: 56px 12px; }
  .taskel-modal-nav { top: auto; bottom: 14px; transform: none; }
  .taskel-modal-prev { left: calc(50% - 56px); }
  .taskel-modal-next { right: calc(50% - 56px); }
