/*
Theme Name: GayaLamin
Author: Meu Amor
*/

/* Reset básico */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  font-size: 17px;
}

/* Acessibilidade mínima */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* Variáveis */
:root {
  --bege: #fefff3;
  --preto: #1a1a1a;
  --texto: clamp(0.78rem, 0.1333vw + 0.7494rem, 0.9rem);
  --titulo: clamp(0.9rem, 0.6296vw + 0.7556rem, 1.2rem);
}

/* Base */
body {
  font-family: "Lora", serif;
  background: var(--bege);
  color: var(--preto);
  line-height: 1.5;
  letter-spacing: -0.3px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

p {
  font-size: var(--texto);
}
h2 {
  font-size: var(--titulo);
}
/* Cabeçalho */
h1 {
  font-size: 2rem;
  font-style: italic;
  letter-spacing: -2px;
  line-height: 1;
  position: fixed;
}
.site-title {
  z-index: 999999;
}
/* Intro */
.intro-text {
  margin-top: 6rem;
  width: 30%;
}

/* Portfolio – lista */
.portfolio-item {
  padding-bottom: 1rem;
}
.portfolio-title,
.portfolio-text h2 {
  font-size: var(--titulo);
  line-height: 1.32;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -1px;
}
.portfolio-title:hover {
  transform: translateX(6px);
}

/* Preview (hover) */
#preview-img {
  width: 30vw;
  position: fixed;
  top: 6.9rem;
  left: 66vw;
  z-index: 999;
  transition: 0.45s cubic-bezier(0.455, 0.03, 0.515, 0.955) all;
}
.portfolio-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.portfolio-text h2 {
  width: 42%;
  text-wrap: balance;
  position: sticky;
  top: 0;
}
.portfolio-text p {
  width: 54%;
  margin: 0 0 0 auto;
  margin-bottom: 0.5rem;
  font-size: var(--texto);
}
.portfolio-text ul {
  padding: 0.5rem 0 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  font-size: var(--texto);
}
/* Stage (conteúdo do clique) */
/* body.preview-active #preview-img {
  transform: translate(-50%,7.5%)  scale(1.2);
  transform-origin: top right;
} */
.portfolio-list {
  position: relative;
  margin-top: 6rem;
}
.portfolio-stage {
  position: relative;
}
.portfolio-info {
  display: none;
}
/* .portfolio-info::after {
  content: "";
  position: fixed;
  width: 69vw;
  height: 100vh;
  top: 0;
  right: 0;
  z-index: -1;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  opacity: 0;
  transition: 0.3s ease all;
} */
/* conteúdo aberto */

.portfolio-info.is-open {
  display: block;
  position: fixed;
  top: 6.9rem;
  z-index: 20;
  width: 42vw;
  left: 33%;
  overflow: scroll;
  height: 78vh;
}
.portfolio-info.is-open::after {
  opacity: 1;
}
.portfolio-info {
  position: relative;
  display: block;
  transition: 0.3s ease all;
}

/* Botão fechar */
.portfolio-close {
  font-size: 1.5rem;
  padding: 0.3rem;
  border: 1px solid var(--preto);
  border-radius: 100%;
  width: 24px;
  height: 24px;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  background: #fefff333;
}

.portfolio-swiper img {
  width: 100%;
  max-height: 54vh;
  min-height: 42vh;
  display: block;
  object-fit: contain;
  object-position: center top;
}

.portfolio-swiper .credito {
  font-size: 0.75rem;
  margin: 0.6rem 4rem;
  text-align: right;
}
.portfolio-controls {
  display: flex;
  align-items: center;
  margin: -2.4rem 0 1.8rem 0;
  background: transparent;
}
.swiper-button-next,
.swiper-button-prev {
  position: relative !important;
  margin-top: 0 !important;
  border: 0 !important;
  background-color: transparent !important;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  background-color: #fefff333;
  color: var(--preto);
  width: 24px !important;
  opacity: 1;
  height: 24px !important;
  border-radius: 100%;
  padding: 0.3rem;
  border: 1px solid var(--preto);
  backdrop-filter: blur(15px);
}
.swiper-button-prev:hover,
.swiper-button-next:hover,
.portfolio-close:hover {
  opacity: 0.6;
}
/* bloqueia tudo */
.portfolio-info {
  user-select: none;
}

/* libera só o texto */
.portfolio-info .portfolio-text {
  user-select: text;
}
.swiper-wrapper {
  transition-timing-function: steps(6, end) !important;
}
.portfolio-post-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
  position: fixed;
  bottom: 0rem;
  width: 42vw;
  left: 33%;
  z-index: 999999;
}
.portfolio-post-controls button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--titulo);
  color: var(--preto);
}
.portfolio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
}

/* estado ativo */
body.has-open-detail .portfolio-backdrop {
  opacity: 1;
  pointer-events: auto;
}


/* Responsivo mínimo */
@media (max-width: 1200px) {
  .position-fixed.header-sticky {
    position: relative !important;
  }
  .portfolio-title,
  .portfolio-text h2 {
    letter-spacing: -0.3px;
  }
  .site-title {
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
  }
  .intro-text {
    width: 100%;
    padding: 12rem 0 6rem 3rem;
    margin: 0;
  }
  .portfolio-info {
    padding: 0 1rem 1.5rem;
  }
  .portfolio-info.is-open {
    width: 100vw;
    left: 0;
    height: 69vh;
  }
  .portfolio-info::after {
    width: 100vw;
    left: 0;
    height: 120vh;
    top: 0;
  }
  #preview-img {
    width: 54vw;
    position: fixed;
    top: initial;
    left: initial;
    z-index: -1;
    right: 0.5rem;
    bottom: 0.5rem;
  }
  #preview-img {
    display: none;
  }
  #preview-img.active {
    display: block;
  }
  .portfolio-item.active .portfolio-title {
    opacity: 1;
  }
  .portfolio-stage {
    margin-bottom: 51vh;
  }
  .portfolio-swiper img {
    width: 100%;
    max-height: 42vh;
    min-height: 30vh;
  }
  .portfolio-swiper .credito {
    font-size: 0.75rem;
    margin: 0.5rem 0;
  }
  .portfolio-post-controls {
    bottom: 6rem;
    width: 90vw;
    left: 1rem;
    margin: 0;
  }
}
