/*
Theme Name: Mano Leyrado
Theme URI: 
Author: m4n0.art
Author URI: m4n0.art
Description: Custom theme 2026.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: 

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* || Typography */
@font-face {
  font-family: GT-Walsheim-Pro-Regular;
  src: url('fonts/GT-Walsheim-Pro-Regular.woff2') format("woff2"), url('fonts/GT-Walsheim-Pro-Regular.woff') format("woff"), url('fonts/GT-Walsheim-Pro-Regular.ttf') format("truetype");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: GT-Walsheim-Pro-Medium;
  src: url('fonts/GT-Walsheim-Pro-Medium.woff2') format("woff2"), url('fonts/GT-Walsheim-Pro-Medium.woff') format("woff"), url('fonts/GT-Walsheim-Pro-Medium.ttf') format("truetype");
  font-weight: 100;
  font-style: normal;
}
/* || GENERAL STYLES */
/* Scroll Snap para art y curation (sin fullPage) */
html:not(.portrait) {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Desactivar scroll-snap en mobile (portrait) para scroll normal */
html.portrait {
  scroll-snap-type: none !important;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* En mobile, las secciones tienen altura automática para scroll continuo */
html.portrait .section,
body.portrait .section,
.portrait .section {
  height: auto !important;
  min-height: auto !important;
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
  display: block;
  clear: both;
}

a {
  text-decoration: none;
  color: #000;
}
td, th{
	vertical-align: top;
	border-bottom: 2px solid black;
}
a:hover{
    opacity: 40%;
}
/* || Header and Main Navigation */
header{
	position: fixed;
	z-index: 1000
}
header a {
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0;
  width: max-content;
	cursor: pointer;
}
/* Nombre y nav en la misma vertical: 20px desde el borde izquierdo del viewport */
#siteTitle {
  bottom: 0;
  margin: 0;
  position: fixed;
  left: 0;
  transform: rotate(-90deg) translate(-25px, 20px);
  transform-origin: top left;
}
nav {
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  /* Con origin top right el nav queda a la derecha; translate(_, -130px) lo acerca al mismo eje x que el nombre */
  transform: rotate(-90deg) translate(-10px, -130px);
  transform-origin: top right;
}
/* || LEFT */
.left {
  width: 25%;
  float: left;
  box-sizing: border-box;
  height: 100vh;
}
.content {
  height: 100vh;
  position: relative;
}
.content h2 {
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 1.5rem;
  line-height: 1.25;
  text-align: center;
  margin: 0;
}
.content h2.eng_name {
  font-size: 0.8em;
}
.year, .datos {
  font-family: GT-Walsheim-Pro-Regular;
  font-size: .8em;
  opacity: .9;
}
.year {
  text-align: center
}
.exhibiciones {
  width: 100%;
  float: none;
  margin-bottom: 1em;
}
.especificaciones {
  width: 100%;
  float: none;
  margin-bottom: 1em;
}
.datos p {
  margin: 0
}
.datosBox {
  padding: 60px;
}
.txt p {
  font-family: 'Cormorant Garamond', Times New Roman;
  font-size: 1.3125rem;
  line-height: 1.19048;
  margin: 0 0 1em 0;
}
.txt {
  max-height: 40vh;
  overflow-y: scroll;
  margin: 1.5em 0;
  padding: 10px;
  border-bottom: solid 1px;
  border-top: solid 1px;
}

/* En mobile, mostrar texto completo sin scroll individual */
html.portrait .txt,
body.portrait .txt,
.portrait .txt,
html.portrait .datosBox .txt,
body.portrait .datosBox .txt,
.portrait .datosBox .txt,
html.portrait .content .txt,
body.portrait .content .txt,
.portrait .content .txt {
  max-height: none !important;
  overflow-y: visible !important;
  overflow: visible !important;
  height: auto !important;
}
.datosTitle {
  text-decoration: underline;
}
.down-arrow{
	background: url('assets/bottom.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 20px;
    width: 50px;
    position: absolute;
    bottom: 20px;
    display: block;
    left: 50%;
    transform: translate(-50%);
	cursor: pointer
}
/* || RIGHT */
.right {
  width: 75%;
  box-sizing: border-box;
  height: 100vh;
  float: left;
  overflow-y: scroll;
  overflow-x: hidden;
}
.right img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Slider horizontal en la columna derecha */
.gallery-box-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.right .gallery-box {
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.4s ease;
  box-sizing: border-box;
}

.right .galleryImgBox {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 50px;
}

/* Imágenes de la galería en la columna derecha:
   centradas y con altura 80% de la ventana */
.right .galleryImgBox img {
  display: block;
  height: 80vh;
  max-height: 80vh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Videos en la galería */
.right .galleryImgBox--video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.right .galleryImgBox--video video {
  display: block;
  height: 80vh;
  max-height: 80vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

/* Ocultar flechas de navegación en mobile */
.portrait .gallery-arrow {
  display: none !important;
}

.gallery-arrow img {
  width: auto;
  height: 15px;
  padding: 8px 0;
  display: block;
}

.gallery-arrow--prev {
  left: 10px;
}

.gallery-arrow--next {
  right: 10px;
}

.gallery-arrow::before,
.gallery-arrow--prev::before,
.gallery-arrow--next::before {
  /* Anula cualquier pseudo-flecha heredada de estilos antiguos */
  content: none !important;
  border: 0 !important;
  width: 0;
  height: 0;
}

.proxSection{
	text-align: center;
    position: fixed;
    bottom: 6px;
    left: 12.5%;
    transform: translate(-50%);
    z-index: 100;
    padding: 5px;
	cursor: pointer;
	display: none;
}
.prevSection{
	text-align: center;
    position: fixed;
    top: 6px;
    left: 12.5%;
    transform: translate(-50%);
    z-index: 100;
    padding: 5px;
		cursor: pointer;
	display: none;
}
.prevSection img, .proxSection img{
	width: 15px;
	height: 15px;
}
.portrait .section {
    display: flex;
    flex-direction: column;
}

.portrait .left{
    width: 100% !important;
    height: auto !important;
    float: none !important;
    clear: both !important;
}
.portrait .content{
    height: auto !important;
    position: relative;
}
.portrait .right {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    padding: 0 20px !important;
    overflow: visible !important;
    clear: both !important;
    order: 2;
    box-sizing: border-box;
}
.portrait .left {
    order: 1;
}
.portrait .right img{
	width: 100%;
    height: auto;
    display: block;
}
.portrait .right .gallery-box-wrapper{
    height: auto;
    overflow: visible;
}
.portrait .right .gallery-box{
    display: block;
    height: auto;
    overflow: visible;
}
.portrait .right .gallery-box .galleryImgBox{
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    padding: 0;
    box-sizing: border-box;
}
.portrait .right .galleryImgBox img {
    width: 100%;
    height: auto;
    max-height: none;
    box-sizing: border-box;
}

.portrait .right .galleryImgBox--video video {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.portrait .down-arrow{
	display: none;
}
/* BIO */
.bio {
	max-width: 960px;
}
.bio p{
	font-size: 20px;
}
/* || ABOUT (overlay al hacer clic en "about") */
#about {
  font-family: GT-Walsheim-Pro-Regular;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  padding: 60px 50px 80px;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.5;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  z-index: 2000;
}

#about .aboutBox {
  max-width: 1200px;
  margin: 0 auto;
}

/* Jerarquía tipográfica */
#about .aboutBox > *:first-child {
  margin-top: 0;
}

#about .aboutBox h1 {
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5em 0;
  letter-spacing: 0.02em;
}

#about .aboutBox h2 {
  font-family: GT-Walsheim-Pro-Regular;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 2.5em 0 0.75em 0;
  padding-bottom: 0.25em;
  border-bottom: 1px solid #333;
}

#about .aboutBox h2:first-child {
  margin-top: 0;
}

#about .aboutBox h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5em 0 0.5em 0;
}

#about .aboutBox p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 1em 0;
  max-width: 65ch;
}

#about .aboutBox ul,
#about .aboutBox ol {
  margin: 0.75em 0 1.5em 0;
  padding-left: 1.5em;
}

#about .aboutBox li {
  margin-bottom: 0.35em;
  font-size: 0.95rem;
  line-height: 1.45;
}

#about .aboutBox table {
  width: 100%;
  margin: 1em 0 1.5em 0;
  border-collapse: collapse;
}

#about .aboutBox td,
#about .aboutBox th {
  vertical-align: top;
  border-bottom: 1px solid #ccc;
  padding: 0.5em 1em 0.5em 0;
  font-size: 0.95rem;
}

#about .aboutBox th {
  font-weight: 600;
  text-align: left;
}

.table-year {
  padding-right: 1em;
  white-space: nowrap;
  color: #555;
}


@media only screen and (max-width: 600px) {
  /* Desactivar scroll-snap completamente en pantallas pequeñas */
  html {
    scroll-snap-type: none !important;
  }
  
  .section {
    height: auto !important;
    min-height: auto !important;
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    display: flex !important;
    flex-direction: column !important;
    clear: both !important;
  }
  
  /* Asegurar que el texto se muestre completo en mobile */
  .txt,
  .datosBox .txt,
  .content .txt {
    max-height: none !important;
    overflow-y: visible !important;
    overflow: visible !important;
    height: auto !important;
  }
  
  .left, .right {
    float: none !important;
    clear: both !important;
    width: 100% !important;
  }
  
  .left {
    order: 1;
  }
  
  .right {
    order: 2;
  }
  
  .portrait .right {
    padding: 0 20px !important;
    box-sizing: border-box !important;
  }
  
  .portrait .right .gallery-box .galleryImgBox {
    margin: 20px 0;
  }
  
	.especificaciones, .exhibiciones{
		width: 100%;
    float: initial;
    margin-bottom: 1em;
	}
	.datosBox {
    padding: 0 20px;
  }
  
  .portrait .datosBox {
    padding: 20px;
}
  
  #about {
    padding: 40px 24px 60px;
  }
  #about .aboutBox h2 {
    margin-top: 2em;
  }
  #about .aboutBox p {
    font-size: 1.1rem;
  }
		.proxSection, .prevSection{
	display: none !important;
}
	.fp-section{
		    margin: 20vh 0;
	}
}
