:root {
    --primary-color: #002855; /* Dark Navy Blue */
    --primary-hover: #002855;
    --accent-color: #bfa15f; /* Golden/Brown Accent */
    --text-color: #333333;
    --bg-color: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

.ob-events-plugin-wrapper * {
    box-sizing: border-box;
}

.ob-events-plugin-wrapper {
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- FILTERS SECTION --- */
.ob-filters-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-top: 20px;
}

.ob-filter-group {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.ob-filter-label {
    font-size: 20px;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
    margin-top: 6px;
}

.ob-filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.ob-filter-tab {
    padding: 10px 24px;
    background-color: #f4f5f7;
    border: none;
    border-radius: 0;
    color: #475569;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    user-select: none;
}

.ob-filter-tab:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.ob-filter-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 500;
}

/* --- CONTENT WRAPPER --- */
.ob-content-wrapper {
    display: block; /* Hidden when no data */
}

.ob-tab-content {
    display: none; /* JS will toggle this to block */
    animation: fadeIn 0.5s ease-out;
    margin-bottom: 30px;
}

/* --- TABLEPRESS OVERRIDES --- */
.tablepress-table-name,
.tablepress-table-description,
.tablepress-edit-link {
    display: none !important;
}

/* Fix TablePress pagination dropdown overlap */
.dataTables_wrapper .dataTables_length select {
    padding-right: 30px !important;
    width: auto !important;
}



/* --- GALLERIES --- */
.ob-galleries-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.ob-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ob-gallery-title {
    font-size: 30px;
    color: #000000;
    font-weight: 700;
    padding-bottom: 10px;
    display: inline-block;
    align-self: flex-start;
    margin: 20px 0 10px 0;
}

.ob-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.ob-gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ob-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* --- LIGHTBOX --- */
.ob-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.ob-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.ob-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.ob-lightbox-close:hover,
.ob-lightbox-close:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* --- COMING SOON --- */
.ob-coming-soon-wrapper {
    display: none; /* Shown via JS when no data */
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.ob-coming-soon-card {
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(191, 161, 95, 0.15);
    animation: fadeIn 0.5s ease-out;
}

.ob-coming-soon-card h2 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.ob-coming-soon-card p {
    color: #64748b;
    font-size: 16px;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .ob-events-plugin-wrapper {
        padding: 20px;
    }
    .ob-filter-group {
        flex-direction: column;
        align-items: center;
    }
    .ob-filter-label {
        margin-top: 0;
        margin-bottom: 10px;
    }
    .ob-filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    .ob-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ob-gallery-title {
        font-size: 24px;
    }
/* Make TablePress Responsive (Horizontal Scroll on Mobile) */
.ob-tab-content .tablepress {
 	display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
}
}

