/* ==========================================
   CRISTECH TECNOLOGIA
   PORTFÓLIO - LA BELLE DE JOUR
========================================== */

/* VITRINE DO SISTEMA */

.pf-project > .pf-preview.pf-preview-store.lb-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 285px;
  gap: 10px;
  padding: 18px 12px 16px;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(224, 60, 145, 0.2),
      transparent 68%
    ),
    linear-gradient(155deg, #241824, #100e15);

  color: #fff;
}

/* TÍTULO DA PRÉVIA */

.lb-showcase .lb-preview-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4c7df;
}

/* ==========================================
   DISPOSITIVOS
========================================== */

.lb-showcase .lb-devices {
  width: min(100%, 410px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 14px 6px 8px;
}

/* ==========================================
   NOTEBOOK
========================================== */

.lb-showcase .lb-laptop {
  width: 83%;
  min-width: 0;
  flex: 0 0 83%;

  animation: lb-float 7s ease-in-out infinite;

  filter: drop-shadow(0 13px 12px rgba(0, 0, 0, 0.43));
}

.lb-showcase .lb-laptop-frame {
  position: relative;
  background: #16161d;
  border: 2px solid #85818d;
  padding: 9px 6px 5px;
  border-radius: 9px 9px 3px 3px;
}

/* CÂMERA DO NOTEBOOK */

.lb-showcase .lb-webcam {
  position: absolute;
  width: 3px;
  height: 3px;
  left: 50%;
  top: 3px;
  border-radius: 50%;
  background: #909099;
}

/* BASE DO NOTEBOOK */

.lb-showcase .lb-laptop-base {
  height: 9px;
  width: 110%;
  margin-left: -5%;

  border-radius: 3px 3px 50% 50%;

  background: linear-gradient(#d5d3da, #6f6d79);
}

/* ==========================================
   CELULAR
========================================== */

.lb-showcase .lb-phone {
  position: relative;
  z-index: 2;

  width: 27%;
  flex: 0 0 27%;

  margin-left: -8%;
  margin-bottom: -3px;

  filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.55));

  animation: lb-float 8s ease-in-out -2s infinite;
}

.lb-showcase .lb-phone-frame {
  position: relative;
  padding: 5px;
  background: #12121c;
  border: 2px solid #77727f;
  border-radius: 17px;
}

/* CÂMERA DO CELULAR */

.lb-showcase .lb-phone-notch {
  position: absolute;

  width: 40%;
  height: 7px;

  left: 30%;
  top: 4px;

  z-index: 1;

  border-radius: 0 0 8px 8px;
  background: #12121c;
}

/* ==========================================
   TELAS
========================================== */

.lb-showcase .lb-screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.lb-showcase .lb-screen-desktop {
  aspect-ratio: 16 / 9;
  border-radius: 3px;
}

.lb-showcase .lb-screen-mobile {
  aspect-ratio: 9 / 17.5;
  border-radius: 12px;
}

/* CAPTURAS */

.lb-showcase .lb-screen img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;

  object-fit: cover;
  object-position: top center;

  transition: opacity 0.35s ease;
}

/* LEGENDA DA TELA */

.lb-showcase .lb-slide-label {
  font-size: 11px;
  text-align: center;
  color: #f3d5e5;
  margin: 0;
}

/* ==========================================
   BOTÕES CLARO / ESCURO
========================================== */

.lb-showcase .lb-theme-controls {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.lb-showcase .lb-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  padding: 6px 12px;

  color: #f7eaf4;
  background: rgba(255, 255, 255, 0.07);

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 40px;

  cursor: pointer;

  font-size: 12px;
  font-weight: 600;
}

.lb-showcase .lb-theme-btn svg {
  width: 14px;
  height: 14px;
}

/* BOTÃO ATIVO */

.lb-showcase .lb-theme-btn.is-active,
.lb-showcase .lb-theme-btn[aria-pressed="true"] {
  background: #cf3983;
  color: #fff;
  border-color: #e95aa2;
}

/* FOCO DE ACESSIBILIDADE */

.lb-showcase .lb-theme-btn:focus-visible,
.lb-dialog-gallery button:focus-visible {
  outline: 3px solid #f46eaf;
  outline-offset: 3px;
}

/* ==========================================
   GALERIA DE DETALHES
========================================== */

.lb-dialog-gallery[hidden] {
  display: none !important;
}

.lb-dialog-gallery {
  padding-top: 10px;
}

.lb-dialog-gallery h3 {
  margin-bottom: 5px;
}

.lb-dialog-gallery > p {
  margin-top: 0;
}

/* ÁREA DA IMAGEM */

.lb-dialog-gallery .lb-gallery-stage {
  display: flex;
  align-items: center;
  gap: 8px;

  margin: 15px 0 8px;
  width: 100%;
}

.lb-dialog-gallery .lb-gallery-stage img {
  width: min(100%, 650px);
  min-width: 0;

  height: min(48vh, 390px);

  object-fit: contain;

  background: #18151d;

  border: 1px solid rgba(140, 120, 145, 0.25);
  border-radius: 10px;

  flex: 1;
}

/* SETAS DA GALERIA */

.lb-dialog-gallery .lb-gallery-arrow {
  flex: 0 0 32px;

  width: 32px;
  height: 38px;

  border: 1px solid #d4569c;
  border-radius: 9px;

  color: #e2529a;
  background: transparent;

  font-size: 29px;
  cursor: pointer;
}

/* LEGENDA */

.lb-dialog-gallery .lb-gallery-caption {
  margin: 8px 0 12px;
  text-align: center;
  font-size: 13px;
}

/* MINIATURAS */

.lb-dialog-gallery .lb-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 8px;
  margin-bottom: 20px;
}

.lb-dialog-gallery .lb-gallery-thumbs button {
  height: 54px;
  width: 78px;

  padding: 2px;

  background: transparent;
  border: 2px solid transparent;
  border-radius: 7px;

  cursor: pointer;
}

/* MINIATURA SELECIONADA */

.lb-dialog-gallery .lb-gallery-thumbs button.is-current {
  border-color: #e34b9c;
}

.lb-dialog-gallery .lb-gallery-thumbs img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: top;

  border-radius: 4px;
}

/* ==========================================
   ANIMAÇÃO DE FLUTUAÇÃO
========================================== */

@keyframes lb-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* ==========================================
   RESPONSIVO
========================================== */

@media (max-width: 420px) {
  .pf-project > .pf-preview.pf-preview-store.lb-showcase {
    min-height: 242px;
    padding: 14px 8px;
  }

  .lb-showcase .lb-devices {
    padding-inline: 8px;
  }

  .lb-dialog-gallery .lb-gallery-arrow {
    width: 27px;
    flex-basis: 27px;
  }
}

/* ACESSIBILIDADE */

@media (prefers-reduced-motion: reduce) {
  .lb-showcase .lb-phone,
  .lb-showcase .lb-laptop {
    animation: none;
  }

  .lb-showcase .lb-screen img {
    transition: none;
  }
}

/* ==========================================
   CORREÇÃO DO CARD LA BELLE DE JOUR
========================================== */

/* TAMANHO DA ÁREA DAS IMAGENS */

.pf-project.lb-project .pf-preview.pf-preview-store.lb-showcase {
  width: 100%;
  height: 260px;
  min-height: 0;
  max-height: 260px;
  padding: 14px 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  overflow: hidden;
  box-sizing: border-box;
  aspect-ratio: auto;
}

/* DIMINUIR NOTEBOOK E CELULAR */

.pf-project.lb-project .lb-devices {
  width: min(100%, 280px);
  max-width: 280px;
  flex-shrink: 1;
  min-height: 0;
  margin: 0 auto;
  padding: 5px 8px;
}

/* CONTROLAR O TAMANHO DO NOTEBOOK */

.pf-project.lb-project .lb-laptop {
  flex: 0 0 80%;
  width: 80%;
  min-width: 0;
}

/* CONTROLAR O TAMANHO DO CELULAR */

.pf-project.lb-project .lb-phone {
  flex: 0 0 26%;
  width: 26%;
  min-width: 0;
  margin-left: -7%;
}

/* IMAGENS DENTRO DAS TELAS */

.pf-project.lb-project .lb-screen {
  overflow: hidden;
}

.pf-project.lb-project .lb-screen img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: top center;
}

/* GARANTIR QUE A DESCRIÇÃO APAREÇA */

.pf-project.lb-project .pf-card-content {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 24px;
  box-sizing: border-box;
  opacity: 1;
  visibility: visible;
}

/* TEXTO DA DESCRIÇÃO */

.pf-project.lb-project .pf-card-content p {
  line-height: 1.7;
  margin-bottom: 18px;
}

/* BOTÕES CLARO E ESCURO */

.pf-project.lb-project .lb-theme-controls {
  flex-shrink: 0;
  margin-top: 2px;
}

.pf-project.lb-project .lb-theme-btn {
  padding: 5px 10px;
  font-size: 11px;
}

/* RESPONSIVO */

@media (max-width: 480px) {
  .pf-project.lb-project .pf-preview.pf-preview-store.lb-showcase {
    height: 240px;
    max-height: 240px;
    padding: 12px 8px;
  }

  .pf-project.lb-project .lb-devices {
    max-width: 250px;
  }

  .pf-project.lb-project .pf-card-content {
    padding: 20px;
  }
}
