/* =============================================
   Simple Image Gallery v2.0 — gallery.css
   ============================================= */

/* ── Shared ── */
.sig-wrap,
.sig-album-browser { position: relative; width: 100%; }

.sig-loading {
    text-align: center;
    padding: 40px;
    opacity: 0.6;
    font-size: 15px;
}

/* =============================================
   ALBUM BROWSER
   ============================================= */
.sig-albums-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sig-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid currentColor;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: inherit;
    transition: background .2s, color .2s;
    text-decoration: none;
    line-height: 1.4;
}
.sig-back-btn:hover {
    background: rgba(0,0,0,0.08);
}

.sig-albums-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

/* Album grid */
.sig-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 768px) {
    .sig-albums-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .sig-albums-grid { grid-template-columns: 1fr; }
}

.sig-album-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.04);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.sig-album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.sig-album-cover {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(0,0,0,0.08);
}
.sig-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.sig-album-card:hover .sig-album-cover img {
    transform: scale(1.06);
}

.sig-album-no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: .25;
}

.sig-album-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: .3px;
}

.sig-album-info {
    padding: 12px 14px;
}
.sig-album-info h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}
.sig-album-info p {
    margin: 0;
    font-size: 13px;
    opacity: .6;
}

/* =============================================
   SINGLE ALBUM VIEW (photo grid inside browser)
   ============================================= */
.sig-album-view {}

.sig-album-view-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .sig-album-view-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   SHARED ITEM / GRID
   ============================================= */
.sig-grid {
    display: grid;
    gap: 10px;
}

.sig-item {
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    background: rgba(0,0,0,0.06);
}

.sig-grid .sig-item,
.sig-album-view-grid .sig-item {
    aspect-ratio: 1 / 1;
}

.sig-grid .sig-item img,
.sig-album-view-grid .sig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.sig-grid .sig-item:hover img,
.sig-album-view-grid .sig-item:hover img {
    transform: scale(1.06);
}

/* =============================================
   CAROUSEL
   ============================================= */
.sig-carousel {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.sig-carousel .sig-track {
    display: flex;
    transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

.sig-carousel .sig-item {
    flex: 0 0 100%;
    aspect-ratio: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.sig-carousel .sig-item img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* Arrows */
.sig-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.18);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transition: opacity .3s, background .3s;
    z-index: 2;
}
.sig-carousel:hover .sig-arrow { opacity: 1; }
.sig-arrow:hover { background: rgba(0,0,0,0.5); }
.sig-prev { left: 10px; }
.sig-next { right: 10px; }

/* Dots */
.sig-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.sig-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    border: none;
    transition: background .3s;
    padding: 0;
}
.sig-dot.active { background: rgba(255,255,255,0.95); }

/* =============================================
   LIGHTBOX
   ============================================= */
.sig-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.sig-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.sig-lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(.95);
    transition: transform .3s ease;
    box-shadow: 0 12px 50px rgba(0,0,0,0.6);
    border-radius: 3px;
    display: block;
}
.sig-lightbox.open img { transform: scale(1); }

.sig-lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    letter-spacing: .5px;
    pointer-events: none;
}

.sig-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 38px;
    cursor: pointer;
    line-height: 1;
    opacity: .65;
    transition: opacity .2s;
    padding: 0;
}
.sig-close:hover { opacity: 1; }

.sig-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: #fff;
    border: none;
    font-size: 42px;
    cursor: pointer;
    opacity: .45;
    transition: opacity .2s;
    padding: 16px 20px;
    line-height: 1;
}
.sig-lb-arrow:hover { opacity: 1; }
.sig-lb-prev { left: 0; }
.sig-lb-next { right: 0; }
