* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  background-color: #000;
  color: white;
  overflow-x: hidden;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 4vh 4vw;
}

.napis {
  font-size: 3vh;
  font-weight: 400;
  letter-spacing: 8px;
  text-align: center;
  margin-bottom: 2vh;
}

.podnapis {
  font-size: 3vh;
  font-weight: 400;
  letter-spacing: 8px;
  text-align: center;
  margin-bottom: 3vh;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
  gap: 3vw;
  width: 100%;
}

.grid-item {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 2vh;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  height: 30vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
}

.grid-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
  z-index: 0;
}

.grid-item > * {
  z-index: 1;
}

.grid-item:hover {
  transform: scale(1.03);
}

.grid-item {
  color: white;
  font-size: 2vh;
  font-weight: 500;
  padding: 1.5vh;
  text-align: center;
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
}
