.category-widget__item {
  position: relative;
  width: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .category-widget__item {
    width: auto;
    max-width: 350px;
    max-height: 350px;
  }
}

.category-widget__item .field--name-field-media-image img {
  width: 100%;
  max-width: 120%;
  transition: all 0.3s ease;
}

.category-widget__item__text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: start;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 15%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  transition: all 0.3s ease;
}

.category-widget__item:hover
.category-widget__item__text {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 15%, rgba(255, 255, 255, 0) 100%);
  color: #000;
}

.category-widget__item:hover
img {
  width: 105% !important;
  margin: -5% 0 0 -5%;
}
