/* Blog story list: includes/blog/story-list.php (which stories, the page
   addresses), components/blog-story-list.php (the HTML),
   document/modules/blog-story-list.md. The LATEST list of the blog list page
   and of every category page: heading, category buttons, stories, then the
   page-number bar (its look: js/pagination/pagination.css). Loaded in the head
   of both pages, so nothing shows unstyled.

   It keeps the look the two pages' own copies had until 2026-11-18. One
   change: a story's picture sits beside its text only when the list is at
   least 560 px wide (a container query); a narrower list — a phone, or the
   column of a small laptop window — stacks them, where the text used to be
   squeezed into a strip beside the picture. */


/* LAYOUT: the list on the left, the right column (ad, TRENDING, events, Movies You'll Love) */
.latest-blog-section {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
}
.latest-blog-list-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: calc(70% - 36px);
  text-align: left;
}
.latest-blog-list-right {
  display: flex;
  flex-direction: column;
  gap: 45px;
  width: calc(30% - 36px);
  height: fit-content;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}
@media (max-width: 768px) {
  .latest-blog-list-left,
  .latest-blog-list-right {
    width: 100%;
  }
}
/* LAYOUT END */


/* LIST */
.tgv-stories {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.tgv-stories__title {
  margin: 0;
  text-transform: uppercase;
}
.tgv-stories__page {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  white-space: nowrap;
  opacity: 0.65;
}
.tgv-stories__empty {
  margin: 0;
}
/* LIST END */


/* CATEGORY BUTTONS */
.tgv-stories__cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.tgv-stories__cat {
  padding: 5px 12px;
  border: 1px solid #fff;
  border-radius: 8px;
  color: #fff;
  text-transform: uppercase;
  transition: 0.35s all;
}
.tgv-stories__cat:hover,
.tgv-stories__cat.is-current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
/* CATEGORY BUTTONS END */


/* STORIES: stacked by default, picture beside the text in a wide list */
.tgv-stories__item {
  display: flex;
  flex-direction: column;
}
.tgv-stories__thumb {
  display: block;
  width: 100%;
  height: 228px;
}
.tgv-stories .tgv-stories__img {
  display: block;
  width: 100%;
  height: 228px;
  object-fit: cover;
  border-radius: 12px;
  background: #111; /* shows while the picture is still loading */
}
.tgv-stories__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
}
.tgv-stories__link,
.tgv-stories__author {
  color: #fff;
}
.tgv-stories__date,
.tgv-stories__by {
  margin: 0;
  font-size: 10px;
  color: #fff;
}
.tgv-stories__name {
  margin: 0 0 10px;
  transition: color 0.2s ease;
}
.tgv-stories__excerpt {
  margin: 0 0 10px;
  font-size: 16px;
  color: #fff;
}
.tgv-stories__link:hover .tgv-stories__name,
.tgv-stories__author:hover {
  color: var(--primary);
}
.tgv-stories__link:focus-visible,
.tgv-stories__author:focus-visible,
.tgv-stories__cat:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 8px;
}
@container (min-width: 560px) {
  .tgv-stories__item {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  .tgv-stories__thumb {
    flex: 0 0 300px;
    width: 300px;
  }
  .tgv-stories__body {
    flex: 1 1 0;
  }
}
/* STORIES END */


@media (prefers-reduced-motion: reduce) {
  .tgv-stories__cat,
  .tgv-stories__name {
    transition: none;
  }
}
