/* root directive, colour palette */
:root { 
    --platinum: #dedee0;
    --blue-munsell: #59a5b4bd;
    --space-cadet: #3d315b;
    --dark-purple: #2b193d; 
    --jet: #343432;
    --silver:#b7b8b4;
    --eerie-black:#262625;
    --celeste:#bffff1;
    --warm-rose: #b86d75;
    --bg: #F3F4F6;
    --text:#1C1E21;
    --divider-soft: #E2E4E8;
    --divider: #D1D5DB;
    --divider-strong: #9CA3AF;

  }

html{
  scroll-behavior: smooth;
}

/* 
#logo{
  width: auto;
  background-color:var(--platinum);
} */
#mission{
  transform:scale(1); 
}
#family-img{
  width: auto;
  height: auto;
}
body {
    /* height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F3F4F6;
    color:#1C1E21;
    text-align: center;
    overflow: auto;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 19px;
    /*
    font-family: "Poppins", sans-serif;
    font-family: "Inter", sans-serif; */
    /* cssgradient.io. */
}
nav{
  font-weight: bold;
  position:sticky;
  /* z-index: 1000; */
  color: var(--jet);
  background-color: var(--silver);
  justify-items: center;
  justify-content: space-between;
  padding: 1%;
  /* font-family: */
}

#nav-list {
    display: flex;
    align-items: center;
    list-style-type: none;

}

#logo {
    width: 80px;
    height: 80px;
    margin-right: auto;
    
}


#nav-list a {
  padding-left: 10%;
  padding-right: 10%;
  margin: 0;
  color: var(--text);
  text-decoration: none;
  float: right;
  display:flex;
  justify-content: space-between;
  overflow: hidden;
  
}
button {
  display: block;
  padding: 0 12px;
  border-radius: 10px;
}
 #hero{ 
  background-color: var(--eerie-black);  

} 
#hero img{
border-radius: 2px;
}
.personal{
  display: inline-block;
}

#donate-button{
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  background: var(--eerie-black);
  color: var(--platinum);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  text-decoration: none;
  /* animation: name duration timing-function delay iteration-count direction fill-mode; */
}
.social-icon{
  width: 30px;
  height: 30px;
}

#family-container{
  position: relative;
  display:inline-block;
}
#family-container img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
#family-header{
  position: absolute;
  top: 8%;
  left: 24%;
  transform: translate(-50%, -50%);
  background-color: var(--text);
  color:var(--bg);
  padding: 10px 20px;
  font-size: 33px;
  font-weight: 450;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
}
#mission-list{
  list-style-image: url("./asset/tick.png");
  font-weight: bold;
  list-style-position: inside;

}
#mid-section{
  /* width: 80%; */
  margin-left: auto;
  margin-right: auto;
}
/* carousel container */
#partnerlist{ 
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.partnerlist{
  height: auto;
}
/* carousel */
.partner-pics{
  display: flex;
  height:380px;
  width: 100%;
  max-width: 350px;
  max-height: 400px;
  transition: transform 0.5s ease;
  overflow:hidden;
  position: relative;
  /* aspect-ratio: 4 / 3; */
}
/* @media (max-width: 480px) {
.partnerlist {
grid-template-columns: 1fr;
}
} */
.partnerslide{
  min-width: 100%;
  height:100%;
  flex-shrink: 0;
}
.partnerslide img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* or cover */
  background-color: #f0f0f0; /* fills empty space */
  border-radius: 8px;

}

.nav {
  position: absolute;
  top: 50%;
  /* transform: translateY(-50%); */
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.nav:hover {
  background: rgba(0,0,0,0.8);
}


.personal div{
  display: inline;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  /* align-items: center;
  justify-items: center; */
  padding: 2rem;
}
#erick-text, #megan-text{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 30vw;
}
#erick-img, #megan-img{
  width: 30vw;
  height: auto;
  border-radius: 10px;
}

#closing{
  background-color:#343432;
  color:var(--platinum);
  margin-bottom: 1px;
  color:#C0C0C0;
}
#rights{
  background-color: rgba(240, 240, 239, 0.36);
}
/* @media (max-width: 480px) {
.personal {
grid-template-columns: 1fr;
}
.partnerlist div{
grid-template-columns: 1fr;
}
} */
#guesthouse img{
  height: 140px;
  border-radius: 8px;
  padding: 1px;
}

/* #guesthouse {
 display: grid;
 grid-template-columns: repeat(3, auto);
 grid-template-rows: repeat(auto, auto);
  
} */

#guesthouse {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1rem;
}

#guesthouse img:nth-child(2) {
  height:280px;

}
#guesthouse img:nth-child(4) {
  grid-column: 1 / span 2; /* takes 2/3 width */
}

#guesthouse img:nth-child(5) {
  grid-column: 3 / span 1; /* takes remaining 1/3 width */
}

.divider {
  
  width: inherit;
  height: 55px; 
  background-color: var(--divider);
  /* diagonal transforms: */
  /* transform: skewY(-1.5deg); */
  margin-top: -25px; 
  margin-bottom: -25px;
}
#mission-partners{
  margin-bottom: 80px;
} 
#mid-section{
  margin-bottom: 80px;
  background-color: var(--divider-soft);
  padding-left: 2%;
  padding-right: 2%;
}
#section:nth-child(even) {
  background-color: #ECEFF1; /* subtle contrast block */
}