/* ==========================================================
   gk-portfolio.css — Páginas de portfólio por artista
   (referência: antattoo portfolio CMS + grid master-grid-container)
   ========================================================== */

/* ── 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 */
.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;
}

/* ── 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 ─────────────────────────────────────────────── */

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

  .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;
  }

  .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;
}
