.ht-front-hero {
  position: relative;
}

.ht-hero-slider {
  position: relative;
}

.ht-front-hero .ht-hero-mosaic {
  direction: rtl;
}

.ht-hero-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px;
  line-height: 0;
}

.ht-hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) - 6px);
  background: var(--bg);
}

.ht-hero-img.is-ph {
  width: 100%;
  height: 100%;
}

.ht-hero-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}

.ht-hero-cat {
  position: absolute;
  inset-inline-start: 20px;
  inset-block-start: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  white-space: nowrap;
}

.ht-hero-title {
  position: absolute;
  inset-inline-start: 16px;
  inset-inline-end: 16px;
  inset-block-end: 24px;
  z-index: 3;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  direction: rtl;
  pointer-events: none;
}

.ht-hero-skel {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: ht-hero-shimmer 1.1s linear infinite;
}

@keyframes ht-hero-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ht-hero-tile.is-loaded .ht-hero-skel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease;
}

/* mobile */

@media (max-width:1023.98px) {
  .ht-front-hero .ht-hero-mosaic {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
    padding-inline: 0;
  }

  .ht-front-hero .ht-hero-mosaic::-webkit-scrollbar {
    display: none;
  }

  .ht-hero-mosaic-right {
    display: contents;
  }

  .ht-hero-tile {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .ht-hero-dots {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 12px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .ht-hero-dots__btn {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: width 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  }

  .ht-hero-dots__btn.is-active {
    width: 22px;
    background: var(--brand-500);
    border-color: var(--brand-500);
  }
}

/* desktop */

@media (min-width:1024px) {
  .ht-front-hero .ht-hero-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    align-items: stretch;
  }

  .ht-hero-tile--big {
    grid-column: 1;
    display: flex;
    align-items: center;
  }

  .ht-hero-mosaic-right {
    grid-column: 2;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .ht-hero-tile--sm {
  }

  .ht-hero-dots {
    display: none;
  }
}
