/*
Theme Name: imgsdigital
Theme URI: https://televisodes.com/
Author: Televisodes
Author URI: https://televisodes.com/
Description: Televisodes Bootstrap theme.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: televisodes-theme
Tags: bootstrap, responsive, tube-site, porn site, lightweight
*/

/* =============================================
   AI Gallery — single post content
   ============================================= */

.ai-gallery-wrap {
    margin: 2rem 0;
}

/* ── Stats / action bar ── */
.ai-gallery-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: .75rem;
    font-size: .85rem;
    color: #aaa;
}
.ai-gallery-count {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.ai-gallery-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem 1.1rem;
    background: #22c55e;
    color: #fff !important;
    font-weight: 600;
    font-size: .82rem;
    border-radius: 2rem;
    text-decoration: none !important;
    letter-spacing: .02em;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(34,197,94,.35);
}
.ai-gallery-dl-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34,197,94,.45);
}

/* ── Grid ── */
.ai-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
@media (max-width: 576px) {
    .ai-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* ── Item / figure ── */
.ai-gallery-item {
    margin: 0;
    border-radius: .6rem;
    overflow: hidden;
    background: #111;
    position: relative;
    aspect-ratio: 2/3;     /* portrait — sesuai gambar AI */
    cursor: pointer;
}
.ai-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.ai-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease, filter .35s ease;
}
.ai-gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(.7);
}

/* ── Hover overlay icon ── */
.ai-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.ai-gallery-item:hover .ai-gallery-overlay {
    opacity: 1;
}
.ai-gallery-overlay svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

/* ── Lightbox (pure CSS fallback — opens in new tab on click) ── */
/* No JS lightbox needed; clicking opens full image in new tab */

/* =============================================
   Gallery Hero Banner — single.php (standard post)
   ============================================= */

.gallery-hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: .75rem;
    background-size: cover;
    background-position: center;
    background-color: #111;
    margin-bottom: 1.5rem;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* blurred bg layer */
.gallery-hero-blur {
    position: absolute;
    inset: -10%;
    background: inherit;
    filter: blur(30px) brightness(0.25) saturate(1.4);
    z-index: 0;
    pointer-events: none;
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 1rem;
    width: 100%;
}

/* cover image — portrait, centered, max height */
.gallery-hero-img {
    max-height: 460px;
    max-width: 100%;
    width: auto;
    border-radius: .6rem;
    box-shadow: 0 16px 48px rgba(0,0,0,.6);
    object-fit: contain;
    display: block;
}

@media (max-width: 576px) {
    .gallery-hero-banner  { min-height: 220px; }
    .gallery-hero-img     { max-height: 300px; }
}
