/*
Theme Name: Portfolio Thomas Busta
Theme URI: https://example.com
Description: Minimalist photography portfolio (grid, video thumbnails, ajax load more)
Author: Auto-generated
Version: 1.0.0
Text Domain: wp-portfolio-child
*/

/* Import parent styles if needed (uncomment if using a parent with styles) */
/*@import url("../twentytwenty/style.css");*/

/* Global */
body{ font-family: "Poppins", "Helvetica Neue", Arial, sans-serif; margin:0; color:#111; background:#fff;   overflow-x: hidden; }
body.menu-open {
  overflow: hidden;
}
.wrap{ max-width:100%; margin:0 auto; padding:0 0 0 20px; box-sizing: border-box; }

a{ color:inherit; text-decoration:none; }



/* Header */
.site-header {
  width: 100%;
  padding: 30px 0;
  border-bottom: none;
  background: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.helper{
}

.helper {
  position: fixed;
  top: 0;
  mix-blend-mode: difference;
  pointer-events: none;      /* no interfiere con clicks */
  transform-origin: left top;
  will-change: transform, opacity, left, top;
  mix-blend-mode: difference; /* ajusta el modo que quieras */
  -webkit-mask-image: none;   /* por si es SVG con transparencias */
  filter: none;
  z-index: 1;                 /* debajo del header fijo (header tiene z-index:100) */
  transition: opacity .12s linear;
  opacity: 0;                 /* oculto por defecto */
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  padding: 0px 30px;
}

.site-branding {
  z-index: 2;
  position: relative;
}
.site-branding .site-title, .site-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: black;
  display: block;
  position: relative;
}
.site-branding .site-title svg, .site-title svg{
  max-height: 25px;
  max-width: 180px;
  display: block;
}

.nav-menu {
  isolation: isolate;
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  z-index: 1000;
  isolation: isolate;
}

.nav-menu a {
  text-decoration: none;
  color: black;
  font-weight: 400;
  transition: opacity 0.2s ease;
  text-transform: uppercase;
}

.nav-menu a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    gap: 12px;
  }
}


/* Botón hamburguesa */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0rem;
  z-index: 1001;
  color: black;
}

.menu-icon {
  font-size: 2.5rem !important;
}



/* Navegación oculta inicialmente */
.main-nav {
  position: fixed;
  top: 80px;
  right: 0; /* Fuera de la pantalla */
  width: 100%;  /* Puedes cambiar a 80% si querés solo una parte */
  height: calc(100vh - 80px);
  background: white;
  padding: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;

}

/* Cuando está activa (clase agregada por JS) */
.main-nav.active {
  transform: translateX(0);
}

/* Menú de navegación */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.nav-menu li {
  margin-bottom: 0rem;
}

.nav-menu li a {
  text-decoration: none;
  font-size: 1.2rem;
  color: black;
  isolation: isolate;
  mix-blend-mode: normal;
}

/* Responsive: mostrar botón solo en móviles */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
    background: none;
    transform: translateX(0);
  }

  .nav-menu {
    display: flex;
    gap: 2rem;
  }
}



.loader-overlay {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  z-index: 9999;
  opacity: 1;
  transition: opacity 320ms ease, visibility 320ms ease;
  visibility: visible;
  pointer-events: auto;
}

/* Hidden state */
.loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Make sure the parent .wrap is positioned to contain absolute overlay */
.wrap { position: relative; }

/* Loader inner */
.loader-inner {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  color:#111;
  font-family: 'Poppins', sans-serif;
  font-size:14px;
}

/* Spinner */
.loader-svg { width:48px; height:48px; transform-origin:center; }
.loader-ring {
  stroke: #111;
  stroke-linecap: round;
  stroke-dasharray: 126;  /* ~2πr where r=20 => ~126 */
  stroke-dashoffset: 94;  /* initial offset */
  transform-origin: center;
  animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
  0% { transform: rotate(0deg); stroke-dashoffset: 94; }
  50% { transform: rotate(180deg); stroke-dashoffset: 31; }
  100% { transform: rotate(360deg); stroke-dashoffset: 94; }
}

/* Small text */
.loader-text { opacity: .86; font-size:13px; }




/* ===== Masonry layout styles ===== */
.projects-grid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  /* opcional: padding lateral */
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
}

.projects-grid { visibility: hidden; }
.projects-grid.is-masonry-ready { visibility: visible; }


/* grid-sizer + items: we use percent widths so responsive is easy */
.projects-grid .grid-sizer,
.projects-grid .grid-item {
  width: calc(25% - 20px);
  box-sizing: border-box;
}
/* remove horizontal padding from items — use gutter in Masonry config */
.projects-grid .grid-item {
  margin-bottom: 24px;
  padding: 0;
  background: #fff;
  opacity: 1;
  transition: mix-blend-mode 0.6s ease;
  mix-blend-mode: normal;
}

.projects-grid .grid-item:hover{
  mix-blend-mode: difference;
  animation: suaveDifference 0.6s ease;
}

@keyframes suaveDifference {
  0% {
    mix-blend-mode: normal;
    opacity: 1;
  }
  25% {
    mix-blend-mode: difference;
    opacity: 0.3;
  }
  50% {
    mix-blend-mode: difference;
    opacity: 0.5;
  }
  75% {
    mix-blend-mode: difference;
    opacity: 0.7;
  }
  100% {
    mix-blend-mode: difference;
    opacity: 1;
  }
}

/* media (image / video) fill item width, keep natural height */
.grid-item img,
.grid-item video {
  display:block;
  width:100%;
  height:auto;
}

/* title below */
.grid-title { margin-top: 10px; font-size:14px; text-transform:uppercase; }

/* responsive rules */
@media (max-width: 1024px) {
  .projects-grid .grid-sizer, .projects-grid .grid-item { width: calc(33.333% - 20px); } /* 3 columns */
}
@media (max-width: 768px) {
  .projects-grid .grid-sizer, .projects-grid .grid-item { width: calc(50% - 20px); } /* 2 columns */
}
@media (max-width: 480px) {
  .projects-grid .grid-sizer, .projects-grid .grid-item { width: cal(100% - 20px); } /* 1 column */
}






.gallery-grid {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  /* opcional: padding lateral */
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
}

/* grid-sizer + items: we use percent widths so responsive is easy */
.gallery-grid .gallery-item,
.gallery-grid .gallery-item {
  width: calc(33.333% - 20px);
  box-sizing: border-box;
  margin-bottom: 24px;
  padding: 0;
}

/* media (image / video) fill item width, keep natural height */
.gallery-item img,
.gallery-item video {
  display:block;
  width:100%;
  height:auto;
}


@media (max-width: 1024px) {
  .gallery-grid .gallery-sizer, .gallery-grid .gallery-item {
    width: calc(33.333% - 20px);
  }
}

@media (max-width: 640px) {
  .gallery-grid .gallery-sizer, .gallery-grid .gallery-item {
    width: calc(50% - 20px);
  }
}


/*



.projects-grid {
  column-count: 4;
  column-gap: 24px;
  width: 100%;
  max-width: calc(100% - 20px);
  margin: 0 auto;
  padding: 0 12px;
}


.grid-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  box-sizing: border-box;
  background: #fff;
}


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


.grid-title { margin-top:10px; font-size:14px; text-transform:uppercase; letter-spacing:1px; }


@media (max-width: 1200px) { .projects-grid { column-count: 3; } }
@media (max-width: 900px)  { .projects-grid { column-count: 2; } }
@media (max-width: 480px)  { .projects-grid { column-count: 1; } }








.video-thumb video {
  cursor: pointer;
}


.grid-item h3 {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 500;
}


@media (max-width: 900px) {
  .projects-grid { column-count: 2; }
}
@media (max-width: 600px) {
  .projects-grid { column-count: 1; }
}


.project-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-gallery .gallery-item {
  flex: 1 1 calc(25% - 8px); 
  display: flex;
}

.project-gallery .gallery-item img {
  width: 100%;
  height: auto;  
  display: block;
  object-fit: cover;
}


@media (max-width: 900px) {
  .project-gallery .gallery-item { flex: 1 1 calc(50% - 6px); }
}
@media (max-width: 600px) {
  .project-gallery .gallery-item { flex: 1 1 100%; }
}


.project-media video {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}*/
