/* ==========================================================
   gk-portfolio.css — Páginas de portfólio por artista
   ========================================================== */

/* ── Hero (portfolio-header-chiwon) ──────────────────────── */

.gk-portfolio-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 92vh;
  margin-top: 112px;
  background-color: #000;
}

/* ── Hero em camadas: fundo = textura (igual index) + parallax por mouse ── */
.gk-portfolio-hero-back {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #050505;
}

/* Camada de fundo: oversized para o parallax não revelar bordas pretas */
.gk-portfolio-hero-back-media {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  background-image: url("gk-bg-hero-texture.avif");
  background-position: 50%;
  background-size: cover;
  will-change: transform;
}

/* Com camada de fundo: retrato por cima posicionado ao centro-base.
   Desktop: contain evita cortar o corpo inteiro na área larga.
   Mobile/tablet: contain encolhe a foto no eixo vertical (área alta e estreita);
   passamos a cover para preencher o hero como a index (.chiwon-float em cover). */
.gk-portfolio-hero--layered .gk-portfolio-hero-bg {
  z-index: 1;
  object-fit: contain;
  object-position: center bottom;
  will-change: transform;
}

.gk-portfolio-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Camada extra com gradiente (espelha header-float-cms-artist) */
.gk-portfolio-hero-float {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: linear-gradient(
    transparent 27%,
    rgba(0, 0, 0, 0.33) 62%,
    #000 86%
  );
}

.gk-portfolio-hero-name {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: 0 1rem 8vh;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: clamp(36px, 10vw, 140px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  color: #f1f1f1;
  pointer-events: none;
}

.gk-portfolio-hero-name--two-lines .gk-portfolio-hero-line2 {
  display: block;
  font-weight: 600;
  font-size: 0.55em;
  margin-top: 0.15em;
  letter-spacing: 0.08em;
}

/* ── Bio (about-description + grid-6) ──────────────────── */

.gk-portfolio-bio {
  position: relative;
  z-index: 3;
  background-color: var(--off-black, #0a0a0a);
}

.gk-portfolio-bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 0;
  min-height: 500px;
}

.gk-portfolio-bio-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px;
  background-color: #000;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.gk-portfolio-bio-kicker {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 18px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.75);
}

.gk-portfolio-bio-title {
  margin: 0 0 1.25rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.15;
  color: #f1f1f1;
}

.gk-portfolio-bio-body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  color: rgba(240, 240, 240, 0.92);
}

.gk-portfolio-bio-social {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.gk-portfolio-bio-social-label {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.55);
}

.gk-portfolio-bio-photo-wrap {
  position: relative;
  min-height: 400px;
  background-color: #111;
  overflow: hidden;
}

.gk-portfolio-bio-photo {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Placeholder até haver foto dedicada do artista */
.gk-portfolio-bio-photo-placeholder {
  width: 100%;
  min-height: 500px;
  height: 100%;
  background-color: #111;
}

/* ── Slider acima das categorias: fundo preto em toda a largura ── */
section.temp-slideshow,
section.temp-slideshow .slider.w-slider,
section.temp-slideshow .w-slider-mask {
  background-color: #000 !important;
}

/* ── Categorias + vídeo (portfólio geral) ────────────────── */

.gk-portfolio-cat-section {
  background-color: #000;
  padding: 2.5rem 1rem 1rem;
  /* Mesma largura máxima que .gk-portfolio-grid (galeria abaixo) */
  max-width: 1600px;
  margin: 0 auto;
}

.gk-portfolio-cat-section .gk-portfolio-section-title {
  margin-bottom: 1.25rem;
}

/* Abas: centradas no desktop (inline-flex + text-align); à esquerda em mobile para scroll previsível */
.gk-portfolio-cat-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  text-align: left;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 241, 241, 0.35) transparent;
}

@media screen and (min-width: 992px) {
  .gk-portfolio-cat-scroll-wrap {
    text-align: center;
  }
}

.gk-portfolio-cat-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}

.gk-portfolio-cat-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(241, 241, 241, 0.35);
  border-radius: 2px;
}

.gk-portfolio-cat-scroll {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  vertical-align: top;
  text-align: left;
}

.gk-portfolio-cat-tab {
  flex: 0 0 auto;
  padding: 0.55rem 1rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 2.8vw, 13px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1f1f1;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gk-portfolio-cat-tab:hover,
.gk-portfolio-cat-tab:focus-visible {
  border-color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.gk-portfolio-cat-tab.is-active,
.gk-portfolio-cat-tab[aria-selected="true"] {
  background-color: #f1f1f1;
  color: #0a0a0a;
  border-color: #f1f1f1;
}

/* Largura total do content box; o bloco 16:9 fica centrado dentro */
.gk-portfolio-video-slot {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.gk-portfolio-video-panel:not(.is-active)[hidden] {
  display: none !important;
}

.gk-portfolio-video-aspect {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.gk-portfolio-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gk-portfolio-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background-color: #000;
}

.gk-portfolio-video-ph-kicker {
  margin: 0 0 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 3vw, 22px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f1f1f1;
}

.gk-portfolio-video-ph-text {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 2.5vw, 15px);
  line-height: 1.5;
  color: rgba(241, 241, 241, 0.55);
  max-width: 28rem;
}

.gk-portfolio-gallery-kicker {
  margin: 0 auto 1.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 2.5vw, 18px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(241, 241, 241, 0.75);
}

/* ── Secção portfólio (master-grid-container) ───────────── */

.gk-portfolio-section {
  background-color: #000;
  padding: 4rem 1.5rem 5rem;
}

.gk-portfolio-section-title {
  margin: 0 auto 2.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f1f1f1;
}

.gk-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto;
  gap: 16px;
  max-width: 1600px;
  margin: 0 auto;
}

.gk-portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: #111;
  cursor: default;
}

.gk-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gk-portfolio-item:hover img {
  transform: scale(1.04);
}

/* ── CTA: estilos movidos para gk-shared.css ──────────── */

/* ── Tablet ─────────────────────────────────────────────── */

/* Desktop: padding horizontal alinhado à secção da galeria (.gk-portfolio-section) */
@media screen and (min-width: 992px) {
  .gk-portfolio-cat-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media screen and (max-width: 991px) {
  .gk-portfolio-hero {
    height: 77vh;
  }

  /* Hero em camadas (Grenckelvin, Meire): retrato cheio no viewport estreito */
  .gk-portfolio-hero--layered .gk-portfolio-hero-bg {
    object-fit: cover;
    /* composição do AVIF: sujeito ligeiramente à direita; Y ~upper-mid para rosto */
    object-position: 56% 36%;
  }

  .gk-portfolio-bio-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .gk-portfolio-bio-text {
    padding: 40px 28px;
    order: 2;
  }

  .gk-portfolio-bio-photo-wrap {
    order: 1;
    min-height: 320px;
  }

  .gk-portfolio-bio-photo {
    min-height: 360px;
  }

  .gk-portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* ── Mobile ─────────────────────────────────────────────── */

@media screen and (max-width: 479px) {
  .gk-portfolio-hero {
    height: 65vh;
  }

  /* Mais altura só no hero com retrato em camadas — sensação próxima da index */
  .gk-portfolio-hero.gk-portfolio-hero--layered {
    height: 76vh;
  }

  .gk-portfolio-hero--layered .gk-portfolio-hero-bg {
    object-position: 54% 34%;
  }

  .gk-portfolio-hero-name {
    font-size: clamp(28px, 12vw, 64px);
    padding-bottom: 5vh;
  }

  .gk-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gk-portfolio-section {
    padding: 2.5rem 0.75rem 3rem;
  }

}

/* ── Lightbox: cursor ────────────────────────────────────── */
/* Estilos do modal em gk-shared.css */
.gk-portfolio-item {
  cursor: zoom-in;
}
