/* Galeri Styles */
.galeri-hero {
    background: linear-gradient(135deg, #002b5b 0%, #004e92 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.galeri-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.galeri-content {
    padding: 40px 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #002b5b;
    background: white;
    color: #002b5b;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #002b5b;
    color: white;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.galeri-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    position: relative;
}

.galeri-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Container untuk gambar */
.galeri-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.galeri-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeri-item:hover .galeri-image img {
    transform: scale(1.05);
}

/* Container untuk video */
.video-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galeri-item:hover .video-thumbnail-wrapper img {
    transform: scale(1.05);
}

.galeri-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 43, 91, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.galeri-item:hover .galeri-overlay {
    opacity: 1;
}

.galeri-info {
    max-height: 70%;
    overflow-y: auto;
}

.galeri-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.galeri-info p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.galeri-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 43, 91, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.video-container:hover .video-indicator {
    transform: translate(-50%, -50%) scale(1.1);
}

.file-info {
    margin-top: 10px;
    opacity: 0.8;
    font-size: 0.8rem;
}

.no-items-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-items-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 12px 30px;
    background: #002b5b;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

.load-more-btn:hover {
    background: #004e92;
    transform: translateY(-2px);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    text-align: center;
}

.lightbox-caption h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player-container video,
.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .galeri-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .lightbox-content,
    .video-content {
        width: 95%;
    }
    
    .video-content {
        width: 95%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .galeri-grid {
        grid-template-columns: 1fr;
    }
    
    .galeri-hero h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .galeri-image,
    .video-container {
        height: 200px;
    }
    
    .galeri-overlay {
        padding: 15px;
    }
    
    .galeri-info h3 {
        font-size: 1rem;
    }
    
    .galeri-info p {
        font-size: 0.8rem;
    }
}