
.jpm-mic-section {
    width: 100%;
    padding: 35px 0;
    overflow: hidden;
    background: #ffffff;
}

.jpm-mic-wrapper {
    position: relative;
    width: 100%;
    padding: 0 55px;
}

.jpm-mic-viewport {
    width: 100%;
    overflow: hidden;
}

.jpm-mic-track {
    display: flex;
    gap: 16px;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}

.jpm-mic-item {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
}

.jpm-mic-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 10 / 15;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #eee;
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
}

.jpm-mic-image-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.jpm-mic-image-box:hover img {
    transform: scale(1.06);
}

.jpm-mic-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.05);
    opacity: 0;
    transition: .3s ease;
}

.jpm-mic-image-box:hover .jpm-mic-overlay {
    opacity: 1;
    background: rgba(0,0,0,.30);
}

.jpm-mic-zoom-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 25px;
    color: #111;
    transform: scale(.7);
    transition: .3s ease;
}

.jpm-mic-image-box:hover .jpm-mic-zoom-icon {
    transform: scale(1);
}

/* arrows */
.jpm-mic-btn {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #e15404;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,.18);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all .25s ease;
}

.jpm-mic-btn:hover {
    background: #111;
    color: #fff;
}

.jpm-mic-prev {
    left: 0;
}

.jpm-mic-next {
    right: 0;
}

.jpm-mic-btn svg {
    width: 20px;
    height: 20px;
}

/* ==============================
   LIGHTBOX
================================ */

.jpm-mic-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
}

.jpm-mic-lightbox.active {
    display: flex;
}

.jpm-mic-lightbox-image {
    display: block;
    width: auto;
    max-width: 92vw;
    height: auto;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 60px rgba(0,0,0,.5);
}

.jpm-mic-lightbox-close {
    position: absolute;
    right: 22px;
    top: 15px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.jpm-mic-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 34px;
    cursor: pointer;
}

.jpm-mic-lightbox-prev {
    left: 18px;
}

.jpm-mic-lightbox-next {
    right: 18px;
}

.jpm-mic-lightbox-close:hover,
.jpm-mic-lightbox-arrow:hover {
    background: #fff;
    color: #111;
}

/* tablet */
@media (max-width: 991.98px) {
    .jpm-mic-item {
        flex: 0 0 calc((100% - 32px) / 3);
    }
}

/* smaller tablet */
@media (max-width: 767.98px) {
    .jpm-mic-wrapper {
        padding: 0 45px;
    }

    .jpm-mic-item {
        flex: 0 0 calc((100% - 16px) / 2);
    }

    .jpm-mic-btn {
        width: 38px;
        height: 38px;
    }
}

/* mobile */
@media (max-width: 575.98px) {
    .jpm-mic-section {
        padding: 22px 0;
    }

    .jpm-mic-wrapper {
        padding: 0 38px;
    }

    .jpm-mic-track {
        gap: 12px;
    }

    .jpm-mic-item {
        flex: 0 0 100%;
    }

    .jpm-mic-btn {
        width: 34px;
        height: 34px;
    }

    .jpm-mic-lightbox {
        padding: 55px 15px;
    }

    .jpm-mic-lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }

    .jpm-mic-lightbox-prev {
        left: 8px;
    }

    .jpm-mic-lightbox-next {
        right: 8px;
    }
}