  section{
    width: 90%;
    margin: auto;
    padding: 10px;
    border: 2px solid black;
    background-color: lightgray;
  }

  /* Character card styling */
  .grid div {
    background: #f2f2f2;
    padding: 15px;
    text-align: center;
    border: 1px solid blue;
  }
  
  /* Images */
  .grid img {
    max-width: 100%;
    height: auto;
    border-radius: 25px;
  }

  .gallery img {
    border: 3px yellow dashed;
    border-radius: 50px;

  }
  
  /* Headings */
  .character h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #333;
  }
    
  .grid dt {
    font-weight: bold;
    color: #444;
  }
  
  .grid dd {
    margin: 0;
    color: #555;
  }
  

  /* **** Student code starts here */
dl{
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;                   
  justify-items: start;
  align-items: start;
}

.grid {
  display: grid;
  gap: 15px;            
  padding: 15px;         
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-items: stretch;
  align-items: start;
}

.grid div {
  background: #f2f2f2;
  padding: 15px;
  text-align: left;
  border: 1px solid blue;
  box-sizing: border-box; 
}

.grid img {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  border-radius: 25px;
  display: block;
}

.grid > div:nth-child(2n) img {
  filter: grayscale(100%);
  border: 25px solid #000;
  border-radius: 20px; 
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.gallery img {
  width: 200px;
  height: auto;
  transition: transform 0.3s ease;
}

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