/**
 * Tabomango Post Grid — Styles
 * v2.3.4
 *
 * Self-contained grid. Does NOT rely on Bootstrap being loaded.
 * All column behaviour is scoped inside #tabo-videos-wrap.
 */

/* ------------------------------------------------------------------ */
/* Grid row                                                             */
/* ------------------------------------------------------------------ */

#tabo-videos-wrap .row.tabomango-post-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

/* Every Bootstrap-style col inside our wrapper */
#tabo-videos-wrap .tabomango-post-grid > [class*="col-"] {
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
    /* Default: full width (mobile-first) */
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

/* >= 768px  ->  col-md-6  =  2 columns */
@media ( min-width: 768px ) {
    #tabo-videos-wrap .tabomango-post-grid > .col-md-6 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    #tabo-videos-wrap .tabomango-post-grid > .col-md-12 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* >= 992px  ->  explicit column widths */
@media ( min-width: 992px ) {
    /* 1 column — full width */
    #tabo-videos-wrap .tabomango-post-grid > .col-lg-12 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    /* 2 columns */
    #tabo-videos-wrap .tabomango-post-grid > .col-lg-6 {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    /* 3 columns */
    #tabo-videos-wrap .tabomango-post-grid > .col-lg-4 {
        width: 33.3333%;
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
    /* 4 columns */
    #tabo-videos-wrap .tabomango-post-grid > .col-lg-3 {
        width: 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* ------------------------------------------------------------------ */
/* Card                                                                 */
/* ------------------------------------------------------------------ */

#tabo-videos-wrap .elementskit-post-image-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* Thumbnail / oEmbed area                                              */
/* ------------------------------------------------------------------ */

#tabo-videos-wrap .elementskit-entry-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    background: #000;
    /* 16:9 container that scales with card width */
    padding-top: 56.25%;
    height: 0;
}

/* WP featured image */
#tabo-videos-wrap .elementskit-entry-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

#tabo-videos-wrap .elementskit-entry-thumb:hover img {
    transform: scale(1.04);
}

/* YouTube oEmbed iframe
   pointer-events: auto so the video is fully interactive.
   The thumb wrapper no longer has a link so there is no click conflict. */
#tabo-videos-wrap .elementskit-entry-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: auto;
}

/* ------------------------------------------------------------------ */
/* Card body                                                            */
/* ------------------------------------------------------------------ */

#tabo-videos-wrap .elementskit-post-body {
    flex: 1;
    padding: 20px;
}

#tabo-videos-wrap .entry-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 10px;
}

#tabo-videos-wrap .entry-title a {
    text-decoration: none;
    color: inherit;
}

#tabo-videos-wrap .entry-title a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Meta row                                                             */
/* ------------------------------------------------------------------ */

#tabo-videos-wrap .post-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    margin-bottom: 12px;
    opacity: 0.75;
}

#tabo-videos-wrap .post-meta-list i {
    margin-right: 4px;
}

#tabo-videos-wrap .post-meta-list a {
    color: inherit;
    text-decoration: none;
}

#tabo-videos-wrap .post-meta-list a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Excerpt                                                              */
/* ------------------------------------------------------------------ */

#tabo-videos-wrap .elementskit-post-body > p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ------------------------------------------------------------------ */
/* "No posts" fallback                                                  */
/* ------------------------------------------------------------------ */

.tabomango-no-posts {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    opacity: 0.6;
}
