/* Osnovna prilagođavanja */

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

iframe {
  max-width: 100%;
}

.top-line {
  display: table;
  width: auto;
  margin: 0;
  padding: 1px;
  background: #fff;
}

.project-intro {
  display: table;
  width: auto;
  max-width: 100%;
  margin-top: 12px !important;
  background: transparent !important;
}

.title-block {
  width: auto;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Uvodni tekst ispod naslova */

.project-intro {
  width: auto;
  max-width: 100%;
  margin-top: 10px;
  background: transparent !important;
}

.project-intro td {
  padding: 0;
  background: transparent !important;
}

.subtitle-block {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0px;
  padding: 0px;
  background: #fff !important;
}

.subtitle-block,
.subtitle-block font,
.subtitle-block em {
  line-height: 1.08 !important;
}

.subtitle-block {
  display: table;
  width: fit-content;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 1px !important;
  background: #fff !important;
}

.subtitle-block + .subtitle-block {
  margin-top: 0px !important;
}

.subtitle-block,
.subtitle-block font,
.subtitle-block em {
  font-weight: 500 !important;
}

/* Glavni sadržaj */

.main-content {
  width: 1060px;
  max-width: 100%;
  table-layout: fixed;
}

.main-content > tbody > tr > td {
  width: 50% !important;
  vertical-align: top;
  padding-top: 20px;
  padding-bottom: 20px;
}

.main-content > tbody > tr > td:first-child {
  padding-right: 20px;
  padding-left: 0;
}

.main-content > tbody > tr > td:last-child {
  padding-right: 0;
  padding-left: 20px;
}

.main-content table {
  width: 100% !important;
  margin: 0;
}

.main-content table td {
  padding: 1px;
}

.main-content,
.main-content td,
.main-content p,
.main-content font {
  font-size: 14px !important;
  line-height: 1.42;
}

.main-content p {
  margin-top: 0;
}

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

.main-content iframe {
  display: block;
  width: 100% !important;
  height: auto;
  aspect-ratio: 500 / 281;
}

.tapestry-block {
  display: table;
  margin: 25px auto 0;
  padding: 1px;
  background: #fff;
  text-align: center;
}

.tapestry-block img {
  margin-bottom: 0;
}

.tapestry-block a {
  display: inline-block;
  margin-top: 1px;
}

.main-content img[src="tapiz_aradac.jpg"] {
  width: 450px !important;
  max-width: 100%;
  height: auto !important;
  margin-right: auto;
  margin-left: auto;
}

.participants p,
.participants p font {
  width: fit-content;
  max-width: 380px;
  margin-top: 0;
  margin-left: 60px !important;
  padding: 1px;
  background: #fff;
  font-size: 13px !important;
  line-height: 1.35;
}

/* Mobilni prikaz */

/* Minimalne korekcije — desktop zadržava originalni izgled */

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

.project-intro {
  margin-top: 10px;
}

.project-intro td {
  padding: 0;
}

.main-content > tbody > tr > td {
  vertical-align: top;
}

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

  /* Uvodna bela površina ostaje samo iza teksta */

  .project-intro {
    display: table;
    width: auto !important;
    max-width: 100%;
    margin-top: 8px;
  }

  .project-intro td {
    padding: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  /* Samo spoljna tabela prelazi u jednu kolonu */

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

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

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

.main-content > tbody > tr > td {
  display: block !important;
  width: 100% !important;
  padding: 0 0 42px !important;
  margin: 0 !important;
  vertical-align: top;
}

  /* Unutrašnje tabele zadržavaju svoj stari karakter */

  .main-content > tbody > tr > td > table {
    width: auto !important;
    max-width: 100%;
    margin: 0;
  }

  .main-content > tbody > tr > td > table td {
    padding: 0;
  }

  /* Fotografije popunjavaju mobilnu kolonu */

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

  /* Video prati širinu ekrana */

  .main-content iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 500 / 281;
  }

  .main-content,
  .main-content font {
    font-size: 14px;
    line-height: 1.4;
  }

}
/* Odvojene bele površine podnaslova */

.project-intro {
  width: auto;
  max-width: 100%;
  background: transparent;
}

.project-intro td {
  padding: 0;
}

.subtitle-block {
  display: table;
  width: auto;
  max-width: 100%;
  margin: 0 0 2px;
  padding: 1px;
  background: #fff;
}

/* Nešto manja i centrirana slika veza */

.main-content img[src="tapiz_aradac.jpg"] {
  width: 380px !important;
  max-width: 100%;
  height: auto !important;
  margin-right: auto;
  margin-left: auto;
}

/* Caption bliže fotografiji */

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

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

/* Uži završni tekst sa imenima */

.participants p {
  max-width: 380px;
  margin-top: 40px;
  margin-left: 20px;
}

@media (max-width: 700px) {
  .main-content,
  .main-content td,
  .main-content p,
  .main-content font {
    font-size: 14px !important;
    line-height: 1.4;
  }
}

body,
table,
td,
p,
font {
  color: #000 !important;
}

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

a:hover,
a:focus {
  color: #000 !important;
  text-decoration: none;
}

body,
table,
td,
p,
font {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Samo podnaslov ostaje Times */

.project-intro,
.project-intro td,
.project-intro font,
.subtitle-block {
  font-family: "Times New Roman", Times, serif !important;
}

/* Glavni naslov */

.title-block,
.title-text {
  font-family: Arial, Helvetica, sans-serif !important;
}

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

