/* =========================================
   GALLERY PENGGUNA (USER) - VERSI PERBAIKAN 3
   FIX: Padding-top berbeda untuk mobile & desktop
   ========================================= */

/* Halaman Index */
.gallery-section {
    /* FIX 1: Padding-top untuk MOBILE (header lebih pendek) */
    padding: 110px 15px 60px 15px; /* Atas, Kiri/Kanan, Bawah */
    background-color: #f8f9fa;
    color: #0a0a0a;
    min-height: 100vh; 
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header-title {
    font-size: 2.2rem; 
    font-weight: 800;
    color: #0a0a0a;
    display: block !important; 
}

.text-drachen-gold {
    color: #fbbf24;
}

.gallery-header-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
    margin: 10px auto 0;
    display: block !important; 
}

/* Struktur Card BARU */
.gallery-card {
    background-color: #ffffff;
    border-radius: 16px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Wrapper Gambar BARU */
.gallery-image-wrapper {
    position: relative;
    display: block;
    overflow: hidden; 
    border-radius: 10px 10px 0 0; 
}

/* Konsolidasi Style Gambar & Video */
.gallery-image,
.gallery-video-thumb {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    display: block;
    transition: transform 0.4s ease;
    background-color: #eee; 
}

/* Tampilan Ikon Video */
.gallery-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem; 
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

/* Placeholder jika media error */
.gallery-video-placeholder {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efek Hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2.5rem;
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-image-wrapper:hover .gallery-image,
.gallery-image-wrapper:hover .gallery-video-thumb {
    transform: scale(1.05); /* Zoom-in */
}

.gallery-image-wrapper:hover .gallery-video-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Info Card BARU */
.gallery-card-body {
    padding: 20px;
}

.gallery-card-category {
    display: inline-block;
    padding: 4px 12px; 
    background-color: #b91c1c; 
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.7rem; 
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.gallery-card-title {
    font-size: 1.15rem; 
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 10px;
}

.gallery-card-date {
    font-size: 0.85rem; 
    color: #666;
    margin-bottom: 0;
}

.gallery-card-date i {
    color: #b91c1c;
    margin-right: 5px;
}

/* =========================================
   Halaman Show (Detail)
   ========================================= */

.gallery-show-section {
    /* FIX 1: Padding-top untuk MOBILE (header lebih pendek) */
    padding: 110px 15px 60px 15px;
    background-color: #ffffff;
    min-height: 80vh;
}

.btn-drachen-outline-gold {
    color: #fbbf24;
    border-color: #fbbf24;
    font-weight: 600;
}
.btn-drachen-outline-gold:hover {
    background-color: #fbbf24;
    color: #0a0a0a;
    border-color: #fbbf24;
}

.gallery-show-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.gallery-show-title {
    font-weight: 800;
    font-size: 2.2rem;
    color: #fbbf24; 
}

.gallery-show-meta {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.gallery-show-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: #b91c1c;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.gallery-show-location {
    font-size: 1.1rem;
    color: #333;
    margin-top: 15px;
}
.gallery-show-location i {
    color: #b91c1c;
}

.gallery-show-description {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
}


/* =========================================
   MEDIA QUERY (Responsif)
   ========================================= */

/* Tablet (Kita anggap 768px header masih mirip mobile) */
@media (min-width: 768px) {
    .gallery-header-title {
        font-size: 2.5rem; 
    }
}

/* Desktop (992px) - Saat header berubah jadi tinggi */
@media (min-width: 992px) {
    .gallery-section {
        /* FIX 2: Padding-top untuk DESKTOP (header lebih tinggi) */
        padding: 150px 0 60px 0; /* Atas, Kiri/Kanan, Bawah */
    }
    .gallery-show-section {
        /* FIX 2: Padding-top untuk DESKTOP (header lebih tinggi) */
        padding: 150px 0 60px 0;
    }
}