/* THEME CSS */
:root {
  --bs-primary-rgb: 122, 53, 97;
  --bs-link-color-rgb: 122, 53, 97;
  --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-nav-link-color: #000;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

@media only screen and (min-width: 576px) and (max-width: 1500px) {
  .container,
  .header-pages {
    max-width: 100%;
  }
} /* end media*/

@media (min-width: 1500px) {
  .container {
    max-width: 1500px;
    margin: 0 auto;
  }
} /* end media*/



@media (min-width: 1500px) {
  .container-lg {
    max-width: 1500px !important;
  }
  .container-xl {
    max-width: 1700px !important;
  }
  .container-xxl {
    max-width: 1920px !important;
  }
} /* end media*/

/* ==========================================================================
   TIPOGRAFÍA PERSONALIZADA (hibridv2.css)
   ========================================================================== */

/* 1. BASE (Móvil primero / Mobile First) */
body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #000;
  font-family: "Onest", sans-serif;
  font-weight: 300;
}

.lead {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.3;
}
img {
  max-width: 100%;
  height: auto;
}

.text-decoration-none a {
  text-decoration: none;
}
.text-black a {
  color: #000;
}
.text-black a:hover {
  color: #7a3561;
}
/* line-height solo titulares */
:is(h1, h2, h3, h4, h5, h6, [class^="display-"]) {
  line-height: 1;
  font-weight: 100;
}

/* Selecciona cualquier strong dentro de encabezados o clases de display */
:is(h1, h2, h3, h4, h5, h6, [class^="display-"]) strong,
p strong {
  font-weight: 500;
}

/* Titulares y Clases de Titular */
h1,
.h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
}
.home .h1 {
  max-width: 900px;
  margin: 0 auto;
}

h2,
.h2 {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem);
}

h3,
.h3 {
  font-size: clamp(1.5rem, 2.2vw + 1rem, 2.2rem);
}

h4,
.h4 {
  font-size: clamp(1.2rem, 2vw + 1rem, 2rem);
}



/* Displays (Titulares gigantes de Bootstrap) */
.display-1 {
  font-size: clamp(2.5rem, 6vw + 1rem, 5.5rem);
}

.display-2 {
  font-size: clamp(2rem, 4vw + 1rem, 4.5rem);
}

.display-3 {
  font-size: clamp(1.8rem, 4vw + 1rem, 3.75rem);
}

 .display-4 {
  font-size: clamp(1.5rem, 3.5vw + 1rem, 3.5rem);
}

.display-5 {
  font-size: clamp(1.3rem, 3vw + 1rem, 2.5rem);
}

.display-6 {
  font-size: clamp(1rem, 2vw + 1rem, 2rem);
} 

/* 2. TABLET (Desde 768px) */
@media (min-width: 768px) {
  body {
    font-size: 1rem;
    line-height: 1.2;
  }

  .lead {
    font-size: 1.8rem;
  }
  /* line-height solo titulares */
  :is(h1, h2, h3, h4, h5, h6, [class^="display-"]) {
    line-height: 1;
    font-weight: 100;
  }
  .bg-100 .wp-block-cover, .bg-100  .wp-block-cover-image {
    min-height: 96%;
  }
} /* end media*/

/* 3. ORDENADOR / DESKTOP (Desde 1200px) */
@media (min-width: 1200px) {
  body {
    font-size: 1.4rem;
  }
  .lead {
    font-size: 2.2rem;
  }

  /* h1,
  .h1 {
    font-size: 3rem;
  } 

  h2,
  .h2 {
    font-size: 2.5rem;
  }

  h3,
  .h3 {
    font-size: 2rem;
  }

  h4,
  .h4 {
    font-size: 1.75rem;
  }

  h5,
  .h5 {
    font-size: 1.5rem;
  }

  h6,
  .h6 {
    font-size: 1.25rem;
  }
    */

  /* .display-1 {
    font-size: 6rem;
  }

  .display-2 {
    font-size: 5rem;
  }

  .display-3 {
    font-size: 4rem;
  }

  .display-4 {
    font-size: 3rem;
  }

  .display-5 {
    font-size: 2.5rem;
  }

  .display-6 {
    font-size: 2rem;
  } */
} /* end media*/


/* fotografia */
.wrapper-fotografia .entry-content h2 {
  margin-top: 25px;
  margin-bottom: 15px;
}
.wrapper-fotografia .entry-content p {
  
  margin-bottom: 25px;
}

/* Color Primario (Verde) */
.has-primary-color {
  color: #7a3561;
}

.has-primary-background-color {
  background-color: #7a3561;
}

/* Color secundario (Gris) */
.has-secondary-color {
  color: #303030;
}

.has-secondary-background-color {
  background-color: #303030;
}

/* Estilo global para todos los botones de bloques de WordPress */
.wp-block-button__link {
  background-color: #7a3561 !important;
  /* Tu azul específico */
  color: #ffffff !important;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius:0;
  /* Estilo Bootstrap */
  transition: background-color 0.2s ease-in-out;
  font-size: 1.1rem;
  line-height: 120%;
}

/* Efecto hover para que sea interactivo */
.wp-block-button__link:hover {
  background-color: #000 !important;
  /* Un azul un poco más oscuro */
  color: #ffffff !important;
  text-decoration: none;
}

.is-style-outline .wp-block-button__link {
  background-color: #fff !important;
  color: #7a3561 !important;
  border:1px solid #7a3561;
}
.is-style-outline .wp-block-button__link:hover {
  background-color: #7a3561 !important;
  color: #fff !important;
}
.banner-proyecto .has-large-font-size {
  font-size: 1.3rem!important;
}

@media (min-width: 768px) {
  .wp-block-button__link {
    font-size: 1.4rem;
  }
  .banner-proyecto  .has-large-font-size {
    font-size: 2rem!important;
  }
} /* end media*/

.custom-logo {
  max-width: 230px;
  height: auto;
  padding: 4px 10px;
}
.redes svg {
  width: 30px;
  height: 30px;
}
.redes svg:hover {
  fill:#7a3561;
}

.site-footer {
  background-color: #777;
}

.site-footer ul {
  list-style: none;
  margin: 10px auto;
  text-align: center;
  padding-left: 0;
}

.site-footer ul li {
  display: inline-block;
  padding: 5px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.site-footer  a:hover {
  color: #ddd;
  text-decoration: underline;
}
.legales h2 {
  font-size: 22px;
  margin:25px 0;
}
.legales h3 {
  font-size: 18px;
}
.legales p, .legales li, .legales  {
  font-size: 16px;
}

@media (min-width: 768px) {
  .custom-logo {
    max-width: 280px;
    padding: 4px 0px;
  }
  .redes svg {
    width: 45px;
    height: 45px;
  }
  .site-footer a {
    font-size: 22px;
  }
} /* end media*/
@media (min-width: 1024px) {
  .custom-logo {
    max-width: 320px;
  }
} /* end media*/
@media (min-width: 1200px) {
  .redes svg {
    width: 60px;
    height: 60px;
  }
} /* end media*/

/* .site-header {
    border-bottom: 1px solid #E3E3E3;
    margin-bottom: 2rem;
} */

.site-main {
}

/* boton nav-bar menu movil */
.navbar-toggler-icon {
  background-image: url('data:image/svg+xml,<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve"><g><rect x="2.2" y="9.6" style="fill:%23000;" width="45.7" height="6.4"/><rect x="2.2" y="21.8" style="fill:%23000;" width="45.7" height="6.4"/><rect x="2.2" y="34" style="fill:%23000;" width="45.7" height="6.4"/></g></svg>');
  margin-top: 10px;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler-icon:focus,
.btn-close:focus {
  outline: none !important;
  border: none !important;
  border-width: 0;
  box-shadow: none !important;
  border: none;
}

/* main menu */
.navbar-nav li {
  text-align: left;
  font-size: 18px;
  line-height: 1.2;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 0.75vw;
  padding-right: 0.75vw;
}

.navbar-nav li a.nav-link {
  color: #000;
  font-weight: 600;
  display: block;
  width: 100%;
  
  font-size: 1.65rem;
}
.navbar-nav li a.nav-link:hover {
  color: #7a3561;
}
/* idiomas */
.navbar-nav .lang-item a.nav-link,
.navbar-nav .pll-parent-menu-item a.nav-link {
  color: #000;
}
.navbar-nav .pll-parent-menu-item {
  width: auto;
  max-width: 45px;
}

.dropdown-menu {

    border: none;
    border-radius: 0;
    padding-left: 1.5rem;
  }
  
.navbar-nav .dropdown-menu  {
  padding-left: 0;
  }
.navbar-nav .dropdown-menu li a.nav-link {
  font-size: 1rem;
  }

  .dropdown-menu  .dropdown-item:focus, 
  .dropdown-menu .dropdown-item:hover {
    background-color: #fff;
  }  

@media only screen and (min-width: 768px) {
  .navbar-nav li {
    /* display: flex; */
    align-items: center;
    font-size: 1.9vw;
    /* flex-basis: 200px;  
    flex-grow: 1; 
    flex-shrink: 1;  */
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar-nav .pll-parent-menu-item {
    width: auto;
    min-width: auto;
    max-width: 80px;
    font-weight: bolder;
  }

  .navbar-nav #menu-item-39 {
    max-width: 100px;
  }
  .navbar-nav li a.nav-link {
    font-size: 2vw;
    text-align: center;
  }
  .navbar-nav .dropdown-menu  {
    min-width: 300px;
  }
  .navbar-nav .dropdown-menu li  {
    padding: 5px!important;
  }
  .navbar-nav .dropdown-menu li a.nav-link {
    font-size: 1.2vw;
    text-align: left;
  }
  /* dropdown menu*/
  .dropdown-menu[data-bs-popper] {
    margin-top: 0;
  }
  .dropdown-menu {
    background-color: #DADADA;
    padding:10px 15px;
    border-radius: 0;
  }

} /* end media */


/* bloques gutemberg */
@media (min-width: 1200px) {
  .wp-block-cover,
  .wp-block-cover-image {
    min-height: 600px;
  }
  .navbar-nav li a.nav-link {
    font-size: 29px;
  }
} /* end media*/

/* contact form  */

.wpcf7 {
  max-width: 100% !important;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  border-radius: 0;
  background: transparent !important;
  border: none;
  box-shadow: none;
  border-bottom: 2px solid #000;
  padding: 10px 0;
  color: #000;
  width: 100% !important;
}
.wpcf7 input[type="submit"] {
  width: 100%;
  max-width: 240px;
  background: #000;
  border: 2px solid #000;
  padding: 12px;
  border-radius: 0;
  font-size: 22px;
  color: #fff;
  font-weight: 500;
}
.wpcf7 input[type="submit"]:hover {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}
.wpcf7 input[type="submit"]:disabled {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}
.wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
}
.wpcf7 form .wpcf7-response-output {
  margin: 0 !important;
  padding: 20px !important;
  background-color: #f1e198;
}
.wpcf7 form.sent .wpcf7-response-output {
  background-color: rgb(136, 231, 157);
}

.wpcf7-form ::placeholder {
  color: #000 !important;
  font-weight: normal;
  font-size: 16px;
}
.wpcf7-not-valid-tip {
  color: #000 !important;
  font-weight: normal;
  font-size: 15px;
  padding: 10px;
}
.wpcf7-form textarea {
  height: 90px;
}
.form-control:focus,
.wpcf7 .wpcf7-validation-errors:focus,
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="search"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="range"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="month"]:focus,
.wpcf7 input[type="week"]:focus,
.wpcf7 input[type="time"]:focus,
.wpcf7 input[type="datetime"]:focus,
.wpcf7 input[type="datetime-local"]:focus,
.wpcf7 input[type="color"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="file"]:focus,
.wpcf7 input[type="submit"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  box-shadow: none;
  border-color: #000;
}

.aceptance {
  font-size: 14px;
}
.form-privacidad {
  font-size: 13px;
}




.featured-img:hover {
  opacity: 0.5;
}


/* buscador de la cabecera */
.buscador-cabecera .search-form label {
  width: 85%;
  display: inline-block;
}
.buscador-cabecera .search-field {
  border: 1px solid #000;
  width: 90%;
  max-width: 400px;
  padding: 5px 10px;
  font-size: 1rem;
}

.buscador-cabecera .search-submit {
  width: 9%;
  height: 30px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-zoom-in" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0"/><path d="M10.344 11.742q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1 6.5 6.5 0 0 1-1.398 1.4z"/><path fill-rule="evenodd" d="M6.5 3a.5.5 0 0 1 .5.5V6h2.5a.5.5 0 0 1 0 1H7v2.5a.5.5 0 0 1-1 0V7H3.5a.5.5 0 0 1 0-1H6V3.5a.5.5 0 0 1 .5-.5"/></svg>');
  background-color: #fff;
  background-size: 22px;
  background-repeat: no-repeat;
  background-position: center center;
  text-indent: 240px;
  overflow: hidden;
  border: none;
}

.buscador-cabecera .search-submit:hover {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%237A3561" class="bi bi-zoom-in" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11M13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0"/><path d="M10.344 11.742q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1 6.5 6.5 0 0 1-1.398 1.4z"/><path fill-rule="evenodd" d="M6.5 3a.5.5 0 0 1 .5.5V6h2.5a.5.5 0 0 1 0 1H7v2.5a.5.5 0 0 1-1 0V7H3.5a.5.5 0 0 1 0-1H6V3.5a.5.5 0 0 1 .5-.5"/></svg>');
}
/* end buscador de la cabecera */

@media only screen and (min-width: 768px) {
  .buscador-cabecera .search-form label {
    width: 89%;
  }
  .buscador-cabecera .search-submit {
    background-size: 28px;
    width: 8%;
  }
} /*  end css */

/* --- 1. SLICK CORE (Funcionalidad básica) --- */
.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  user-select: none;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slick-list:focus {
  outline: none;
}
.slick-list.dragging {
  cursor: pointer;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
  transform: translate3d(0, 0, 0);
}

.slick-track {
  position: relative;
  top: 0;
  left: 0;
  display: block;
  margin: 0 auto;
}

.slick-track::before,
.slick-track::after {
  display: table;
  content: "";
}

.slick-track::after {
  clear: both;
}

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}

[dir="rtl"] .slick-slide {
  float: right;
}
.slick-initialized .slick-slide {
  display: block;
}

.slick-loading .slick-track,
.slick-loading .slick-slide {
  visibility: hidden;
}

/* --- 2. FLECHAS Y PUNTOS (Estilos Base) --- */
.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  transform: translateY(-50%);
  cursor: pointer;
  border: none;
  background: transparent;
  color: transparent;
  z-index: 10;
}

.slick-dots {
  position: absolute;
  bottom: -0;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li {
  position: relative;
  display: inline-block;
  margin: 0 5px;
  padding: 0;
}

.slick-dots li button {
  cursor: pointer;
  border: 0;
  background: transparent;
  font-size: 0;
  width: 20px;
  height: 20px;
}

/* Tamaño de los puntos personalizado */
.slick-dots li button:before {
  font-family: "slick";
  content: "•";
  font-size: 60px; /* Tu ajuste de 40px */
  line-height: 20px;
  color: #fff;
  opacity: 1;
}

.slick-dots li.slick-active button:before {
  opacity: 0.75;
  color: #7a3561;
}

/* Estilos para flechas con SVG personalizado */
.lazy .slick-prev,
.lazy .slick-next {
  opacity: 0.5;
  z-index: 1000;
  width: 100px;
  height: 100px;
  background-color: #fff;
  transition: opacity 0.3s;
}

.lazy .slick-prev:hover,
.lazy .slick-next:hover {
  opacity: 1;
}

.lazy .slick-prev {
  left: 0;
}
.lazy .slick-next {
  right: -25px !important;
}

.lazy .slick-prev::before,
.lazy .slick-next::before {
  content: "";
  display: block;
  width: 100px;
  height: 100px;
}

.lazy .slick-prev::before {
  background: transparent
    url("https://ferrizfotografos.es/wp-content/themes/ferriz-fotografos/img/flecha-slider-left.svg")
    no-repeat center;
}

.lazy .slick-next::before {
  background: transparent
    url("https://ferrizfotografos.es/wp-content/themes/ferriz-fotografos/img/flecha-slider-right.svg")
    no-repeat center;
}

/* Ocultar flechas en móvil si tienen la clase .lazy */
@media (max-width: 768px) {
  .lazy .slick-prev,
  .lazy .slick-next {
    display: none !important;
  }
  .slick-dots li button:before {
    font-size: 40px;
  }
}

/* HOME bloque incio fotos */

.wp-block-cover,
.wp-block-cover-image {
  padding: 0 !important;
}
.bloque-inicio .wp-block-cover {
  min-height: 300px;
}
.bloque-inicio .wp-block-cover .wp-block-cover__inner-container p {
  margin: 0;
}
.bloque-1 .wp-block-cover img {
  padding: 0;
  max-width: 90%;
  margin-left: 10%;
}
.bloque-2 .wp-block-cover img {
  padding: 0;
  max-width: 90%;
  margin-right: 10%;
}
.bloque-inicio .wp-block-cover .wp-block-cover__inner-container {
  display: block;
  width: 100% !important;
}
.bloque-inicio .wp-block-cover .wp-block-cover__inner-container a {
  background-color: #000;
  color: #fff;
  padding: 15px 10%;
  text-decoration: none;
  font-size: 1rem;
  line-height: 100%;
}
.bloque-inicio .wp-block-cover .wp-block-cover__inner-container a:hover {
  background-color: #ddd;
  color: #000;
}

@media only screen and (min-width: 768px) {
  .bloque-inicio .wp-block-cover .wp-block-cover__inner-container a {
    padding: 25px 10%;
    font-size: 2.4vw;
  }
  .bloque-inicio .wp-block-cover {
    min-height: 550px;
  }
  .bloque-inicio .wp-block-cover .wp-block-cover__inner-container p {
    margin: 0 0 1rem 0;
  }
} /*  end css */

@media only screen and (min-width: 1440px) {
  .bloque-inicio .wp-block-cover .wp-block-cover__inner-container a {
    padding: 30px 10%;
    font-size: 2.4rem;
  }
  .bloque-inicio .wp-block-cover {
    min-height: 700px;
  }
  .bloque-inicio .wp-block-cover .wp-block-cover__inner-container p {
    margin: 0 0 1.5rem 0;
  }
} /*  end css */

.bloque-enlaces-foto a {
  border: 2px solid #7a3561;
  padding: 25px;
  display: block;
  font-size: 1.4rem;
  line-height: 120%;
  width: 100%;
  min-height: 20px;
  text-decoration: none;
  color: #000;
}

.bloque-enlaces-foto a:hover {
  border: 2px solid #7a3561;
  background-color: #7a3561;
  color: #fff;
}

.understrap-read-more-link {
  background-color: none;
  border-radius: 30px;
  color: #000;
  text-decoration: none;
  border: 2px solid #000;
  padding: 15px 25px;
  font-size: 20px;
  min-width: 100px;
  display: inline-block;
  text-align: center;
}
.understrap-read-more-link:hover {
  background-color: #7a3561;
  color: #fff;
}

/*listados index */
.listado-articulos .mi-seccion-con-fondo {
  min-height: 300px;
}
.listado-articulos h2 a {
  color:#000;
  font-weight: 100;
}
@media only screen and (min-width: 768px) {
  .listado-articulos .mi-seccion-con-fondo {
    min-height: 100%;
  }
  .bloque-enlaces-foto a {
    font-size: 2rem;

  }
  .understrap-read-more-link {
    font-size: 29px;
    border-radius: 40px;
    min-width: 150px;
  }
} /* end css */
@media only screen and (min-width: 1200px) {
  #index-wrapper .listado-articulos .mi-seccion-con-fondo {
    min-height: 450px;
  }
  .understrap-read-more-link {
    font-size: 36px;
    border-radius: 50px;
  }
  .bloque-enlaces-foto a {
    font-size: 2.4rem;

  }
} /* end css */

#index-wrapper article:nth-of-type(even) .row {
  flex-direction: row-reverse;
}

/* ========================================================================== */
/* PAGINATION STYLES - .nav-links */
/* ========================================================================== */
.navigation {
  padding: 1rem 0.5rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 40px 0;
}

.nav-links a,
.nav-links span {
  display: inline-block;
  padding: 12px 16px;
  background-color: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #000;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: #7a3561;
  color: #fff;
  border-color: #7a3561;
}

.nav-links .page-numbers.current,
.nav-links span.page-numbers.current {
  background-color: #000;
  color: #fff;
  border-color: #000;
  cursor: default;
}

@media (min-width: 768px) {
  .nav-links a,
  .nav-links span {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
}

/* ========================================================================== */
/* PAGINATION ARROWS - Previous/Next */
/* ========================================================================== */

/* Ocultar el texto y mostrar flechas */
.nav-links a.prev,
.nav-links a.next {
  font-size: 0;
  width: 50px;
  height: 50px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Flecha izquierda (Previous) */
.nav-links a.prev::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M12 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H11.5a.5.5 0 0 1 .5.5z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Flecha derecha (Next) */
.nav-links a.next::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 8a.5.5 0 0 0 .5.5h7.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L12.293 7.5H4.5A.5.5 0 0 0 4 8z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Cambiar el fondo del lightbox a negro */
.wp-lightbox-overlay .scrim {
    background-color: #000000 !important;
    opacity: 0.9; /* Ajusta este valor (0 a 1) para la transparencia */
}

.wp-lightbox-overlay .close-button {
	fill:#fff!important;
}
.wp-lightbox-overlay .close-button svg {
		width:25px;
		height:25px;
	}
@media only screen and (min-width: 768px) {
	.wp-lightbox-overlay .close-button svg {
		width:50px;
		height:50px;
	}
} /* end css */




/* LIGHTBOX FICHA */

/* Estilo del contenedor principal */
.post-img-destacada .open-lightbox {
    cursor: zoom-in;
    display: block;
}

/* El fondo oscuro del Lightbox */
.lightbox-overlay {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    
    /* Oculto por defecto */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cuando el ID está activo en la URL (#lightbox-target) */
.lightbox-overlay:target {
    visibility: visible;
    opacity: 1;
}

/* La imagen dentro del lightbox */
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Área para cerrar (haciendo clic fuera de la imagen) */
.lightbox-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
}

/* Botón de cerrar (opcional, una X arriba) */
.lightbox-overlay:after {
    content: "×";
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    pointer-events: none;
}





/* END. LIGHTBOX FICHA */


.wp-block-separator.is-style-wide {
  border-bottom-width: 2px;
  max-width: 450px;
  text-align: left;
  margin-left: 0;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Esto fuerza a que la imagen se vea cuadrada sin deformarse en el buscador y en relacionados */
.articulos-relacionados .proyectos-archive-img a img,
.search .proyectos-archive-img a img  {
    width: 100%;
    aspect-ratio: 1 / 1; /* Crea un contenedor cuadrado perfecto */
    object-fit: cover;    /* Recorta lo que sobra, igual que haría WordPress */
    object-position: center; /* Centra el recorte */
}