* {
    margin: 0;
    padding: 0;
}

.container {
    border: 1px solid red;
    position: relative;
    max-width: 800px;
    padding: 15px;
    margin: 0 auto;
}

.gallery-wrapper {
    border: 1px solid rgb(52, 49, 243);
    padding: 10px;
    scrollbar-width: none;
    overflow-x: scroll;
}

.gallery {
    border: 1px solid rgb(243, 49, 49);

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
}

.arrow-left,.arrow-right{
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    font-size: 20px;
    line-height: 250px;
    width: 40px;
    text-align: center;
    color: white;
    cursor: pointer;
    border: none;
    background: linear-gradient(to left,transparent 0%, black 200%);
    opacity: 0.5;
    transition:  all 0.2s ease-in-out;
}

.arrow-right{
    left: auto;
    right: 0;
    background: linear-gradient(to right,transparent 0%, black 200%);
}

.arrow-right:hover,
.arrow-left:hover{
    opacity: 1;
}

.item{
    opacity: 0.5;
}

.current-item{
    opacity: 1;
}