/*
Theme Name: Nodoaviom Overlap New
Theme URI: nodoaviom.eu
Description: Tema nuevo para el proyecto Nodoaviom
Author: Maria
Author URI: Maria Lara
Version: 1.0
*/

/* CSS RESET */

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block
}

body {
  line-height: 1
}

body {
  font-family: Arial, Helvetica, sans-serif !important;
}


ol,
ul {
  list-style: none
}

blockquote,
q {
  quotes: none
}

blockquote:after,
blockquote:before,
q:after,
q:before {
  content: '';
  content: none
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,100..900;1,100..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --main-bg-color: rgb(255, 255, 255);
  --main-text-color: #000000;
  --main-font: Arial, Helvetica, sans-serif;
  /*--grey: rgba(0, 0, 0, 0.08);        Muy clarito */
  /*--medium-grey: rgba(0, 0, 0, 0.3);  Medio */
  /* --dark-grey: rgba(0, 0, 0, 0.85);  Casi negro */
  --grey: #ededed;
  /* Muy clarito */
  --medium-grey: #6a6a6a;
  /* Medio */
  --dark-grey: #585858;
  /* Casi negro */

}

/* Personalizar la selección de texto */
::selection {
  background: transparent;
  /* Fondo transparente */
  /* -webkit-text-stroke-width: thick; */
  text-decoration-line: line-through;
}

section::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari y Opera */
}

/* my css */

*,
*:after,
*:before {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}


body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-size: 62.5%;
  font-weight: 400;
  font-style: normal;
  overflow: hidden;
  font-family: var(--main-font);
}

a {
  color: var(--medium-grey);
  text-decoration: none;
}

a:hover {
  color: var(--grey);
  color: rgb(234, 234, 234);
}

ul {
  padding-inline-start: 0;
}

li {
  list-style: none;
}

.pad-S {
  padding: 1rem;
}

p {
  line-height: 1.2;
}

button {
  border: none;
  cursor: pointer;
  transition: color 0.3s;
  font-family: var(--main-font);
  font-size: 12px;
  background: none;
  margin: 0;
  padding: 0;
}

.active {
  color: var(--dark-grey);
  /* font-weight: 600; */
}

.non-category {
  color: var(--grey);
  pointer-events: none !important;
}

.non-category a {
  color: var(--grey);
  pointer-events: none !important;
}

/* =========================
   HOME / INICIO LINKS
========================= */

.inicio-links-container{
  display:flex;
  flex-direction:column;
  /* position:absolute; */
  margin-right: -7vw;
  right:0;
  gap: 0;
  z-index:50;
}

/* Link: su ancho lo marca la imagen */
.inicio-link{
  position:relative;
  display:inline-block;    /* 🔥 clave */
  height:150px;            /* altura fija */
  margin-left:auto;        /* a la derecha */
  overflow:hidden;
}

/* Imagen: define el tamaño real */
.inicio-link img{
  display:block;           /* elimina inline-gap */
  height:100%;
  width:auto;              /* ancho según ratio */
  object-fit:contain;
}

/* Texto siempre centrado */
.inicio-title{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);

  display:none;
  align-items:center;
  justify-content:center;
  z-index:2;

  color:#000000;
  background-color: rgb(188, 188, 188);
  pointer-events:none;
      width: fit-content;
    height: fit-content;
}

/* ===== Hover logic ===== */

/* Si en el contenedor hay ALGUNA imagen hover, baja la opacidad del resto */
.inicio-links-container:has(.inicio-link img:hover) .inicio-link{
  opacity:.25;
  transition:opacity .2s ease;
}

/* Pero el link que tiene la imagen hover se queda a 1 y sube z-index */
.inicio-links-container .inicio-link:has(img:hover){
  opacity: 1 !important;
  z-index: 99999999999999999999!important;
}

.inicio-link:has(img:hover) .image-container{
  z-index: 99999999999999999 !important;
}

/* Mostrar título SOLO en el link hovereado */
.inicio-link:has(img:hover) .inicio-title{
  display:flex;            /* 👈 ON */
}

/* header */
img.main-pic {
    max-width: 25px;
}
header.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

ul.categories-list {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

a.category-link {
  text-transform: uppercase;
}

.categories-section {
  padding: 1rem;
}

.c-year {
  color: var(--medium-grey);
  opacity: 0.5;
}

.post-content {
  color: var(--medium-grey);
}

/* main */

main {
  display: flex;
  height: 100%;
  /* Ajusta según la altura real del header */
}


section.side-projects-container {
  flex: 1;
  overflow-y: auto;
  height: 100%;
  max-width: 85vw;
  padding: 1rem;
  scroll-behavior: smooth;
  /* padding-top: 5rem; */
  padding-top: 73px;
  margin-left: auto;
  /* padding-top: 40%; */
  padding-right: 12vh;
}


section.side-archive-menu.left {
  position: fixed;
  z-index: 9;
  width: 100%;
  margin-top: 3rem;
}



.post-content img {
  /* max-height: 85vh; */
  width: auto;
}

.post-content p {
  margin-bottom: 0.5rem;
}

/* .post-content .wp-block-vimeo-create, figure.wp-block-embed, iframe {
    margin-bottom: 1rem;
} */

figure.wp-block-embed,
iframe {
  margin-bottom: 0.5rem;
}

.aspect-ratio-1 iframe {
  aspect-ratio: 1 / 1;
}

.post-content .wp-block-columns {
  gap: 10rem;
}

.post-content .wp-block-columns>.wp-block-column:nth-child(1) {
  flex-basis: 70% !important;
}

.post-content .wp-block-columns>.wp-block-column:nth-child(2) {
  /* padding-left: 13%; */
  color: var(--medium-grey);
  flex-basis: 30% !important;
}

.post-content>.wp-block-columns:first-of-type>.wp-block-column:nth-of-type(2) {
    position: fixed;
    left: 71%;
    max-width: 22vw;
}

.post-content>.wp-block-columns:first-of-type>.wp-block-column:nth-of-type(1) {
  max-width: 45vw;
}

/* .wp-block-columns > .wp-block-column:nth-child(2) a {
  padding-left: 13%;
    color: var(--grey);
} */

/* side archive menu */

.post-row {
  display: flex;
  align-items: center;
  margin: 0.2rem 0;
}

.column:nth-last-child(2) {
  text-align: right;
}

.column {
  flex: 1;
  text-wrap-mode: nowrap;
  text-overflow: ellipsis;
  text-transform: uppercase;
  width: min-content;
}

.column:first-child {
  flex: 0 0 50px;
  text-align: left;
}


.column.column-palomita {
  flex: 0 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 1rem;
  opacity: 0;
}

.active .column.column-palomita {
  opacity: 1;
}

/*  */

/* figure.right {
    justify-content: right;
}

figure.wp-block-image {
    max-height: 80vh;
    width: auto !important;
    flex-grow: 0;
}


figure.wp-block-image img {
    width: auto;
} */

/* Limita la altura del contenedor de imagen */
.wp-block-gallery {
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Asegura que el figure no crezca ilimitadamente */
.wp-block-gallery figure.wp-block-image {
  flex-grow: 0 !important;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Limita el tamaño de la imagen */
.wp-block-gallery figure.wp-block-image img {
  max-height: 90vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.wp-block-gallery.left {
  justify-content: flex-start;
}

.wp-block-gallery.right {
  justify-content: flex-end;
}

figure.wp-block-table {
  margin-bottom: 1rem;
}

.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:last-child {
  width: auto;
}

.wp-block-table td,
.wp-block-table th {
  border: 0px;
  padding: 0.5rem 0;
}

/*  */


.post-link.disabled {
  color: var(--grey);
  pointer-events: none;
  cursor: not-allowed;
}

.post-link.disabled:hover {
  color: var(--grey);
}

/* about */
.about .wp-block-group__inner-container figure img {
      max-width: 250px;
    max-height: 320px;
  object-fit: cover;
}

/* .about>.wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  justify-content: space-between;
  height: 100vh;
  max-height: calc(100vh - 9rem);
} */

.about>.wp-block-group__inner-container img {
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-links .wp-block-group__inner-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 1rem;
}

.about-text-info {
    max-width: 500px;
    text-align: justify;
    position: absolute;
    /* top: 50%; */
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 0;
}

a.post-link[data-post-id="240"][data-categories="1"] .post-row .column {
  flex: 2;
  text-overflow: inherit;
  overflow: initial;
  margin-left: 0;
}

p.about-texto {
  /* max-width: 50vw; */
  white-space: normal;
}





/* footer */
footer {
  position: fixed;
  bottom: 0;
  z-index: 999999;
}

a[data-post-id="240"] {
  padding: 1rem;
  position: fixed;
  bottom: 0;
  /* o donde lo quieras */
  right: 0;
  color: black !important;
  z-index: 99999999;
  /* opcional, por si necesitas que esté por encima */
}

a[data-post-id="240"] {
  pointer-events: inherit !important;
  width: min-content;
  height: min-content;
  position: fixed;
  right: 0 !important;
  left: inherit !important;
  bottom: 0;
  top: inherit !important;
  color: black !important;
}

a[data-post-id="240"] {
  pointer-events: inherit !important;
}

a[data-post-id="240"].project-category,
a[data-post-id="240"].project-year,
a[data-post-id="240"].project-number {
  display: none;
}

a[data-post-id="240"].project-name {
  display: block !important;
}

a[data-post-id="240"] .column span {
  color: black !important;
}

button#see-more {
  position: absolute;
  bottom: 5vh;
  left: 1%;
  color: var(--medium-grey);
  opacity: 0.5;
  font-size: 19px;
  font-weight: 200;
  font-family: system-ui;
}


figure.img-fit {
  max-height: 85vh;
}

figure.img-fit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 85vh;
  display: block;
}


@media (min-width: 770px) {
  .post-content>.wp-block-columns:first-of-type>.wp-block-column:nth-of-type(2) {
    height: 100vh;
    overflow-y: auto;
    padding-right: 1rem;
    box-sizing: border-box;
    height: calc(100vh - 72px);
    top: 72px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE y Edge antiguos */
  }

  .post-content>.wp-block-columns:first-of-type>.wp-block-column:nth-of-type(2)::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
  }

  .mobile {
    display: none;
  }
  .about .wp-block-group__inner-container figure img {
    max-width: 190px;
    max-height: 250px;
}
}

/* movil */

@media (max-width: 768px) {
  button#see-more {
    display: none;
  }

  .about>.wp-block-group__inner-container {

    background-color: white;
  }

  main {
    flex-direction: column;
    height: 100vh;
  }

  a.post-link {
    display: none;
  }

  .side-projects-container {
    order: -1;
    /* Para que vaya arriba */
    overflow-x: auto;
    overflow-y: hidden;
  }

  /* .side-projects-container .contenido {
    display: inline-block;
    min-width: 200%;
  } */

  .side-archive-menu {
    flex: 1;
    overflow-y: auto;
  }

  section.side-projects-container {
    width: 100%;
    max-width: 100vw;
    padding: 0;
  }

  .side-projects-container article .post-content {
    /* display: flex; */
    /* flex-direction: row; */
    width: 100vw;
    margin-top: 3rem;
    padding: 1rem;
  }

  .column:nth-child(3) {
    padding-left: 2rem;
  }

  .about-text-info {
    max-width: 100vw;
    text-align: justify;
    position: absolute;
    top: inherit;
    left: 0;
    transform: unset;
    bottom: 0;
    padding: 1rem;
}
a[data-post-id="240"].project-name {
    display: none !important;
}

  p.about-texto {
    max-width: 100vw; }

  li.mobile-project-item[data-post-id="240"] {

    margin-top: 1rem;
  }

.post-content .wp-block-columns>.wp-block-column:nth-child(1) {
    flex-basis: 100% !important;
}
  /* header */

  header.main-header {
    background-color: var(--main-bg-color);
  }

  .post-content .wp-block-columns {
    gap: 1rem;
  }

  .post-content>.wp-block-columns:first-of-type>.wp-block-column:nth-of-type(2) {
    position: unset;
    left: 75%;
    max-width: 90vw;
  }

  .post-content>.wp-block-columns:first-of-type>.wp-block-column:nth-of-type(2)::after {
    content: "";
    display: block;
    height: 10vh;
    width: 100%;
  }


  .post-content>.wp-block-columns:first-of-type>.wp-block-column:nth-of-type(1) {
    max-width: 100%;
  }

  footer {
    display: none;
  }

  footer.mobile-footer {
    right: 0;
  }

  .mobile-project-item[data-post-id="240"] .mobile-project-button .mp-title {
    text-overflow: inherit !important;
    overflow: auto !important;
  }

  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

}


.project-name,
.project-category,
.project-year {
  width: max-content !important;
  mix-blend-mode: difference;
}


.project-name .post-row,
.project-category .post-row,
.project-year .post-row, .project-number .post-row {
  opacity: 0.5;
}

.project-name .post-row.active,
.project-category .post-row.active,
.project-year .post-row.active, .project-number .post-row.active {
  opacity: 1;
}

/* Botones del filtro */
.mobile-cat-btn.is-active{
  color: var(--dark-grey);
}
.mobile-categories {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2.5rem;
}
.mobile-categories {
    display: flex;
    justify-content: space-between;
    /* padding-bottom: 2.5rem; */
    width: 80%;
    position: fixed;
    top: 19px;
}

.mobile-categories button {
  font-size: 9px;
      color: var(--dark-grey);
}

/* En móvil: non-category NO debe desactivar clicks */
@media (max-width: 768px){
  .mobile-project-item.non-category{
    opacity: .25;
    pointer-events: auto !important; /* important para pisar cualquier herencia */
  }
  /* por si algún estilo te pisa spans */
  .mobile-project-item.non-category .mp-title,
  .mobile-project-item.non-category .mp-cats,
  .mobile-project-item.non-category .mp-year{
    opacity: 1;
  }
}

.project-year {
  margin-right: 2%;
}

iframe {
  width: 100%;
}

iframe {
  width: -webkit-fill-available;
  height: auto;
  aspect-ratio: 16 / 9;
}

.hover {
  color: rgb(234, 234, 234);
  /* color: var(--grey); */
}



/* font-size */
/* @media screen and (min-width: 1600px) {
  body {
    font-size: 32px;
  }
} */

