/* Collection skin only. XML, generated markup, media URLs and controls stay intact. */
.udz-collection #myBackground,
.udz-collection > .container {
  min-height: 100vh;
  padding-bottom: 48px !important;
}

.udz-collection #myBackground > .row.bg-info,
.udz-collection > .container > .row.bg-info {
  height: auto !important;
  background: transparent !important;
}

.udz-collection #myBackground > .row.bg-info > .col-12,
.udz-collection #myBackground > .col-12,
.udz-collection > .container > .row.bg-info > .col-12 {
  position: relative;
  margin: 24px 24px 28px;
  padding: 30px 28px;
  max-width: calc(100% - 48px);
  flex-basis: calc(100% - 48px);
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 20px;
  background: linear-gradient(115deg, #edf3fc, #f6f9fe 72%, #f9f2df) !important;
  box-shadow: 0 8px 28px rgba(23, 55, 90, 0.025);
}

.udz-collection #myBackground > .row.bg-info > .col-12::before,
.udz-collection #myBackground > .col-12::before,
.udz-collection > .container > .row.bg-info > .col-12::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 4px;
  background: #5b83c5;
}

.udz-collection #myBackground > .row.bg-info > .col-12 > h3,
.udz-collection #myBackground > .col-12 > h3,
.udz-collection > .container > .row.bg-info > .col-12 > h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: var(--udz-ink, #17375a) !important;
}

.udz-collection > .container > .row.bg-info > .col-12 h3 p,
.udz-collection > .container > .row.bg-info > .col-12 h5 p {
  color: inherit !important;
}

.udz-collection > .container > .row.bg-info > .col-12 h5 {
  margin-top: 8px;
  color: var(--udz-muted, #64788e);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.udz-collection #galerija,
.udz-collection #galerijaVideo {
  padding: 0 24px;
}

.udz-collection #galerija .container,
.udz-collection #galerijaVideo > .container {
  max-width: none;
  padding: 0;
}

.udz-collection #galerija .row,
.udz-collection #galerijaVideo > .container > .row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  align-items: stretch;
  gap: 20px;
  margin: 0;
}

.udz-collection #galerija .card,
.udz-collection #galerijaVideo .card {
  min-width: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0 !important;
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 16px;
  background: var(--udz-surface, #fff) !important;
  color: var(--udz-ink, #17375a);
  box-shadow: 0 5px 16px rgba(23, 55, 90, 0.035);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.udz-collection #galerija .card:focus-within,
.udz-collection #galerijaVideo .card:focus-within {
  border-color: #5b83c5;
  box-shadow: 0 0 0 3px rgba(91, 131, 197, 0.2);
}

.udz-collection #galerija .card-img-top {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 12px !important;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: var(--udz-soft, #f0f4fc);
  cursor: pointer;
}

.udz-collection #galerija .card-body {
  flex: 0 0 auto;
  padding: 14px 16px 5px !important;
}

.udz-collection #galerija .card-body small {
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--udz-muted, #64788e) !important;
}

.udz-collection #galerija .card-footer,
.udz-collection #galerijaVideo .card-footer {
  padding: 5px 16px 18px;
  border: 0;
  background: var(--udz-surface, #fff);
}

.udz-collection #galerija .card-title {
  margin: 0;
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.5;
  text-align: left !important;
  color: var(--udz-ink, #17375a);
}

.udz-collection #galerijaVideo > .container > .row {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.udz-collection #galerijaVideo > .container > .row > div {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
}

.udz-collection #galerijaVideo .card-header {
  min-height: 74px;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  background: var(--udz-surface, #fff);
  color: var(--udz-ink, #17375a);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.5;
}

.udz-collection #galerijaVideo .card-body {
  flex: 0 0 auto;
  padding: 0;
  background: var(--udz-soft, #edf3fc);
}

.udz-collection #galerijaVideo iframe {
  border: 0;
}

.udz-collection #galerijaVideo .card-footer {
  padding: 14px 20px;
  color: var(--udz-muted, #64788e);
  overflow-wrap: anywhere;
}

.udz-collection #myInput {
  display: block;
  width: calc(100% - 48px);
  min-height: 52px;
  margin: 0 24px 20px;
  padding: 14px 18px 14px 46px;
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 12px;
  background-color: var(--udz-surface, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%237c90a9' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E");
  background-position: 17px center;
  background-repeat: no-repeat;
  color: var(--udz-ink, #17375a);
  font: inherit;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(23, 55, 90, 0.02);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.udz-collection #myInput::placeholder {
  color: #8392a5;
}

.udz-collection #myInput:focus {
  outline: none;
  border-color: #5b83c5;
  box-shadow: 0 0 0 3px rgba(91, 131, 197, 0.18);
}

.udz-collection #rjecnikTabela,
.udz-collection #zadaciTabela {
  margin: 0 24px;
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 16px;
  background: var(--udz-surface, #fff);
  box-shadow: 0 5px 18px rgba(23, 55, 90, 0.025);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.udz-collection #myTable,
.udz-collection #customers {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--udz-ink, #17375a);
}

.udz-collection #myTable th,
.udz-collection #customers th {
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--udz-line, #dce5f1);
  background: var(--udz-soft, #edf3fc);
  color: var(--udz-ink, #17375a);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.udz-collection #myTable td,
.udz-collection #customers td {
  padding: 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--udz-line, #edf2fa);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.udz-collection #myTable tr:last-child td,
.udz-collection #customers tr:last-child td {
  border-bottom: 0;
}

.udz-collection #myTable tbody tr,
.udz-collection #customers tbody tr {
  background-color: var(--udz-surface, #fff);
  transition: background-color 0.18s ease;
}

.udz-collection #myTable tbody tr:nth-child(even),
.udz-collection #customers tbody tr:nth-child(even) {
  background-color: var(--udz-paper, #f8fbff);
}

.udz-collection #myTable .btn {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
}

.udz-collection #myTable td a,
.udz-collection #customers td a {
  color: var(--udz-green, #003399);
  font-weight: 650;
  text-decoration: none;
}

.udz-collection #myTable td a {
  display: inline-block;
  padding: 2px 0;
}

.udz-collection #myTable td a:focus-visible,
.udz-collection #customers td a:focus-visible {
  outline: 2px solid #5b83c5;
  outline-offset: 4px;
  border-radius: 3px;
}

.udz-collection #myBackground > .container {
  width: auto;
  max-width: none;
  margin: 0 24px;
  padding: 0;
}

.udz-collection #myBackground > .container > h6 {
  margin: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--udz-muted, #64788e);
}

.udz-collection #customers {
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 16px;
  overflow: hidden;
}

.udz-collection #customers th:first-child {
  border-top-left-radius: 15px;
}

.udz-collection #customers th:last-child {
  border-top-right-radius: 15px;
}

.udz-collection #customers td:last-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: var(--udz-soft, #eff5ff);
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.udz-collection #customers img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.udz-collection #myNewAudio {
  display: block;
  width: min(720px, calc(100% - 48px));
  height: 68px;
  margin: 0 auto 20px;
  padding: 7px;
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 18px;
  background: var(--udz-soft, #edf3fc);
  color-scheme: light;
}

.udz-collection #myNewPlaylist {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px;
  list-style: none;
  counter-reset: audio-track;
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 18px;
  background: var(--udz-surface, #fff);
  box-shadow: 0 6px 18px rgba(23, 55, 90, 0.025);
}

.udz-collection #myNewPlaylist li {
  margin: 0;
  list-style: none;
  counter-increment: audio-track;
}

.udz-collection #myNewPlaylist li + li {
  margin-top: 3px;
}

.udz-collection #myNewPlaylist a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--udz-ink, #17375a);
  font-size: 0.9rem;
  line-height: 1.55;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.udz-collection #myNewPlaylist a::before {
  content: counter(audio-track, decimal-leading-zero);
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 10px;
  background: var(--udz-soft, #f0f4fc);
  color: var(--udz-green, #6385b2);
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.udz-collection #myNewPlaylist .active a {
  border-color: #d5e2f6;
  background: var(--udz-soft, #edf3fc);
  color: var(--udz-green, #003399);
  font-weight: 650;
}

.udz-collection #myNewPlaylist .active a::before {
  background: var(--udz-green, #003399);
  color: var(--udz-surface, #fff);
}

.udz-collection #myBackground > .row:not(.bg-info) {
  margin-right: 24px;
  margin-left: 24px;
}

.udz-collection #myBackground > .row:not(.bg-info) > .col-12 {
  padding: 0;
}

.udz-collection #dzambotron {
  margin: 0 0 20px;
  padding: 14px 20px !important;
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 12px;
  background: var(--udz-soft, #edf3fc) !important;
  color: var(--udz-ink, #17375a) !important;
}

.udz-collection #myBackground > .row > .col-12 > iframe {
  display: block;
  max-width: 100%;
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 16px;
  background: var(--udz-surface, #fff);
  box-shadow: 0 6px 20px rgba(23, 55, 90, 0.035);
}

/* Keep the original timeline positions and scroll animation hooks. */
.udz-timeline .cd-timeline {
  padding: 32px 0 48px;
  background: var(--udz-paper, #f6f9fe);
  color: var(--udz-ink, #17375a);
  font-family: inherit;
}

.udz-timeline .cd-timeline__container {
  max-width: 1120px;
}

.udz-timeline .cd-timeline__container::before {
  width: 3px;
  border-radius: 3px;
  background: #d7e3f7;
}

.udz-timeline .cd-timeline__content {
  padding: 24px;
  border: 1px solid var(--udz-line, #dce5f1);
  border-radius: 18px;
  background: var(--udz-surface, #fff);
  box-shadow: 0 6px 20px rgba(23, 55, 90, 0.035);
  font-size: 0.92rem;
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.udz-timeline .cd-timeline__content h2 {
  margin-bottom: 14px;
  color: var(--udz-ink, #17375a);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.45;
}

.udz-timeline .cd-timeline__content p {
  margin-bottom: 16px;
  color: var(--udz-muted, #64788e);
  font-size: 0.9rem;
  line-height: 1.8;
}

.udz-timeline .cd-timeline__date {
  color: var(--udz-green, #003399);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.6;
}

.udz-timeline .cd-timeline__img {
  border: 1px solid #dce5f1;
  background: #e5edfb;
  box-shadow: 0 0 0 6px var(--udz-paper, #f6f9fe);
}

.udz-timeline .cd-timeline__img--movie {
  background: #e8effb;
}

.udz-timeline .cd-timeline__img--picture {
  background: #e0edf8;
}

.udz-timeline .cd-timeline__img--location {
  background: #faedcd;
}

/* These pages have no theme switch, but respect a theme on the existing shell. */
.udz-collection #myBackground[data-theme="dark"] > .row.bg-info > .col-12,
.udz-collection #myBackground[data-theme="dark"] > .col-12 {
  background: var(--udz-soft) !important;
}

.udz-collection #myBackground[data-theme="dark"] #myNewAudio {
  color-scheme: dark;
}

@media (hover: hover) {
  .udz-collection #galerija .card:hover,
  .udz-collection #galerijaVideo .card:hover {
    transform: translateY(-4px);
    border-color: #c1d4f3;
    box-shadow: 0 14px 28px rgba(23, 55, 90, 0.085);
  }

  .udz-collection #myTable tbody tr:hover,
  .udz-collection #customers tbody tr:hover {
    background-color: var(--udz-soft, #eff5ff);
  }

  .udz-collection #myTable td a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .udz-collection #customers td:last-child a:hover {
    background: var(--udz-soft, #e1ecfc);
    transform: translateY(-2px);
  }

  .udz-collection #myNewPlaylist a:hover {
    background: var(--udz-soft, #f3f7fe);
  }

  .udz-timeline .cd-timeline__content:hover {
    border-color: #c1d4f3;
    box-shadow: 0 12px 28px rgba(23, 55, 90, 0.075);
  }
}

@media (min-width: 1024px) {
  .udz-timeline .cd-timeline__date {
    top: 24px;
  }
}

@media (max-width: 767px) {
  .udz-collection #myBackground,
  .udz-collection > .container {
    padding-bottom: 28px !important;
  }

  .udz-collection #myBackground > .row.bg-info > .col-12,
  .udz-collection #myBackground > .col-12,
  .udz-collection > .container > .row.bg-info > .col-12 {
    margin: 16px 16px 22px;
    padding: 25px 18px;
    max-width: calc(100% - 32px);
    flex-basis: calc(100% - 32px);
    border-radius: 16px;
  }

  .udz-collection #galerija,
  .udz-collection #galerijaVideo {
    padding: 0 16px;
  }

  .udz-collection #galerija .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .udz-collection #galerija .card-img-top {
    padding: 8px !important;
  }

  .udz-collection #galerija .card-body {
    padding: 11px 12px 4px !important;
  }

  .udz-collection #galerija .card-footer {
    padding: 4px 12px 14px;
  }

  .udz-collection #galerija .card-title {
    font-size: 0.82rem;
  }

  .udz-collection #galerijaVideo > .container > .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .udz-collection #myInput {
    width: calc(100% - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .udz-collection #rjecnikTabela,
  .udz-collection #zadaciTabela,
  .udz-collection #myBackground > .container,
  .udz-collection #myBackground > .row:not(.bg-info) {
    margin-right: 16px;
    margin-left: 16px;
  }

  .udz-collection #myTable th,
  .udz-collection #myTable td,
  .udz-collection #customers th,
  .udz-collection #customers td {
    padding: 13px 12px;
    font-size: 0.8rem;
  }

  .udz-collection #rjecnikTabela #myTable {
    min-width: 600px;
  }

  .udz-collection #customers {
    table-layout: fixed;
  }

  .udz-collection #customers th:nth-child(1) {
    width: 43%;
  }

  .udz-collection #customers th:nth-child(2) {
    width: 35%;
  }

  .udz-collection #customers th:nth-child(3) {
    width: 22%;
    white-space: normal;
  }

  .udz-collection #customers td:last-child a {
    width: 36px;
    height: 36px;
  }

  .udz-collection #myNewAudio,
  .udz-collection #myNewPlaylist {
    width: calc(100% - 32px);
  }

  .udz-collection #myNewPlaylist a {
    padding: 12px 10px;
    gap: 12px;
    font-size: 0.84rem;
  }

  .udz-timeline .cd-timeline {
    padding-top: 20px;
  }

  .udz-timeline .cd-timeline__content {
    margin-left: 16px;
    padding: 20px;
    border-radius: 15px;
  }

  .udz-timeline .cd-timeline__content h2 {
    font-size: 1rem;
  }

  .udz-timeline .cd-timeline__content p {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .udz-collection #galerija .card,
  .udz-collection #galerijaVideo .card,
  .udz-collection #myInput,
  .udz-collection #myTable tbody tr,
  .udz-collection #customers tbody tr,
  .udz-collection #customers td:last-child a,
  .udz-collection #myNewPlaylist a,
  .udz-timeline .cd-timeline__content {
    transition: none;
  }

  .udz-collection #galerija .card:hover,
  .udz-collection #galerijaVideo .card:hover,
  .udz-collection #customers td:last-child a:hover {
    transform: none;
  }

  .udz-timeline .cd-timeline__img--bounce-in,
  .udz-timeline .cd-timeline__content--bounce-in {
    animation: none;
  }
}
