
/* ==========================================
   FIX GALLERY HOKIEMAS88
   Versi lengkap - Desktop & Mobile
   ========================================== */

/* 1. CONTAINER GALERI */

.hdd02-gallery {
    width: 100%;
    max-width: 100%;
}

.hdd02-gallery__content {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}

.hdd02-gallery__list {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
}

.hdd02-gallery__list > .swiper-wrapper {
    display: block !important;
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
}

/* 2. TAMPILKAN GAMBAR PERTAMA */

.hdd02-gallery__list .hdd02-gallery__item {
    display: none !important;
}

.hdd02-gallery__list .hdd02-gallery__item:first-child {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* 3. GAMBAR UTAMA */

.hdd02-gallery__list .hdd02-gallery__image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

.hdd02-gallery__list .hdd02-gallery__image .image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.hdd02-gallery__list .hdd02-gallery__image img {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* 4. AREA THUMBNAIL */

.hdd02-gallery__thumbnail {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px 0 !important;
    overflow: visible !important;
}

.hdd02-gallery__thumbnail-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 5. KOTAK THUMBNAIL */

.hdd02-gallery__thumbnail-item {
    display: block !important;
    position: relative !important;
    flex: 0 0 110px !important;
    width: 110px !important;
    max-width: 110px !important;
    height: 110px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 215, 0, 0.35) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-color: #3b0404 !important;
    box-sizing: border-box !important;
}

/* 6. HILANGKAN OVERLAY */

.hdd02-gallery__thumbnail-item::before,
.hdd02-gallery__thumbnail-item::after {
    content: none !important;
    display: none !important;
}

/* 7. LINK THUMBNAIL */

.hdd02-gallery__thumbnail-item a {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

/* 8. CONTAINER GAMBAR THUMBNAIL */

.hdd02-gallery__thumbnail-item .image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 9. GAMBAR THUMBNAIL */

.hdd02-gallery__thumbnail-item img,
.hdd02-gallery__thumbnail-item img.image__main {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 2 !important;
}

/* 10. THUMBNAIL AKTIF */

.hdd02-gallery__thumbnail-item--on {
    border: 2px solid #ffd700 !important;
}

/* 11. TOMBOL +4 LEBIH BANYAK */

.hdd02-gallery__thumbnail-item-text {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.hdd02-gallery__thumbnail-item-text .text {
    color: #ffffff !important;
    text-align: center !important;
}

/* 12. RESPONSIVE TABLET */

@media (min-width: 768px) and (max-width: 1024px) {

    .hdd02-gallery__thumbnail-item {
        flex: 0 0 90px !important;
        width: 90px !important;
        max-width: 90px !important;
        height: 90px !important;
    }

    .hdd02-gallery__thumbnail-list {
        gap: 10px !important;
    }
}

/* 13. RESPONSIVE MOBILE */

@media (max-width: 767px) {

    .hdd02-gallery__list .hdd02-gallery__item:first-child {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }

    .hdd02-gallery__list .hdd02-gallery__image,
    .hdd02-gallery__list .hdd02-gallery__image .image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .hdd02-gallery__list .hdd02-gallery__image img {
        width: 100% !important;
        height: auto !important;
    }

    .hdd02-gallery__thumbnail {
        display: block !important;
        padding: 12px 8px !important;
    }

    .hdd02-gallery__thumbnail-list {
        justify-content: center !important;
        gap: 8px !important;
    }

    .hdd02-gallery__thumbnail-item {
        flex: 0 0 68px !important;
        width: 68px !important;
        max-width: 68px !important;
        height: 68px !important;
        border-radius: 8px !important;
    }

    .hdd02-gallery__thumbnail-item-text {
        font-size: 11px !important;
    }
}
