.services-thumbnails-component {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.services-thumbnails-component .item {
    width: calc(1/3*100% - (1 - 1/3)*30px);
    text-align: center;
}

.services-thumbnails-component .image {
    border-top-right-radius: 30px;
    border-top-left-radius: 30px;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 280px;
    filter: grayscale(0.30);
}

.services-thumbnails-component .image:hover {
    filter: grayscale(0);
}

.services-thumbnails-component .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-thumbnails-component .content {
    background: var(--service-thumbnail-background-color);
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    color: var(--service-thumbnail-color);
    padding: 20px;
}

.services-thumbnails-component .title {
    font-family: 'gotham';
    color: var(--service-thumbnail-title-color);
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 5px;
}

.services-thumbnails-component .description {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-bottom: 20px;
}

.services-thumbnails-component .link {
    font-weight: 600;
    display: inline-block;
    color: var(--service-thumbnail-button-color);
    background-color: var(--service-thumbnail-button-background-color);
    border: 1px solid var(--service-thumbnail-button-border-color);
    border-radius: 30px;
    padding: 12px 30px;
}

.services-thumbnails-component .link:hover,
.services-thumbnails-component .link:active,
.services-thumbnails-component .link:focus {
    color: var(--service-thumbnail-button-color-hover);
    background-color: var(--service-thumbnail-button-background-color-hover);
    border: 1px solid var(--service-thumbnail-button-border-color-hover);
}

@media only screen and (max-width: 991px) {
    .services-thumbnails-component {
        gap: 15px;
    }

    .services-thumbnails-component .item {
        width: calc(1/2*100% - (1 - 1/2)*15px);
    }
}

@media only screen and (max-width: 776px) {
    .services-thumbnails-component .item {
        width: 100%
    }

    .services-thumbnails-component .image {
        height: 150px;
    }

    .services-thumbnails-component .description {
        font-size: 16px;
    }

    .services-thumbnails-component .title {
        font-size: 20px;
    }

    .services-thumbnails-component .link {
        padding: 8px 35px;
    }
}


