.gallery {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    background-color: #000000;
}

.main-gallery #main-slider {
    /*align-items: center;*/
}

.gallery > .slider {
    display: flex;
    width: 200%;
    height: 100%;
    margin: 0;
    position: relative;
    padding: 0;
    will-change: transform;
    transition: transform .7s;
    transform: translateX(0%);
}

.slider {
    position: relative;
}

.main-gallery > .slider img {
    width: 100%;
}

.gallery-cursor {
    width: 100%;
    justify-content: center;
    position: absolute;
    bottom: 0rem;
    z-index: 3;
}

.gallery-cursor.p-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
}

.gallery-cursor div:not(:last-child) {
    margin-right: .9rem;
}

.cursor {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 1rem;
    background-color: #999999;
    cursor: pointer;
}

.cursor.active {
    background-color: white;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FFF;
    color: #000;
    border: none;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-nav:hover {
    background-color: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav svg {
    width: 2.4rem;
    height: 2.4rem;
}

.carousel-nav-prev {
    left: 2rem;
}

.carousel-nav-next {
    right: 2rem;
}

/* Mobile responsive */
@media only screen and (max-width: 640px) {
    .carousel-nav {
        width: 3.6rem;
        height: 3.6rem;
    }

    .carousel-nav svg {
        width: 1.8rem;
        height: 1.8rem;
    }

    .carousel-nav-prev {
        left: 1rem;
    }

    .carousel-nav-next {
        right: 1rem;
    }
}


.p-thumbs {
    white-space: nowrap;
    overflow-x: auto;
    margin: 2.4rem 0;
}

@media only screen and (min-width: 640px) {
    .p-thumbs {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }
}

@media only screen and (min-width: 1281px) {
    .p-thumbs {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        margin: 2.4rem 0;
    }
}