/* Galeria de Portfólio */
.portfolio-gallery {
  position: relative;
  padding: 100px 0;
  background: #000000ff;
  overflow: hidden;
  z-index: 2;
}

.gallery-header {
  text-align: center;
  margin-bottom: 80px;
}

.gallery-subtitle {
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  color: #ff6b35;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gallery-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 82px;
  font-weight: 700;
  color: #ffffffff;
  line-height: 1.2;
}

.gallery-description {
  font-size: 22px;
  font-weight: 100;
  font-family: "Roboto", sans-serif;
  color: #ffffffff;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Efeito de Fade nas Laterais */
.gallery-container::before,
.gallery-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 2;
  pointer-events: none;
}

.gallery-container::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.gallery-container::after {
  right: 0;
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
}

.gallery-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  margin-bottom: 20px;
  width: 100%;
  overflow: visible;
}

.gallery-track {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  gap: 20px;
  -webkit-box-align: start;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Grupos Panorâmicos (2 imagens empilhadas) */
.gallery-group {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 10px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

/* Imagens e Vídeos Panorâmicos (16:9) */
.gallery-img-panoramic {
  width: 350px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Imagens e Vídeos Verticais (9:16 - altura dupla) */
.gallery-img-vertical {
  width: 250px;
  height: 410px;
  object-fit: cover;
  border-radius: 12px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos específicos para vídeos - iOS compatible */
video.gallery-img-panoramic,
video.gallery-img-vertical {
  background: #000;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

/* Fix para iOS - garante que vídeos não mostrem controles */
video::-webkit-media-controls {
  display: none !important;
}
video::-webkit-media-controls-panel {
  display: none !important;
}
video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.gallery-img-panoramic:hover,
.gallery-img-vertical:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

/* Responsivo */
@media (max-width: 768px) {
  .portfolio-gallery {
    padding: 60px 0;
  }

  .gallery-header {
    margin-bottom: 50px;
  }

  .gallery-title {
    font-size: 32px;
  }

  /* Imagens e Vídeos Panorâmicos no mobile */
  .gallery-img-panoramic {
    width: 320px;
    height: 100px;
  }

  /* Imagens e Vídeos Verticais no mobile */
  .gallery-img-vertical {
    width: 240px;
    height: 205px;
  }

  .gallery-container::before,
  .gallery-container::after {
    width: 100px;
  }
}