section.topbox__block.row {
  position: relative;
  height: 480px;
  overflow: hidden;
}

.topbox__block--main {
  display: flex;
  min-height: inherit;
  position: relative;
  flex-basis: 100%;
  width: auto;
  height: 480px;
  z-index: 1000;
}
.article.topbox__block__element {
  position: relative;
}
.article.topbox__block__element:not(:nth-of-type(1)) .topbox__block__tags {
  display: none;
}

.article.topbox__block__element:nth-of-type(1) figure,
.article.topbox__block__element:nth-of-type(2) figure,
.article.topbox__block__element:nth-of-type(3) figure {
  width: 100%;
  height: 100%;
  background-color: #999999;
  z-index: -1;
  position: absolute;
  left: 0;
  top: 0;
}
.article.topbox__block__element:nth-of-type(1):nth-last-of-type(3)
  figure::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

.article.topbox__block__element:nth-of-type(2):nth-last-of-type(2)
  figure::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

.article.topbox__block__element:nth-of-type(3):nth-last-of-type(1)
  figure::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

.topbox__block--text-holder {
  padding: 30px;
  width: auto;
  height: auto;
  z-index: 2;
}

.topbox__block__tags {
  margin-bottom: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  text-align: center;
}

.topbox__block__tag-link {
  background-color: #157efc;
  padding: 2px 5px;
  line-height: 15px;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "DIN Pro";
}

/* @media screen and (min-width: 1980px) {
  .topbox__block__tag-link {
    background-color: #157efc;
    color: #fff;
    margin-right: 0.521vw;
    padding: 0.365vw 0.469vw;
    line-height: 0.625vw;
    font-size: 0.625vw;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "DIN Pro";
  }
} */
.topbox__block--title {
  font-size: 2.75em;
  /* font-size: 36px; */
  font-weight: 700;
  white-space: pre-line;
  color: #fff;
  padding-top: 0.5vw;
}

.topbox__block--lead {
  display: none;
}

.topbox__block--connected {
  /* position: absolute;
  top: 30px;
  left: 500px;
  width: 240px; */
  height: 85%;
  overflow: hidden;
  z-index: 1000;
  border-left: 1px solid #fff;
  margin-top: 30px;
}

.topbox__block--connected:empty {
  display: none;
}

.topboxlist__block--connected-title {
  background-color: #888;
  color: #fff;
  display: flex;
  justify-content: flex-start;
  width: max-content;
  margin-left: 1vw;
}

/* Ha egy van START*/
.article.topbox__block__element:nth-of-type(1):last-child {
  width: 100%;
  flex-basis: 100%;
  max-height: 45vw;
  display: flex;
  /* flex-wrap: wrap; */
}

.article.topbox__block__element:nth-of-type(1):last-child img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 1;
  max-height: 45vw;
}

.article.topbox__block__element:nth-of-type(1):last-child
  .topbox__block--text-holder {
  width: 800px;
  height: auto;
  /* height: -webkit-fill-available;
  height: -moz-available; */
}

.article.topbox__block__element:nth-of-type(1):last-child figure::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

.topbox__block--main[data-count="1"] + .topbox__block--connected {
  width: 300px;
}

/* Ha egy van END*/

/* Ha az első és utolsó előtti START*/
.article.topbox__block__element:nth-of-type(1):nth-last-of-type(2) {
  width: 64%;
  border-right: 10px solid #fff;
  display: flex;
}

.article.topbox__block__element:nth-of-type(1):nth-last-of-type(2) figure {
  height: 100%;
}

.article.topbox__block__element:nth-of-type(1):nth-last-of-type(2) img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.article.topbox__block__element:nth-of-type(1):nth-last-of-type(2)
  figure::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Ha az első és utolsó előtti END*/

/* Ha csak kettő és az utolsó START */
.article.topbox__block__element:nth-of-type(2):last-child {
  width: 36%;
}
.article.topbox__block__element:nth-of-type(2):last-child figure::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4);
}
.article.topbox__block__element:nth-of-type(2):last-child figure {
  height: 100%;
}

.article.topbox__block__element:nth-of-type(2):last-child img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article.topbox__block__element:nth-of-type(2):last-child
  .topbox__block--title {
  font-size: 2.5em;
  /* font-size: 28px; */
  font-weight: 700;
  white-space: pre-line;
  font-family: "DIN Pro";
  color: #fff;
  padding: 0;
}

/* Ha csak kettő és az utolsó END */

/* Ha három és az utolsó előtti */
.article.topbox__block__element:nth-of-type(2):nth-last-of-type(2),
.article.topbox__block__element:nth-of-type(3):last-child {
  height: 49%;
}

.article.topbox__block__element:nth-of-type(2):nth-last-of-type(2)
  .topbox__block--title,
.article.topbox__block__element:nth-of-type(3):last-child
  .topbox__block--title {
  font-size: 1.75em;
  font-weight: 700;
  white-space: pre-line;
  font-family: "DIN Pro";
  max-height: 5vw;
  color: #fff;
}

.article.topbox__block__element:nth-of-type(1):nth-last-of-type(3) {
  border-right: 10px solid #fff;
  width: 66%;
  display: flex;
}

.article.topbox__block__element:nth-of-type(1):nth-last-of-type(3) figure {
  width: 100%;
  height: 100%;
}

.article.topbox__block__element:nth-of-type(1):nth-last-of-type(3) img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.article.topbox__block__element:nth-of-type(2):nth-last-of-type(2) figure,
.article.topbox__block__element:nth-of-type(3):last-child figure {
  width: 100%;
  height: 100%;
}

.article.topbox__block__element:nth-of-type(2):nth-last-of-type(2) img,
.article.topbox__block__element:nth-of-type(3):last-child img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.article.topbox__block__element:nth-of-type(2):nth-last-of-type(2) {
  position: absolute;
  top: 0;
  right: 0;
  width: 33%;
  border-bottom: 5px solid #fff;
}

.article.topbox__block__element:nth-of-type(3):last-child {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 33%;
  border-top: 5px solid #fff;
}

/* TOPBOXLIST */

section.topboxlist__block.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: scroll;
}

.article.topboxlist__block__element {
  max-width: 340px;
  margin: 0 1vw;
}

.topboxlist__block--title {
  font-weight: 600;
  color: #fff;
  font-family: "DIN Pro";
  font-size: 0.95em;
}

.article.topboxlist__block__element .topboxlist__block--figure,
.article.topboxlist__block__element .topboxlist__block--lead,
.topboxlist__block__tags {
  display: none;
}

.topboxlist__block--text-holder {
  padding: 1vw 0 0 0;
}

/* TOP */
@media screen and (max-width: 1000px) {
  .layout-block.topbox__block {
    max-width: 100%;
    overflow: hidden;
    min-width: 100%;
  }
  .topbox__block--text-holder {
    width: 100%;
  }
  section.topbox__block.row {
    margin: 0;
    max-width: 100%;
    position: relative;
    height: auto;
  }
  .article.topbox__block__element:nth-of-type(1):nth-last-of-type(3),
  .article.topbox__block__element:nth-of-type(1):nth-last-of-type(2),
  .article.topbox__block__element:nth-of-type(1):last-child {
    flex-wrap: wrap;
  }
  .topbox__block--main {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    position: relative;
    flex-wrap: wrap;
    width: 100%;
    min-height: 600px;
    flex-basis: 100%;
    height: auto;
  }
  .topbox__block--connected {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    flex-wrap: wrap;
    /* display: none; */
  }
  .article.topbox__block__element {
    border: 0;
    margin-bottom: 0;
    max-width: 100%;
    flex-basis: 100%;
    width: 100%;
    position: relative;
  }
  .article.topbox__block__element:nth-of-type(2) figure,
  .article.topbox__block__element:nth-of-type(3) figure {
    position: relative;
  }
  .article.topbox__block__element:nth-of-type(1):nth-last-of-type(3),
  .article.topbox__block__element:nth-of-type(1):nth-last-of-type(2),
  .article.topbox__block__element:nth-of-type(1):last-child {
    min-height: 400px;
    max-height: unset;
    flex-basis: 100%;
    height: initial;
  }
  .article.topbox__block__element:nth-of-type(1):nth-last-of-type(3) img,
  .article.topbox__block__element:nth-of-type(1):nth-last-of-type(2) img,
  .article.topbox__block__element:nth-of-type(1):last-child img {
    max-height: unset;
  }
  .article.topbox__block__element:nth-of-type(2):last-child {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
  }
  .article.topbox__block__element:nth-of-type(2):last-child figure::before {
    content: unset;
  }

  .article.topbox__block__element:nth-of-type(2):last-child
    .topbox__block--title {
    color: #000;
  }
  .topbox__block--figure {
    width: 100%;
    height: 100%;
    background-color: #999999;
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
  }

  .topbox__block--img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
  }

  .article.topbox__block__element:nth-of-type(1):nth-last-of-type(2) {
    width: 100%;
    border-right: 0;
    margin-bottom: 1vh;
  }

  .article.topbox__block__element:nth-of-type(2):last-child {
    width: 100%;
    margin-bottom: 1vh;
  }

  .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2),
  .article.topbox__block__element:nth-of-type(3):last-child {
    width: 100%;
    height: 100%;
    margin-bottom: 1vh;
  }

  .article.topbox__block__element:nth-of-type(1):nth-last-of-type(3) {
    width: 100%;
    border-right: 0;
  }

  .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2),
  .article.topbox__block__element:nth-of-type(3):nth-last-of-type(1) {
    margin-bottom: 10px;
    display: flex;
    padding: 10px 0 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-left: 0;
  }

  .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2)
    figure::before,
  .article.topbox__block__element:nth-of-type(3):nth-last-of-type(1)
    figure::before {
    content: unset;
    background-color: unset;
  }

  .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2)
    .topbox__block__tags,
  .article.topbox__block__element:nth-of-type(3):nth-last-of-type(1)
    .topbox__block__tags {
    display: none;
  }

  .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2)
    .topbox__block--figure,
  .article.topbox__block__element:nth-of-type(3):nth-last-of-type(1)
    .topbox__block--figure {
    position: relative;
    width: 100%;
    height: 218px;
  }

  .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2) {
    position: relative;
    width: 100%;
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .article.topbox__block__element:nth-of-type(3):last-child {
    position: relative;
    width: 100%;
    margin-bottom: 1vh;
  }

  .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2)
    .topbox__block--title,
  .article.topbox__block__element:nth-of-type(3):last-child
    .topbox__block--title {
    max-height: unset;
    color: #000000;
    font-size: 1.75em;
    line-height: inherit;
    white-space: inherit;
  }
  .dark
    .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2)
    .topbox__block--title,
  .dark
    .article.topbox__block__element:nth-of-type(3):last-child
    .topbox__block--title {
    color: #fff;
  }
  .topbox__block--text-holder {
    width: 100%;
  }

  .topbox__block--text-holder {
    position: relative;
    top: unset;
    left: unset;
    right: unset;
    bottom: unset;
    width: unset;
  }

  .topbox__block--title {
    font-size: 36px;
  }

  .topbox__block--connected .topboxlist__block--title {
    font-weight: 600;
    color: #fff;
    font-family: "DIN Pro";
    font-size: 1.25rem;
  }
  .article.topboxlist__block__element {
    max-width: unset;
  }
  .topbox__block--connected {
    position: relative;
    border-left: 0;
    width: 100%;
    height: auto;
  }
  .article.topbox__block__element:nth-of-type(2):last-child {
    padding: 0 10px;
  }
  .article.topbox__block__element:nth-of-type(2):last-child
    .topbox__block--title {
    font-size: 34px;
    line-height: 41px;
    white-space: inherit;
  }
  .article.topbox__block__element:nth-of-type(2):last-child
    .topbox__block--text-holder {
    padding: 10px 0;
  }
  .article.topbox__block__element:nth-of-type(2):nth-last-of-type(2)
    .topbox__block--text-holder,
  .article.topbox__block__element:nth-of-type(3):last-child
    .topbox__block--text-holder {
    padding: 0;
  }
}

/* TopList */
@media screen and (max-width: 1000px) {
  section.topboxlist__block.row {
    flex-direction: column;
  }
  .topbox__block--text-holder {
    padding: 30px 10px;
  }
  section.topboxlist__block.row button.plus {
    width: 44px;
    height: 35px;
  }

  .article.topboxlist__block__element:nth-of-type(1):last-child {
    width: auto;
    border-bottom: 1px solid #eee;
    padding: 10px;
  }

  .article.topboxlist__block__element:nth-of-type(1):nth-last-of-type(2),
  .article.topboxlist__block__element:nth-of-type(2):last-child {
    width: auto;
    border-bottom: 1px solid #eee;
    padding: 10px;
  }

  .article.topboxlist__block__element:nth-of-type(1):nth-last-of-type(3),
  .article.topboxlist__block__element:nth-of-type(2):nth-last-of-type(2),
  .article.topboxlist__block__element:nth-of-type(3):last-child {
    width: auto;
    border-bottom: 1px solid #eee;
    padding: 10px;
  }

  .article.topboxlist__block__element:nth-of-type(1):nth-last-of-type(4),
  .article.topboxlist__block__element:nth-of-type(2):nth-last-of-type(3),
  .article.topboxlist__block__element:nth-of-type(3):nth-last-of-type(2),
  .article.topboxlist__block__element:nth-of-type(4):last-child {
    width: auto;
    border-bottom: 1px solid #eee;
    padding: 10px;
  }

  .article.topboxlist__block__element:nth-of-type(1):nth-last-of-type(5),
  .article.topboxlist__block__element:nth-of-type(2):nth-last-of-type(4),
  .article.topboxlist__block__element:nth-of-type(3):nth-last-of-type(3),
  .article.topboxlist__block__element:nth-of-type(4):nth-last-of-type(2),
  .article.topboxlist__block__element:nth-of-type(5):last-child {
    width: auto;
    border-bottom: 1px solid #eee;
    padding: 10px;
  }

  .article.topboxlist__block__element:nth-of-type(1):nth-last-of-type(6),
  .article.topboxlist__block__element:nth-of-type(2):nth-last-of-type(5),
  .article.topboxlist__block__element:nth-of-type(3):nth-last-of-type(4),
  .article.topboxlist__block__element:nth-of-type(4):nth-last-of-type(3),
  .article.topboxlist__block__element:nth-of-type(5):nth-last-of-type(2),
  .article.topboxlist__block__element:nth-of-type(6):last-child {
    width: auto;
    padding: 5px 10px;
    border-bottom: 1px solid #ededed;
    margin: 5px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }
  .article.topboxlist__block__element:last-of-type {
    border-bottom: 0 !important;
  }
}
