/* ── LA Gallery Carousel — Public Styles ── */

/* ── Container ───────────────────────────────────────── */
.lagc-container {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    user-select: none;
}
.lagc-container * { box-sizing: border-box; }

/* ── Carousel track ──────────────────────────────────── */
.lagc-carousel-inner {
    display: flex;
    transition: transform 0ms linear;
    will-change: transform;
}
.lagc-carousel-inner.lagc-animating {
    transition-property: transform;
}

/* ── Slides ──────────────────────────────────────────── */
.lagc-slide {
    flex: 0 0 auto;
    padding: 0;
    position: relative;
}

.lagc-img-wrap {
    overflow: hidden;
    position: relative;
    line-height: 0;
    background: #f5f5f5;
}

/* Fixed aspect ratio mode */
.lagc-img-wrap[style*="padding-bottom"] {
    height: 0;
    width: 100%;
}
.lagc-img-wrap[style*="padding-bottom"] img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Auto height */
.lagc-img-wrap:not([style*="padding-bottom"]) img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Hover effects ───────────────────────────────────── */
.lagc-img-wrap img { transition: transform .4s ease, filter .4s ease, opacity .4s ease; }

.lagc-hover-zoom    .lagc-img-wrap:hover img { transform: scale(1.07); }
.lagc-hover-fadeout .lagc-img-wrap:hover img { opacity: .8; filter: brightness(.85); }
.lagc-hover-grayscale .lagc-img-wrap img     { filter: grayscale(1); }
.lagc-hover-grayscale .lagc-img-wrap:hover img { filter: grayscale(0); }

/* Slide overlay effect */
.lagc-hover-slide .lagc-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    transform: translateY(100%);
    transition: transform .35s ease;
}
.lagc-hover-slide .lagc-img-wrap:hover::after { transform: translateY(0); }

/* ── Lightbox trigger cursor ─────────────────────────── */
a.lagc-lightbox-trigger { display: block; cursor: zoom-in; }
a.lagc-lightbox-trigger img { pointer-events: none; }

/* ── Caption ─────────────────────────────────────────── */
.lagc-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
    color: #fff;
    font-size: 13px;
    padding: 24px 12px 10px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity .3s;
}
.lagc-slide:hover .lagc-caption { opacity: 1; }

/* ── Navigation arrows ───────────────────────────────── */
.lagc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 4px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    padding: 0;
}
.lagc-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    transform: translateY(-50%) scale(1.06);
}
.lagc-arrow.lagc-prev { left: 6px; }
.lagc-arrow.lagc-next { right: 6px; }
.lagc-arrow:disabled  { opacity: .35; cursor: default; pointer-events: none; }

/* Arrow styles */
.lagc-arrow-rounded { border-radius: 8px; }
.lagc-arrow-circle  { border-radius: 50%; }
.lagc-arrow-outline { background: transparent; border: 2px solid currentColor; }
.lagc-arrow-outline:hover { background: rgba(255,255,255,.15); }

/* ── Dots ────────────────────────────────────────────── */
.lagc-dots-wrap {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
    flex-wrap: wrap;
}
.lagc-dot {
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform .2s, background .2s;
    flex-shrink: 0;
}
.lagc-dot:hover { transform: scale(1.25); }
.lagc-dot.active { transform: scale(1.35); }

.lagc-dot-circle { width: 8px; height: 8px; border-radius: 50%; }
.lagc-dot-square { width: 8px; height: 8px; border-radius: 2px; }
.lagc-dot-line   { width: 20px; height: 4px; border-radius: 2px; }

/* ── Lightbox ────────────────────────────────────────── */
.lagc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lagc-lightbox[hidden] { display: none; }

.lagc-lb-overlay {
    position: absolute;
    inset: 0;
}

.lagc-lb-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
}

.lagc-lb-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 75vh;
}

.lagc-lb-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    transition: opacity .25s, transform .25s;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    background: #111;
}
.lagc-lb-img.lagc-lb-loading {
    opacity: 0;
    transform: scale(.97);
}

.lagc-lb-close {
    position: absolute;
    top: -40px; right: 0;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    width: 36px; height: 36px;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.lagc-lb-close:hover { background: rgba(255,255,255,.3); }

.lagc-lb-counter {
    position: absolute;
    top: -38px; left: 0;
    color: rgba(255,255,255,.8);
    font-size: 13px;
    font-family: sans-serif;
}

.lagc-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    width: 48px; height: 48px;
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    padding: 0;
}
.lagc-lb-arrow:hover  { background: rgba(255,255,255,.25); }
.lagc-lb-prev { left: -64px; }
.lagc-lb-next { right: -64px; }

@media (max-width: 700px) {
    .lagc-lb-prev { left: -48px; }
    .lagc-lb-next { right: -48px; }
    .lagc-lb-arrow { width: 36px; height: 36px; }
}

.lagc-lb-caption {
    margin-top: 12px;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    text-align: center;
    max-width: 600px;
    padding: 0 16px;
    font-family: sans-serif;
    min-height: 20px;
}

/* Thumbnails strip */
.lagc-lb-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    max-width: 90vw;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
}
.lagc-lb-thumbs::-webkit-scrollbar { height: 4px; }
.lagc-lb-thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,.1); }
.lagc-lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 2px; }

.lagc-lb-thumb {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    opacity: .6;
    transition: opacity .2s, border-color .2s;
    background: #222;
}
.lagc-lb-thumb:hover  { opacity: .85; }
.lagc-lb-thumb.active { border-color: #fff; opacity: 1; }
.lagc-lb-thumb img    { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Dragging cursor ─────────────────────────────────── */
.lagc-dragging { cursor: grabbing !important; }

/* ── RTL ─────────────────────────────────────────────── */
.lagc-rtl .lagc-carousel-inner { flex-direction: row-reverse; }
