/* RESET Y BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background-color: #faf9f7;
  color: #111;
  font-family: 'Walter Neue', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body.lang-es {
  background-color: #111;
  color: #faf9f7;
}
body.lang-es .jgn-project-info h2 {
  color: #faf9f7;
}

body.lang-es .jgn-controls a,
body.lang-es .jgn-content a,
body.lang-es .jgn-identity h1,
body.lang-es .jgn-identity p {
  color: #faf9f7;
}

/* FUENTES */
@font-face {
  font-family: 'Walter Neue';
  src: url('../fonts/walterNeue-Mittel.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Walter Neue';
  src: url('../fonts/walterNeue-MittelKursiv.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
}

/* LAYOUT PRINCIPAL — 6 columnas, 20px gutter, 20px margen */
.jgn-layout {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 20px;
  height: 100vh;
  overflow: hidden;
}

/* COLUMNA IZQUIERDA — ocupa columnas 1-2 */
.jgn-left {
  grid-column: 1 / 3;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 20px;
  scrollbar-width: none;
}

.jgn-left::-webkit-scrollbar {
  display: none;
}

/* COLUMNA DERECHA — ocupa columnas 3-6 */
.jgn-right {
  grid-column: 3 / 7;
  height: 100vh;
  overflow-y: scroll;
  scrollbar-width: none;
  padding-top: 20px;
}

.jgn-right::-webkit-scrollbar {
  display: none;
}

/* IDENTIDAD */
.jgn-identity h1,
.jgn-identity p {
  font-family: 'Walter Neue', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

/* BLOQUES COLUMNA IZQUIERDA */
.jgn-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.jgn-bio p,
.jgn-clients p,
.jgn-services p {
  font-size: 14px;
  line-height: 1.5;
}

.jgn-bio p + p {
  margin-top: 10px;
}

.jgn-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jgn-links a,
.jgn-left a {
  color: #111;
  text-decoration: none;
}

.jgn-links a:hover,
.jgn-left a:hover {
  text-decoration: underline;
}

/* CONTENIDO COLUMNA IZQUIERDA */
.jgn-content p {
  font-family: 'Walter Neue', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 16px;
}

.jgn-content p:last-child {
  margin-bottom: 0;
}

.jgn-content a {
  color: #111;
  text-decoration: none;
}

.jgn-content a:hover {
  text-decoration: underline;
}

.jgn-content em {
  font-style: italic;
}

.jgn-content strong {
  font-weight: 400;
}

/* CONTROLES */
.jgn-controls {
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.jgn-controls a {
  color: #111;
  text-decoration: none;
  font-style: normal;
}

.jgn-controls a.active,
.jgn-controls a:hover {
  font-style: italic;
}

.jgn-lang a + a::before {
  content: ' / ';
}

/* GRID PROYECTOS — modo one (default) */
.jgn-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#jgn-grid.view-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 75%;
  margin-left: auto;
}


/* PROYECTO — modo one */
.jgn-project {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
  align-items: start;
}

.jgn-project-info {
  position: sticky;
  top: 0;
  align-self: start;
  text-align: right;

}

.jgn-project-info h2 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
    font-family: 'Walter Neue', sans-serif;

}

.jgn-project-info .year {
}

.jgn-project-image img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* PROYECTO — modo three */

/* Modo three */

#jgn-grid.view-three {
  display: block;
  width: 75%;
  margin-left: auto;
  position: relative;
}

#jgn-grid.view-three .jgn-project {
  width: calc(33.333% - 14px);
  display: flex;
  flex-direction: column;
  gap: 6px;
    margin-bottom: 20px;

}

#jgn-grid.view-three .jgn-project-image {
  order: 1;
}

#jgn-grid.view-three .jgn-project-info {
  order: 2;
  position: static;
  text-align: left;
}

#jgn-grid.view-three .jgn-project-info h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
}

#jgn-grid.view-three .jgn-project-info h2 br {
  display: none;
}

#jgn-grid.view-three .year {
  display: none;
}

.jgn-project-image video {
  width: 100%;
  height: auto;
  display: block;
}




/* PÁGINA DE PROYECTO */
body.jgn-project-page {
  background: #faf9f7;
  overflow: hidden;
  height: 100vh;
}

.jgn-project-header {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.jgn-project-meta h1 {
  font-family: 'Walter Neue', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
    display: inline;
}

.jgn-project-meta p {
  font-family: 'Walter Neue', sans-serif;
  font-size: 14px;
  display: inline;
  margin-left: 8px;
}

.jgn-close {
  font-family: 'Walter Neue', sans-serif;
  font-size: 14px;
  color: #111;
  text-decoration: none;
}

.jgn-close:hover {
  font-style: italic;
}

.jgn-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jgn-slide {
  display: none;
  max-width: 85vw;
  max-height: 85vh;
}

.jgn-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jgn-slide img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.jgn-slide video {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.jgn-cursor-left,
.jgn-cursor-right {
  position: fixed;
  top: 0;
  width: 50%;
  height: 100vh;
  z-index: 5;
}

.jgn-cursor-left {
  left: 0;
  cursor: w-resize;
}

.jgn-cursor-right {
  right: 0;
  cursor: e-resize;
}




/* THUMBNAILS PAGE */
body.jgn-thumbnails-page {
  background: #faf9f7;
}

.jgn-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 80px 20px 20px;
}

.jgn-thumb-item {
  cursor: pointer;
}

.jgn-thumb-item img,
.jgn-thumb-item video {
  width: 100%;
  height: auto;
  display: block;
}

/* LIGHTBOX */
.jgn-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.jgn-lightbox.active {
  display: flex;
}

.jgn-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(7px);
  background: rgba(250, 249, 247, 0.5);
  z-index: -1;
}

.jgn-lightbox-content img,
.jgn-lightbox-content video {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.jgn-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: 'Walter Neue', sans-serif;
  font-size: 14px;
  cursor: pointer;
  z-index: 110;
}

.jgn-lightbox-close:hover {
  font-style: italic;
}

.jgn-thumb-caption {
  font-family: 'Walter Neue', sans-serif;
  font-size: 14px;
  margin-top: 8px;
}

body.jgn-thumbnails-page .jgn-project-meta h1,
body.jgn-thumbnails-page .jgn-project-meta p {
  display: block;
}

body.jgn-thumbnails-page .jgn-project-meta p {
  margin-left: 0;
}




/* MÓVIL */
.jgn-lang-mobile {
  display: none;
}

@media (max-width: 768px) {

  .jgn-layout {
    display: block;
    height: auto;
    overflow: visible;
    padding: 20px;
  }

  .jgn-left {
    height: auto;
    overflow: visible;
    display: block;
    padding-top: 0;
  }

  .jgn-identity {
    position: relative;
  }

  .jgn-lang-mobile {
    display: flex;
    gap: 4px;
    position: absolute;
    top: 0;
    right: 0;
    font-style: italic;
  }

  .jgn-lang-mobile a {
    color: #111;
    text-decoration: none;
    font-style: normal;
  }

  .jgn-lang-mobile a.active {
    font-style: italic;
  }

  .jgn-lang-mobile a + a::before {
    content: ' / ';
  }
  
  .jgn-controls {
  display: none;
}

}
