@font-face {
  font-family: titil;
  src: url(fonts/TitilliumText22L002.otf) format("opentype");
}

@font-face {
  font-family: titili;
  src: url(fonts/TitilliumText22L003.otf) format("opentype");
  font-style: italic;
}

@font-face {
  font-family: titilb;
  src: url(fonts/TitilliumText22L005.otf) format("opentype");
  font-weight: bold;
}

body {
  font: 16px "titil", "Lucida Grande", "Trebuchet MS", Verdana, Arial, sans-serif;
  line-height: 1.4;
  padding: 40px 20px;
  margin: 0 auto;
  width: auto;
  /* NOTE: cela vyska minus padding */
  min-height: calc(100dvh - 80px); 
  /* NOTE: layout stranek */
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 1fr auto;
  align-items: flex-start;
}

b,
strong,
h1,
h2,
h3,
h4,
h5 {
  font-style: normal;
  font-family: "titilb", "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
}

i,
em {
  font-style: normal;
  font-family: "titili", "Lucida Grande", "Trebuchet MS", Verdana, sans-serif;
}

a {
  color: #000;
}

a:hover,
a:active {
  color: #603;
}

ul,
footer p {
  margin: 0;
}

#home img {
  display: block;
  margin: 0 auto;
}

a img {
  border: 0;
}

body,
nav li a:hover,
nav li a.selected {
  color: #3a464d;
}

nav {
  background-color: #e6e8eb;
  padding: 1em;
  margin: 0;
  width: 155px;
  min-height: 155px;
  /* NOTE: sticky pozice */
  top: 145px;
  position: sticky;
}

nav ul {
  list-style: none inside none;
  padding: 0;
}

/* NOTE: proklad navigace */
nav li {
  margin: 0;
  line-height: 1.6em;
}

nav li a,
li a:visited {
  color: #c06;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .1s ease-out;
  -moz-transition: color .1s ease-out;
  -o-transition: color .1s ease-out;
  -webkit-transition: color .1s linear;
}

nav li.selected ul {
  display: block;
}

nav li ul li a,
nav li ul li a:visited {
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
}

nav li a:hover,
nav li ul a.selected,
nav li ul a.selected:visited {
  color: #3a464d;
}

/* NOTE: layout galerií */
article#design,
article#photo {
  display: grid;
  grid-template-columns: repeat(auto-fill, 100px);
  grid-gap: 5px;
}

/* NOTE: proklad textu na About */
article#curriculum li {
  margin-bottom: 0.4rem;
}

article+article {
  display: none;
}

footer {
  /* NOTE: zobraz az ve 2. sloupci */
  grid-column-start: 2;
  margin-top: 2em;
}

/*footer p {text-align: right;}*/

article#home {
  padding-top: 60px;
  left: -10px;
}

/* design page */
#design img,
#design div,
#design a,
#photo img,
#photo div,
#photo a {
  width: 100px;
  height: 100px;
  margin: 0;
}

.boxes div {
  float: left;
}

.boxes img,
.boxes div,
.boxes a {
  display: flex;
  background-color: #c0c5ca;
  text-align: center;
}

.boxes div {
  overflow: hidden;
}

.boxes div a {
  display: flex;
  color: inherit;
  -moz-box-shadow: inset 0 0 4px #c0c5ca;
  box-shadow: inset 0 0 4px #c0c5ca;
  text-decoration: none;
  transition: all 1s ease-out;
  /*transform-origin: top left;*/
}

.boxes div:hover a {
  scale: 1.5;
  transition-duration: 0.25s;
}

.boxes div a h3,
.boxes div a p {
  opacity: 0;
}

.boxes a h3 {
  padding: 30px 10px 0;
  margin: 0 0 .5em;
  text-transform: uppercase;
}

.boxes a p {
  padding: 0 10px;
  margin: 0;
}

#design div.add-1 a {
  background-image: url('../images/design/appl2017_nhl.jpg');
}

#design div.add-2 a {
  background-image: url('../images/design/BE_doporuc_nhl.jpg');
}

#design div.add-3 a {
  background-image: url('../images/design/wia tacky_nhl.jpg');
}

#design div.add-4 a {
  background-image: url('../images/design/pieshopFB_nhl.jpg');
}

#design div.add-5 a {
  background-image: url('../images/design/orea_petfriendly_nhl.jpg');
}

#design div.kampan-1 a {
  background-image: url('../images/design/kampan_nove_celakovice-nahled.jpg');
}

#design div.kampan-2 a {
  background-image: url('../images/design/kampan_cestovaniproseniory-nahled.jpg');
}

#design div.kampan-3 a {
  background-image: url('../images/design/kampan_conception_kit-nahled.jpg');
}

#design div.kampan-4 a {
  background-image: url('../images/design/kampan_femivaxin-nahled.jpg');
}

#design div.kampan-5 a {
  background-image: url('../images/design/kampan_krasna_hurka-nahled.jpg');
}

#design div.print-1 a {
  background-image: url('../images/design/applause_sum_nhl.jpg');
}

#design div.print-2 a {
  background-image: url('../images/design/publikace_retail_book-nahled.jpg');
}

#design div.print-3 a {
  background-image: url('../images/design/publikace_ufo_omd-nahled.jpg');
}

#design div.print-4 a {
  background-image: url('../images/design/wia_plachty_nhl.jpg');
}

#design div.logo-1 a {
  background-image: url('../images/design/logo_koruna-nahled.jpg');
}

#design div.logo-2 a {
  background-image: url('../images/design/logo_divine_energy-nahled.jpg');
}

#design div.logo-3 a {
  background-image: url('../images/design/zayaCInhl.jpg');
}

#design div.logo-4 a {
  background-image: url('../images/design/brandspartner_nhl.jpg');
}

#design div.logo-5 a {
  background-image: url('../images/design/logo_turnov_pro_rodinu-nahled.jpg');
}

#design div.etc-1 a {
  background-image: url('../images/design/naruc_turnov_nhl.jpg');
}

#design div.etc-2 a {
  background-image: url('../images/design/ci_apolloLED_nahled.jpg');
}

#design div.etc-3 a {
  background-image: url('../images/design/ci_certak_nahled.jpg');
}

#design div.etc-4 a {
  background-image: url('../images/design/vseznalekCInhl.jpg');
}


/* campaigns */
#campaign {
  margin-top: 155px;
}

#campaign div,
#publication div {
  background-color: #c0c5ca;
  width: 227px;
  height: 227px;
  float: left;
  margin: 0 6px 6px 0;
  text-align: center;
}

/* photo */
#photography div.photo-1 a {
  background-image: url('../images/photo/info_web_nhl.jpg');
}

#photography div.photo-2 a {
  background-image: url('../images/photo/IMG_0023nhl.jpg');
}

#photography div.photo-3 a {
  background-image: url('../images/photo/IMG_0148nhl.jpg');
}

#photography div.photo-4 a {
  background-image: url('../images/photo/IMG_0186nhl.jpg');
}

#photography div.photo-5 a {
  background-image: url('../images/photo/IMG_0449nhl.jpg');
}

#photography div.photo-6 a {
  background-image: url('../images/photo/IMG_0460nhl.jpg');
}

#photography div.photo-7 a {
  background-image: url('../images/photo/IMG_0474nhl.jpg');
}

#photography div.photo-8 a {
  background-image: url('../images/photo/IMG_0500nhl.jpg');
}

#photography div.photo-9 a {
  background-image: url('../images/photo/IMG_9625nhl.jpg');
}

#photography div.photo-10 a {
  background-image: url('../images/photo/IMG_9716nhl.jpg');
}

#photography div.photo-11 a {
  background-image: url('../images/photo/IMG_9764nhl.jpg');
}

#photography div.photo-12 a {
  background-image: url('../images/photo/IMG_9964nhl.jpg');
}

#photography div.photo-13 a {
  background-image: url('../images/photo/IMG_9970nhl.jpg');
}

.boxes div.break {
  float: none;
}

/* publication */


/*contact*/
#contact {
  padding-top: 100px;
}

#contact h2 {
  display: none;
}

#contact ul {
  padding: 0;
  list-style: none inside none;
}

#contact ul li {
  margin: .5em 0;
  line-height: 1.5;
}

#contact strong {
  text-transform: uppercase;
  color: #3A464D;
  display: block;
  float: left;
  width: 6em;
  text-align: right;
  padding-right: .7em;
  margin: 0 .5em 0 0;
}

/* lightbox */
#lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#lb.open {
  display: flex;
}

#lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

#lb-img {
  position: relative;
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
  z-index: 1;
}

@keyframes from-right {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes from-left {
  from { transform: translateX(-40px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

#lb-img.anim-right { animation: from-right 0.22s ease; }
#lb-img.anim-left  { animation: from-left  0.22s ease; }

#lb-close,
#lb-prev,
#lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  line-height: 1;
}

#lb-close:hover,
#lb-prev:hover,
#lb-next:hover {
  opacity: 1;
}

#lb-close {
  top: 0.5rem;
  right: 0.75rem;
  font-size: 2rem;
  padding: 0.25rem 0.5rem;
}

#lb-prev,
#lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#lb-prev { left: 0.75rem; }
#lb-next { right: 0.75rem; }

/* screen size */
/*@media all and (min-height: 620px) {
  footer {position:absolute;bottom:20px;}
}*/
@media all and (max-width: 520px) {
  body {
    width: auto;
    display: block;
    padding: 20px;
  }

  img {
    max-width: 100%;
  }

  nav {
    margin: 0 0 2em;
    width: auto;
    min-height: unset;
    position: static;
  }

  article {
    margin: 0;
  }

  article+article {
    display: block;
  }

  footer {
    margin: 0;
  }
}
