/* Loading overlay */
.tabs-loading-overlay {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    z-index: 10;
    margin-top: 20px;
}

.page-template-template-videos .select_grid {
    display: none;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Animated ring */
.spinner-ring {
    width: 52px;
    height: 52px;
    border: 4px solid #e0e0e0;
    border-top-color: #0057b8;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: #555;
    margin: 0;
    letter-spacing: 0.03em;
}

/* Fade-in for freshly loaded content */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tabs-content .tabs-panel.is-active {
    animation: fadeInUp 0.35s ease forwards;
}

/* Disabled tab state while loading */
.d23_day_categories .tabs-title a.is-loading {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}


/* ── Grid: 4 columns ── */
.img_grid_row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.img_grid_row .img_grid_col {
    flex: 0 0 25%;
    max-width: calc(25% - 30px);
}
@media (max-width: 1024px) {
    .img_grid_row .img_grid_col {
        flex: 0 0 33.333%;
        max-width: calc(33.333% - 30px);
    }
}
@media (max-width: 768px) {
    .img_grid_row .img_grid_col {
        flex: 0 0 50%;
        max-width: calc(50% - 30px);
    }
}
@media (max-width: 480px) {
    .img_grid_row .img_grid_col {
        flex: 0 0 100%;
        max-width: calc(100%);
    }
}

.img_grid_col {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.img_grid_col:hover { transform: translateY(-3px); }
.img_grid_col.is-active .img_div { outline: 3px solid #0057b8; outline-offset: 2px; }

.img_div img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* ── Inline lightbox panel ── */
.inline-lightbox {
    width: 100%;
    background: rgba(255,255,255,.16);
    border-radius: 10px;
    padding: 20px 60px 20px 20px;
    margin: 8px 0 16px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
    animation: ilbSlideDown 0.3s ease forwards;
}

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

.ilb-inner {
    display: flex;
    gap: 24px;
    flex: 1;
    align-items: flex-start;
    min-width: 0;
}

/* Unified media wrap — holds img, wc-player, or vimeo */
.ilb-media-wrap {
    flex: 0 0 auto;
    width: 50%;
    max-width: 50%;
}
.ilb-media-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* wc-player sizing inside lightbox */
#ilbWcPlayer {
    width: 100%;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    min-height: 280px;
    background: #000;
}

/* Vimeo iframe sizing */
#ilbVimeoEmbed iframe {
    width: 100%;
    min-height: 280px;
    border-radius: 8px;
    border: none;
    display: block;
}

.ilb-info {
    flex: 1;
    min-width: 0;
    color: #fff;
    padding-top: 4px;
}
.ilb-date  { font-size: 13px; color: #aaa; margin: 0 0 8px; }
.ilb-title { font-size: 18px; font-weight: 600; margin: 0 0 16px; color: #fff; }

.ilb-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.ilb-download:hover { background: rgba(255,255,255,0.1); }

/* Arrows */
.ilb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #5566EDB2;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    width: 45px;
    height: 45px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
    padding: 16px;
}
.ilb-arrow svg {
    width: 20px;
    height: 20px;
}
.ilb-arrow:hover { background: #5566edf0; }
.ilb-prev { left: -20px; }
.ilb-next { right: -20px; }
.ilb-arrow:disabled { opacity: 0.3; cursor: default; }

/* Close */
.ilb-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.ilb-close:hover { opacity: 1; }

@media (max-width: 600px) {
    .ilb-inner { flex-direction: column; }
    .ilb-media-wrap { width: 100%; max-width: 100%; }
    .inline-lightbox { padding: 16px 16px 60px; }
    .ilb-prev { left: 8px; bottom: 10px; top: auto; transform: none; }
    .ilb-next { right: 8px; bottom: 10px; top: auto; transform: none; }
}

div#ilbDesc {
    margin-bottom: 20px;
}
/* Load More button loader */
.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}


a#videoLoadMoreBtn {
    max-width: 204px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 59px;
    padding: 15px 20px;
    background-color: #6E259E;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    font-family: 'InspireTWDC-Heavy';
    font-weight: 800;
    letter-spacing: 1px;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 55;

}

.text_center.title_load_more_section {
    padding-top: 36px;
}