.vesna-news-widget,
.vesna-news-widget * {
  box-sizing: border-box;
}

.vesna-news-grid {
  --vesna-news-columns: 3;
  --vesna-news-gap: 24px;
  --vesna-news-mobile-card-width: 82%;
  --vesna-news-mobile-padding: 0px;
  display: grid;
  grid-template-columns: repeat(var(--vesna-news-columns), minmax(0, 1fr));
  gap: var(--vesna-news-gap);
  width: 100%;
}

.vesna-news-card {
  min-width: 0;
}

.vesna-news-card-inner {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s cubic-bezier(.22,1,.36,1), color .25s ease;
}

.vesna-news-card-inner:hover,
.vesna-news-card-inner:focus {
  color: inherit;
  text-decoration: none;
}

.vesna-news-image {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #333;
}

.vesna-news-image img,
.vesna-news-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.vesna-news-image img {
  object-fit: cover;
  object-position: center center;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .35s ease;
}

.vesna-news-card:hover .vesna-news-image img {
  transform: scale(1.025);
}

.vesna-news-content {
  padding-top: 14px;
}

.vesna-news-category {
  display: inline-block;
  margin: 0 0 16px 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

.vesna-news-category,
.vesna-news-title {
  transition: opacity .28s ease, color .28s ease, border-color .28s ease;
}

.vesna-news-title {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 400;
}

.vesna-news-empty {
  color: currentColor;
  opacity: .7;
}

@media (max-width: 767px) {
  .vesna-news-widget.vesna-news-mobile-slider .vesna-news-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: var(--vesna-news-gap);
    padding-left: var(--vesna-news-mobile-padding);
    padding-right: var(--vesna-news-mobile-padding);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .vesna-news-widget.vesna-news-mobile-slider .vesna-news-card {
    flex: 0 0 var(--vesna-news-mobile-card-width);
    scroll-snap-align: start;
  }

  .vesna-news-widget.vesna-news-hide-scrollbar .vesna-news-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .vesna-news-widget.vesna-news-hide-scrollbar .vesna-news-grid::-webkit-scrollbar {
    display: none;
  }
}
