/* Šablona „Odhalenie sochy“ (template-odhalenie.php), vše je pod .odh, zbytek webu se nemění */

.odh {
  font-family: 'Arbutus Slab', Georgia, serif;
  font-weight: 700;
  color: #1c2b4b;
  text-transform: uppercase;
  overflow: hidden;
}

.odh *,
.odh *:before,
.odh *:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.odh-wrap {
  position: relative;
  max-width: 1630px;
  margin: 0 auto;
  padding: 0 20px;
}

.odh p {
  margin: 0;
  font-size: 29px;
  line-height: 1.38;
  letter-spacing: -0.014em;
  text-align: justify;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

.odh-title {
  display: inline-block;
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 4px solid #b8975a;
  font-size: 53px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1c2b4b;
}

.odh-title--full {
  display: block;
  font-size: 44px;
}

/* hero: drží poměr stran fotky na každé šířce okna, proto je i s texty ve vw (bez stropu na 1920px),
   jinak by se fotka na širších oknech ořízla a postavy vyjely pod nadpis */

.odh-hero {
  position: relative;
  z-index: 2;
  min-height: 65.05vw;
  padding-top: 2.4vw;
  text-align: center;
  background: #cfe0f5 url(../images/odhalenie/hero.jpg) center bottom no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  -webkit-box-shadow: 0 14px 34px rgba(20, 30, 60, 0.28);
  box-shadow: 0 14px 34px rgba(20, 30, 60, 0.28);
}

.odh-hero .odh-wrap {
  max-width: none;
}

.odh .odh-play {
  display: inline-block;
  color: #b8975a;
  text-decoration: none;
}

.odh-play__icon {
  display: block;
  width: 7.7vw;
  height: 7.7vw;
  margin: 0 auto 2.37vw;
  border-radius: 50%;
  background-color: #b8975a;
  -webkit-transition: -webkit-transform .25s, background-color .25s;
  transition: transform .25s, background-color .25s;
}

.odh-play__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1.65vw;
  fill: #fff;
}

.odh-play__text {
  display: block;
  font-size: 1.96vw;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.odh .odh-play:hover {
  color: #b8975a;
  text-decoration: none;
}

.odh-play:hover .odh-play__icon {
  background-color: #a5834a;
  -webkit-transform: scale(1.07);
  transform: scale(1.07);
}

.odh-hero__title {
  margin: 2.6vw 0 0;
  font-size: 5.22vw;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.026em;
  color: #b8975a;
}

.odh-hero__title span {
  display: block;
  margin-top: 1.67vw;
  font-size: 2.67vw;
  line-height: 1.2;
  letter-spacing: -0.0375em;
  color: #1c2b4b;
}

/* intro */

.odh-intro {
  position: relative;
  z-index: 1;
  padding: 134px 0 138px;
  background-color: #fff;
  -webkit-box-shadow: 0 14px 34px rgba(20, 30, 60, 0.28);
  box-shadow: 0 14px 34px rgba(20, 30, 60, 0.28);
}

.odh-intro .odh-wrap,
.odh-place .odh-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.odh-intro .odh-wrap {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.odh-intro__img {
  width: 45%;
}

.odh-intro__img img,
.odh-place__map iframe,
.odh-story__img img {
  display: block;
  width: 100%;
}

.odh-intro__img img,
.odh-place__map iframe,
.odh-story__img img {
  border-radius: 45px;
}

.odh-intro__text {
  width: 47%;
}

/* chybí-li fotka nebo text, zbylá část se nenechá viset u kraje */
.odh-intro__text:only-child {
  width: 100%;
}

.odh-intro__img:only-child {
  margin: 0 auto;
}

.odh-intro__text p + p {
  margin-top: 1em;
}

.odh-intro__text > :last-child {
  margin-bottom: 0;
}

/* miesto */

.odh-place {
  padding: 138px 0 144px;
  background-color: #e9eefb;
}

.odh-place__text {
  width: 48.5%;
  padding-right: 5.5%;
  border-right: 4px solid #b8975a;
}

.odh-place__text .odh-title {
  padding-right: 80px;
}

.odh-address {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 2px 0 75px;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.odh-address__icon {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 67px;
  height: 67px;
  margin-right: 24px;
  border-radius: 50%;
  background-color: #b8975a;
}

.odh-address__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  fill: #fff;
}

.odh-place__map {
  width: 45%;
}

/* bez levého sloupce je mapa přes celou šířku obsahu */
.odh-place__map:only-child {
  width: 100%;
}

.odh-place__text p + p {
  margin-top: 1em;
}

.odh-place__map iframe {
  height: 100%;
  min-height: 557px;
  border: 0;
}

/* pribeh */

.odh-story {
  position: relative;
  padding: 59px 0 80px;
  background: #c6dbf3;
  background: -webkit-linear-gradient(top, #dbe8f8 0%, #a9c9ee 55%, #e4edf9 100%);
  background: linear-gradient(to bottom, #dbe8f8 0%, #a9c9ee 55%, #e4edf9 100%);
}

.odh-story:before,
.odh-story:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26%;
  height: 92%;
  background: url(../images/odhalenie/socha.png) right bottom no-repeat;
  -webkit-background-size: contain;
  background-size: contain;
}

/* socha.png se dívá doleva, levá se proto zrcadlí, aby obě hleděly ke středu */
.odh-story:before {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.odh-story:after {
  left: auto;
  right: 0;
}

.odh-story .odh-wrap {
  z-index: 1;
}

.odh-story__title {
  margin: 0 0 37px;
  font-size: 53px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.0375em;
  text-align: center;
  color: #1c2b4b;
}

/* banner je odkaz, který otevírá stejné video jako tlačítko v hero */
.odh-story__img {
  display: block;
  max-width: 1087px;
  margin: 0 auto;
}

.odh-story__img img {
  -webkit-transition: -webkit-transform .3s;
  transition: transform .3s;
  -webkit-box-shadow: 0 10px 30px rgba(20, 30, 60, 0.18);
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.18);
}

.odh-story__img:hover img {
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
}

/* galeria */

.odh-gallery {
  padding: 101px 0 112px;
  text-align: center;
  background-color: #fff;
}

.odh-gallery__title {
  margin: 0 0 40px;
  font-size: 59px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.034em;
  color: #1c2b4b;
}

.odh-gallery__title span {
  display: block;
  font-size: 69px;
  color: #b8975a;
}

/* zavřený stav: pás 5 fotek přes celou šířku, krajní jsou oříznuté oknem */
.odh-gallery__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.odh-gallery__list li {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 19.5vw;
  margin: 0 0.8vw;
}

.odh-gallery__list:not(.is-open) li:nth-child(n+6) {
  display: none;
}

.odh-gallery__list a {
  position: relative;
  display: block;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 40px;
  background-color: #e9eefb;
}

.odh-gallery__list img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: -webkit-transform .4s;
  transition: transform .4s;
}

.odh-gallery__list img:not([src]) {
  visibility: hidden;
}

.odh-gallery__list a:hover img {
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}

/* otevřený stav: mřížka všech fotek v šířce obsahu */
.odh-gallery__list.is-open {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  max-width: 1630px;
  margin: 0 auto;
  padding: 0 12px;
}

.odh-gallery__list.is-open li {
  width: 20%;
  margin: 0;
  padding: 8px;
}

.odh-gallery__list.is-open a {
  border-radius: 29px;
}

.odh-gallery__list.is-open li:nth-child(n+6) {
  -webkit-animation: odh-fade .5s both;
  animation: odh-fade .5s both;
}

@-webkit-keyframes odh-fade {
  from { opacity: 0; -webkit-transform: translateY(16px); }
  to { opacity: 1; -webkit-transform: none; }
}

@keyframes odh-fade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.odh .odh-button {
  display: inline-block;
  margin-top: 72px;
  padding: 17px 35px 16px;
  border: 4px solid #b8975a;
  border-radius: 16px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.033em;
  color: #b8975a;
  text-decoration: none;
  -webkit-transition: background-color .25s, color .25s;
  transition: background-color .25s, color .25s;
}

.odh .odh-button:hover {
  background-color: #b8975a;
  color: #fff;
  text-decoration: none;
}

/* modal (video + lightbox galerie) */

.odh-lock {
  overflow: hidden;
}

.odh-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  display: none;
  background-color: rgba(13, 21, 40, 0.94);
  text-transform: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.odh-modal.is-open {
  display: block;
  -webkit-animation: odh-modal .25s both;
  animation: odh-modal .25s both;
}

@-webkit-keyframes odh-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes odh-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.odh-modal__in {
  position: absolute;
  top: 64px;
  right: 76px;
  bottom: 64px;
  left: 76px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.odh-modal video,
.odh-modal__in img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  background-color: #000;
  -webkit-box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.odh-modal video {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
}

.odh-modal__in img.is-loading {
  opacity: .25;
}

.odh .odh-modal__close,
.odh .odh-modal__nav {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
  color: #fff;
  text-decoration: none;
  opacity: .85;
  -webkit-transition: background-color .2s, opacity .2s;
  transition: background-color .2s, opacity .2s;
}

/* křížek a šipky jsou kreslené tenkou linkou, znak v odkazu se nezobrazuje */
.odh-modal__close:before,
.odh-modal__close:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 1px;
  margin-left: -13px;
  background-color: #fff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.odh-modal__close:after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.odh-modal__nav:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -12px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.odh-modal__nav--prev:before {
  margin-left: -4px;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.odh .odh-modal__close {
  top: 8px;
  right: 12px;
}

.odh .odh-modal__nav {
  top: 50%;
  margin-top: -26px;
}

.odh .odh-modal__nav--prev {
  left: 12px;
}

.odh .odh-modal__nav--next {
  right: 12px;
}

.odh .odh-modal__close:hover,
.odh .odh-modal__nav:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.odh-modal__count {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  font-family: 'Arbutus Slab', Georgia, serif;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  color: #fff;
  opacity: .8;
}

/* responsive */

/* VARIANTA nad 1920px: hero už neroste, zůstává na výšce a velikostech z návrhu a fotka se kotví nahoře
   (ořízne se její spodek, texty a postavy se nepřekryjí). Smazáním tohoto bloku se hero vrátí k růstu se šířkou okna. */
@media all and (min-width: 1921px) {
  .odh-hero { min-height: 1249px; padding-top: 46px; background-position: center top; }
  .odh-play__icon { width: 148px; height: 148px; margin-bottom: 46px; }
  .odh-play__icon svg { padding: 32px; }
  .odh-play__text { font-size: 38px; }
  .odh-hero__title { margin-top: 50px; font-size: 100px; }
  .odh-hero__title span { margin-top: 32px; font-size: 51px; }
}

/* návrh je kreslený na šířku 1920px, pod ní se vše zmenšuje úměrně šířce okna */
@media all and (max-width: 1920px) {
  .odh p { font-size: 1.53vw; }
  .odh-wrap { max-width: 84.9vw; }
  .odh-title { margin-bottom: 1.67vw; padding-bottom: 1.25vw; border-bottom-width: 3px; font-size: 2.78vw; }
  .odh-title--full { font-size: 2.3vw; }
  .odh-intro { padding: 7vw 0 7.2vw; }
  .odh-intro__img img,
  .odh-place__map iframe,
  .odh-story__img img { border-radius: 2.36vw; }
  .odh-place { padding: 7.2vw 0 7.5vw; }
  .odh-place__text { border-right-width: 3px; }
  .odh-place__text .odh-title { padding-right: 4.17vw; }
  .odh-address { margin-bottom: 3.9vw; font-size: 1.39vw; }
  .odh-address__icon { width: 3.47vw; height: 3.47vw; margin-right: 1.25vw; }
  .odh-address__icon svg { padding: 0.76vw; }
  .odh-place__map iframe { min-height: 29vw; }
  .odh-story { padding: 3.05vw 0 4.17vw; }
  .odh-story__title { margin-bottom: 1.94vw; font-size: 2.78vw; }
  .odh-story__img { max-width: 56.6vw; }
  .odh-gallery { padding: 5.28vw 0 5.83vw; }
  .odh-gallery__title { margin-bottom: 2.08vw; font-size: 3.05vw; }
  .odh-gallery__title span { font-size: 3.6vw; }
  .odh-gallery__list a { border-radius: 2.08vw; }
  .odh-gallery__list.is-open { max-width: 84.9vw; }
  .odh-gallery__list.is-open a { border-radius: 1.53vw; }
  .odh .odh-button { margin-top: 3.75vw; padding: 0.9vw 1.8vw 0.83vw; border-width: 3px; border-radius: 0.83vw; font-size: 1.67vw; }
}

@media all and (max-width: 989px) {
  .odh p { font-size: 14px; }
  .odh-title { margin-bottom: 18px; padding-bottom: 12px; border-bottom-width: 2px; font-size: 26px; }
  .odh-title--full { font-size: 24px; }
  .odh-wrap { max-width: none; padding: 0 30px; }
  .odh-play__text { font-size: 17px; }
  .odh-address { font-size: 14px; }
  .odh-address__icon { width: 40px; height: 40px; margin-right: 14px; }
  .odh-address__icon svg { padding: 9px; }
  .odh-place__text { border-right-width: 2px; }
  .odh-place__text .odh-title { padding-right: 30px; }
  .odh-intro__img img,
  .odh-place__map iframe,
  .odh-story__img img { border-radius: 24px; }
  .odh-story__title { font-size: 26px; }
  .odh-story__img { max-width: 62%; }
  .odh-gallery__title { font-size: 28px; }
  .odh-gallery__title span { font-size: 34px; }
  .odh-gallery__list a { border-radius: 20px; }
  .odh-gallery__list.is-open { max-width: none; padding: 0 22px; }
  .odh-gallery__list.is-open li { width: 25%; }
  .odh .odh-button { margin-top: 36px; padding: 11px 22px 10px; border-width: 2px; border-radius: 10px; font-size: 17px; }
}

@media all and (max-width: 767px) {
  .odh p { font-size: 14px; line-height: 1.5; text-align: left; }
  .odh-wrap { padding: 0 20px; }
  /* fotka je dole na 150 % šířky, přechod nahoře schová její horní hranu */
  .odh-hero { min-height: 0; padding: 30px 0 62vw; background-color: #dbe8f8; background-image: linear-gradient(to bottom, #dbe8f8 160px, rgba(219, 232, 248, 0) 270px), url(../images/odhalenie/hero.jpg); background-repeat: no-repeat; background-position: 0 0, center bottom; -webkit-background-size: 100% 100%, 150% auto; background-size: 100% 100%, 150% auto; }
  .odh-play__icon { width: 68px; height: 68px; margin-bottom: 14px; }
  .odh-play__icon svg { padding: 15px; }
  .odh-play__text { font-size: 15px; letter-spacing: -0.3px; }
  .odh-hero__title { margin-top: 22px; font-size: 8.6vw; letter-spacing: -1px; }
  .odh-hero__title span { margin-top: 8px; font-size: 5.4vw; letter-spacing: -0.5px; }
  .odh-intro,
  .odh-place { padding: 50px 0; }
  .odh-intro .odh-wrap,
  .odh-place .odh-wrap { display: block; }
  .odh-intro__img,
  .odh-intro__text,
  .odh-place__map { width: auto; }
  .odh-intro__img { margin-bottom: 34px; }
  .odh-title br { display: none; }
  .odh-place__text { width: auto; padding: 0 0 36px; border-right: 0; }
  .odh-address { margin-bottom: 36px; }
  .odh-place__map iframe { height: 300px; min-height: 0; }
  .odh-story { padding: 36px 0 42px; }
  .odh-story:before,
  .odh-story:after { width: 34%; height: 60%; opacity: .55; }
  .odh-story__title { margin-bottom: 20px; font-size: 22px; letter-spacing: -0.8px; }
  .odh-story__img { max-width: none; }
  .odh-gallery { padding: 46px 0 54px; }
  .odh-gallery__title { margin-bottom: 22px; font-size: 24px; letter-spacing: -0.8px; }
  .odh-gallery__title span { font-size: 30px; }
  .odh-gallery__list li { width: 40vw; margin: 0 1.5vw; }
  .odh-gallery__list:not(.is-open) li:nth-child(n+4) { display: none; }
  .odh-gallery__list.is-open { padding: 0 14px; }
  .odh-gallery__list.is-open li { width: 33.333%; padding: 5px; }
  .odh-gallery__list.is-open a { border-radius: 14px; }
  .odh .odh-button { margin-top: 28px; font-size: 15px; letter-spacing: -0.3px; }
  .odh-modal__in { top: 60px; right: 10px; bottom: 60px; left: 10px; }
  .odh .odh-modal__close,
  .odh .odh-modal__nav { width: 44px; height: 44px; }
  .odh .odh-modal__nav { top: auto; bottom: 8px; margin-top: 0; }
}

@media all and (max-width: 500px) {
  .odh-gallery__list.is-open li { width: 50%; }
}
