/* Media Spotlight — kabdalis2 design system. */
.b-spot{
    display:grid;
    grid-template-columns:1.05fr 1fr;
    gap:clamp(24px,5vw,56px);
    align-items:center;
}
.b-spot--rev{ direction:rtl; }
.b-spot--rev > *{ direction:ltr; }
.b-spot__txt{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.b-spot__title{ margin:.1em 0 0; font-size:clamp(1.6rem,4vw,2.5rem); line-height:1.08; color:var(--ink); }
.b-spot__body{ margin:0; font-size:1.04rem; line-height:1.6; color:var(--ink-soft); }
.b-spot__list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.b-spot__list li{ position:relative; padding-left:28px; line-height:1.45; color:var(--ink); }
.b-spot__list li::before{
    content:""; position:absolute; left:0; top:.15em;
    width:18px; height:18px; border-radius:50%;
    background:color-mix(in srgb, var(--accent) 16%, transparent);
    box-shadow:inset 0 0 0 1.5px var(--accent);
}
.b-spot__list li::after{
    content:""; position:absolute; left:6px; top:.42em;
    width:6px; height:3px; border-left:1.5px solid var(--accent); border-bottom:1.5px solid var(--accent);
    transform:rotate(-45deg);
}
.b-spot__cta{ margin-top:4px; }
.b-spot__media{ aspect-ratio:4 / 3; }
.b-spot__media img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit; }
.b-spot__media.is-empty{ display:grid; place-items:center; min-height:240px; background:var(--surface2); }
.b-spot__replace{ position:absolute; bottom:10px; right:10px; }
@media (max-width:780px){
    .b-spot, .b-spot--rev{ grid-template-columns:1fr; direction:ltr; }
}

/* Lightbox cursor on the spotlight image */
.b-spot__media img[role="button"] {
    cursor: zoom-in;
    transition: transform 0.22s var(--ease-out, cubic-bezier(.2,.7,.2,1));
}
@media (hover: hover) {
    .b-spot__media img[role="button"]:hover { transform: scale(1.03); }
}

/* ===================================================================
   KabLightbox overlay (scoped to #kab-lb — idempotent across blocks).
   =================================================================== */

#kab-lb {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
#kab-lb[hidden] { display: none; }
#kab-lb .kab-lb__bd {
    position: absolute; inset: 0;
    background: var(--overlay, rgba(12, 18, 26, 0.78));
    opacity: 0; transition: opacity 0.22s ease;
}
#kab-lb.kab-lb--visible .kab-lb__bd { opacity: 1; }
#kab-lb .kab-lb__frame {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 10px;
    max-width: min(96vw, 1200px); max-height: 96dvh;
    padding: 0 6px; opacity: 0; transform: scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s var(--ease-out, cubic-bezier(.2,.7,.2,1));
    pointer-events: none;
}
#kab-lb.kab-lb--visible .kab-lb__frame { opacity: 1; transform: scale(1); pointer-events: auto; }
#kab-lb .kab-lb__media {
    position: relative; display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    max-width: min(88vw, 1060px); max-height: 90dvh;
}
#kab-lb .kab-lb__img {
    display: block; max-width: 100%; max-height: 82dvh;
    width: auto; height: auto; object-fit: contain;
    border-radius: var(--radius-sm, 10px);
    box-shadow: var(--shadow-pop, 0 30px 70px -20px rgba(12,18,26,.55));
}
#kab-lb .kab-lb__cap {
    margin: 0; font-size: 0.82rem; line-height: 1.4;
    color: rgba(255, 255, 255, 0.75); text-align: center; max-width: 56ch;
}
#kab-lb .kab-lb__counter {
    position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
    font-size: 0.72rem; font-family: var(--font-mono, ui-monospace, monospace);
    color: rgba(255, 255, 255, 0.55); white-space: nowrap; pointer-events: none;
}
#kab-lb .kab-lb__close {
    position: absolute; top: -14px; right: -14px; z-index: 2;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(20, 16, 12, 0.7); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    transition: background 0.14s ease, border-color 0.14s ease;
}
#kab-lb .kab-lb__close:hover { background: rgba(30, 24, 18, 0.9); border-color: rgba(255, 255, 255, 0.45); }
#kab-lb .kab-lb__close:focus-visible { outline: 2px solid var(--accent, #9c3a52); outline-offset: 3px; }
#kab-lb .kab-lb__nav {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    background: rgba(20, 16, 12, 0.55); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}
#kab-lb .kab-lb__nav:hover { background: rgba(30, 24, 18, 0.85); border-color: rgba(255, 255, 255, 0.45); }
#kab-lb .kab-lb__nav:active { transform: scale(0.93); }
#kab-lb .kab-lb__nav:focus-visible { outline: 2px solid var(--accent, #9c3a52); outline-offset: 3px; }
@media (max-width: 600px) {
    #kab-lb .kab-lb__frame { flex-direction: column; padding: 0; gap: 14px; max-width: 100vw; }
    #kab-lb .kab-lb__nav { width: 40px; height: 40px; }
    #kab-lb .kab-lb__img { max-height: 72dvh; }
}
@media (prefers-reduced-motion: reduce) {
    #kab-lb .kab-lb__bd,
    #kab-lb .kab-lb__frame { transition: none; }
    .b-spot__media img { transition: none; }
}
