/* IMPORT FONTS */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=Tangerine:wght@400;700&family=Wix+Madefor+Display:wght@400..800&display=swap');

html {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  background-color: #ffffff;
  overflow-x: hidden;
  box-sizing: border-box;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: flex-end; 
  width: 100%;
  min-height: 100vh;
}

.content {
  position: relative;
  flex: 1;
  padding: 10em 3em 7em 3em;
  box-sizing: border-box;
  width: 100%;           
  max-width: 1100px;
}

.image-container {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
}

  .header-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 7em 3em 7em 3em;
}

  .site-name {
   position: fixed; 
   top: 0; 
   left: 0.5em;
   padding: 1.5em;
   font-family: "Montserrat", sans-serif;
   font-size: 1.5em;
   font-weight: 600;
   color: rgb(50, 50, 50 );
   text-decoration: none;
   margin-right: auto;
}

  .navbar {
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: 1em;
  width: 100%;
  padding-top: 2.7em;
  letter-spacing: 1.5px;
  /* text-transform: uppercase; */
}
  
  .navbar a {
  color: black;
  text-decoration: none;
}

  .navbar a:hover {
  color: grey;
}

  body[data-page="participatory-projects"] .navbar a[href="participatory-projects.html"]::after,
  body[data-page="the-dignity-of-the-wind"] .navbar a[href="participatory-projects.html"]::after,
  body[data-page="corteza"] .navbar a[href="participatory-projects.html"]::after,
  body[data-page="jamie-garson-mural"] .navbar a[href="participatory-projects.html"]::after,
  body[data-page="berta-marielle"] .navbar a[href="participatory-projects.html"]::after,
  body[data-page="magdalena"] .navbar a[href="participatory-projects.html"]::after,
  body[data-page="about"] .navbar a[href="about.html"]::after 
  {
  content: "";             
  display: inline-block;   
  width: 0.4em;            
  height: 0.4em;
  margin-left: 0.5em;     
  background-color: rgb(229, 130, 132);
  border-radius: 2px 5px 2px 5px; 
  vertical-align: middle;
}

  .submenu {
    font-size: 0.9em;
  }

/* On the About page, hide the whole submenu */
body[data-page="about"] .has-submenu > .submenu {
  display: none !important;
}

body[data-page="corteza"] .submenu a[href="Corteza.html"],
body[data-page="the-dignity-of-the-wind"] .submenu a[href="The-Dignity-of-the-Wind.html"],
body[data-page="jamie-garson-mural"] .submenu a[href="Jaime-Garzon-Mural.html"],
body[data-page="berta-marielle"] .submenu a[href="Berta-&-Marielle-Mural.html"],
body[data-page="magdalena"] .submenu a[href="Magdalena.html"] 
 {
    background: linear-gradient(
    rgba(228, 114, 116, 0.3), 
    rgba(228, 114, 116, 0.3)
  ) no-repeat;
  background-size: 100% 0.3em; 
  background-position: 0% 60%;   
  text-decoration: none;
}

.submenu,
.submenu li {
  list-style: none;
  /* margin: 0; */
  padding-top: 0.3em;
  padding-left: 0;
}

   .hamburger {
  display: none;            
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1;             
  position: fixed;         
  top: 2.2em;                
  right: 3em;             
}


.hamburger span {
  width: 25px;
  height: 2px;
  background: black;
}

   .mobile-menu {
  display: none;
}

.mobile-menu.show {
  display: flex;          /* visible when toggled */
}

.mobile-menu a {
  color: black;
  text-decoration: none;
 }
.mobile-menu a:hover {
  color: grey;
 }
.mobile-menu a.active {
  text-decoration: underline;
 }

  
/* Images */
.image-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(600px, 1fr)); */
  grid-template-columns: 1fr;
  /* gap: 0.7em; */
  gap: 1em;
}

.image-grid-pages {
  width: 100%;
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
  grid-template-columns: 1fr 1fr; 
  gap: 0.7em;
}

.image-pages {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;   
}

.image-pages img,
.image-grid-pages img {
  display: block;
  width: 100%;
  height: auto;
  z-index: 1;
  position: relative;
  margin-bottom: 1em;
}

.image-pages img:last-child,
.image-grid-pages img:last-child {
  margin-bottom: 0;
}

/* Shared image styling */
.image-container img {
  max-width: 100%;
  height: auto;
}

.image-item {
  position: relative;
  overflow: hidden;
  /* aspect-ratio: 3 / 2; */

}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.image-description {
  font-size: 0.9em;
  line-height: 1.6;
  margin-top: 0em;       
  margin-bottom: 2em;
  text-align: justify;
}

/******************************************/
/*video*/

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; 
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/*********************/
/*image title and code for sliding effect*/

.image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.3em 2em;
  background: #fffefe;
  color: #333333;
  font-family: "Montserrat", sans-serif;
  font-weight: 550;
  /* font-size: 1.1em; */
  font-size: clamp(0.7em, 1vw, 1em);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s ease;
  z-index: 2;
}

.image-title.visible {
  opacity: 1;
    transform: translateY(0);
}

.image-item:hover .image-title {
  opacity: 1;
}

/****************************************/

/* scroll top arrow */
.scroll-top {
      position: fixed;
      bottom: 1.5em;
      right: 0.5em;
      font-size: 1.5em;
      text-decoration: none;
      color: rgb(75, 75, 75);
      background: none;
      border: none;
      padding: 0;
      z-index: 100;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .scroll-top.show {
      opacity: 1;
      pointer-events: auto;
    }
   
  /***********************************/

.landing-link {
  display: block;
  width: 100%;
  height: 100vh;
  text-decoration: none;
  color: inherit;
}

.landing-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.landing-carousel .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 45s infinite;
}

.landing-carousel .slide:first-child { opacity: 1; }
.landing-carousel .slide:nth-child(1) { animation-delay: 0s; }
.landing-carousel .slide:nth-child(2) { animation-delay: 15s; }
.landing-carousel .slide:nth-child(3) { animation-delay: 30s; }

@keyframes fade {
  0%   { opacity: 0; }
  15%  { opacity: 1; } 
  45%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; }
}

/***************************************************/

/*footer */

footer {
width: 100%;
display: flex;
justify-content: center;
padding: 1em 0;
position: relative; /* not fixed, but full width */
}

footer a {
font-weight: 300;
text-decoration: none;  
color: inherit;
cursor: pointer;
}

/*************************/

/*back to projects*/

.mobile-back {
  display: none;
  margin: 2em 3em;
}

.mobile-back a {
  text-decoration: none;
  font-weight: bold;
  color: #333333;
}

/*********************/

/*responsive*/

  
  @media screen and (max-width: 1450px) {

    .content {
        max-width: 920px !important;
    }

    .site-name {
      font-size: 1.5em;
    }
  }

   @media screen and (max-width: 1250px) {

    .content {
        max-width: 850px !important;
    }

    .site-name {
      font-size: 1.4em;
    }
  
    .navbar {
      width: 100%;
    }

    .image-title {
     font-size: 1em;
    }

  }

   @media screen and (max-width: 1150px) {

    .content {
        max-width: 800px !important;
    }

    .site-name {
      font-size: 1.15em;
    }
  
    .navbar {
      width: 80%;
    }

   .image-title {
    font-size: 0.9em;
    }
  }

  @media screen and (max-width: 1045px) {

    .content {
        max-width: 700px !important;
    }

    .site-name {
      font-size: 1.2em;
    }
  
    .navbar {
      width: 80%;
    }
  }


  @media (max-width: 969px) 
  {
    .content {
        max-width: 590px !important;
    }

    .site-name {
      font-size: 1.2em;
    }
    .navbar {
      width: 70%;
    }

    .image-title {
      font-size: 0.8em;
    }
  }


  @media (max-width: 869px) 
  {
    .content {
        max-width: 540px !important;
    }

    .site-name {
      font-size: 1.1em;
    }

    .navbar {
      width: 70%;
    }

    .image-title {
      font-size: 0.8em;
    }
  }

  @media screen and (max-width: 768px) {
  
  
   .header-bar {
    position: relative;     
    top: auto;              
    left: auto;             
    height: auto;          
    width: 100%;            
    padding: 1.5em;        
    box-sizing: border-box; 
  }
  
.hamburger {
    position: relative;  
    top: -2.9em;
    right: 2em;
    margin-left: auto;    
    display: flex;       
    align-self: flex-end; 
  }

 .mobile-menu {
  position: relative;  
  margin-left: auto;
  right: 2em;             
  width: 200px;         
  height: 50px;
  flex-direction: column;
  gap: 0.75em;
  z-index: 10;
  font-size: 1.2em;
}

.mobile-menu.show {
  display: flex;           
}

body[data-page="index"] .header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

  .site-name {
    position: static;       
    display: block;
    font-size: 1.2em;   
  }
  
  .navbar {
    display: none;
  }

  .content {
    
    max-width: 1000px !important;
    padding: 3em 3em;

  }

  .image-grid {
    grid-template-columns: 1fr; 
  }

  .image-grid-pages {
  grid-template-columns: 1fr; 
  }
  
  .image-title 
  {
    font-size: 0.8em;
  }

   .mobile-back {
    display: block;
  }
  }

 @media screen and (max-width: 600px) {

  
   .mobile-menu {
  position: relative;  
  margin-left: auto;
  right: 2em;             
  width: 200px;         
  height: 50px;
  flex-direction: column;
  gap: 0.75em;
  z-index: 10;
  font-size: 1.2em;
}

.mobile-menu.show {
  display: flex;          
}

 .mobile-back {
    display: block;
  }
}

  @media screen and (max-width: 430px) {

    .site-name {
      font-size: 1.2em;
      padding-left: 0em;
    }

    .hamburger {
      top: -3em;
      right: 0em;
    }

    .image-title {
      font-size: 0.5em;
    }

    .mobile-menu {
      font-size: 1em;
      width: 170px;
      height: 60px;
    }

    .content {
      padding: 0em 0.8em 2em 0.5em;
    }

     .mobile-back {
    display: block;
  }

    body[data-page="participatory-projects"] 
      .mobile-menu a[href="participatory-projects.html"] 
      {
      text-decoration: underline;
      text-underline-offset: 0.3em;
        }

  body[data-page="about"] 
      .mobile-menu a[href="about.html"] {
      text-decoration: underline;
      text-underline-offset: 0.3em;
  }
  
  }

   @media screen and (max-width: 340px) {

    .site-name {
      font-size: 0.8em;
    }

    .hamburger {
      top: -2.2em;
    }


    .content {
      padding-top: 0em;
    }

     .mobile-back {
    display: block;
  }
  }

    /*************************/
