/* ============================================================
   活動報告の「複数写真の切り替え」と「写真の拡大表示」用スタイル
   （css/style.css の後に読み込みます）
   ============================================================ */

/* ---------- カード内の写真切り替え ---------- */
.activity-card figure.has-gallery { position: relative; }
.activity-card figure img.hlc-zoomable { cursor: zoom-in; }
.activity-card figure img.hlc-zoomable:focus-visible { outline: 3px solid #f0a000; outline-offset: -3px; }

.hlc-gal-btn {
    position: absolute; top: 50%; z-index: 2;
    width: 40px; height: 40px; margin-top: -20px; padding: 0;
    border: 0; border-radius: 50%;
    background: rgba(11, 31, 77, .58); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s;
}
.hlc-gal-btn:hover { background: #0057ff; }
.hlc-gal-btn:focus-visible { outline: 3px solid #f0a000; outline-offset: 2px; }
.hlc-gal-btn svg { width: 20px; height: 20px; }
.hlc-gal-prev { left: 8px; }
.hlc-gal-next { right: 8px; }

.hlc-gal-count {
    position: absolute; right: 10px; bottom: 10px; z-index: 2;
    padding: 2px 10px; border-radius: 999px;
    background: rgba(11, 31, 77, .68); color: #fff;
    font-size: .78rem; font-weight: 700; line-height: 1.6;
    font-variant-numeric: tabular-nums; pointer-events: none;
}
.hlc-gal-dots {
    position: absolute; left: 50%; bottom: 14px; z-index: 2;
    transform: translateX(-50%);
    display: flex; gap: 6px; pointer-events: none;
}
.hlc-gal-dots i {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 0 0 1px rgba(11, 31, 77, .35);
}
.hlc-gal-dots i.is-current { background: #f0a000; }

/* ---------- 写真の下の小さな写真（3枚） ---------- */
.hlc-thumbs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    padding: 8px 8px 0;
}
.hlc-thumb {
    display: block; padding: 0; border: 2px solid transparent; border-radius: 6px;
    background: #e8eefc; overflow: hidden; cursor: pointer;
    opacity: .7; transition: opacity .2s, border-color .2s;
}
.hlc-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hlc-thumb:hover { opacity: 1; }
.hlc-thumb.is-current { opacity: 1; border-color: #f0a000; }
.hlc-thumb:focus-visible { outline: 3px solid #0057ff; outline-offset: 1px; }

/* ---------- 写真の拡大表示 ---------- */
html.hlc-lb-open { overflow: hidden; }
.hlc-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 56px 12px 20px;
    background: rgba(6, 16, 42, .93);
}
.hlc-lightbox[hidden] { display: none; }
.hlc-lb-figure {
    margin: 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hlc-lb-figure img {
    display: block; max-width: 100%; max-height: calc(100vh - 150px);
    width: auto; height: auto; object-fit: contain;
    border-radius: 6px; background: #0b1f4d;
}
.hlc-lb-figure figcaption { color: #fff; font-size: .92rem; line-height: 1.6; text-align: center; }
.hlc-lb-nav, .hlc-lb-close {
    flex-shrink: 0; border: 0; border-radius: 50%; padding: 0;
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, .14); color: #fff;
    font-size: 2rem; line-height: 1; font-family: inherit; cursor: pointer;
    transition: background .2s;
}
.hlc-lb-nav[hidden] { display: none; }
.hlc-lb-nav:hover, .hlc-lb-close:hover { background: #0057ff; }
.hlc-lb-nav:focus-visible, .hlc-lb-close:focus-visible { outline: 3px solid #f0a000; outline-offset: 2px; }
.hlc-lb-close { position: absolute; top: 10px; right: 12px; font-size: 1.7rem; }

@media (max-width: 600px) {
    .hlc-lightbox { padding: 60px 4px 16px; gap: 2px; }
    .hlc-lb-nav { width: 38px; height: 38px; font-size: 1.6rem; }
    .hlc-gal-btn { width: 36px; height: 36px; margin-top: -18px; }
}
@media (prefers-reduced-motion: reduce) {
    .hlc-gal-btn, .hlc-lb-nav, .hlc-lb-close, .hlc-thumb { transition: none; }
}
