.hero-wrapper {
  grid-area: hero-wrapper;
  display: grid;
  grid-template-areas: 'hero-frame'
                       'paging';
  grid-template-rows: auto auto;
  overflow: hidden;
  margin-bottom: 5px;
}

.hero-frame {
  grid-area: hero-frame;
  width: 100%;
  overflow: hidden;
}

.article.hero {
  width: 100%;
  height: clamp(300px, 50vw, 500px);
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-sizing: border-box;
  display: flex;
  flex-direction: column-reverse;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.article.hero::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 225px;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--color-black) 65%, transparent) 0%,
    transparent 100%
  );
  transform: rotate(10deg) translate(-67px, 0);
  transform-origin: left bottom;
}

.article.hero .article-details-wrapper {
  padding: 35px;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}

.article.hero .article-details-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  mask-image: linear-gradient(to top, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
  pointer-events: none;
}

.article.hero .article-options {
  position: relative;
  flex-shrink: 0;
}

.option {
  box-sizing: border-box;
  border-radius: 50px;
  padding-top: 12.5px;
  padding-bottom: 12px;
  padding-left: 16.5px;
  padding-right: 16px;
  transition: all .15s ease;
  font-size: .95em;
  line-height: 1;
  white-space: nowrap;
}

.option:hover {
  transition: all .15s ease;
}

.inline-icon {
  margin-left: 5.5px;
}

.option.read-article {
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.option.read-article:hover {
  border-color: var(--color-white);
  background-color: var(--color-white);
  color: var(--color-black);
  box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
}

.article.hero .article-details {
  position: relative;
  color: var(--color-white);
  max-width: 506px;
  width: 100%;
}

.article.hero .article-attributes {
  border-bottom: 0;
  padding-bottom: 0;
}

.article.hero .article-title {
  font-size: clamp(1.5rem, 3.8vw, 2.275rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.article.hero .article-hook {
  color: var(--color-white);
  margin-bottom: 0;
}

.frame-title.heavy {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5.5px;
}

.frame-title.heavy::after {
  content: '';
  height: 2px;
  background-color: var(--color-primary);
  box-sizing: border-box;
  width: auto;
  display: inline-block;
  flex: 1;
}

.inlist-video {
  height: 0;
	padding-bottom: 56.25%;
  width: 100%;
  border-radius: 12px;
  margin-top: 21px;
  margin-bottom: calc(21px - .15px);
  position: relative;
	overflow: hidden;
}

.inlist-video iframe, .inlist-video object, .inlist-video embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.main-frame > nav {
  grid-area: nav;
}

.main-frame > nav:not(:empty) {
  margin-bottom: 30px;
}

.articles-frame {
  grid-area: articles;
  display: flex;
  flex-direction: column;
  gap: 35px;
  box-sizing: border-box;
}

.load-more {
  align-self: center;
  margin-top: 5px;
  box-sizing: border-box;
  padding-top: 12.5px;
  padding-bottom: 12px;
  padding-left: 16.5px;
  padding-right: 16px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50px;
  color: var(--color-primary);
  font-size: .95em;
  line-height: 1;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}

.load-more:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.load-more.loading {
  opacity: .5;
  cursor: default;
}

.list-frame {
  width: 100%;
  max-width: calc(1100px + 2 * 45px);
  box-sizing: border-box;
  padding-left: 45px;
  padding-right: 45px;
  padding-top: 0;
  padding-bottom: 30px;
  margin: 0 auto;
}

.list-frame .frame-title {
  margin-bottom: 35px;
}

.article {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.article-image {
  flex-shrink: 0;
  width: 240px;
  height: 135px;
  border-radius: 6px;
  background-color: color-mix(in srgb, var(--color-black) 5%, var(--color-white));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.article-image .article-image-overlay {
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  color: var(--color-white);
  font-size: 2.4em;
  text-shadow: 0 0 25px var(--color-black);
  transition: opacity .11s ease-in;
  opacity: 0;
  pointer-events: none;
}

.article-image:hover .article-image-overlay {
  transition: opacity .11s ease-in;
  opacity: 1;
}

.article-details {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  box-sizing: border-box;
  min-width: 0;
  padding-top: 8px;
}

.article-title {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  margin-bottom: 7px;
  font-family: 'RobotoCondensed', sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3em;
  font-size: 1.345em;
  display: inline-block;
}

.article-hook {
  text-decoration: none;
  color: inherit;
  font-family: Lora, serif;
  font-size: 1.09rem;
  line-height: 1.53;
  margin-bottom: 6.7px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--color-text-secondary);
}

.article-attributes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.attribute {
  flex-shrink: 0;
  font-size: .95em;
  transition: all .15s ease;
  text-decoration: none;
  font-family: 'RobotoCondensed';
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.attribute.category {
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.attribute.tag {
  position: relative;
  color: var(--color-text-tertiary);
}

.attribute.tag::before {
  content: '# ';
}

.attribute.reading-time {
}

p {
  font-size: 1.179rem;
  margin: 0;
  margin-block-start: 1.795em;
  margin-block-end: 1.795em;
}

p:first-of-type {
  margin-block-start: 0;
}

p:last-of-type {
  margin-block-end: 0;
}


.slick-slider {
  margin-bottom: 0 !important;
}

.slick-list, .slick-track {
  box-sizing: border-box;
  height: 100%;
}

.slick-slide {
  margin: 0 15px;
}

@keyframes showProgress {
  
  from {
    width: 0%;
  }
  
  to {
    width: 100%;
  }
}

.paging {
  grid-area: paging;
  width: 100%;
  position: relative;
  margin-bottom: 35px;
}

.paging:not(:empty) {
  height: calc(25px * 2 + 7px);
  margin-bottom: 0;
}

.paging .slick-dots {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.paging .slick-dots li {
  transition: all .45s ease;
  height: 7px;
  width: 7px;
  background-color: var(--color-secondary);
  border-radius: 50px;
  overflow: hidden;
}

.paging .slick-dots li.slick-active {
  width: 49px;
  cursor: default;
}

.paging .slick-dots li.slick-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 7px;
  border-radius: 0 50px 50px 0;
  background-color: var(--color-primary);
  animation: showProgress 6s linear forwards;
}

.paging .slick-dots li.slick-active.paused::before {
  animation-play-state: paused;
}

.paging .slick-dots li button:before {
  display: none;
}

.wide-wrapper {
  grid-area: wide-wrapper;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.wide-wrapper section:not(:empty) {
  box-sizing: border-box;
  margin-top: 10px;
  padding-top: 30px;
  /* border-top: 1px solid var(--color-secondary); */
}

.frame-content {
  display: flex;
  flex-direction: row;
  gap: 25px;
  justify-content: flex-start;
  margin-top: 25px;
}

.frame-content .video {
  background-color: red;
}

aside .facebookForwardFrame {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.facebookForwardFrame:hover .siteHeroImage {
  transition: all .15s ease;
  transform: scale(1.03);
}

.facebookForwardFrame .siteCoverImage {
  width: 100%;
  height: 145px;
  background-position: 50% 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('/images/misc/site_cover_image.webp');
  display: grid;
  place-items: center;
  overflow: hidden;
}

.siteCoverImage .siteHeroImage {
  transition: all .15s ease;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
  box-shadow: 0 0 25px rgba(0, 0, 0, .85);
  box-sizing: border-box;
  border: 1px solid white;
  margin-bottom: 1px;
  background-image: url('/images/icons/favicon.png');
}

.facebookForwardFrame .facebookLogo {
  background-color: rgb(8, 102, 255);
  background-image: url('/images/icons/Facebook_Logo_Secondary.png');
  width: 100%;
  height: 44px;
  background-size: 27px;
  background-repeat: no-repeat;
  background-position: 13px calc(50% - .5px);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  padding-right: 18px;
  padding-bottom: 2px;
  font-style: italic;
}

.facebookForwardFrame .facebookLogo .gotoFacebook::after {
  content: '❯';
  margin-left: 6px;
}

/* =====================================================================
   Responzivní vrstva indexu / výpisu. Desktop na plné šíři beze změn.
   ===================================================================== */
/* Hero článek – jakmile se obsah zúží, text a tlačítko přejdou pod sebe,
   ať text netlačí na tlačítko a nezalamuje se v něm. */
@media (max-width: 860px) {

  .article.hero .article-details-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .article.hero .article-details {
    max-width: none;
  }
}

@media (max-width: 600px) {

  .list-frame {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hero článek – menší vnitřní odsazení */
  .article.hero .article-details-wrapper {
    padding: 22px;
    gap: 16px;
  }

  /* Karta článku – obrázek nad textem */
  .articles-frame {
    gap: 28px;
  }

  .article {
    flex-direction: column;
    gap: 14px;
  }

  .article-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .article-details {
    padding-top: 0;
  }

  .article-title {
    font-size: 1.2em;
  }

  .article-hook {
    font-size: 1rem;
  }

  .article-attributes {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
}