img {
  max-inline-size: 100%;
}



h1 {
  font-size: 1.75rem;
  line-height: 1.5;
  margin-block-end: 1rem;
}



.logo {
  display: flex;
  justify-content: center;
  font-size: 3rem;
  line-height: 1.5;
}

.main {
  
  padding: 1.25rem;
}

/* Photo Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 25.5rem;
  
  gap:1rem;
  margin-top: 2rem;
}

.gallery figure {
  position: relative;
  margin: 0;
  
  overflow: hidden;


 
}

.gallery img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;

  transition: scale 0.5s ease-in-out;
}

.gallery figure:hover img {
  scale: 1.125;
}

.gallery figcaption {
 
  
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 0.3rem;
  backdrop-filter: blur(5px);
  
}



.gallery figcaption h3 {
  font-size: 1.0625rem;
}

.gallery figcaption p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (width < 900px) {
 .gallery {
    grid-template-columns: 1fr 1fr ;
    gap:0.5em;
  }
}
@media (width < 650px) {
 .gallery {
    grid-template-columns: 1fr ;
    gap:0.5em;
  }
}
