#prePortfolio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#prePortfolio .text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
} 

#prePortfolio .text-container h2 {
    font-size: var(--title-mobile-size);
    font-weight: var(--title-weight);
    line-height: var(--title-mobile-size);
    color: white;
    text-transform: uppercase;
    text-align: center;
} 

#prePortfolio .text-container h4 {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.7rem;
    color: var(--subtitle-color);
    width: 80%;
}

#portfolio {
    overflow: hidden;
}

#portfolio .main-container {
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 100%;
    height: 100%;
    will-change: transform;
    transition: transform 0.5s ease;
}



#portfolio .main-container::-webkit-scrollbar {
  display: none;
}

#portfolio .portfolio-case-container {
    position: relative;
    height: 100vh;
    scroll-snap-align: center;
}

#portfolio .desktop {
    display: block;
}

#portfolio .mobile {
    display: none;
}

img.desktop,
img.mobile {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  object-fit: cover;
  object-position: center;
}

#portfolio img {
    width: 100%;
}

#portfolio .background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: linear-gradient(360deg, rgba(0, 0, 0, 0.3) 10%, transparent 90%); 
    z-index: 0;
}

#portfolio .portfolio-description-services {
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: absolute;
    padding: 40px;
    bottom: 0;
    left: 0;
}

#portfolio .style-photo {
    width: min-content;
    padding: 2px 10px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    border-radius: 16px;
}

#portfolio .style-photo {
    white-space: nowrap;
    color: white;
    font-size: 0.9rem;
    font-weight: var(--subtitle-weight);
}

#portfolio .text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 5px;
    width: 65%;
} 

#portfolio .text-container h2 {
    font-size: 2rem;
    font-weight: var(--title-weight);
    line-height: 1.9rem;
    color: white;
} 

#portfolio .text-container h4 {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1rem;
    color: var(--subtitle-color);
}

@media (max-width: 1024px) {
    #prePortfolio .main-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100dvh;
    }

    #portfolio .text-container {
        width: 100%;
    }

    #portfolio .text-container h2 {
        font-size: 1.4rem;
        font-weight: 100;
        line-height: 1.4rem;
        width: 100%;
    }

    #prePortfolio .text-container h4 {
        text-align: center;
        font-size: 1.1rem;
        font-weight: 300;
        line-height: 1.3rem;
        color: var(--subtitle-color);
        width: 80%;
    }

    #portfolio .desktop {
        display: none;
    }
    #portfolio .mobile {
        display: block;
        width: 100vw;
        min-height: 100dvh;
        object-fit: cover;
    }
    #portfolio .portfolio-case-container {
        position: relative;
        min-height: 100dvh;
        scroll-snap-align: center;
    }
    #portfolio .text-container {
        width: 90%;
    }
    
    #portfolio .portfolio-description-services {
    padding: 20px;
}
}

@supports (height: 100dvh) {
  img.desktop,
  img.mobile {
    height: 100dvh;
  }
}