/*
Theme Name: Iván Gómez
Theme URI: https://ivangomez.net/
Author: Álvaro Trabanco
Author URI: https://alvarotrabanco.com
Description: Theme for the artist Iván Gómez
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ivangomez
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
html{
    font-size: 15px;
}
/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
/* :where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
} */

body.home.page-template-default{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
body.home > .wp-site-blocks {
    height: 100%;
    display: flex;
    flex-direction: column;
}


header a:hover, header a:hover span, .wp-block-navigation__container a:hover{
    color:var(--wp--preset--color--accent-1)!important;
    text-decoration: none;
}

#hifas-container{
    flex: 1;
  overflow: auto; /* If you ever need scrolling within this area */
  top: auto!important;
  left: auto!important;
  right: auto!important;
  bottom: auto!important;
  height: auto!important;
  position: relative!important;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/* 
@font-face {
    font-family: 'PP Right Grotesk Text';
    src: url('PPRightGroteskText-Regular.eot');
    src: url('PPRightGroteskText-Regular.eot?#iefix') format('embedded-opentype'),
        url('PPRightGroteskText-Regular.woff2') format('woff2'),
        url('PPRightGroteskText-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Acma';
    src: url('PPAcma-Medium.eot');
    src: url('PPAcma-Medium.eot?#iefix') format('embedded-opentype'),
        url('PPAcma-Medium.woff2') format('woff2'),
        url('PPAcma-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
} */

.current-menu-item{
    color: var(--wp--preset--color--accent-1);
}

ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu {
    display: block!important;
    height: auto!important;
    min-width: 8vw!important;
    position: absolute!important;
    right: 0!important;
    left: 8vw!important;
    top: 0px!important;
    width: 100% !important;

}

ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu li a{
    padding-left:10px;
}

ul.wp-block-navigation__submenu-container {
    background-color: rgba(0,0,0,0)!important;
    border: none!important;
}
/* ul.wp-block-navigation__submenu-container:has(.current-menu-item) {
    display: block!important;
    visibility: visible!important;
    opacity: 1!important;
    height: auto!important;
    min-width: 8vw!important;
    position: absolute!important;
    right: 0!important;
    left: 8vw!important;
    top: -5px!important;
} */

.menu-solo-titulo{
    pointer-events: none;
    color: var(--wp--preset--color--accent-1);
}

.texto-template-default{
background-color: var(--wp--preset--color--accent-2) !important;
}

ul.wp-block-navigation__container.is-responsive.is-vertical.wp-block-navigation{
    width: 100%;
}

ul.wp-block-navigation__container.is-responsive.is-vertical.wp-block-navigation li {
    background-color: var(--wp--preset--color--base) !important;
    width: 8vw;
    display: block;
}
ul.wp-block-navigation__container.is-responsive.is-vertical.wp-block-navigation li a {
    /* display: inline-block; */
    word-break: keep-all; /* Ensures words don’t break */
    overflow-wrap: normal; /* Prevents text wrapping */
}

@media (max-width: 1200px) {
    ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu{
        left: 15vw!important;
    }
}

.current-menu-ancestor::after{
    content:"";
    height: 15px;
    width: 15px;
}




/* Target all parent menu items like "Exposiciones" */
.wp-block-navigation-item.has-child.wp-block-navigation-submenu > a {
    position: relative;
    padding-right: 10px; /* Space for the SVG */
}

/* Add the inline SVG as a background */
.wp-block-navigation-item.has-child.wp-block-navigation-submenu > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0px;
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='%23020203'%3E%3Cpolygon points='10,4.5 5.5,4.5 5.5,0 4.5,0 4.5,4.5 0,4.5 0,5.5 4.5,5.5 4.5,10 5.5,10 5.5,5.5 10,5.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    transition: opacity 0.2s;
    opacity: 0.2;
}

.wp-block-navigation-item.has-child.wp-block-navigation-submenu:hover > a::after {
    opacity: 0;
}

/* .wp-block-navigation-item__content{
    display: inline-block;
    width: auto;
}

.wp-block-navigation-item {
    display: block;
} */

.texto-template-default .wp-site-blocks{
    min-height: 100vh;
}

.texto-template-default .wp-block-group{
    /* height: 100%;    */
}

.contenedorTextosColumnas{
    align-items: flex-start!important;
}

.ancladoColFlechas{
    position: sticky!important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
}

.ancladoColFlechas a {
    pointer-events: auto;
  }


.hifa-tag::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1px;
    width: 80px;
    height: 6px;
    background-image: url('./assets/images/optimized_linea_seleccionada.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .hifa-tag:hover::after, .hifa-tag:focus::after {
    opacity: 1;
}

.navegacionPrincipal .wp-block-spacer{
    height: auto!important;
  }
.navegacionPrincipal{
    position: relative;
    z-index: 1;
}

  .filaTituloTexto{
    position: absolute;
    width: 100%;
    height: auto;
    /* width 40vw;
    height: 400px!important; */
    display: block;
    z-index: 11;
    background: none;
    pointer-events: none;
  }
  .filaAutorTexto{
    position: absolute;
    width: 100%;
    height: auto;
    /* width 40vw;
    height: 400px!important; */
    display: block;
    z-index: 11;
    background: none;
    pointer-events: none;
  }
.filaAutorTexto > .wp-block-columns.alignfull{
float: right;
}


  .hifasLaterales {
    position: fixed;
    top: 25%;
    left: 0;
    right: 0;
    height: 50vh !important;
    /* transform: translateY(50%); */
}
.hifaColumnLeft{
    pointer-events: auto;
}

.pointerNone{
    pointer-events: none;
}


.hover-preview {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
}



.contenedorTextos a, .entry-content p a{
    /* text-decoration: none; */
    position: relative;
}

.contenedorTextos a:after, .entry-content p a:after{
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    transform: translateY(40%);
}



/* Example using URL references */
.svg-style-1::after {
    content:"";
    background-image:  url('./assets/images/subrayados/subrayados-01.svg');
    
    width: 150px;
    height: 150px;
    
    top: 50%!important;;
    left: 50%!important;
    right: auto!important;
    bottom: auto!important;
    transform: translateX(-50%) translateY(-50%)!important;
    background-position: center!important;
  }
  .svg-style-2::after {
    content: "";
    background-image: url('./assets/images/subrayados/subrayados-02.svg');
    /* background-image: url(./assets/images/optimized_linea_seleccionada.svg); */
    width: 140px;
    height: 35px;
    bottom: 0;
    left: 50% !important;
    right: auto !important;
    background-position: bottom;
    transform: translateX(-50%) !important;
    top: -7px!important;
}
  .svg-style-3::after {
    content:"";
    background-image:  url('./assets/images/subrayados/subrayados-03.svg');

    width: 150px;
    height: 150px;
    
    top: 50%!important;
    left: 50%!important;
    right: auto!important;
    bottom: auto!important;
    transform: translateX(-50%) translateY(-50%)!important;
    background-position: center!important;
  }
  .svg-style-4::after {
    content: "";
    background-image: url('./assets/images/subrayados/subrayados-04.svg');
    /* background-image: url(./assets/images/optimized_linea_seleccionada.svg); */
    top: 4px !important;
}
  .svg-style-5::after {
    content: "";
    background-image: url('./assets/images/subrayados/subrayados-05.svg');
    /* background-image: url(./assets/images/optimized_linea_seleccionada.svg); */
    width: 100px;
    height: 30px;
    background-position: bottom;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: -6px !important;
}
  
  @font-face {
    font-family: 'PP Right Grotesk Text';
    src: url('./assets/fonts/pprightgrotesk/PPRightGroteskText-Regular.eot');
    src: url('./assets/fonts/pprightgrotesk/PPRightGroteskText-Regular.eot?#iefix') format('embedded-opentype'),
        url('./assets/fonts/pprightgrotesk/PPRightGroteskText-Regular.woff2') format('woff2'),
        url('./assets/fonts/pprightgrotesk/PPRightGroteskText-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


.portfolioMenuGroup{
    display: block;
    text-decoration: none;
}
.portfolioMenuGroup a:hover{
    text-decoration: none;
    color:var(--wp--preset--color--accent-1)!important;
}
.portfolioMenuGroup a:hover{
    text-decoration: none;
}







/*attempt at collapsable custom menu*/



/* Initially hide menu for mobile */
.portfolioMenuGroup {
    /* overflow: hidden; */
    max-height: none;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    z-index: 1;
    background-color: var(--wp--preset--color--base);
}

/* Expanded state */
.portfolioMenuGroup.expanded {
    pointer-events: all;
    opacity: 1;
}

/* Menu toggle button */
.portfolioMenuHeader {
    display: flex;
    align-items: left;
    justify-content: space-between;
    cursor: pointer;
    background-color: var(--wp--preset--color--base);
    padding: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

/* Hide menu toggle header when above 768px */
@media (min-width: 1024px) {
    .portfolioMenuHeader {
        display: none;
    }
    .portfolioMenuGroup {
        max-height: none; /* Fully visible */
        opacity: 1;
        /* pointer-events:all; */
    }
}

/* Show menu toggle header when 767px and below */
@media (max-width: 1023px) {
    .portfolioMenuGroup {
        max-height: none;
        opacity: 0;
        position: absolute;
        background-color: var(--wp--preset--color--base);
        padding:var(--wp--preset--spacing--40)!important;
        left: calc(var(--wp--preset--spacing--40) * -1);
        pointer-events: none;
    }
    .portfolioMenuHeader{
        /* padding-left:var(--wp--preset--spacing--40)!important;
        padding-right:var(--wp--preset--spacing--40)!important; */

    }
}



/**/














/* Hide the query block by default and float it right */
/* .portfolioMenuProyectosContenedor{
    display: inline;
} */

.portfolioMenuProyectosContenedor{
    cursor: pointer;
}
.portfolioMenuProyectosContenedor > .wp-block-query {
    /* display: none; */
    float: right;
    position: absolute;
    /* left: 99%; */
    /* width: 100%; */
    top: 0;
    /* margin-top: -10px; */
    background-color: #f2f0ec;
    visibility: hidden;
    z-index: 1111;
    padding: 10px 15px;
}
.portfolioMenuProyectosContenedor > .wp-block-query {
    display: none;
    visibility: hidden;
    background: #eeece9;
  }
.portfolioMenuProyectosContenedor > .wp-block-query.active {
display: block;
visibility: visible;
}

.portfolioMenuProyectosContenedor h2, .portfolioMenuProyectosContenedor a{
    line-height: 1.4!important;
}
.portfolioMenuProyectosContenedor > p:after, .portfolioMenuHeader > p:after{
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: url(./assets/images/cross.svg);
    opacity: 0.3;
    top: 3px;
    transform: translateX(5px);
}
.portfolioMenuHeader > p:after{
    top: 5px;
}

.portfolioMenuProyectosContenedor > p {
    padding-right: 20px;
}

.portfolioMenuProyectosContenedor > p:hover:after, .portfolioMenuHeader.expanded > p:after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: url(./assets/images/line.svg);
    opacity: 0.3;
    top: 4px;
    transform: translateX(5px);
}


  /* When hovering over the paragraph, show the query block */

  .portfolioMenuProyectosContenedor > p:hover, .portfolioMenuProyectosContenedor a:hover {
    color:var(--wp--preset--color--accent-1)!important;
    text-decoration: none;
  }
  
  .single-project .portfolioMenuItem, .proyecto-template-default .portfolioMenuItem, .page-id-54 .portfolioMenuItem, .page-id-652 .portfolioMenuItem{
    color:var(--wp--preset--color--accent-1)!important;

  }

  .page-template-curadoria .curadoriaElementMenu{
    color:var(--wp--preset--color--accent-1)!important;
  }
  .page-template-curadoria .practicaElementMenu{
    color: var(--wp--preset--color--contrast)!important;
  }




  /*trying to make a slider out of the grid of images*/
  @media (max-width: 767px) {
    .cuadriculaImagesProject {
        display: flex!important; 
        flex-wrap: nowrap!important; 
        overflow-x: auto!important;
        scroll-snap-type: x mandatory!important;
        -webkit-overflow-scrolling: touch!important;
        gap: 10px!important;
        max-width: 100%!important;
        align-items: flex-start!important;
        padding-bottom: var(--wp--preset--spacing--30)!important;
      }
      
      .cuadriculaImagesProject figure {
        flex: 0 0 auto!important;
        /* scroll-snap-align: start!important; */
        display: flex!important;
        align-items: flex-start!important;
        justify-content: center!important;
        min-width: calc(100% - 50px)!important;
        max-width: 90%!important;
      }
      
      .cuadriculaImagesProject img {
        max-height: 100vh!important;
        height: auto!important;
        width: auto!important;
        object-fit: contain!important;
      }
}

body.home footer{
position: absolute;
top: 100vh;
width: 100%;
}

.projects-menu > .wp-block-template-part{
    padding-right:10px;
}