/* CSS untuk Halaman Galeri - SCTK Custom */

.galeri-hero {
    padding: 140px 0 60px;
    background-color: var(--white);
}

.galeri-hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.galeri-hero-content {
    max-width: 600px;
}

.galeri-hero-title {
    font-size: clamp(34px, 4.8vw, 50px) !important;
    line-height: 1.2 !important;
    color: var(--dark) !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    margin-bottom: 24px;
    font-family: var(--font-heading) !important;
}

.galeri-hero-title span {
    color: #0f52ba !important;
}

.galeri-hero-desc {
    color: #64748b !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    font-family: var(--font-body) !important;
}

/* Filter Controls */
.filter-controls-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.filter-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0;
    color: #0f52ba;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02) !important;
}

.filter-pills-bar {
    background-color: #f1f5f9;
    border-radius: 30px !important;
    padding: 6px;
    display: flex;
    gap: 4px;
}

.filter-pill {
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #64748b;
    padding: 8px 20px;
    border-radius: 20px !important;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    color: #0f52ba !important;
    background-color: #eff6ff !important;
}

.filter-pill.active {
    background-color: #0f52ba !important;
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(15, 82, 186, 0.15) !important;
}

/* Gallery Grid */
.gallery-section {
    padding: 20px 0 100px;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 24px !important;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hide-fade {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-item.hide {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsivitas Galeri */
@media (max-width: 1024px) {
    .galeri-hero-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .filter-controls-wrapper {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .filter-pills-bar {
        flex-shrink: 0;
    }
}

/* Gallery Lightbox Styles */
.gallery-item {
    cursor: pointer !important;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 82, 186, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 24px;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-container {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    width: auto;
    height: auto;
}

.gallery-lightbox-modal.active .lightbox-container {
    transform: scale(1);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

#lightbox-img {
    max-width: 85vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    background: transparent !important;
    border: none !important;
    display: block;
}

.lightbox-caption {
    margin-top: 14px;
    color: #0f172a;
    font-family: var(--font-heading, sans-serif);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.lightbox-close-btn {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #0f172a;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.lightbox-close-btn:hover {
    background: #ffffff;
    color: #0f52ba;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #0f172a;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.lightbox-nav-btn:hover {
    background: #ffffff;
    color: #0f52ba;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-nav-btn.prev {
    left: 25px;
}

.lightbox-nav-btn.next {
    right: 25px;
}

@media (max-width: 768px) {
    .lightbox-close-btn {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
    }
    .lightbox-nav-btn.prev { left: 10px; }
    .lightbox-nav-btn.next { right: 10px; }
    #lightbox-img {
        max-width: 92vw;
        max-height: 72vh;
    }
}
