*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: din-condensed, sans-serif;
    background:#0f0f0f;
    color:white;
}

.portfolio{
    height:100vh;
    overflow:hidden;
    padding:20px 40px;
    display:flex;
    flex-direction:column;
}

.header{
    text-align:center;
    margin-bottom:20px;
    flex-shrink:0;
}

.header h1{
    font-size:2.5rem;
    margin-bottom:5px;
}

.header p{
    color:#b0b0b0;
}

.carousel-container{
    position:relative;
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    max-width:1400px;
    width:100%;
    margin:auto;
}

.carousel{
    overflow:hidden;
}

.slide{
    display:none;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    height:100%;
    animation:fade .4s ease;
}

.slide.active{
    display:flex;
}

.slide img{
    max-height:70vh;
    width:auto;
    max-width:90vw;
    object-fit:contain;
    border-radius:12px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
}

.caption{
    margin-top:15px;
    max-width:700px;
}

.caption h2{
    font-size:1.8rem;
    margin-bottom:8px;
}

.caption p{
    font-size:1rem;
    color:#b5b5b5;
    line-height:1.5;
}

.nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.1);
    border:none;
    color:white;
    font-size:2rem;
    width:55px;
    height:55px;
    cursor:pointer;
    border-radius:50%;
    transition:.3s;
}

.nav:hover{
    background:rgba(255,255,255,.2);
}

.prev{
    left:170px;
}

.next{
    right:170px;
}

.dots{
    text-align:center;
    margin-top:30px;
}

.dot{
    height:12px;
    width:12px;
    border-radius:50%;
    background:#555;
    display:inline-block;
    margin:0 5px;
    cursor:pointer;
}

.dot.active{
    background:white;
}

@keyframes fade{
    from{
        opacity:0;
        transform:translateY(10px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:900px){

    .prev{
        left:10px;
    }

    .next{
        right:10px;
    }

    .header h1{
        font-size:2rem;
    }
}

.back-button-container{
    text-align:center;
    margin-top:20px;
    padding-bottom:20px;
}

.back-button{
    display:inline-block;
    padding:12px 24px;
    border:2px solid rgba(255,255,255,.2);
    border-radius:50px;
    color:white;
    text-decoration:none;
    font-size:1rem;
    letter-spacing:.05em;
    transition:.3s ease;
}

.back-button:hover{
    background:white;
    color:#0f0f0f;
    transform:translateY(-2px);
}