.mini_gallery {
    margin-top: 2em;
}

.mini_gallery_slider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini_gallery_wrapper {
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.mini_gallery_wrapper::before {
    content: '';
    position: absolute;
    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        0deg,
        transparent,
        transparent 30%,
        rgba(var(--secondary-color-rgb), 0.8)
    );
    transform: rotate(-45deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 999;
}

.mini_gallery_wrapper:hover > .mini_gallery_wrapper {
    transform: scale(1.05);
}

.mini_gallery_wrapper:hover {
    transform: scale(1.05);
}

.mini_gallery_wrapper:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}

.mini_gallery_wrapper img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

.services-text-over {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    padding: 8px 18px;
    color: #fff;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 1px;
    margin-top: -16px;
    font-weight: 400;
    text-transform: uppercase;
    background-color: rgba(var(--primary-color-rgb), 0.8);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    -webkit-transition: all 200ms linear;
    transition: all 200ms linear;
}

/* Medium devices (landscape tablets, 768px and up) */
@media screen and (min-width: 768px) {
}

/* Large devices (laptops/desktops, 1024px and up) */
@media screen and (min-width: 1024px) {
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media screen and (min-width: 1200px) {
    .mini_gallery {
        margin-top: 0;
    }
}

/* Extra large devices (large laptops and desktops, 1440px and up) */
@media screen and (min-width: 1440px) {
}
