@import "_reset.css";

/*---------Grid Container------------*/
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Spalten */
  grid-gap: 10px;
  padding: 10px;
}

/*---------Bild-Box----------*/
.image-box {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 75%; /* VerhÃ¤ltnis 4:3 */
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.image-box:hover {
  transform: scale(1.05);
  cursor: pointer;
  opacity: 0.9;
}

/* ----------Bilder & Vidoe---------*/
.image-box img,
.image-box video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*----------Responsiv--------------*/
@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .all-projects-titel h2{
    font-size: 55px;
  }
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr;
  }
  .all-projects-titel h2{
    font-size: 50px;
  }
}

/*---------------back to homepage------------*/
.back-to-home {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  background: white;
  z-index: 3;
}

.home-preview {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.home-iframe {
  width: 100%;
  height: 100%;
  border: none;
}