:root {
    /* EDIT THESE TO CHANGE YOUR RATIO */
    --slide-width: 400px;
    --slide-height: 600px;
    --gap: 20px;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    /* Prevent buttons from being squished */
    padding: 0 40px; 
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: var(--gap);
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* This is the container that controls the ratio */
.slider-track a {
    flex: 0 0 var(--slide-width);
    height: var(--slide-height);
    display: block;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.slider-track img {
    width: 400px;
    height: 800px;
    /* 'cover' maintains ratio without stretching, 'fill' forces exact fit */
    object-fit: cover; 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.slider-track img:hover {
    transform: scale(1.08);
}

.nav-btn {
    background: white;
    color: #333;
    border: none;
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.prev { left: 0px; }
.next { right: 0px; }

.nav-btn:hover {
    background: #000;
    color: #fff;
}