/*a root variable for colors*/
:root {
  --textColor: #403b3b;
  --bgColor: #fff6f9;
  --footerBg: #fdeef4;
  --footerText:#888
} 
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}  
 

body {
  font-family: 'Brush Script MT', cursive, sans-serif;
  background: var(--bgColor);
  margin: 0;
  padding: 0;
  color: var(--textColor);
}

header {
  text-align: center;
  padding: 2rem;
  background-color: #fdeef4;
}

header h1 {
  font-size: 3rem;
  color: #d86e89;
}

header p {
  font-size: 1.2rem;
  color: #666;
}

.gallery-category {
  padding: 2rem;
}

.gallery-category h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #b55d72;
  margin-left:9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding:2rem 5rem 2rem 14rem;
  justify-items: center;
}
/*for tablet sized media query*/
@media(max-width:1024px) and (min-width:700px){
  .gallery-item{
    width: 100%;
    height: auto;
  }
  .gallery-grid {
    padding: 2rem;
  }
}
.gallery-item {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center;
  height:600px;
  width:600px
}
img{
  height:90%;
  width:50px;
  object-fit:cover;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease-in-out;
  cursor: pointer;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item p {
  margin: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
}
.links{
  width:100%;
  height:30px;
  margin:center;
  display:flex;
  justify-content:space-evenly;
  align-items:center;
  text-align:center
}

main a{
  text-decoration:none;
  font-size:16px;
  color: #d86e89;
}
main a:hover{
  color:black;
  font-weight:bold;
}
footer {
  text-align: center;
  padding: 1rem;
  background: var(--footerBg);
  color: var(--footerText);
  font-size: 0.9rem;
}
/*for phone sized media query*/
@media(max-width:700px){
  .gallery-grid {
    padding: 2rem;
  }
    
  .gallery-item {
    width: 100%;
    height: auto;
  }
    
  .gallery-item img {
    height: auto;
    width: 100%;
  }
    
  header h1 {
    font-size: 2.5rem;
  }
    
  header p {
    font-size: 1rem;
  }   
}