/* Portfolio (rellax grid) */
.rellax-section {
  position: relative;
  box-sizing: border-box;
  height: 150vh;
  min-height: max-content;
  background: rgb(24, 24, 24);
  overflow: hidden;
  color: white;
  z-index: 1;
  margin: 0;
}

.rellax-section .layer {
  top: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.9) 50%, rgba(24, 24, 26, 1) 100%);
  pointer-events: none;
}

.central-text {
  position: relative;
  top: 40%;
  text-align: center;
  font-size: 2rem;
  z-index: 3;
  padding: 0 20px;
}

.card-proyecto {
  position: absolute;
  overflow: hidden;
  width: 320px;
  height: auto;
  z-index: 1;
  margin-top: -100px;
}

.card-proyecto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 769px) {
  .rellax-section {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
  }
.rellax {
    transform: none !important;
  }
  .card-proyecto {
    position: relative;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 10px 0;
    width: 90%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .central-text {
    position: relative;
    top: 50%;
    padding: 0;
    font-size: 1.3rem;
  }
}
