.mc-gallery .carousel-inner {

    background: #f8f9fa;

    border-radius: 12px;

}

.mc-gallery .carousel-item img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.mc-thumb {

    height: 90px;

    width: 100%;

    object-fit: cover;

    transition: .2s;

}

.mc-thumb:hover {

    opacity: .75;

    transform: scale(.97);

}

.carousel-control-prev-icon,
.carousel-control-next-icon {

    background-color: rgba(0, 0, 0, .45);

    border-radius: 50%;

    padding: 18px;

}

.mc-content {

    line-height: 1.9;

    font-size: 15px;

}

.mc-content p {

    margin-bottom: 1rem;

}

.mc-content ul {

    padding-left: 1.2rem;

}

.mc-content img {

    max-width: 100%;

    height: auto;

    border-radius: 10px;

}

.mc-content table {

    width: 100%;

}

.mc-content iframe {

    max-width: 100%;

}

/* =========================================================
   GALLERY THUMBNAILS
   ========================================================= */

.mc-gallery-thumbs-wrapper {
    width: 100%;
    overflow: hidden;
    margin-top: 15px;
}

.mc-gallery-thumbs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    gap: 10px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;

    cursor: grab;

    padding: 0 0 3px 0;
    margin: 0;
}

.mc-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

/* .mc-gallery-thumbs:active {
    cursor: grabbing;
} */

.mc-gallery-thumb-item.active .mc-thumb {
    border: 2px solid #dc3545 !important;
}

.mc-gallery-thumbs.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.mc-gallery-thumbs.is-dragging img {
    pointer-events: none;
}


/* =========================================================
   THUMBNAIL ITEM
   ========================================================= */

.mc-gallery-thumb-item {
    flex: 0 0 calc(20% - 8px) !important;
        width: calc(20% - 8px) !important;
        max-width: calc(20% - 8px) !important;
        min-width: 0;
        cursor: pointer;
}


/* =========================================================
   THUMBNAIL IMAGE
   ========================================================= */

.mc-gallery-thumb-item .mc-thumb {
    display: block;

    width: 100% !important;
    height: 80px !important;

    object-fit: cover;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        border-color 0.2s ease;
}

.mc-gallery-thumb-item .mc-thumb:hover {
    opacity: 0.8;
}

.mc-gallery-thumb-item .mc-thumb.active {
    border: 2px solid #dc3545 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .mc-gallery-thumb-item {
        flex: 0 0 calc(25% - 8px) !important;
        width: calc(25% - 8px) !important;
        max-width: calc(25% - 8px) !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .mc-gallery-thumb-item {
        flex: 0 0 calc(33.333% - 7px) !important;
        width: calc(33.333% - 7px) !important;
        max-width: calc(33.333% - 7px) !important;
    }

    .mc-gallery-thumb-item .mc-thumb {
        height: 70px !important;
    }

}


/* =========================================================
   GALLERY CAROUSEL CONTROLS
   ========================================================= */

.mc-gallery .mc-gallery-control {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 1;

    z-index: 5;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;

}


.mc-gallery .mc-gallery-control:hover {

    background: rgba(220, 53, 69, 0.95);

    transform: translateY(-50%) scale(1.08);

}


.mc-gallery .mc-gallery-control i {

    font-size: 18px;

    line-height: 1;

}


/* ---------------------------------------------------------
   POSITION
   --------------------------------------------------------- */

.mc-gallery .mc-gallery-control-prev {

    left: 15px;

}


.mc-gallery .mc-gallery-control-next {

    right: 15px;

}

@media (max-width: 767.98px) {

    .mc-gallery .mc-gallery-control {

        width: 36px;
        height: 36px;

    }

    .mc-gallery .mc-gallery-control i {

        font-size: 14px;

    }

    .mc-gallery .mc-gallery-control-prev {

        left: 10px;

    }

    .mc-gallery .mc-gallery-control-next {

        right: 10px;

    }

}