/* ============================================================
   Behance Portfolio Carousel v3.1
   ============================================================ */

.bpc-wrapper { position: relative; width: 100%; overflow: hidden; }

/* ---- Swiper ---- */
.bpc-swiper { width: 100%; overflow: visible; padding-bottom: 44px !important; }
.bpc-slide  { height: auto; display: flex; }

/* ---- Card ---- */
.bpc-card {
    display: flex; flex-direction: column;
    position: relative; width: 100%;
    border-radius: 6px; overflow: hidden;
    aspect-ratio: 16 / 10; cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
    outline: none; user-select: none;
}
.bpc-card:hover, .bpc-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

/* ---- Imagem ---- */
.bpc-card__image { position: absolute; inset: 0; }
.bpc-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.bpc-card:hover .bpc-card__image img { transform: scale(1.04); }
.bpc-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#1a1a2e,#16213e); }

/* ---- Overlay ---- */
.bpc-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.05) 0%, rgba(0,0,0,.20) 40%,
        rgba(0,0,0,.75) 75%, rgba(0,0,0,.88) 100%);
    transition: background .3s;
}
.bpc-card:hover .bpc-card__overlay {
    background: linear-gradient(to bottom,
        rgba(0,0,0,.10) 0%, rgba(0,0,0,.25) 40%,
        rgba(0,0,0,.80) 75%, rgba(0,0,0,.92) 100%);
}

/* ---- Logo Bē ---- */
.bpc-card__be {
    position: absolute; top: 14px; left: 16px; z-index: 10;
    opacity: .95; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}

/* ---- Conteúdo inferior ---- */
.bpc-card__content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 12px 14px 14px; z-index: 10;
}
.bpc-card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }

/* ---- Título ---- */
.bpc-card__title {
    margin: 0; padding: 0; color: #fff;
    font-size: clamp(12px, 1.8vw, 16px);
    font-weight: 800; letter-spacing: .02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-transform: uppercase; line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.5); flex: 1;
}

/* ---- Botão laranja ---- */
.bpc-card__btn {
    flex-shrink: 0; width: 40px; height: 40px;
    background: #ff6b00; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
    box-shadow: 0 2px 8px rgba(255,107,0,.4);
}
.bpc-card:hover .bpc-card__btn { background: #ff8c00; transform: scale(1.08); }

/* ============================================================
   Lightbox
   ============================================================ */
.bpc-lightbox-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.88); z-index: 99998;
    cursor: pointer;
}
.bpc-lightbox-backdrop.is-open { display: block; }

.bpc-lightbox {
    display: none; position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(900px, 92vw); height: min(600px, 85vh);
    background: #111; border-radius: 10px;
    overflow: hidden; z-index: 99999;
    box-shadow: 0 32px 80px rgba(0,0,0,.8);
    flex-direction: column;
}
.bpc-lightbox.is-open {
    display: flex;
    animation: bpcSlideIn .28s cubic-bezier(.16,1,.3,1);
}

/* ---- Botão fechar — visível e grande ---- */
.bpc-lightbox__close {
    position: absolute; top: 12px; right: 12px; z-index: 10;
    width: 38px; height: 38px;
    background: rgba(0,0,0,.75);
    border: 2px solid rgba(255,255,255,.5);
    border-radius: 50%;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s, transform .15s;
    line-height: 1;
}
.bpc-lightbox__close:hover {
    background: #ff6b00;
    border-color: #ff6b00;
    transform: scale(1.1);
}
.bpc-lightbox__close svg {
    display: block; pointer-events: none;
}

/* ---- Área do iframe ---- */
.bpc-lightbox__embed { flex: 1; overflow: hidden; position: relative; }
.bpc-lightbox__embed iframe { width: 100%; height: 100%; border: none; display: block; }

/* ---- Barra inferior: "Ver no Behance" ---- */
.bpc-lightbox__footer {
    display: flex; align-items: center; justify-content: center;
    padding: 10px 16px; background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,.08);
    gap: 8px; flex-shrink: 0;
}
.bpc-lightbox__footer a {
    display: inline-flex; align-items: center; gap: 6px;
    color: #fff; text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px; font-weight: 600;
    background: #0057ff;
    padding: 7px 16px; border-radius: 5px;
    transition: background .2s, transform .15s;
}
.bpc-lightbox__footer a:hover {
    background: #0047d4;
    transform: translateY(-1px);
}
.bpc-lightbox__footer a svg { flex-shrink: 0; }

@keyframes bpcSlideIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============================================================
   Navegação
   ============================================================ */
.bpc-nav-btn {
    color: #fff !important; background: rgba(0,0,0,.45) !important;
    width: 40px !important; height: 40px !important;
    border-radius: 50% !important;
    transition: background .2s, transform .2s !important;
}
.bpc-nav-btn:hover { background: rgba(255,107,0,.85) !important; transform: scale(1.1) !important; }
.bpc-nav-btn::after { font-size: 14px !important; font-weight: 700 !important; }

/* ============================================================
   Paginação
   ============================================================ */
.bpc-pagination { bottom: 8px !important; }
.bpc-pagination .swiper-pagination-bullet {
    background: rgba(255,255,255,.4) !important; opacity: 1 !important;
    width: 7px !important; height: 7px !important; transition: width .3s !important;
}
.bpc-pagination .swiper-pagination-bullet-active {
    background: #ff6b00 !important; width: 22px !important; border-radius: 4px !important;
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 640px) {
    .bpc-nav-btn { display: none !important; }
    .bpc-lightbox { width: 96vw; height: 80vh; }
}
