
  #mainGallery{
    display: flex;
  }

  .galleryContainer{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    width: 100%;
    height: 60vh;
    overflow: scroll;
    margin: 3%;
  }
  
  .imgDisplayLink{
    align-items: center;
  }

  .gallery_img{
    width:150px;
    height:150px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }


  :root {
    --gap: 2rem;
    --radius: 12px;
    --card: #a8a8a8;
    --text: #e8eaed;
    --muted: #9aa0a6;
    --accent: #4f8cff;
  }

  *{ 
    box-sizing: border-box;
  }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  justify-content:center;
  margin-top: calc(6%);
  margin-bottom: calc(6%);
  margin-left: calc(10%);
  margin-right: calc(10%);
}

  .album {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    transition: transform .18s ease, box-shadow .18s ease;
  }

  .album:nth-child(n+5) { 
    display: /*none*/inline;
  }

.album:hover {
  transform: translateY(-2px);
}

.cover {
  display: block;
  aspect-ratio: 16 / 10; /* consistent cover height */
  overflow: hidden;
  background: #0b0d12;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.album:hover .cover img {
  transform: scale(1.04);
}

.title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .2px;
  text-align: center;
  margin:5px 0px;
}
/* Responsive: 2 columns on tablets, 1 on phones */
@media (max-width: 900px) {
  .gallery { 
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin:calc(5%);
  }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; 
             margin:calc(10%);
  }
}