:root {
  --gap: 1rem;
  --card-width: clamp(310px, 10vw, 100vw);
  --card-height: calc(var(--card-width));
}

.work {
  margin: 0 auto;
  max-width: 1440px;
  /* overflow-x: hidden; */
  display: flex;
  justify-content: center;
}

.grid {
  display: grid;
  width: 100%;
  min-height: 200vh;
  max-width: 1440px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  /* overflow: hidden; */
}

.column {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center images within each column horizontally */
  gap: var(--gap);
  justify-content: center; /* Center images vertically */
}

.column img {
  max-width: 100%;
  max-height: 100%;
  width: var(--card-width);
  position: relative; /* For proper overlay positioning */
  overflow: hidden;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transitions for zoom and overlay */
}

.column img:hover {
  transform: scale(1.05); /* Slight zoom */
}

/* Dark mode image tinting */
:root.dark-theme .work .grid img {
    filter: brightness(0.4);
}

:root.dark-theme .work .grid img:hover {
    filter: brightness(1);
}


.button-container {
  position: absolute;
  width: 100%;
  padding-top: 60vh;
}


