.node--view-mode-full {
  margin-bottom: 2rem;
}

.page-node-type-prispevek #block-ereshnv-system-main,
.page-node-type-prispevek #block-ereshnv-local-tasks,
.page-node-type-prispevek [data-drupal-messages] {
  grid-row: 1;
}
.page-node-type-prispevek #block-ereshnv-local-tasks + #block-krovnaoddaja + #block-ereshnv-system-main {
  grid-row: 2;
}
.page-node-type-prispevek #block-ereshnv-local-tasks ~ #block-ereshnv-system-main {
  margin-top: 3rem;
}

.node--view-mode-full p,
.node--view-mode-full ul,
.node--view-mode-full ol {
  margin-bottom: .75rem;
  font-family: var(--body-text-font-family);
}
/* forsiramo levo poravnavo */
.node--view-mode-full p.text-align-justify {
  text-align: left;
}
.node--view-mode-full p strong {
  font-weight: 900;
}
.node--view-mode-full p > img {
  height: auto;
}
.node--view-mode-full img {
  max-width: 100%;
  height: auto;
}
.node--view-mode-full iframe {
  width: 100%;
  border: none;
}
.node--view-mode-full iframe[src*="bandcamp.com"] {
  width: 100%;
  min-height: 122px;
}
.node--view-mode-full iframe[src*="bandcamp.com"][src*="size=large"] {
  height: 122px !important;
  width: 100%;
}
.node--view-mode-full iframe[src*="bandcamp.com"][src*="size=small"] {
  min-height: 42px;
  height: 42px !important;
  margin-bottom: 1rem;
}
/*
.node--view-mode-full iframe[src*="youtube.com"] {
  min-height: 350px;
}
*/

.node--view-mode-full a {
  text-decoration: underline;
}

.node--view-mode-full h1 {
  margin-bottom: 1rem;
  margin-left: -.1rem;
  word-break: break-word;
}

.node--view-mode-full > h3 {
  display: none;
}

.node--view-mode-full ul li {
  list-style-type: disc;
}

.node--view-mode-full > .field--name-body h2 {
  margin-top: var(--header2-font-leading);
  margin-bottom: 1rem;
}

.node--view-mode-full > .field--name-body h3 {
  margin-top: var(--header3-font-leading);
  margin-bottom: 1rem;
}

.node--view-mode-full > .field--name-body details summary {
  margin-bottom: 1rem;
  position: relative;
  border-bottom: var(--stroke-width) solid var(--main-separator-color);
  padding-bottom: 1rem;
}
.node--view-mode-full > .field--name-body details summary:before {
  content: '';
  display: block;
  background-image: url(../images/puscica.svg);
  background-size: contain;
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: 0.75rem;
  right: .8rem;
  filter: invert(1);
  transform: rotate(90deg);
  z-index: 1;
}
[temna-tema] .node--view-mode-full > .field--name-body details summary:before {
  filter: none;
}
.node--view-mode-full > .field--name-body details summary:after {
  position: absolute;
  right: 0;
  top: .3rem;

  display: block;
  padding: 0.25rem 2.5rem .5rem 1rem;

  font-size: var(--body-font-size);
  line-height: var(--body-font-leading);
  content: "Prikaži";
  color: var(--main-bg-color);
  background-color: var(--main-text-color);
  border-radius: 2rem;
}
.node--view-mode-full > .field--name-body details[open] summary:after {
  content: 'Skrij';
}
.node--view-mode-full > .field--name-body details[open] summary:before {
  transform: rotate(-90deg);
}

.node--view-mode-full > .field.field--name-field-podnaslov {
  font-size: var(--header4-font-size);
  line-height: var(--header4-font-leading);
  margin-bottom: 2rem;
  word-break: break-word;
}

.node--view-mode-full audio-file, {
  margin-bottom: 2rem;
  cursor: pointer;
}
.node--view-mode-full audio-file > a,
.node--view-mode-full a.time-link {
  color: var(--header-text-color);
  padding: .1rem var(--tag-padding-x) .3rem;
  background: var(--header-bg-color);
  border: none;
  border-radius: 2rem;
  text-decoration: none;
}
.node--view-mode-full a.time-link strong {
  color: var(--header-text-color);
}

/*
.node--view-mode-full p > a.time-link:first-child {
  margin-left: 0;
}
*/
.node--view-mode-full audio-file > a:after,
.node--view-mode-full audio-file > a:after,
.node--view-mode-full a.time-link:after {
  content: '';
  display: inline-block;
  width: 1.6rem;
  height: 1rem;
  margin-left: .5rem;
  background-image: url("/themes/custom/ereshnv/images/audio.svg");
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  top: 2px;
}

.node--view-mode-full a.time-link {
  display: inline-block;
  margin: .5rem var(--tag-padding-x-neg);
}

.node--view-mode-full > .field {
  margin: 0 0 1.25rem;
}

.node--view-mode-full .field--name-field-slika-media {
  margin-bottom: 2rem;
  position: relative;
}
/* ce mamo naslovni video, skrij naslovno sliko! */
.node--view-mode-full > .field--name-field-naslovni-video + .field--name-field-slika-media {
  display: none;
}

.node--view-mode-full .field--name-field-slika-media img {
  /*max-height: 60vh; */
  width: 100%;
  height: auto;
}

.page-node-type-rtvs-video .node--view-mode-full > .field--name-field-video {
  background-color: #000000;
}
.page-node-type-rtvs-video .node--view-mode-full > .field--name-field-video + .field--name-field-slika-media {
  display: none;
}

.node--view-mode-full p[highlight] {
  text-shadow: var(--rumena) -6px -6px, var(--rumena) -6px 6px, var(--rumena) 6px -6px, var(--rumena) 6px 6px;
}
.node--view-mode-full p[highlight]::selection {
  text-shadow: none;
}
[temna-tema] .node--view-mode-full p[highlight] {
  /*color: var(--rumena); */
  /*text-shadow: none;*/
    text-shadow: var(--crna) -6px -6px, var(--crna) -6px 6px, var(--crna) 6px -6px, var(--crna) 6px 6px;
}
.node--view-mode-full p[highlight] > .time-link {
  box-shadow: var(--crna) 3px 3px, var(--crna) 3px -3px, var(--crna) -3px 3px, var(--crna) -3px -3px;
}
[temna-tema] .node--view-mode-full p[highlight] > .time-link {
  box-shadow: var(--main-text-color) 3px 3px, var(--main-text-color) 3px -3px, var(--main-text-color) -3px 3px, var(--main-text-color) -3px -3px;
}

.group-prispevek-info {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 1.5;
  margin-left: var(--tag-padding-x-neg);
}

.group-prispevek-info .field {
  flex: none;
  margin: 0;
}

.group-prispevek-info .field__item {
  flex: none;
  margin-right: 0.25rem;
}

.group-prispevek-info .field--name-field-oddaja-tip {
  display: flex;
  --link-normal-color: var(--main-text-color);
  --link-hover-color: var(--main-text-color);
  margin-right: .5rem;
  margin-bottom: .5rem;
  position: relative;
  top: -2px;
}
.group-prispevek-info .field--name-field-oddaja-tip a {
  font-weight: normal !important;
}

.group-prispevek-info .field--name-field-v-etru {
  margin-left: 0rem;
}

.group-prispevek-info .field--name-uid {
  float: left;
}
.group-prispevek-info .field--name-uid:before {
  content: '/';
  margin-right: 0.25rem;
}
.group-prispevek-info .field--name-uid a,
.group-prispevek-info .field--name-field-dodatni-avtorji a {
  text-decoration: none;
  position: relative;
  top: .2rem;
}

.group-prispevek-info .field--name-field-oddaja-tip .oddaja-level-0 {
  display: none;
}

.group-prispevek-info .field--name-field-oddaja-tip a {
  display: block;
  position: relative;
  /* padding: 0.25rem 0.5rem 0.35rem .5rem; */
  font-size: 1.2rem;
  padding: var(--tag-padding);
  line-height: 1rem;
  text-decoration: none;
}
.group-prispevek-info .field--name-field-oddaja-tip a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: var(--stroke-width) solid var(--category-accent-color);
  border-radius: 1rem;
  /*transition: .15s filter linear;*/
}
/*
.group-prispevek-info .field--name-field-oddaja-tip a:hover:before {
  filter: blur(2px);
}
*/

.node--view-mode-full .field--name-field-dodatni-avtorji {
  float: left;
  margin-left: .3rem;
  margin-right: 0;
}

.node--view-mode-full .field--name-field-posnetek-oddaje {
  margin-left: var(--tag-padding-x-neg);
  margin-bottom: 1.5rem;
}
.node--view-mode-full .field--name-field-posnetek-oddaje audio-file > button,
.node--view-mode-full .field--name-field-media-audio-file audio-file > button {
  display: none;
}
.node--view-mode-full audio-file > a {
  display: block;
  border-radius: 2rem;
}
.node--view-mode-full .field--name-field-priloge {
  margin-top: 2rem;
}
.node--view-mode-full .field--name-field-priloge > .field__label {
  margin-bottom: 1rem;
}
.node--view-mode-full .field--name-field-priloge > .field__items > .field__item {
  margin-bottom: 2rem;
}

.field--type-entity-reference:not(.field--name-field-priloge) .field__items {
  display: flex;
  flex-wrap: wrap;
  margin-left: -.5rem;
  --link-normal-color: var(--main-text-color);
  --link-hover-color: var(--main-text-color);
}
.field--type-entity-reference.field--name-field-priloge .field__items {
  margin-left: -.8rem;
}

.field--type-entity-reference:not(.field--name-field-priloge) .field__items .field__item {
  flex: none;
  margin: 0 .5rem .5rem 0;
}

.field--type-entity-reference:not(.field--name-field-priloge) .field__items a {
  position: relative;
  font-size: .9rem;
  display: block;
  padding: var(--tag-sm-padding);
  line-height: 1;
  text-decoration: none;
}
.field--type-entity-reference:not(.field--name-field-priloge) .field__items a::before {
  content: '';
  position: absolute;
  top: .1rem;
  left: 0;
  right: 0;
  bottom: 0;
  border: var(--stroke-width) solid var(--tag-accent-color);
  border-radius: 1rem;
  z-index: -1;
  transition: .15s filter linear;
}
.field--type-entity-reference:not(.field--name-field-priloge) .field__items a:hover::before {
  filter: blur(2px);
}

.field--type-entity-reference:not(.field--name-field-priloge) .field__items a:hover,
.field--type-entity-reference:not(.field--name-field-priloge) .field__items a:focus {
  border-color: rgba(0,0,0,0.5);
  text-decoration: none;
}

.embedded-entity {
  position: relative;
  float: right;
  margin: 0 auto 1rem;
  word-break: break-word;
}

.embedded-entity .node--is-teaser p,
.embedded-entity .node--is-teaser .glava,
.embedded-entity .node--is-teaser .field--name-field-oddaja-tip {
  margin-bottom: 0;
}

.embedded-entity .node--is-teaser .field--name-field-slika-media {
  margin-bottom: .8rem;
}

.node--view-mode-full .field--name-field-sponsor-reference {
  margin: 3rem 0;
  clear: both;
}

.field--name-field-sponsor-reference img {
  vertical-align: top;
}

.sponsored-head {
  display: flex;
  margin: 0 1rem 0.5rem;
  color: #676767;
  align-items: center;
}

.sponsored-head:before, .sponsored-head:after {
  display: block;
  flex: 1;
  content: "";
  height: 1px;
  background-color: #676767;
  opacity: 0.5;
}

.sponsored-head:before {
  margin-right: 0.5rem;
}

.sponsored-head:after {
  margin-left: 0.5rem;
}

.field--name-field-ap-oznake a {
  text-decoration: none;
}

.kategorija-title a {
  color: var(--category-accent-color);
  text-decoration: none;
}

.field--name-field-video > .field__item {
  margin-bottom: 2rem;
}

/* Glasbene opreme kot tip vsebine */
.field--name-field-skladba {
  overflow-x: auto;
}
.field--name-field-skladba table {
  border-collapse: collapse;
  width: 100%;
}
.field--name-field-skladba th {
  display: none;
}
.field--name-field-skladba td {
  padding: .5rem .5rem .5rem 0;
}
.field--name-field-skladba td:last-child {
  padding-right: 0;
}
.field--name-field-skladba tbody tr:not(:last-child) td {
  border-bottom: calc(var(--stroke-width) / 2) solid var(--main-text-color);
}
.field--name-field-skladba .btn {
  display: none;
}

.donacijska-pasica {
  color: var(--header-text-color);
  display: flex;
  flex-direction: row;
  align-items: center;

  padding: 2rem 3rem;
  border-radius: 10rem;

  background: var(--header-bg-color);
  font-size: var(--header4-font-size);
  line-height: 1 !important;
}
.donacijska-pasica a {
  color: var(--header-text-color);
  text-decoration: none;
}
.donacijska-pasica p {
  line-height: 1.2;
  margin-bottom: .5rem;
}

.donacijska-pasica .gumb {
  position: reltative;
  display: flex;
  align-items: center;
  float: right;
  padding: .5rem 2.5rem 1rem;
  margin-left: 1rem;

  font-size: var(--header2-font-size);
  line-height: var(--header2-font-leading);

  border: 3px solid var(--header-text-color);
  border-radius: 50% 50%;
}
.donacijska-pasica .gumb:after {
  content: '';
  display: block;
  width: 3rem;
  height: 3rem;
  margin-left: .7rem;
  background-image: url("/themes/custom/ereshnv/images/puscica.svg");
  background-repeat: no-repeat;
  background-size: contain;
  position: relative;
  top: 4px;
}

/* margin okoli komentarjev */
.node--view-mode-full .comment-section {
  margin: 2.5rem 0;
}


/* Toggle gumbi (recimo na info page) */
.toggle-show label {
  display: inline-block;
  background-color: transparent;
  color: var(--main-text-color);
  border: var(--stroke-width) solid var(--main-text-color);
  border-radius: 2rem;
  padding: .3rem .8rem;
  cursor: pointer;
}
.toggle-show label.izbran {
  color: var(--main-bg-color);
  background-color: var(--main-text-color);
}
.toggle-show label input {
  width: 0;
  position: fixed;
  opacity: 0;
}
.toggle-show label br {
  display: none;
}
.toggle-show .content > * {
  display: none;
}

#block-ereshnv-views-block-uredniski-bannerji-block-1,
#block-napovedi-prispevek {
  position: relative;
  z-index: 10;
}

/* Accordion! */
.ckeditor-accordion-container > dl,
.ckeditor-accordion-container > dl dd {
  border: none;
  padding: 0 !important;
}
.ckeditor-accordion-container dt a {
  margin-top: var(--header3-font-leading);
  margin-bottom: 1rem;
  padding: 0 !important;

  background-color: transparent !important;
  color: var(--main-text-color) !important;
  border: none !important;

  font-size: var(--header3-font-size);
  line-height: var(--header3-font-leading);
  text-decoration: none !important;
}
.ckeditor-accordion-container dt {
  position: relative;
}
.ckeditor-accordion-container dt a span {
  display: none !important;
}
.ckeditor-accordion-container dt a::before {
  content: '';
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;

  position: relative;
  right: 0;
  top: 2px;
  margin-right: .5rem;

  background-image: url("../images/puscica.svg");
  background-size: contain;
  background-repeat: no-repeat;
}
[temna-tema] .ckeditor-accordion-container dt a::before {
  filter: invert(1);
}
.ckeditor-accordion-container dt.active a::before {
  transform: rotate(90deg);
}

.page-node-type-prispevek .webform-submission-data label {
  display: none;
}

/* malo prostora, da bolj zadiha */
#block-ereshnv-webform > h3,
#block-ereshnv-views-block-peticija-za-palestino-podpisi-block-1 > h3 {
  margin-bottom: 1rem;
}
#block-ereshnv-webform .js-form-item {
  margin-bottom: 2rem;
}
#block-ereshnv-views-block-peticija-za-palestino-podpisi-block-1 {
  margin-top: 3rem;
  margin-bottom: 2rem;
}
#block-ereshnv-views-block-peticija-za-palestino-podpisi-block-1 .view-header {
  margin-bottom: 1rem;
}

#block-ereshnv-views-block-peticija-za-palestino-podpisi-block-1 .form-item-ime-in-priimek-naziv:before {
  content: '- ';
}

/* manjsi naslov na fonu */
@media screen and (max-width: 1440px) {
  h1.page-title {
    font-size: var(--header2-font-size);
    line-height: var(--header2-font-leading);
  }
  /*
  h1.kategorija-title {
    font-size: var(--header2-font-size);
    line-height: var(--header2-font-leading);
  }
*/
}

/** RESPONSIVE **/
@media (min-width:640px) {
  .node--view-mode-full .field--name-field-avtorstvo-slike {
    margin-top: .5rem;
  }

  .node--view-mode-full .field--name-body iframe {
    max-width: calc(70% - 2rem);
    width: 100%;
  }
  /*
  .node--view-mode-full .field--name-body iframe.media-oembed-content {
    max-width: 100%;
  }
  */

  .embedded-entity {
    float: right;
    margin: .5rem 0 2rem 2rem;
    clear: right;
    max-width: 30%;
  }

  .embedded-entity .field--name-field-slika-media {
    margin: 0;
  }

  .node--view-mode-full .field--name-field-sponsor-reference {
    margin: 4rem 0 2.5rem;
  }

  .sponsored-head {
    margin: 0 1.5rem 0.5rem;
  }
}

@media (min-width: 960px) {
  .node--view-mode-full {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-column-gap: var(--grid-gutter);
  }

  .node--view-mode-full > * {
    grid-column: 2 / span 9;
    z-index: 10;
  }

  .node--view-mode-full > .field--name-field-sponsor-reference {
    grid-column: 1 / span 10;
  }

  #block-ereshnv-webform,
  #block-ereshnv-views-block-peticija-za-palestino-podpisi-block-1,
  .page-node-type-prispevek #block-ereshnv-local-tasks {
    grid-column: 4 / span 8;
  }
  .page-node-type-prispevek #block-ereshnv-local-tasks {
    position: relative;
    top: -.65rem;
  }

  .node--view-mode-full > .field--name-body,
  .node--view-mode-full > .field--name-field-skladba {
    margin-bottom: 4rem;
  }
  .node--view-mode-full > .field--name-body > img {
    margin: 2rem 0;
  }

  .embedded-entity {
    margin: .5rem -5rem 2rem 2rem;
    width: 14rem;
  }
}

@media (min-width: 1280px) {
  .embedded-entity {
    margin: .5rem -9rem 3rem 3rem;
    width: 18rem;
  }
  .node--view-mode-full > * {
    grid-column: 2 / span 8;
  }
}

@media (max-width: 640px) {
  .group-prispevek-info {
    align-items: center;
  }
  .group-prispevek-info .field--name-field-oddaja-tip {
    top: 3px;
    margin-right: 0;
  }
  .group-prispevek-info .field--name-field-oddaja-tip .oddaja-level-0 {
    display: block;
  }
  .group-prispevek-info .field--name-field-v-etru {
    float: left;
    margin-left: var(--tag-padding-x);
  }
  .node--view-mode-full h1 {
    margin-bottom: .5rem;
  }
  .node--view-mode-full .field--name-field-posnetek-oddaje {
    margin-bottom: .85rem;
  }

  .embedded-entity {
    float: none;
    clear: both;
  }

  /* isto kot .view-zadnje-objave na front */
  /* @TODO se da tole poenotit za poenostavitev? */
  .embedded-entity > div {
    position: relative;
    display: grid;
    padding: 1rem 0;
    border-top: var(--stroke-width) solid var(--main-separator-color);
    border-bottom: var(--stroke-width) solid var(--main-separator-color);
    grid-template-columns: calc(100% / 3 + var(--grid-gutter) / 3);
    grid-row-gap: 0;
    grid-column-gap: .8rem;
    grid-template-rows: auto auto auto 1fr;
  }
  .embedded-entity > div .field {
    grid-column: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Da ne odreže črk, kot je j */
    padding-bottom: .1rem;
    margin-bottom: -.1rem;
  }
  .embedded-entity > div .field--name-field-oddaja-tip {
    /*overflow-x: scroll;*/
    overflow: scroll;
    margin-right: -1rem;
    margin-bottom: -.3rem;
    row-gap: .3rem;
  }
  /*
  .embedded-entity > div .field--name-field-oddaja-tip:after {
    content: '';
    position: absolute;
    top: 0;
    right: -1.2rem;
    width: 2rem;
    height: 100%;
    background: linear-gradient(to right, var(--main-bg-trans), var(--main-bg-color));
    pointer-events: none;
  }
*/

  .embedded-entity > div .field--name-field-slika-media {
    margin-bottom: 0;
  }
  .embedded-entity > div .glava {
    grid-column: 1;
    grid-row: span 5;
    margin-bottom: auto;
  }

  /* na mobilnih napravah naj bo odstavek po prvem povezanem prispevku prikazan pred njim! */
  .node--view-mode-full .field--name-body {
    display: flex;
    flex-direction: column;
  }

  .node--view-mode-full .field--name-body .embedded-entity:nth-child(1) + p {
    order: -1;
  }
}
