/* ═══════════════════════════════════════════════════════════════════════════
   Shared Lightbox — click-to-enlarge for content images
   Include this on any page that uses data-open-modal / data-close-modal
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Image link wrapper ───────────────────────────────────────────────────── */
.lb-image-link {
    display: block;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.lb-image-link:hover {
    transform: scale(1.03);
}

/* ── "Click to enlarge" hint below image ─────────────────────────────────── */
.lb-zoom-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light, #6b7280);
    transition: color 0.2s ease;
}

.lb-image-link:hover .lb-zoom-hint {
    color: var(--color-accent, #e8a838);
}

/* ── Modal overlay ────────────────────────────────────────────────────────── */
.sample-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1.5rem;
}

.sample-modal.active {
    display: flex;
}

.sample-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 840px;
    padding: 0.5rem 0;
}

.sample-modal__header h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

.sample-modal__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
    opacity: 0.8;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.sample-modal__close:hover {
    opacity: 1;
}

.sample-modal__content {
    width: 90%;
    max-width: 840px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem;
}

.sample-modal__content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
