.metal-carousel {
    position: relative;
    padding: 0 42px 46px;
}

.metal-carousel .metal-viewport {
    width: 100%;
    overflow: hidden;
}

.metal-carousel .metal-track {
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    will-change: transform;
}

.metal-carousel .metal-slide {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 10px;
}

.metal-carousel .gallery-card {
    display: flex;
    flex-direction: column;
    height: 360px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    text-decoration: none;
}

.metal-carousel .gallery-card:hover {
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .15);
}

.metal-carousel .gallery-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.metal-carousel .gallery-caption {
    flex: 1 1 auto;
    min-height: 0;
    padding: 15px;
    overflow: hidden;
}

.metal-carousel .gallery-caption h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.metal-carousel .gallery-caption p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.metal-carousel .metal-arrow {
    position: absolute;
    top: 0;
    bottom: 46px;
    width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: 0;
    color: #555;
    font-size: 23px;
    cursor: pointer;
    padding: 0;
}

.metal-carousel .metal-arrow:hover {
    color: #111;
}

.metal-carousel .metal-prev {
    left: 0;
}

.metal-carousel .metal-next {
    right: 0;
}

.metal-carousel .metal-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.metal-carousel .metal-dots button {
    display: block;
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid #999;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
}

.metal-carousel .metal-dots button.active {
    background: #337ab7;
    border-color: #337ab7;
}

@media (min-width: 768px) and (max-width: 991px) {
    .metal-carousel .metal-slide {
        flex-basis: 50%;
        width: 50%;
    }
}

@media (max-width: 767px) {
    .metal-carousel {
        padding: 0 34px 46px;
    }

    .metal-carousel .metal-slide {
        flex-basis: 100%;
        width: 100%;
    }

    .metal-carousel .gallery-card {
        height: 340px;
    }

    .metal-carousel .metal-arrow {
        width: 30px;
    }
}
