/* #121A1C theme color */

html,
body,
#page,
.site-inner {
  height: 100%;
}

body {
  background-color: #121A1C; /* FMA black */
}

#page {
  position: relative;
  overflow: hidden;
}

.site-inner {
  max-width: none;
  width: 100%; /* 110% for parallax */
  position: absolute;
  /* --- main background for parallax --- */
/*  background-image: url(img/kolonie-2021-bcg.jpg);*/
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100%;
}

.site-header-main {
  /*position: fixed;
	top: 21px;
	left: 21px;
	line-height: 1;
	padding: 12px;
	background-color: #fff;*/
  z-index: 1000;
}

.site-branding {
  margin: 0;
  display: none;
}

.header-image {
  display: none;
}

#site-header-menu {
  margin: 0;
  position: fixed;
  top: 21px;
  right: 21px;
  padding: 0 1em;
  background-color: rgba(18, 26, 28, 0.5);
  z-index: 10001;
}

#menu-toggle {
  margin: 0;
  position: fixed;
  bottom: 21px;
  right: 21px;
}

.menu-toggle {
  background-color: rgba(18, 26, 28, 0.5);
}

.main-navigation {
  font-weight: 600;
}

.main-navigation .primary-menu {
  border-bottom: none;
}

.main-navigation li {
  border-color: #121A1C;
  border-top-width: 2px;
  text-transform: uppercase;
}

.main-navigation a {
  color: #ee6f23; /* theme color dark */
}

.menu-toggle.toggled-on,
.menu-toggle.toggled-on:hover,
.menu-toggle.toggled-on:focus {
  background-color: rgba(18, 26, 28, 0.5);
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: rgba(18, 26, 28, 0.5);
}

.menu-fb {
  display: none;
}

#social {
  font-size: 32px;
  position: fixed;
  bottom: 21px;
  right: 21px;
  display: none;
  border-radius: 3px;
}

#social a {
  color: #000;
}

#social a:hover {
  color: #ee6f23;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation li:hover > a,
.main-navigation li:focus > a {
  color: #FF8E4D; /* theme color light */
}

@media screen and (min-width: 56.875em) {
  .main-navigation .primary-menu > li {
    float: none;
    font-size: 1.125em;
  }
  .main-navigation li {
    line-height: 1.2;
    text-transform: uppercase;
    font-size: 14px;
  }
  .main-navigation a {
    padding: 0.2em 0.4em;
  }
  .main-navigation .menu-item-has-children > a:after {
    content: "\f432";
  }
  .main-navigation li:hover > ul,
  .main-navigation li.focus > ul {
    bottom: 42px;
  }
  .main-navigation ul ul:after {
    border-width: 8px 8px 0;
    top: auto;
    bottom: -7px;
    opacity: 0.6;
  }
  .main-navigation ul ul:before {
    border-width: 10px 10px 0;
    top: auto;
    bottom: -9px;
    opacity: 0.6;
  }
  .main-navigation ul ul li {
    background-color: #fff;
  }

  #site-header-menu {
    background-color: transparent;
  }

  #social {
    display: block;
  }
}

@media screen and (max-width: 909px) {
  #site-header-menu {
    top: auto;
    bottom: 21px;
    right: 88px;
  }
  .menu-fb {
    display: block;
  }
}

#logo {
  position: fixed;
  top: 10px;
  left: 10px;
  padding-top: 20px;
  padding-left: 20px;
  z-index: 1001;
}

#logo-img {
  max-width: 600px;
}

#tagline {
  position: absolute;
  left: 1em;
  bottom: 1em;
  max-width: 80%;
  max-width: calc(100% - 2em);
  font-size: 2em;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  line-height: 1.25;
  color: #ee6f23;
}

@media screen and (min-width: 56.875em) and (max-height: 596px) {
  .primary-menu {
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
  }
}

@media screen and (orientation: landscape) and (max-height: 504px) and (max-width: 56.875em) {
  #logo {
    max-width: 60%;
  }
}

#line-wrap {
  position: absolute;
  top: 50%;
  height: 500px;
  margin-top: -250px;
  width: 6200px;
  /* ------------------ width L ----------------- */
  box-sizing: content-box;
}

#line {
  height: 250px;
  border-bottom: 10px solid #121A1C;
}

#main {
  position: absolute;
  top: 50%;
  height: 240px;
  margin-top: -120px;
  width: 6200px;
  /* ------------------ width L ----------------- */
  padding-left: 360px; /* 60 bazowo, zmienić w skrypcie */
  padding-right: 240px; /* 60 + 40 = 100 article padding */

  /* --- wersja temp, z jedną kulką, centrowanie --- */
/*
  display: flex;
  flex-direction: row;
  justify-content: center;
*/
}

article {
  width: 240px;
  height: 240px;
  float: left;
  margin-bottom: 0;
  margin-left: 40px;
  /*	overflow: hidden;*/
  background: #fff;
  border: 10px solid #121A1C;
  border-radius: 50%;
  box-sizing: content-box;
  background-repeat: no-repeat;
  background-position: center;
}

article.hovered {
  background-image: url(img/talerz.jpg);
}

article.hovered .entry-header {
  opacity: 0;
}

.entry-title {
  font-size: 15px;
  color: #000;
  font-weight: 700;
  font-style: italic;
  word-wrap: normal;
  -webkit-hyphens: none;
  hyphens: none;
  cursor: pointer;
}

@media screen and (min-width: 44.375em) {
  .entry-title {
    font-size: 16px;
  }
  
  #tagline {
    font-size: 3em;
  }
}

@media screen and (min-width: 61.5625em) {
  .entry-title {
    font-size: 18px;
  }
  
  #tagline {
    font-size: 4em;
  }
}

.entry-summary {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 35%;
  z-index: 11000;
  text-align: left;
  padding: 0.2em 0.6em;
  background-color: rgba(18, 26, 28, 0.5);
  background-color: #fff;
  border: 10px solid #121A1C;
  font-family: Montserrat, "Helvetica Neue", sans-serif;
  display: none;
}

@media screen and (orientation: portrait) {
  .entry-summary {
    width: 55%;
  }
}

.entry-summary a {
  box-shadow: none;
  padding: 0.6em 0;
}

body:not(.search-results) .entry-header + .entry-summary {
  margin: 21px;
}

body:not(.search-results) .entry-summary {
  font-size: 16px;
  line-height: 1.4;
  color: #000;
}

body:not(.search-results) .entry-summary p {
  margin-bottom: 0.4em;
}

body:not(.search-results) .entry-summary p:last-of-type {
  margin-bottom: 0;
}

.read-more {
  color: #121A1C;
  display: none;
}

/* --------- ramka --------- */

body:not(.custom-background-image):before,
body:not(.custom-background-image):after {
  height: 10px;
}

@media screen and (min-width: 44.375em) {
  .site {
    margin: 10px;
  }
  body {
    height: 100%;
    height: calc(100% - 20px);
  }
}

.entry-header,
.entry-header a {
  width: 100%;
  height: 100%;
}

.entry-header a {
  display: inline-block;
  text-align: center;
  line-height: 236px;
}

.entry-title {
  display: inline-block;
  vertical-align: middle;
  padding: 0 12px;
  text-transform: uppercase;
}

.no-sidebar .entry-header,
.entry-title {
  margin: 0;
}

.post-thumbnail,
.page-header,
.site-footer {
  display: none;
}

.site-content {
  padding: 0;
}

.site-main,
.site-main > article {
  margin-bottom: 0;
}

#cover {
  z-index: 10002;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #121A1C;
  display: none;
  text-align: right;
}

#cover:before {
  content: "\f405";
  width: 100%;
  left: 0;
  font-size: 3em;
  position: absolute;
  bottom: 10px;
  padding-right: 21px;
  padding-bottom: 11px;
}

.professor {
  font-size: 3em;
  position: absolute;
  bottom: 0;
  display: inline-block;
}

/* --- 2020 mods --- */

.site-header {
  padding: 0;
}

.site-content {
  height: 100%;
}

#primary {
  overflow: hidden;
  position: relative;
  height: 100%;
  background-image: url('img/FMA-kolonie-2025-bcg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.front-page-video {
  margin-bottom: 0;
  height: 100vh;
  width: 177.77777778vh;
  min-width: 100%;
  min-height: 56.25vw;
  max-width: none;
  
  position: absolute;
  bottom: 0;
  left: -8046px;
  right: -8192px;
  margin-left: auto;
  margin-right: auto;
}


@media screen and (max-width: 909px) {
  .main-navigation li:first-of-type {
    border-top: none;
  }
}

/* ----------------  portrait  ----------------- */

@media screen and (orientation: portrait) and (max-width: 615px) {
  html,
  body,
  #page,
  #content,
  #primary {
    width: 100%;
  }
  .site-inner {
    width: 100%;
    height: 100%;
/*    background-size: auto 110%;*/
/*    background-position: -20px top;*/
  }
  #masthead {
    padding: 0;
  }
  #content {
/*    padding-top: 200px;*/
    padding-top: 0;
    height: 100%;
  }

  #line-wrap {
    top: 0;
    left: 0;
    right: 0;
    height: 4330px;
    /* ------------------ height P - x ----------- */
    margin: 0 auto;
    padding-top: 250px;
    padding-bottom: 100px;
    /*		margin-top: 180px;*/
    width: 320px;
    /*		z-index: 1002;*/
  }
  #line {
    border-bottom: none;
    border-right: 10px solid #121A1C;
    width: 48%;
    width: calc(50% - 5px);
    height: 100%;
  }
  
  #social {
    top: auto;
    right: auto;
    left: 21px;
    bottom: 21px;
    z-index: 10001;
  }
  #main {
    top: 0;
    left: 0;
    right: 0;
    height: 4680px;
    /* ------------------ height P ----------------- */
    margin: 0 auto;
    width: 260px;
    padding: 0;
    /*		z-index: 1003;*/
  }
  article {
    float: none;
    margin: 20px auto;
    width: 180px;
    height: 180px;
  }
  article:first-child {
    margin-top: 200px;
  }
  .entry-header a {
    line-height: 180px;
  }
  body:not(.search-results) .entry-header + .entry-summary {
    /*		margin: 0 10px;*/
    margin: 0 10px 10px 10px;
  }

  .entry-summary {
    box-sizing: border-box;
    width: 75%;
    width: calc(100% - 20px);
  }

  #cover {
    text-align: center;
  }
  #cover:before {
    padding: 0;
  }
}

@media screen and (orientation: portrait) and (max-width: 44.375em) {
  #logo {
    padding: 12px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin-right: 0;
  }
  #logo-img {
    width: 100%;
    height: auto;
  }
}

@media screen and (orientation: portrait) and (max-width: 490px) {
  #menu-toggle {
    bottom: 10px;
    right: 10px;
  }
  #site-header-menu {
    bottom: 10px;
    right: 68px;
  }
}

/* ----------------  landscape  ----------------- */

@media screen and (orientation: landscape) {
  #primary {
    background-image: url('img/FMA-kolonie-2025-bcg-lndscp.jpg');
    background-position: center center;
  }

  #logo-img {
    max-width: 520px
  }
  
  .front-page-video {
    min-height: 61.25vw;
    left: -8192px;
    bottom: -1px;
  }
}

@media screen and (orientation: landscape) and (max-height: 521px) {
  #line-wrap {
    height: 100px;
    margin-top: -50px;
  }
  #line {
    height: 50px;
  }
}

@media screen and (orientation: landscape) and (max-height: 441px) {
  #main {
    height: 180px;
    margin-top: -90px;
    width: 5000px;
    /* ------------------ width L ----------------- */
  }
  #line-wrap {
    width: 5000px;
    /* ------------------ width L ----------------- */
  }
  article {
    width: 180px;
    height: 180px;
  }
  .entry-header a {
    line-height: 180px;
  }
  .entry-summary {
    width: 75%;
  }
  @media (max-height: 374px) {
    .primary-menu {
      -moz-column-count: 2;
      -webkit-column-count: 2;
      column-count: 2;
    }
  }

}
