/* Gallery Tabs Styles */
.gallery-tabs {
    margin-bottom: 40px;
}

.tab-btn {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    color: #6c757d;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.tab-btn:hover {
    border-color: #EA580C;
    color: #EA580C;
}

.tab-btn.active {
    background-color: #EA580C;
    color: white;
    border-color: #EA580C;
}

/* Search Input Styles */
.search-wrapper .input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 60px;
    overflow: hidden;
}

.search-wrapper .form-control {
    border: none;
    padding: 12px 20px;
    padding-left: 0;
    font-size: 15px;
}

.search-wrapper .form-control:focus {
    box-shadow: none;
    border: none;
}

.search-wrapper .input-group-text {
    border: none;
    padding: 0 12px;
}

/* Gallery Card Styles */
.gallery-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.photo-badge {
    background-color: rgba(234, 88, 12, 0.9);
    color: white;
}

.video-badge {
    background-color: rgba(22, 163, 74, 0.9);
    color: white;
}

.gallery-content {
    padding: 20px;
}

.gallery-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.gallery-desc {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* View Stats */
.view-stats {
    font-size: 13px;
    color: #9ca3af;
}

.view-stats svg {
    vertical-align: middle;
}

/* Pagination Styles */
.pagination {
    gap: 8px;
}

.page-link {
    color: #6c757d;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.page-link:hover {
    color: #EA580C;
    background-color: #fff;
    border-color: #EA580C;
}

.page-item.active .page-link {
    background-color: #EA580C;
    border-color: #EA580C;
    color: white;
}

.page-item.disabled .page-link {
    background-color: transparent;
    border-color: transparent;
    color: #6c757d;
    cursor: not-allowed;
}

/* Arrow buttons can be slightly different */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-size: 20px;
}

/* Gallery Animation */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
}

.modal-header {
    padding: 20px;
}

.modal-body img {
    border-radius: 0 0 12px 12px;
    max-height: 70vh;
    object-fit: cover;
}

/* Responsive */
@media (max-width:1199.98px) {
    .gallery-content {
        padding: 16px;
    }

    .gallery-title {
        font-size: 16px;
    }

}

@media (max-width: 767.98px) {
    .gallery-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .tab-btn {
        white-space: nowrap;
        font-size: 14px;
        padding: 8px 20px;
    }

    .gallery-desc {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .page-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 0;
    }

    .pagination::-webkit-scrollbar {
        height: 4px;
    }

    .pagination::-webkit-scrollbar-thumb {
        background: #e5e7eb;
        border-radius: 2px;
    }
}