:root {
  --white: #fff;
  --background: #e5e7df;
  --foreground: #333;
  --black: #000;
  --grey: #83847e;
  --accent: rgb(0, 127, 127);
  --font-scale: 1;
  --heading-font-scale: 1;
  font-size:medium;
}

@media (max-width: 1000px) {
  :root {
    --font-scale: 0.8;
    --heading-font-scale: 0.4;
  }
}

@media (max-width: 650px) {
  :root {
    --font-scale: 0.7;
    --heading-font-scale: 0.4;
  }
}

* { margin:0; padding:0; box-sizing:border-box;}

html, body {
  height: 100%;
  min-height: 100%;
}

body { 
  font-family: Geist, serif; 
  color: var(--foreground); 
  line-height: 1.6; 
  background-color: var(--background); 
  margin: 0em 2rem;
  display: flex;
  flex-direction:column;
  min-height: 100vh;
};

.site-header { text-align: center; padding: 2rem; }
.site-header nav {display: flex; align-items:center; justify-content: space-between; gap: 2rem; margin-top: 2rem;}
.nav-list, .social-list { list-style: none; display:inline-flex; gap:0rem; margin-bottom: 1rem; }

.nav-list li a,
.social-list li a {
  padding: 4px 2px;
  margin: auto 2rem;
  font-family: Geist Mono, mono;
  font-weight: 600;
  font-size: calc(var(--font-scale) * 1.3rem);
}

.nav-list li a,
.social-list li a,
.impact-links li a {
  position: relative;
  color: var(--foreground);
  text-decoration:none; 
  transition: color 0.3s ease;
}

.nav-list li a::after,
.social-list li a::after,
.impact-links li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 3px;
  left: 0;
  bottom: 0;
  background-color: var(--black);
  transition: width 0.3s ease;
}
.nav-list li a:hover,
.social-list li a:hover,
.impact-links li a:hover {
  color: var(--black);
}
.nav-list li a:hover::after,
.social-list li a:hover::after,
.impact-links li a:hover::after {
  width: 100%;
}


/* h1 { font-size: calc(var(--font-scale) * 6rem); margin-bottom:0.5rem;letter-spacing: -4px; font-weight:800} */

h2 { 
  font-size: calc(var(--heading-font-scale) * 8rem); 
  margin: 0rem 1.5rem 0.5rem 0rem; 
  letter-spacing: calc(var(--heading-font-scale) * -4px);
  font-weight:800; 
  color: var(--accent); 
  text-align: right; 
  text-transform: lowercase;

}

/* h3 { font-size:1.5rem; color:#666; } */

.site-header h2 {
  font-size: calc(var(--font-scale) * 1.4rem); 
  letter-spacing: calc(var(--font-scale) * -1px); 
  text-align:left; 
  margin: 0 0 1rem 1.5rem;

}

.container {
  max-width: 1200px;   /* or any value you prefer */
  margin: 0 auto;
  padding: 0 1rem;
}

.impact {
  font-family: Geist Mono, mono;
  font-size: calc(var(--font-scale) * 2rem);
  font-weight: 400;
  padding: 24px 0px;
}

.impact a {
  color: var(--foreground);
  text-decoration:none;
  font-weight: 600; 
}

.impact-links {
  font-family: Geist Mono, mono;
  font-size: calc(var(--font-scale) * 2rem); 
  font-weight: 600;
  list-style: none;
}

/* .projects-filter ul { display:flex; justify-content:center; gap:1.5rem; margin:2rem 0; list-style:none; }
.projects-filter a { text-decoration:none; color:#333; font-weight:bold; } */


.photo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* spreads items across */
}

.pcard {
  width: calc(33.333% - 10px);
  padding: 1.5rem;
  box-sizing: border-box;
  text-align: justify;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* .photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
} */
.pcard img {
  width: 100%;
  display: block;
}
  /* transition: transform 0.3s ease, filter 0.3s ease;
} */

@media (max-width: 1000px) {
  .pcard {
    width: calc(50% - 20px);
  }
  :root {
    --fancybox-button-size: 48px; /* default is 36px */
  }
  .nav-list li a,
  .social-list li a {
    margin: auto 0.6rem;
    /* font-size: 0.9rem; */
  }
  /* .site-header h2 { font-size: 0.9rem;} */
}

@media (max-width: 650px) {
  .pcard {
    width: 100%;
  }

  :root {
    --fancybox-button-size: 48px; /* default is 36px */
  }
}

.pcard a {
  text-decoration:none;
}

.pcard .pcard-description{
  width: 100%;
  background-color: var(--white);
  color: var(--grey);
  transition: background-color 0.3s ease;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  font-family: Geist Mono, mono;
  font-weight: 300;
}

.pcard-description .left,
.pcard-description .right {
  flex: 1 1 0;
  min-width: 0;
}

.pcard-description .right {
  text-align: right;
  padding-right: 1rem;
}

.pcard-description .left {
  text-align: left;
  padding-left: 1rem;
}
/* .photo-card:hover .pcard-image {
  transform: scale(1.05);
  /* filter: brightness(0.85); 
} */

.pcard:hover .pcard-description {
  background-color: var(--accent);
  color: var(--white);


}

.fancybox__container {
  padding: 2rem !important;
}


.site-footer { text-align:center; padding:2rem; font-size:0.9rem; margin-top:auto; }
.site-footer .social-list { display:inline-flex; gap:1rem; margin-top:0.5rem; }
.site-footer a { text-decoration:none; color:#333; }
