/* ============================================================
   SIPORABUDPAR GALLERY GRID / LIST / PRESENTASI / ANIMASI
   ============================================================ */

.sip-gallery-page h2 {
    margin-top: 0;
}

.sip-g-summary {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0 16px;
    color: var(--admin-muted, #64748b);
    font-size: 14px;
}

.sip-g-summary strong {
    color: var(--admin-text, #0f172a);
}

.sip-g-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 16px;
    background: var(--admin-surface-2, #f8fafc);
}

.sip-g-views {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sip-g-view-btn.active {
    background: var(--admin-primary, #0f766e);
    color: #fff !important;
    border-color: var(--admin-primary, #0f766e);
}

.sip-g-filterform {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: end;
}

.sip-g-filterform label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--admin-muted, #64748b);
    margin: 0;
}

.sip-g-filterform select,
.sip-g-filterform input[type="search"],
.sip-g-filterform input[type="number"] {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid var(--admin-border, #e2e8f0);
    background: var(--admin-surface, #fff);
    color: var(--admin-text, #0f172a);
    padding: 0 10px;
}

.sip-g-searchlabel {
    min-width: 240px;
    flex: 1;
}

.sip-g-searchlabel input {
    width: 100%;
}

/* ---------- GRID ---------- */
.sip-g-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.sip-g-card {
    background: var(--admin-surface, #fff);
    border: 1px solid var(--admin-border, #e2e8f0);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sip-g-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.sip-g-media {
    height: 190px;
    background: #020617;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.sip-g-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.sip-g-media-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.sip-g-photo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.sip-g-meta {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sip-g-meta strong {
    color: var(--admin-text, #0f172a);
    line-height: 1.35;
}

.sip-g-meta small {
    color: var(--admin-muted, #64748b);
}

.sip-g-actions {
    padding: 0 14px 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ---------- LIST ---------- */
.sip-g-listwrap {
    overflow-x: auto;
}

.sip-g-list {
    width: 100%;
    border-collapse: collapse;
    background: var(--admin-surface, #fff);
}

.sip-g-list th,
.sip-g-list td {
    border-bottom: 1px solid var(--admin-border, #e2e8f0);
    padding: 10px;
    vertical-align: middle;
    text-align: left;
}

.sip-g-list th {
    background: var(--admin-surface-2, #f8fafc);
    font-size: 13px;
}

.sip-g-list-thumb {
    width: 110px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #020617;
}

.sip-g-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.sip-g-list-actions {
    white-space: nowrap;
}

/* ---------- STAGE / PRESENTASI ---------- */
.sip-g-stage {
    position: relative;
    background: #020617;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    outline: none;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

.sip-g-viewport {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.sip-g-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 22px;
    text-align: center;
}

.sip-g-slide.active {
    display: flex;
}

.sip-g-slide-media {
    width: 100%;
    display: grid;
    place-items: center;
    min-height: 0;
    flex: 1;
}

.sip-g-large.sip-g-media-img,
.sip-g-large.sip-g-media-video {
    max-width: 100%;
    max-height: 68vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: #000;
}

.sip-g-caption {
    padding: 12px 10px 4px;
}

.sip-g-caption strong {
    display: block;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.sip-g-caption small {
    color: rgba(255, 255, 255, 0.72);
}

.sip-g-caption a {
    color: #fbcfe8;
    text-decoration: underline;
}

.sip-g-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(2, 6, 23, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sip-g-controls .btn {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.sip-g-controls .btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sip-g-counter {
    min-width: 90px;
    text-align: center;
    font-weight: 800;
}

.sip-g-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
}

.sip-g-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #14b8a6;
}

/* ---------- EFFECTS ---------- */
.sip-g-stage[data-mode="slide"] .sip-g-slide.active {
    animation: sipGalleryFade 0.55s ease;
}

.sip-g-stage[data-mode="anim"][data-effect="fade"] .sip-g-slide.active {
    animation: sipGalleryFade 0.9s ease;
}

.sip-g-stage[data-mode="anim"][data-effect="zoom"] .sip-g-slide.active {
    animation: sipGalleryZoom 0.9s ease;
}

.sip-g-stage[data-mode="anim"][data-effect="slide"] .sip-g-slide.active {
    animation: sipGallerySlide 0.75s ease;
}

.sip-g-stage[data-mode="anim"][data-effect="flip"] .sip-g-slide.active {
    animation: sipGalleryFlip 0.9s ease;
    perspective: 1200px;
}

.sip-g-stage[data-mode="anim"][data-effect="kenburns"] .sip-g-slide.active .sip-g-slide-media {
    animation: sipGalleryKenBurns 8s linear infinite alternate;
}

@keyframes sipGalleryFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes sipGalleryZoom {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes sipGallerySlide {
    from { opacity: 0; transform: translateX(36px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes sipGalleryFlip {
    from { opacity: 0; transform: rotateY(75deg); }
    to { opacity: 1; transform: rotateY(0deg); }
}

@keyframes sipGalleryKenBurns {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(1%, -1%, 0); }
}

@media (max-width: 768px) {
    .sip-g-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sip-g-filterform {
        align-items: stretch;
    }

    .sip-g-searchlabel {
        min-width: 0;
    }

    .sip-g-stage {
        min-height: 62vh;
    }

    .sip-g-large.sip-g-media-img,
    .sip-g-large.sip-g-media-video {
        max-height: 52vh;
    }
}