/* CSS untuk Halaman Galeri */

/* Page Banner */
.page-banner {
    background-image: url('../img/gallery-banner.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    position: relative;
    margin-bottom: 60px;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 71, 42, 0.7);
    z-index: 1;
}

.page-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.page-banner h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.breadcrumb a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb i {
    font-size: 12px;
    color: var(--secondary-color);
}

.breadcrumb span {
    color: var(--secondary-color);
}

/* Gallery Filter */
.gallery-filter {
    margin-bottom: 40px;
}

.filter-container {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.filter-buttons {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: rgba(12, 113, 61, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
    padding-bottom: 80px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-img {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 71, 42, 0.7);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: var(--white);
}

.overlay-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.overlay-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* Video Items */
.video-item {
    grid-column: span 2;
}

.gallery-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.gallery-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    background-color: var(--white);
    padding: 15px;
}

.video-caption h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.video-caption p {
    font-size: 14px;
    color: var(--text-color);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* Testimonial Video */
.testimonial-video {
    padding: 80px 0;
    background-color: var(--gray-100);
}

.testimonial-video-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Virtual Tour */
.virtual-tour {
    padding: 80px 0;
}

.virtual-tour-tabs {
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.virtual-container {
    position: relative;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.virtual-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Share Gallery */
.share-gallery {
    padding: 80px 0;
    background-color: var(--gray-100);
}

.share-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.share-content {
    flex: 1;
}

.share-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.share-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.7;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-image {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.share-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.share-container:hover .share-image img {
    transform: scale(1.05);
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
}

.lb-data .lb-details {
    width: 100%;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-item {
        grid-column: span 1;
    }
    
    .share-container {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .virtual-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 32px;
    }
    
    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-img {
        height: 300px;
    }
    
    .virtual-container {
        height: 300px;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .page-banner {
        padding: 100px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .gallery-img {
        height: 250px;
    }
    
    .virtual-container {
        height: 250px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
}