/* Seenbio public profile social icons - unified style */
[data-seenbio="links"].sb-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px auto;
}

[data-seenbio="links"] .sb-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff !important;
  margin: 0 4px;
  text-decoration: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, opacity 0.18s ease-out;
}

[data-seenbio="links"] .sb-social-icon i {
  font-size: 16px;
  line-height: 1;
}

[data-seenbio="links"] .sb-social-icon:hover,
[data-seenbio="links"] .sb-social-icon:focus-visible {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  opacity: 0.9;
}

/* Seenbio gallery carousel */
[data-seenbio="gallery"].sb-gallery,
.sb-gallery[data-seenbio="gallery"] {
  width: 100%;
  margin: 24px auto 32px auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sb-gallery-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 4px 2px 8px 2px;
}

.sb-gallery-item {
  flex: 0 0 auto;
  width: 32%;
  max-width: 180px;
}

.sb-gallery-figure {
  position: relative;
  width: 100%;
  padding-top: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.sb-gallery-figure img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Seenbio gallery lightbox */
.sb-gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}

.sb-gallery-lightbox.is-open{
  display:flex;
  pointer-events:auto;
}

.sb-gallery-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.82);
}

.sb-gallery-lightbox-inner{
  position:relative;
  z-index:1;
  max-width: min(92vw, 860px);
  max-height: 92vh;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.sb-gallery-lightbox-content{
  max-width:100%;
  max-height:100%;
}

.sb-gallery-lightbox-img{
  display:block;
  max-width:100%;
  max-height:100%;
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,0.7);
}

.sb-gallery-lightbox-close{
  position:absolute;
  top:12px;
  right:14px;
  width:32px;
  height:32px;
  border-radius:999px;
  border:0;
  background:rgba(0,0,0,0.6);
  color:#fff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.sb-gallery-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:999px;
  border:0;
  background:rgba(0,0,0,0.6);
  color:#fff;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}

.sb-gallery-lightbox-prev{
  left:10px;
}

.sb-gallery-lightbox-next{
  right:10px;
}

.sb-lightbox-open body{
  overflow:hidden;
}

/* Ajustes do carrossel da galeria: esconde scrollbar mas mantém rolagem lateral */
[data-seenbio="gallery"].sb-gallery,
.sb-gallery[data-seenbio="gallery"] {
  scrollbar-width: none; /* Firefox */
}

[data-seenbio="gallery"].sb-gallery::-webkit-scrollbar,
.sb-gallery[data-seenbio="gallery"]::-webkit-scrollbar {
  display: none; /* WebKit */
}

/* Navegação do lightbox: setas simples, fora da imagem */
.sb-gallery-lightbox-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0 6px;
  font-size: 26px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.sb-gallery-lightbox-prev{
  left: 24px;
}

.sb-gallery-lightbox-next{
  right: 24px;
}

/* Centraliza o "X" do botão de fechar no lightbox */
.sb-gallery-lightbox-close{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

/* Carrossel: esconde scrollbar visual mas mantém rolagem lateral */
[data-seenbio="gallery"].sb-gallery,
.sb-gallery[data-seenbio="gallery"] {
  scrollbar-width: none; /* Firefox */
}

[data-seenbio="gallery"].sb-gallery::-webkit-scrollbar,
.sb-gallery[data-seenbio="gallery"]::-webkit-scrollbar {
  display: none; /* WebKit */
}

/* Seenbio videos list */
[data-seenbio="videos"].sb-videos,
.sb-videos[data-seenbio="videos"]{
  width:100%;
  margin:24px 0 0 0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.sb-video{
  width:100%;
}

.sb-video-inner{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  background:#000;
}

.sb-video-thumb{
  position:relative;
  cursor:pointer;
}

.sb-video-thumb img{
  display:block;
  width:100%;
  height:auto;
}

.sb-video-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(120deg, rgba(0,0,0,0.45), rgba(0,0,0,0.1));
  border:0;
  cursor:pointer;
}

.sb-video-play-icon{
  width:56px;
  height:56px;
  border-radius:999px;
  background:rgba(0,0,0,0.85);
  display:flex;
  align-items:center;
  justify-content:center;
}

.sb-video-play-icon::before{
  content:'';
  display:block;
  margin-left:3px;
  border-style:solid;
  border-width:10px 0 10px 18px;
  border-color:transparent transparent transparent #ffffff;
}

.sb-video-iframe-wrap{
  position:relative;
  padding-top:56.25%; /* 16:9 */
}

.sb-video-iframe-wrap iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:18px;
}

/* Ajustes vídeos: proporção 16:9 sempre e hover só no botão de play */
.sb-video-inner{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  background:#000;
}

.sb-video-thumb{
  position:relative;
  overflow:hidden;
}

/* Mantém proporção horizontal 16:9 na miniatura, independente do vídeo (wide ou vertical) */
.sb-video-thumb::before{
  content:'';
  display:block;
  padding-top:56.25%;
}

.sb-video-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Overlay neutro, sem efeito roxo/lilás no card inteiro */
.sb-video-play{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.18);
  border:0;
  cursor:pointer;
}

.sb-video-play:hover{
  background:rgba(0,0,0,0.26);
}

/* Hover apenas no ícone de play */
.sb-video-play-icon{
  width:56px;
  height:56px;
  border-radius:999px;
  background:rgba(0,0,0,0.85);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.15s ease-out, background 0.15s ease-out;
}

.sb-video-play-icon::before{
  content:'';
  display:block;
  margin-left:3px;
  border-style:solid;
  border-width:10px 0 10px 18px;
  border-color:transparent transparent transparent #ffffff;
}

.sb-video-play:hover .sb-video-play-icon{
  transform:scale(1.04);
}

/* Garante espaçamento confortável abaixo da galeria */
.sb-videos[data-seenbio="videos"]{
  margin-top:32px;
  position:relative;
}


/* ============================
   Seenbio 1.7.6 – FIX MOBILE
   Galeria (Portfólio) + Vídeo + Footer
   ============================ */

@media (max-width: 768px){

  [data-seenbio="gallery"].sb-gallery,
  .sb-gallery[data-seenbio="gallery"]{
    margin-bottom: 32px !important;
    display: block;
    position: relative;
    z-index: 1;
  }


  .sb-videos[data-seenbio="videos"]{
    margin-top: 24px !important;
    margin-bottom: 32px !important;
    position: relative;
    z-index: 1;
  }

  .sb-videos[data-seenbio="videos"] iframe{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    display: block;
    border-radius: 18px;
  }

  .sb-footer{
    position: relative;
    margin-top: 40px !important;
    z-index: 0;
  }
}

/* ======================================
   Seenbio — FIX MOBILE DEFINITIVO (1.7.8)
   Galeria • Título • Vídeo • Footer
   ====================================== */

@media (max-width: 768px){

  /* Espaço após a galeria (Portfólio) */
  [data-seenbio="gallery"].sb-gallery,
  .sb-gallery[data-seenbio="gallery"]{
    margin-bottom: 28px !important;
  }

  /* Título da seção de vídeos (ex.: "Cliente na mídia") */
  .sb-section-title[data-seenbio="videos-title"]{
    margin-top: 8px !important;
    margin-bottom: 16px !important;
    display: block;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  /* Bloco de vídeos */
  .sb-videos[data-seenbio="videos"]{
    margin-top: 0 !important;
    margin-bottom: 32px !important;
    position: relative;
    z-index: 1;
  }

  /* Iframe do YouTube responsivo em 16:9 */
  .sb-videos[data-seenbio="videos"] iframe{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    border-radius: 18px;
    display: block;
  }

  /* Footer sempre abaixo do vídeo */
  .sb-footer{
    margin-top: 32px !important;
    position: relative;
    z-index: 0;
  }
}

/* ======= FIX FINAL — Elementor + Seenbio (1.7.9) ======= */

/* Espaço entre Galeria e Título "Cliente na mídia" */
.elementor-widget-shortcode .sb-gallery {
    margin-bottom: 28px !important;
}

/* Espaço entre título "Cliente na mídia" e o vídeo */
.elementor-widget-shortcode .sb-videos {
    margin-top: 16px !important;
    margin-bottom: 32px !important;
}

/* Footer sempre abaixo */
.elementor-element.elementor-widget-shortcode:last-of-type {
    margin-top: 32px !important;
}
