.jkit-portfolio-gallery {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 550px;
}

.portfolio-gallery-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 550px;
}

/* --- Barra horizontal de itens (DESKTOP) --- */
.row-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 colunas perfeitas */
  overflow: hidden;
  height: 100%;
  gap: 0;

  padding: 0;
  margin: 0;

  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.1);

  position: absolute;
  inset: 0;
  z-index: 9999;
}



.row-items {
  overflow-y: visible !important;
  overscroll-behavior-y: auto;
}

body {
  overflow-y: auto !important;
}
/* Cada coluna */
.row-item {
  width: 100%;
  height: 100%;
  padding: 10px;

  border-right: 1px solid #FFF;
  cursor: pointer;

  background: rgba(255,255,255,.08);
  text-align: center;
  transition: all .3s ease;

  z-index: 9999;

  /* >>> AJUSTE PARA ALINHAR O BOTÃO <<< */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.row-item:hover {
  background: rgba(255,255,255,.2);
}

.row-item.current-item {
  background: linear-gradient(180deg, rgba(0, 5, 13, 1) 30%, rgba(255,255,255,0.02) 80%);
  border-left: 1px solid #d29360;
  border-right: 1px solid #d29360;
}

/* --- Tipografia --- */
.info-subtitle {
  font-size: 25px;
  opacity: 1;
  margin-bottom: 5px;
  color: #FFF;
  font-weight: 800;
}

.info-title {
  font-size: 17px;
  margin-bottom: 8px;
  text-wrap: auto;
  color: #FFF;
  width: 210px;
  text-align: center;
  font-weight: 300;
  line-height: 24px;
  text-shadow: 1px 1px 1px #000;
  padding: 0px 0px 30px 30px;
}

.row-item-more {
  /* >>> AJUSTE PARA POSICIONAR O BOTÃO NO FINAL <<< */
  margin-top: auto;
  padding-bottom: 10px;
}

.row-item-more a {
  color: #fff;
  background: rgb(209 146 96);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

.row-item-more a:hover {background: rgb(134, 91, 56); }

/* --- Navegação (REMOVIDA) --- */
.nav-btn {
  display: none !important;
}

/* --- Área das imagens --- */
.gallery-items {
  position: relative;
  flex: 1;
  min-height: 400px;
  overflow: hidden;
}

.image-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .6s ease, transform .6s ease;
}

.image-item.current-item {
  opacity: 1;
  transform: scale(1);
}
/* ===========================
      MOBILE
=========================== */

@media (max-width: 800px) {
  .row-item:hover {
    background: inherit !important;
  }
}


@media (max-width: 800px) {

  .gallery-items { display: none !important; }

  .row-items {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 10px 0 40px 0;
    position: relative;
  }

  .row-items::-webkit-scrollbar { display: none; }

  .row-item {
    scroll-snap-align: center;
    min-width: 88%;
    max-width: 88%;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    border: none !important;
    padding: 0;
    position: relative;
  }

  /* IMAGEM MOBILE (GENÉRICA) */
  .row-item::before {
    content: "";
    display: block;
    height: 240px;
    background-image: var(--mobile-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .row-item-info {
    padding: 22px;
    text-align: center;
  }

  .info-title {
    width: 100%;
    padding: 0;
    margin: 10px 0 16px 0;
  }

  .row-item-more {
    padding-bottom: 10px;
  }

  .mobile-dots {
    width: 100%;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 10px;
  }

  .mobile-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background: #666;
    transition: background .3s;
  }

  .mobile-dots span.active {
    background: #fff;
  }
}
