*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.block-hidden {
  display: none;
}
.vertical-center {
  min-height: 100%; /* Fallback for browsers do NOT support vh unit */
  min-height: 100vh; /* These two lines are counted as one :-)       */
  display: flex;
  align-items: center;
}

html,
body {
  position: relative;
  height: 100%;
}

body {
  background: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  color: #000;
  margin: 0;
  padding: 0;
}
a,
body.nav-fixed #header,
.gallery-item:hover h3 {
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

a {
  color: #000;
}
a:hover {
  color: #fb2056;
}

textarea {
  height: 200px;
}

#cookie-info {
  display: none;
}

#copy-info {
  padding: 48px 0;
}

#nav-social img {
  width: 48px;
  height: 48px;
}

#link-miastozdziczenie-main {
  position: absolute;
  right: 32px;
  top: 32px;
  width: 125px;
}

#header {
  margin-bottom: 0px;
}
#header-logo {
  margin-right: 90px;
}

@media (min-width: 992px) {
  #header-logo {
    margin-right: 0px;
  }
  #header {
    margin-bottom: 42px;
  }

  .mrr-template-miastozdziczenie #header {
    margin-bottom: 0!important;
  }
}

#header-logo img {
  max-width: 100%;
}

.navbar-toggler {
  border: none;
  position: absolute;
  right: 16px;
  transform: translateY(-130px);
}

.navbar-toggler.collapsed {
  transform: translateY(-50px);
}

.navbar-toggler:focus {
  box-shadow: none;
}

#projekt-logo img {
  max-width: 200px;
  margin: auto;
  display: block;
}

#hero-title {
  height: 50vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-bottom: 72px;
}

#hero-title h1 {
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.8em;
}

#main {
  padding-bottom: 72px;
}

#main h1 {
  font-size: 1.8em;
}

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

.text-body h2 {
  font-size: 1.4em;
  font-weight: 600;
  margin-top: 1.4em;
}

.text-body h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.25em;
}

.text-body h4,
.text-body h5 {
  font-size: 1em;
  font-weight: 600;
}

.text-author {
  font-weight: 600;
  text-transform: uppercase;
}

#nav-main a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  border-bottom: 1px solid transparent;
  margin-left: 16px;
  margin-right: 16px;
  font-size: 1.2em;
  color: #000;
  padding-bottom: 0;
}

#nav-main a:hover {
  color: #fb2056;
}

#nav-main a.active {
  border-bottom: 1px solid #fb2056;
}

.category-col:hover a {
  color: #fb2056;
}

.category-col h2 {
  text-transform: uppercase;
  text-align: center;
  padding: 24px 0 36px 0;
  font-size: 1.15em;
}
.category-col h2 a {
  text-decoration: none;
  font-weight: bolder;
}
.category-img {
  max-width: 215px !important;
}
.category-author {
  display: block;
  font-size: smaller;
  margin-top: 0.5rem;
  font-weight: bold;
}

.historie-details h1 {
  font-size: 1.5em;
  margin-bottom: 0.4em;
}

.historie-details h2 {
  text-transform: uppercase;
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 2em;
}

.historie-nav,
.historie-nav:hover {
  display: block;
  padding: 0;
  width: 58px;
  height: 58px;
  overflow: hidden;
}

.historie-nav:hover {
  opacity: 1;
}

.historie-nav img {
  width: 58px;
  height: 58px;
}

.historie-nav-prev {
  transform: rotate(180deg);
}

.historia-text {
  padding-left: 48px;
}
.historia-img {
  padding-right: 48px;
}

@media (min-width: 992px) {
  .historie-nav,
  .historie-nav:hover {
    position: fixed;
    top: calc(50% - 29px);
  }
  .historie-nav-prev {
    left: 8px;
  }
  .historie-nav-next {
    right: 8px;
  }
}


#regulamin-link {
  padding-top: 1rem;
  padding-bottom: 1rem;
  cursor: pointer;
}

#regulamin-modal {
  transition-property: opacity;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  pointer-events: none;
}

#regulamin-modal .modal-content {
  padding: 2rem;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff;

  max-width: 720px;
  max-height: 80vh;
  overflow: auto;
}

#regulamin-modal .modal-content p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 1rem;
}

.img-description {
  font-size: 12px;
  font-style: italic;
}

/* video */

.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    margin: 35px 0;
    height: 0;
}

.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
