* {
  box-sizing: border-box;
}

body,
table,
td,
p,
font {
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

a,
a:link,
a:visited,
a:active {
  color: #000;
  text-decoration: underline;
}

a:hover,
a:focus {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.top-line,
.title-block,
.station-nav,
.subtitle-block {
  display: table;
  width: fit-content;
  max-width: 100%;
  padding: 1px;
  background: #fff;
}

.top-line {
  margin: 0;
}

.title-block {
  margin-top: 1px;
}

.title-text {
  display: inline-block;
  font-size: 2rem;
  line-height: 1.08;
}

.bitola-title {
  white-space: nowrap;
}

.page-heading {
  display: table;
  width: fit-content;
  margin: 28px 0 0px;
  padding: 1px;
  background: #fff;
  font-size: 1.1rem;
}

.page-heading + .station-intro {
  margin-top: 0;
}

.station-intro {
  margin-top: 8px;
}

.subtitle-block {
  margin: 0 0 1px;
  padding: 0 1px;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.1;
}

.subtitle-block em,
.subtitle-block a {
  font-family: inherit;
}

.station-nav {
  margin: 16px 0 14px;
}

.station-content {
  width: 1100px;
  max-width: 100%;
}

.station-content > tbody > tr > td {
  vertical-align: top;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 13px;
  line-height: 1.45;
}

.station-content.two-columns > tbody > tr > td:first-child {
  width: 57% !important;
  padding-right: 20px;
  padding-left: 0;
}

.station-content.two-columns > tbody > tr > td:last-child {
  width: 43% !important;
  padding-right: 0;
  padding-left: 20px;
}

.station-content > tbody > tr > td.poster-column {
  padding-top: 45px;
}

.station-content p {
  margin-top: 0;
  margin-bottom: 14px;
}

.station-content img + br {
  display: none;
}

.station-content img + br + a {
  display: inline-block;
  margin-top: 1px;
}

.poster-pair {
  text-align: center;
}

.poster-pair img {
  display: inline-block;
  width: auto;
  height: 260px;
  margin: 0 5px;
}

.participants {
  width: fit-content;
  max-width: 380px;
  margin: 28px auto 0 30px;
  padding: 1px;
  background: #fff;
  font-size: 11px;
  line-height: 1.35;
}

.station-footer {
  width: 1100px;
  max-width: 100%;
  margin: 25px 0 0;
  padding-top: 8px;
  border-top: 1px solid #000;
  font-size: 11px;
  line-height: 1.4;
}

.station-footer p {
  width: fit-content;
  max-width: 720px;
  margin: 0 0 12px;
}

.station-footer .participants {
  margin: 0 0 14px;
}

.support-logo {
  display: block;
  width: 120px;
  height: auto;
  margin-top: 6px;
}


/* Zahvalnica ipak ostaje sitnija */

.station-content .participants {
  font-size: 11px !important;
  line-height: 1.35;
}

/* Galerije podstranica */

.station-gallery {
  width: 1100px;
  max-width: 100%;
  table-layout: fixed;
  border-spacing: 4px 5px;
}

.station-gallery > tbody > tr > td {
  width: 25%;
  vertical-align: top;
  text-align: center;
}

.station-gallery td > a:first-child {
  display: flex;
  width: 100%;
  height: 200px;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.station-gallery img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: #fff;
}

.station-gallery td div {
  display: table;
  margin: 1px auto 0;
  padding: 0 1px;
  background: #fff;
  font-size: 11px;
  line-height: 1.2;
}

.station-intro + .station-gallery {
  margin-top: 24px;
}

.page-heading + .station-gallery {
  margin-top: 24px;
}

/* Galerija postera */

.poster-gallery {
  width: 660px;
  max-width: 100%;
  margin: 40px 0 40px;
  table-layout: fixed;
  border-spacing: 10px 0;
}

.poster-gallery > tbody > tr > td {
  width: 50%;
}

.poster-gallery td > a:first-child {
  height: 430px;
}

.poster-gallery img {
  object-fit: contain;
}

.documents-intro {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 0;
  padding: 1px;
  background: #fff;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
}

.document-gallery {
  width: 720px;
  max-width: 100%;
  margin: 30px 0 36px;
  table-layout: fixed;
  border-spacing: 10px 0;
}

.document-gallery > tbody > tr > td {
  width: 50%;
}

.document-gallery td > a:first-child {
  height: 350px;
}


.bitola-content {
  width: 1280px;
  max-width: 100%;
  table-layout: fixed;
  border-spacing: 16px 5px;
}

.bitola-content > tbody > tr > td.bitola-media {
  width: 25% !important;
  padding-right: 0;
  padding-left: 0;
}

.bitola-content > tbody > tr > td.bitola-text {
  width: 50% !important;
  padding-right: 12px;
  padding-left: 12px;
}

.bitola-content .bitola-media img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.bitola-content .bitola-media img + br {
  display: none;
}

.bitola-content .bitola-media a {
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 22px;
}

.bitola-content img[src="poster_bordados.jpg"] {
  width: 72% !important;
  margin-right: auto;
  margin-left: auto;
}
.office-participants {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin: 1px 0 20px;
  padding: 0 1px;
  background: #fff;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  line-height: 1.35;
}

.office-note {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin: 4px 0 20px;
  padding: 0 1px;
  background: #fff;
  font-family: "Times New Roman", Times, serif !important;
  font-size: 16px;
  line-height: 1.3;
}

.office-note em {
  font-family: inherit !important;
}

/* Bitola: delovi zajedničke tapiserije */

.tapestry-gallery {
  width: 1100px;
  max-width: 100%;
  margin: 24px 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 3px 3px;
}

.tapestry-gallery > tbody > tr > td {
  padding: 0;
}

.tapestry-gallery td > a:first-child {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.tapestry-gallery img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: initial;
}

.tapestry-gallery > tbody > tr > td {
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.tapestry-gallery td > br,
.tapestry-gallery td > div {
  display: none;
}

/* Glavna stranica Mostara */

.mostar-content {
  width: 1240px;
  max-width: 100%;
  table-layout: fixed;
  border-spacing: 10px 5px;
}

.mostar-content > tbody > tr > td.mostar-media,
.mostar-content > tbody > tr > td.mostar-text {
  width: 50% !important;
  padding: 5px;
  vertical-align: top;
}

.mostar-content .mostar-text {
  font-size: 13px !important;
  line-height: 1.4;
}

.mostar-content .mostar-text p,
.mostar-content .mostar-text font {
  font-size: inherit !important;
  line-height: inherit;
}

.mostar-content .mostar-text p {
  margin-top: 0;
  margin-bottom: 12px;
}

.mostar-content .mostar-media p {
  margin-top: 0;
  margin-bottom: 12px;
}

.mostar-content .mostar-media img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* Mobilni prikaz */

@media (max-width: 700px) {
  body {
    margin: 8px;
  }

.bitola-title {
  white-space: normal;
}

  .station-content,
  .station-content > tbody,
  .station-content > tbody > tr {
    display: block !important;
    width: 100% !important;
  }

  .station-content > tbody > tr > td,
  .station-content.two-columns > tbody > tr > td:first-child,
  .station-content.two-columns > tbody > tr > td:last-child {
    display: block !important;
    width: 100% !important;
    padding: 0 0 42px !important;
    font-size: 14px !important;
    line-height: 1.45;
  }

  .station-content img {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  .poster-pair {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
  }

  .poster-pair img {
    width: calc(50% - 4px) !important;
    height: auto !important;
    margin: 0;
  }

  .station-content > tbody > tr > td.poster-column {
    padding-top: 0 !important;
    padding-bottom: 42px !important;
  }

  .participants {
    margin: 20px 0 0;
    font-size: 12px;
  }

  .station-gallery {
    display: block;
    width: 100% !important;
    table-layout: auto;
    border-spacing: 0;
  }

.station-gallery > tbody {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 4px;
}

  .station-gallery > tbody > tr {
    display: contents;
  }

  .station-gallery > tbody > tr > td {
    display: block;
    width: auto !important;
    padding: 0;
  }

.station-gallery td > a:first-child {
  height: 150px;
}

.poster-gallery {
  width: 100% !important;
  margin-top: 20px;
  margin-bottom: 32px;
}

.poster-gallery > tbody {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.poster-gallery td > a:first-child {
  height: 230px;
}

.document-gallery {
  width: 100% !important;
  margin: 28px 0 32px;
}

.document-gallery > tbody {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.document-gallery td > a:first-child {
  height: 210px;
}

.bitola-content {
  display: block !important;
  width: 100% !important;
  border-spacing: 0;
}

.bitola-content > tbody,
.bitola-content > tbody > tr {
  display: block !important;
  width: 100% !important;
}

.bitola-content > tbody > tr > td.bitola-media,
.bitola-content > tbody > tr > td.bitola-text {
  display: block !important;
  width: 100% !important;
  padding: 0 0 42px !important;
}

.bitola-content img[src="poster_bordados.jpg"] {
  width: auto !important;
  max-width: 75%;

}

@media (max-width: 700px) {
  .tapestry-gallery > tbody {
    gap: 3px;
  }

  .tapestry-gallery td > a:first-child {
    height: auto;
  }

  /* Sve galerije postera */

  .poster-gallery > tbody {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .poster-gallery td > a:first-child {
    width: 100%;
    height: auto;
  }

  .poster-gallery img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Bitolska tapiserija */

  .tapestry-gallery > tbody {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tapestry-gallery td > a:first-child {
    width: 100%;
    height: auto;
  }

  .tapestry-gallery img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .mostar-content,
  .mostar-content > tbody,
  .mostar-content > tbody > tr {
    display: block !important;
    width: 100% !important;
  }

  .mostar-content > tbody > tr > td.mostar-media,
  .mostar-content > tbody > tr > td.mostar-text {
    display: block !important;
    width: 100% !important;
    padding: 0 0 42px !important;
  }
}
