.custom-navbar-color {
    background-image: linear-gradient(#044E3B, #27CA9E);
}

.footer-color {
    background-color: #B4DDD2;
}

body {
    padding-top: 15px;
    background: #f5f5f5;
}

.gallery-container {
    background: linear-gradient(180deg, #04B98B, #02906B);
    border-radius: 25px;
    padding: 40px 20px;
    margin-top: 100px;
    color: white;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.gallery-desc {
    text-align: center;
    max-width: 800px;
    margin: 10px auto 30px;
    font-size: 15px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    margin: 30px 0 20px;
    text-align: center;
}

.gallery-slider {
    overflow: hidden;
    position: relative;
    padding-top: 50px;
    height: 300px;
}

.gallery-row {
    display: flex;
    transition: transform 0.8s ease;
}

.gallery-item {
    flex: 0 0 33.333%; /* 3 kolom terlihat */
    position: relative;
    padding: 10px;
}

.item-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background-color: rgba(4, 185, 139, 0.3);
    border-radius: 15px;
    z-index: -1;
}

.gallery-img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
}

.video-thumbnail::after {
    content: "▶";
    font-size: 50px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
}

.modal-dark {
    background-color: #1a1a1a;
    border-radius: 15px;
}

/* Animasi fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

#modalImage, #modalVideo {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#modalImage.show, #modalVideo.show {
    opacity: 1;
}

/* Efek blur/highlight */
.blur-left, .blur-right {
    filter: blur(2px) brightness(0.8);
    transform: scale(0.9);
}

.highlight {
    filter: none;
    transform: scale(1.1);
    z-index: 1;
}

/* Disable animasi untuk aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .gallery-img, .fade-in, #modalImage, #modalVideo, .gallery-row {
        transition: none;
    }
    .fade-in.animate {
        opacity: 1;
        transform: none;
    }
    #modalImage.show, #modalVideo.show {
        opacity: 1;
    }
    .blur-left, .blur-right, .highlight {
        filter: none;
        transform: none;
    }
}

/* Responsivitas */
@media (max-width: 768px) {
    .blur-left, .blur-right {
        filter: blur(1px);
        transform: scale(0.95);
    }
    .highlight {
        transform: scale(1.05);
    }
}