.works-button {
  border-radius: 30px;
  border: 2px solid rgb(255, 30, 255);
  background-color: rgb(255, 30, 255);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0px 10px;
  text-decoration: none;
  color: #fff;
  cursor: default;
}

main {
  box-sizing: border-box;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Standard: 3 Spalten auf Desktop */
  gap: 20px;
  width: 100%;
  justify-content: end; /* Rechts ausrichten */
  align-content: end; /* Unten starten */
}

.project-frame {
  width: 100%;
  aspect-ratio: 4/3; /* Höhe ist 2/3 der Breite */
  border-radius: 20px;
  background-color: rgb(229, 229, 229);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.project-frame.active {
    background-color: rgb(214, 243, 0); /* Same yellow as hover effect */
}

.project-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.project-image.portrait {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-frame {
  position: relative;
  overflow: hidden;
  padding: 20px; /* Adds padding */
}

.video-frame:hover {
  background-color: rgb(214, 243, 0); /* Change to yellow */
  cursor: pointer;
}

.project-video {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: none; /* Hide video initially */
  box-shadow: inset 0 0 5px rgba(214, 243, 0);
}

/* Grid Anpassungen für verschiedene Bildschirmgrößen */
@media (max-width: 1024px) {
  .project-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 Spalten für Tablets */
  }
}

@media (max-width: 768px) {
  .project-grid {
      grid-template-columns: repeat(1, 1fr); /* 1 Spalte für Handys */
  }
}
