/* Gallery & Video Gallery Append Styles */

.gallery-nav-section {
    background: #fff8f0;
    padding: 25px 0;
    border-bottom: 1px solid #f0e2d5;
    position: sticky;
    top: 70px;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.tab-item {
    background: #ffffff;
    border: 1px solid #e2d5c8;
    color: var(--primary-color, #5c1811);
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.tab-item i {
    color: var(--accent-color, #d67a18);
    transition: color 0.3s;
}

.tab-item:hover {
    background: #fbf1e6;
    border-color: var(--accent-color, #d67a18);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 122, 24, 0.15);
}

.tab-item.active {
    background: linear-gradient(135deg, var(--primary-color, #5c1811), #8a2419);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 5px 18px rgba(92, 24, 17, 0.3);
    transform: translateY(-2px);
}

.tab-item.active i {
    color: #ffd27d;
}

.gallery-content-section {
    padding: 50px 0 80px;
    background: #fdfaf5;
}

.gallery-category-block {
    margin-bottom: 50px;
    animation: fadeIn 0.4s ease;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ecdacf;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-icon {
    font-size: 1.5rem;
    color: var(--accent-color, #d67a18);
    background: #fef4e8;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f2dfce;
}

.cat-title {
    color: var(--primary-color, #5c1811);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.cat-count-badge {
    background: #fceddb;
    color: #9c4b07;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #f0d5be;
}

.btn-see-more {
    color: var(--accent-color, #d67a18);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-see-more:hover {
    color: var(--primary-color, #5c1811);
    transform: translateX(3px);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.photo-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f5ebe1;
    border: 1px solid #ecdacf;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.35s ease;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(92, 24, 17, 0.16);
    border-color: #dfbf9f;
}

.photo-item:hover img {
    transform: scale(1.08);
}

.photo-item::after {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: #ffffff;
    font-size: 1.6rem;
    background: rgba(92, 24, 17, 0.75);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.photo-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.video-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #ecdacf;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(92, 24, 17, 0.15);
}

.video-thumbnail-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #1a0805;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail-wrap img {
    transform: scale(1.05);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    background: rgba(214, 122, 24, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.video-thumbnail-wrap:hover .play-badge {
    background: #e62117;
    transform: translate(-50%, -50%) scale(1.12);
}

.video-info {
    padding: 18px 20px;
}

.video-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color, #5c1811);
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .gallery-nav-section {
        top: 60px;
        padding: 15px 0;
    }
    .gallery-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        flex-wrap: nowrap;
    }
    .tab-item {
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 7px 15px;
    }
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}
