/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Filter Buttons */
.filter-buttons {
    text-align: center;
    margin-bottom: 20px;
}

/* Individual Filter Button */
.filter-button {
    padding: 10px 20px;
    margin: 5px 5px;
    background: transparent;
    color: #daae87;
    border: 1px dashed #daae87;
    cursor: pointer;
    border-radius: 60px;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Filter Button Hover Effect */
.filter-button:hover {
    background: rgba(255, 245, 230, 0.1);
    transform: translateY(-2px);
}

/* Active Filter Button */
.filter-button.active {
    background: #daae87;
    color: #bd410c;
    border-style: solid;
}

.gallery-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 470px;
    padding: 10px;
    background-color: transparent;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: transparent;
    border-radius: 10px;
    transition: transform 0.3s ease;
    width: 150px;
    height: 150px;
    max-width: 150px;
    max-height: 150px;
    cursor: pointer;
}

/* Gallery Item Hover Effect */
.gallery-item:hover {
    transform: translateY(-5px);
}

/* Gallery Image */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.4s cubic-bezier(.4,2,.6,1), border-radius 0.3s;
    border-radius: 10px;
    filter: grayscale(1) contrast(1.1) brightness(0.9);
}

/* Gallery Item Hover Effect - Gambar Berwarna */
.gallery-item:hover img {
    filter: grayscale(0) contrast(1.1) brightness(1);
}

/* Mobile: Gambar berwarna saat aktif */
.gallery-item.active-mobile img {
    filter: grayscale(0) contrast(1.1) brightness(1);
}

/* Image Overlay */
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.3);
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

/* Overlay Hover Effect */
.gallery-item:hover .overlay {
    opacity: 0;
}

/* Loading Indicator */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FF6B35;
    font-size: 14px;
    z-index: 1;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Error Message */
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FF6B35;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    z-index: 1;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Mobile Layout */
@media (max-width: 480px) {
    .gallery-wrapper {
        height: 80vw;
        min-height: 80vw;
        max-height: 80vw;
        display: flex;
        align-items: flex-start;
        position: relative;
    }
    .gallery {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        width: 100vw;
        max-width: 100vw;
        padding: 0 0 24px 0;
        height: 100%;
    }
    .gallery-item {
        min-width: 80vw;
        max-width: 80vw;
        width: 80vw;
        height: 100%;
        max-height: none;
        scroll-snap-align: center;
        flex-shrink: 0;
        margin: 0 15px 0 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .gallery-item:last-child {
        margin-right: 0 !important;
    }
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .mobile-desc-box {
        display: none !important;
    }
    .mobile-slider-desc {
        max-width: 80vw;
        margin: 0 auto 10px auto;
    }
    .gallery-item button,
    .gallery-item .arrow,
    .gallery-item .swiper-button-next,
    .gallery-item .swiper-button-prev,
    .gallery-item svg {
        display: none !important;
    }
    #load-more-btn {
        display: none !important;
    }
}

/* Gallery Tooltip */
.gallery-tooltip {
    position: fixed;
    z-index: 9999;
    background: #daae87;
    color: #bd410c;
    padding: 15px 20px;
    border-radius: 0px 10px 10px 10px;
    pointer-events: none;
    font-size: 15px;
    min-width: 180px;
    max-width: 260px;
    transition: opacity 0.25s cubic-bezier(.4,2,.6,1);
    opacity: 1;
    line-height: 1;
    text-align: left;
    left: 0;
    display: none;
}

.gallery-tooltip strong {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.gallery-tooltip span {
    font-size: 11px;
    color: #bd410c;
}

@media (max-width: 480px) {
    .gallery-tooltip {
        display: none !important;
    }
}

/* Box judul & deskripsi mobile */
.mobile-desc-box {
    display: none;
    background: rgba(189,65,12,0.97);
    color: #fff;
    border-radius: 0 0 10px 10px;
    padding: 12px 10px 10px 10px;
    font-size: 15px;
    margin-top: -2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    line-height: 1.4;
}

.gallery-item.active-mobile .mobile-desc-box {
    display: block;
}

.mobile-desc-box strong {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.mobile-desc-box span {
    font-size: 14px;
    color: #ffe2c2;
}

.mobile-slider-desc {
    display: none;
    background: #bd410c;
    color: #daae87;
    border-radius: 0 10px 10px 10px;
    border: 1px dashed #daae87;
    padding: 16px 14px 14px 14px;
    font-size: 16px;
    margin: 0 auto 10px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    line-height: 1.5;
    max-width: 100vw;
    position: relative;
}

.mobile-slider-desc strong {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.mobile-slider-desc span {
    font-size: 15px;
    color: #daae87;
}

@media (max-width: 480px) {
    .mobile-slider-desc {
        display: block;
    }
}

/* Load More Button */
#load-more-btn {
    margin: 24px auto 0 auto;
    display: block;
    padding: 12px 32px;
    font-size: 16px;
    background: #daae87;
    color: #bd410c;
    border: 1px dashed #bd410c;
    border-radius: 8px;
    cursor: pointer;
} 