html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #141414;
  color: #221c16;
  font: 15px/1.55 Arial, Helvetica, sans-serif;
}

a {
  color: #8a5a12;
}

img {
  max-width: 100%;
  height: auto;
}

/* Bázis Gallery */
table.mainBackground {
  width: 100%;
  border-collapse: collapse;
  background: #141414;
}

table.mainBackground > tbody > tr > td > p {
  width: min(980px, calc(100% - 32px));
  margin: 20px auto 0;
}

table.mainBackground > tbody > tr > td > p a {
  display: inline-block;
  padding: 8px 14px;
  background: #f3e27a;
  color: #141414;
  font-weight: bold;
  text-decoration: none;
}

table.mainBackground #container {
  width: min(980px, calc(100% - 32px));
  margin: 20px auto 40px;
  background: #f6f1e7;
  color: #221c16;
  overflow: hidden;
}

table.mainBackground #header {
  background: #111;
  color: #f6f1e7;
  padding: 0 0 8px;
}

table.mainBackground #headerImage {
  height: 220px;
  margin-bottom: 14px;
  background: #111 url("/images/works/03.jpg") center/cover no-repeat;
}

table.mainBackground #contentName h1 {
  margin: 0;
  padding: 150px 20px 0;
  color: #fff;
  font-size: 34px;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px #000;
}

table.mainBackground #menu {
  padding: 0 20px;
}

table.mainBackground #menuButtons br,
table.mainBackground .rightHeader {
  display: none;
}

table.mainBackground #menuButtons a {
  display: inline-block;
  margin: 0 8px 10px 0;
  padding: 8px 14px;
  background: #f3e27a;
  color: #141414;
  font-weight: bold;
  text-decoration: none;
}

table.mainBackground #menuButtons a:hover {
  background: #fff;
}

table.mainBackground #columns::after,
table.mainBackground .galleryHolder::after {
  content: "";
  display: block;
  clear: both;
}

table.mainBackground #leftBlock,
table.mainBackground #contentBlock,
table.mainBackground #wideBlock,
table.mainBackground #rightBlock {
  padding: 8px;
}

table.mainBackground #leftBlock {
  float: left;
  width: 24%;
  background: #efe6d6;
}

table.mainBackground #contentBlock,
table.mainBackground #wideBlock {
  float: left;
  width: 48%;
}

table.mainBackground #wideBlock {
  width: 72%;
}

table.mainBackground #rightBlock {
  float: right;
  width: 28%;
  background: #f3eee4;
}

table.mainBackground .infoHeader h3,
table.mainBackground #contentHolder .head h2,
table.mainBackground .news h2 {
  margin: 0 0 8px;
  padding: 6px 8px;
  background: #111;
  color: #f3e27a;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

table.mainBackground .infoBox,
table.mainBackground .news {
  margin-bottom: 16px;
}

table.mainBackground .date {
  margin: 0;
  color: #7a6856;
  font-size: 12px;
}

table.mainBackground .imageHolder {
  float: left;
  width: 46%;
  margin: 0 2% 16px;
}

table.mainBackground .cutImage {
  height: 160px;
  overflow: hidden;
  background: #2a2a2a;
}

table.mainBackground .cutImage a,
table.mainBackground .cutImage img,
table.mainBackground .newsThumbs img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

table.mainBackground .newsThumbs img {
  width: 160px;
  height: 100px;
}

table.mainBackground .detailedImage > img {
  display: block;
  width: 100%;
  max-height: 460px;
  margin-bottom: 16px;
  object-fit: cover;
}

table.mainBackground .imageInfo {
  padding-top: 6px;
  font-weight: bold;
}

table.mainBackground .imageInfo a:empty {
  display: none;
}

table.mainBackground .categoryList {
  border-bottom: 1px solid #e2d8c8;
}

table.mainBackground .categoryList a {
  display: block;
  padding: 6px 4px;
  color: #221c16;
  text-decoration: none;
}

table.mainBackground .categoryList a:hover {
  background: #f3e27a;
}

table.mainBackground .detailedImageTitle {
  font-size: 28px;
  font-weight: bold;
}

table.mainBackground .detailedImageArtist {
  margin-bottom: 12px;
  color: #7a6856;
}

table.mainBackground .infoLabel {
  float: left;
  clear: left;
  width: 130px;
  font-weight: bold;
}

table.mainBackground .infoText {
  margin-left: 140px;
  min-height: 1.55em;
}

table.mainBackground #footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ddd2c2;
  font-size: 13px;
}

table.mainBackground #mailForm label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

table.mainBackground #mailForm .wideInput {
  width: 100%;
  padding: 8px;
  border: 1px solid #c8bba8;
  background: #fff;
  font: inherit;
}

table.mainBackground #mailForm .submitBtn {
  margin-top: 14px;
  padding: 10px 18px;
  border: 0;
  background: #111;
  color: #f3e27a;
  font-weight: bold;
  cursor: pointer;
}

/* Normafa Forest Games */
#location,
#menuAndContent {
  width: min(980px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

body > #location {
  margin-top: 20px;
  padding: 12px 16px;
  background: #111;
  color: #f3e27a;
  text-align: center;
}

#menuAndContent {
  margin-bottom: 40px;
  background: #f6f1e7;
  color: #221c16;
  overflow: hidden;
}

#menuAndContent #menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #111;
}

#menuAndContent #menuItem a {
  display: block;
  padding: 8px 12px;
  background: #f3e27a;
  color: #141414;
  font-weight: bold;
  text-decoration: none;
}

#menuAndContent #content {
  padding: 16px 18px 4px;
}

#menuAndContent #content::before,
#page #description::before {
  content: "";
  display: block;
  height: 200px;
  margin-bottom: 16px;
  background: #111 url("/images/works/skate.jpg") center/cover no-repeat;
}

#page #description::before {
  margin: -12px -12px 16px;
  background-image: url("/images/works/01.jpg");
}

#infoLeft,
#infoMiddle,
#infoRight {
  float: left;
  width: 33.33%;
  max-width: 326px;
  padding: 8px;
}

#infoLeft {
  margin-left: max(16px, calc((100% - 980px) / 2));
}

.greenBlock,
.orangeBlock,
.redBlock,
.brownBlock {
  margin-bottom: 8px;
  padding: 12px;
}

.greenBlock { background: #1f6b3a; color: #fff; }
.orangeBlock { background: #e08a2c; color: #1a1208; }
.redBlock { background: #8d2d2d; color: #fff; }
.brownBlock { background: #6b4423; color: #fff; }

.greenBlock h2,
.greenBlock h3,
.orangeBlock h2,
.orangeBlock h3,
.redBlock h2,
.redBlock h3,
.brownBlock h2,
.brownBlock h3 {
  margin: 0 0 8px;
  color: inherit;
}

/* Millenáris Street Games */
body > #container {
  display: flex;
  gap: 24px;
  width: min(980px, calc(100% - 32px));
  margin: 20px auto 40px;
  padding: 20px;
  background: #f6f1e7;
  color: #221c16;
}

body > #container #leftBlock {
  width: 220px;
  flex: none;
}

body > #container #homeIllu,
body > #container #msgLogo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 180px;
  margin-bottom: 12px;
  padding: 12px;
  background: #111 url("/images/works/skate.jpg") center/cover no-repeat;
  color: #f3e27a;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px #000;
}

body > #container #msgLogo {
  min-height: 120px;
  background-image: url("/images/works/04.jpg");
}

body > #container #homeIllu::before { content: "STREET GAMES"; }
body > #container #msgLogo::before { content: "MSG"; }

body > #container #rightBlock { flex: 1; }

body > #container #menu a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 8px 12px;
  background: #111;
  color: #f3e27a;
  font-weight: bold;
  text-decoration: none;
}

body > #container #menu br { display: none; }

/* Stylefest */
#page {
  width: min(1100px, calc(100% - 32px));
  margin: 20px auto 40px;
  padding: 16px;
  background: #f6f1e7;
  color: #221c16;
  overflow: hidden;
}

#page #menu a {
  display: inline-block;
  margin: 0 8px 12px 0;
  padding: 8px 12px;
  background: #111;
  color: #f3e27a;
  font-weight: bold;
  text-decoration: none;
}

#page #menu a.active,
#page #menu a:hover {
  background: #f3e27a;
  color: #141414;
}

#page #location {
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #111;
  color: #f3e27a;
}

#page .column {
  float: left;
  width: 33.33%;
  padding: 0 8px;
}

#page .block {
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
}

#page .block.light { background: #fff8e6; }
#page .block.dark { background: #241c16; color: #f6f1e7; }
#page .block.dark a { color: #f3e27a; }
#page h2 { margin: 0 0 8px; font-size: 18px; }
#page h3 { margin: 0 0 8px; }

@media (max-width: 800px) {
  table.mainBackground #leftBlock,
  table.mainBackground #contentBlock,
  table.mainBackground #wideBlock,
  table.mainBackground #rightBlock,
  table.mainBackground .imageHolder,
  #infoLeft,
  #infoMiddle,
  #infoRight,
  #page .column {
    float: none;
    width: auto;
    max-width: none;
  }

  #infoLeft {
    margin-left: 16px;
    margin-right: 16px;
  }

  body > #container {
    display: block;
  }

  body > #container #leftBlock {
    width: auto;
  }
}
