html {
  scroll-behavior: smooth;
}

body {
  margin: 0px;
  padding: 0px;
}

.galleryContainer {
  position: static;
  padding: 0px;
  margin: 0px;
}
.gallery-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  will-change: transform;
  position: relative;
  width: 100%;
  top: 0;
  left: 0;
  margin: 0px;
  padding: 0px;
}

.card {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal.visible {
  display: flex;
}

.modal img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 30px;
}

.controls button,
.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.controls button:hover,
.close-btn:hover {
  transform: scale(1.1);
}

.close-btn {
  top: 20px;
  right: 30px;
  position: absolute;
  font-size: 2rem;
}

@media (max-width: 800px) {
  .gallery-track {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .gallery-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
