/* The front page's row of Web Stories (front.php): posters in a row, each with the story's page marks across its top
   like the story itself, and its headline over the foot of the picture. A sideways scroll on a phone. */
.tt-wsb { margin-block: 40px 8px; padding-top: 16px; border-top: 3px solid var(--tt-text, #000); color: var(--tt-text, #000); }
.tt-wsb *, .tt-wsb *::before, .tt-wsb *::after { box-sizing: border-box; }
.tt-wsb__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.tt-wsb__head .tt-label { flex-basis: 100%; }
.tt-wsb__title { margin: 0; font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 900; font-size: 30px; line-height: 34px; letter-spacing: -0.02em; }
.tt-wsb__deck { margin: 0; font-family: var(--font-deck, "Instrument Serif", Georgia, serif); font-size: 20px; line-height: 26px; color: var(--tt-text-secondary, rgba(0, 0, 0, .62)); }
[lang="ur"] .tt-wsb__title, [lang="ur"] .tt-wsb__deck { font-family: var(--font-urdu); letter-spacing: 0; line-height: 1.7; }

.tt-wsb__items { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 15vw, 196px); gap: 14px; margin: 18px 0 0; padding: 0 0 10px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tt-wsb__item { scroll-snap-align: start; min-width: 0; }
.tt-wsb__card { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: #111; color: #fff; text-decoration: none; }
.tt-wsb__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 40%, rgba(0,0,0,.9) 100%); }
.tt-wsb__poster { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tt-wsb__card:hover .tt-wsb__poster, .tt-wsb__card:focus-visible .tt-wsb__poster { transform: scale(1.05); }
.tt-wsb__card:focus-visible { outline: 3px solid var(--tt-accent, #ff4200); outline-offset: 3px; }
.tt-wsb__bars { position: absolute; z-index: 1; top: 8px; inset-inline: 8px; display: flex; gap: 3px; }
.tt-wsb__bars i { flex: 1; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .5); }
.tt-wsb__bars i:first-child { background: #fff; }
.tt-wsb__text { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.tt-wsb__word { font-family: var(--font-nav, "Montserrat", Arial, sans-serif); font-size: 10px; line-height: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tt-accent, #ff4200); }
.tt-wsb__headline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-family: var(--font-display, "Chivo", Arial, sans-serif); font-weight: 800; font-size: 16px; line-height: 20px; letter-spacing: -0.01em; }
.tt-wsb__pages { font-family: var(--font-nav, "Montserrat", Arial, sans-serif); font-size: 10px; line-height: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
[lang="ur"] .tt-wsb__word, [lang="ur"] .tt-wsb__headline, [lang="ur"] .tt-wsb__pages { font-family: var(--font-urdu); letter-spacing: 0; text-transform: none; }
[lang="ur"] .tt-wsb__headline { font-weight: 700; line-height: 1.7; font-size: 15px; }

@media (max-width: 640px) {
	.tt-wsb { margin-block: 28px 4px; }
	.tt-wsb__title { font-size: 26px; line-height: 30px; }
	.tt-wsb__deck { font-size: 18px; }
	.tt-wsb__items { grid-auto-columns: 42%; gap: 10px; margin-inline: calc(-1 * var(--tt-margin-phone, 16px)); padding-inline: var(--tt-margin-phone, 16px); scroll-padding-inline: var(--tt-margin-phone, 16px); }
	.tt-wsb__headline { font-size: 15px; line-height: 19px; }
}
@media (prefers-reduced-motion: reduce) { .tt-wsb__poster { transition: none; } }
