/* === BOTÃO VER GALERIA === */
.project-gallery-btn {
  display: inline-block;
  padding: 6px 16px;
  margin-top: 8px;
  border-radius: 999px;
  background-color: #184a6d;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-gallery-btn:hover {
  background-color: #1f618c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* === LIGHTBOX / MODAL === */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Botão Fechar */
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 28px;
  color: #184a6d;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover {
  background-color: #184a6d;
  color: #ffffff;
}

/* Container da Imagem Principal */
.lightbox-image-container {
  position: relative;
  width: 100%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

#lightbox-image {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

/* Setas do Lightbox */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 24px;
  color: #184a6d;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox-arrow:hover {
  background-color: #184a6d;
  color: #ffffff;
}

.lightbox-arrow-left {
  left: 16px;
}

.lightbox-arrow-right {
  right: 16px;
}

/* Info do Projeto */
.lightbox-info {
  padding: 20px 24px;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

#lightbox-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222222;
}

#lightbox-subtitle {
  font-size: 12px;
  font-weight: 200;
  margin-bottom: 6px;
  color: #222222;
  white-space: pre-wrap;
}


#lightbox-counter {
  font-size: 13px;
  color: #999999;
}

/* Miniaturas */
.lightbox-thumbnails {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  background-color: #f9f9f9;
  overflow-x: auto;
  justify-content: center;
}

.lightbox-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lightbox-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumbnail:hover {
  border-color: #184a6d;
  transform: scale(1.05);
}

.lightbox-thumbnail.active {
  border-color: #184a6d;
  box-shadow: 0 4px 12px rgba(24, 74, 109, 0.3);
}

/* Responsivo */
@media (max-width: 640px) {
  .lightbox-content {
    width: 95%;
  }

  .lightbox-image-container {
    min-height: 300px;
  }

  #lightbox-image {
    max-height: 350px;
  }

  .lightbox-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .lightbox-arrow-left {
    left: 8px;
  }

  .lightbox-arrow-right {
    right: 8px;
  }

  .lightbox-thumbnails {
    padding: 12px 16px;
    gap: 6px;
  }

  .lightbox-thumbnail {
    width: 50px;
    height: 50px;
  }
}