html {
  height: 100vh;
}
body {
  padding: 5px;
  color: #424242;
  font-family: Helvetica, Helvetica, Arial, sans-serif;
  /* line-height: 102%; */
  font-size: 17pt;
  height: 100vh;
  overflow: hidden;
}
body::-webkit-scrollbar,
#sidebar::-webkit-scrollbar {
  width: 0.5em;
}

body::-webkit-scrollbar-track,
#sidebar::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb,
#sidebar::-webkit-scrollbar-thumb {
  background-color: #ccc;
  outline: 1px solid slategrey;
}
#header {
  /*border-bottom: solid 1px #ccc;*/
  margin-bottom: 30px;
  padding: 5px 5px 0px 5px;
  height: 35px;
}

#main-picture-wrap {
  position: relative;
}

#picture-container {
  position: absolute;
  left: 20px;
  top: 23px;
  width: calc(100% - 40px);
  height: calc(100vh - 150px);
  text-align: -webkit-center;
  text-align: center;
  display: inline-block;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.15s ease-out 0s;
}

#sidebar {
  /* float: left; */
  text-align: center;
  opacity: 0;
  width: 140px;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 800px;
  position: absolute;
  left: 5px;
  top: 75px;
}

#sidebar .photo-link {
  margin: 10px !important;
  height: auto;
}

#main-content {
  height: calc(100vh - 110px);
}

#main-picture-wrap {
  height: calc(100vh - 110px);
  margin-left: 150px;
  text-align: -webkit-center;
  text-align: center;
}

#logo {
  float: left;
  font-size: 16pt;
  margin: 8px 30px;
  line-height: 0.9;
}
#logo a {
  text-decoration: none;
  color: #797575;
}

#footer {
  width: 100%;
  /* height: 50px; */
  border-top: 1px solid #ccc;
  bottom: 0;
  z-index: 1;
  padding: 8px;
}

.clear {
  clear: both;
}

.thums-container {
  text-align: start;
}

.photo-holder {
  display: table;
  float: left;
  height: 116px;
  width: 118px;
  max-height:116px;
  max-width: 118px;
  margin: 7px;
  position: relative;
/* background: #c0c0c0;*/
}

.photo-link {
  vertical-align: middle;
  display: table-cell;
  text-align: center;
  -webkit-transition: 1s;
  transition: 1s;
}

#sidebar .photo-link {
  /*margin: 0 15px; */
  vertical-align: middle;
  display: inline-flex;
  /* position: relative; */
  height: 100px;
  /* float: left; */
  align-items: center;
  -webkit-transition: 1s;
  transition: 1s;
}

.photo-link img {
  overflow: auto;
  display: inline;
  max-width: 118px;
  max-height: 116px;
  vertical-align: middle;
  width: auto;
  height: auto;
  margin: 0 auto;
  -webkit-filter: contrast(105%);
  filter: contrast(105%);
}

.arrow-left {
  position: relative;
  width: 45%;
  height: 100%;
  float: left;
  cursor: url(img/arrow-left.png), auto;
}

.arrow-right {
  position: relative;
  width: 45%;
  height: 100%;
  float: right;
  cursor: url(img/arrow-right.png), auto;
}

#next-picture {
  position: absolute;
  right: 10px;
  top: 42%;
  z-index: 1;
  cursor: pointer;
  display: none;
  border-radius: 30px;
}

#previous-picture {
  position: absolute;
  left: 10px;
  top: 42%;
  z-index: 1;
  cursor: pointer;
  display: none;
  border-radius: 30px;
}
#next-picture img,
#previous-picture img {
  padding-top: 4px;
}

#comment {
  bottom: 0;
  font-size: 10px;
  line-height: 1.5;
  padding: 0 0 20px;
  position: absolute;
  right: -320px;
  text-align: left;
  width: 280px;
  transition: all 0.15s ease-out 0s;
}

.shown-comments {
  transition: all 0.15s ease-out 0s;
  right: 0px !important;
}

.makeroom {
  transition: all 0.15s ease-out 0s;
  left: 20px !important;
  width: calc(100% - 320px) !important;
  background-position: center bottom !important;
}

.comment-text {
  margin: 0 auto;
}

#first-image {
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

#image {
  -webkit-transition: 1000ms;
  transition: 1000ms;
  cursor: move;
  cursor: move;
}

.page-title {
  width: 50%;
  margin: 0 auto;
  text-align: center;
  font-size: 200%;
  font-weight: bold;
  padding: 25px;
}

.zoom-button-wrap {
  text-align: right;
  margin-bottom: 0;
  margin-right: 46px;
  font-size: 12px;
}

#show-description,
#activete-zoom {
  padding-right: 6px;
  padding-left: 25px;
  cursor: pointer;
  text-decoration: none;
  color: #006699;
}

.zoom-button {
  display: inline-block;
  padding: 6px 8px 0px;
  margin: 5px;
  border: solid 1px #ccc;
  cursor: pointer;
  -webkit-filter: opacity(65%);
  filter: opacity(65%);
  border-radius: 5px;
  transition: 1s;
}
.zoom-button:hover {
  border: solid 1px #aaa;
  background: #ccc;
}
.zoom-button img {
  width: 38px;
}

#orizontal-button {
  border: solid 1px;
}

ul.zoomcontrols-back {
  position: relative;
  float: right;
  margin: 0;
  padding: 0;
  list-style: none;
  top: 15px;
  right: 0;
  display: block;
  cursor: pointer;
}

ul.zoomcontrols-back li,
ul.zoomcontrolsnew li {
  width: 40px;
  height: 40px;
  font: 2.5em Arial;
  font-weight: 100;
  text-align: center;
}

ul.zoomcontrolsnew {
  position: relative;
  float: right;
  margin: 0;
  padding: 0;
  list-style: none;
  bottom: 220px;
  right: 0;
  /* top: 610px; */
  display: block;
  cursor: pointer;
}

#pcontainer1 {
  position: absolute;
  left: 0;
  top: 23px;
  width: 100%;
  height: calc(100vh - 150px);

  text-align: -webkit-center;
  text-align: center;
  display: inline-block;
}

.back {
  position: absolute;
  right: 20px;
  top: 15px;
  width: 33px;
  height: 33px;
  background-color: #fff;
  background-position: 5px 5px;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  cursor: pointer;
}

.zoomin {
  position: absolute;
  right: 20px;
  bottom: 70px;
  width: 33px;
  height: 33px;
  background-color: #fff;
  background-position: 5px 5px;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  cursor: pointer;
}

.zoomout {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 33px;
  height: 33px;
  background-color: #fff;
  background-position: 5px 5px;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  cursor: pointer;
}

.back img,
.zoomin img,
.zoomout img {
  width: 100%;
}

.pancontainer {
  position: relative;
  overflow: hidden;
  /*width: 500px; /* default pan container width */
  height: 200px; /* default pan container height */
}

.pancontainer img {
  display: block;
  margin: 0 auto;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

ul.zoomcontrols {
  position: absolute;
  margin: 0;
  padding: 0;
  list-style: none;
  bottom: -1px;
  right: 0;
  display: block;
  background: #eee;
  opacity: 0.5;
  cursor: pointer;
}

ul.zoomcontrols li {
  display: block;
  width: 40px;
  height: 40px;
  font: bold 2em Arial;
  text-align: center;
  border-bottom: 1px solid gray;
}

ul.zoomcontrols li:hover {
  background: #d1d1d1;
}

ul.topnav {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  position: absolute;
  right: 45px;
  font-size: 15px;
}

ul.topnav li {
  float: right;
}

ul.topnav li a {
  color: #170255;
  display: inline-block;
  text-align: center;
  padding: 6px 20px;
  text-decoration: none;
  transition: 0.3s;
  font-size: 17px;
}

.icon {
  display: none;
}

.contact-address a {
  display: inherit;
  color: #424242;
  text-decoration: none;
  margin-bottom: 43px;
}
.contact-address img {
  width: 33px;
  vertical-align: middle;
  margin-right: 10px;
}
.clement-picture {
  width: 45%;
  display: inline;
}
.clement-picture img {
  /* width: 50%; */
  max-width: 225px;
}
.contact-address {
  margin-top: 26px;
  font-size: 14px;
  width: 45%;
  display: inline-block;
  vertical-align: top;
  margin-left: 90px;
}
.main-address {
  padding-top: 15px;
}
/*****************\
Biography page 
\*****************/

div.main-content {
  font-size: 58%;
}
/*******************/

@media screen and (max-width: 1024px) {
  #pcontainer1 {
    width: 90%;
  }
}

@media screen and (max-width: 780px) {
  body {
    padding: 0;
    margin: 0;
  }
  #main-picture-wrap {
    margin: 0;
    padding: 0;
  }
  .zoom-button-wrap {
    margin-bottom: 20px;
    margin-top: 20px;
    margin-right: 30px;
  }
  ul.topnav li {
    display: none;
  }

  .makeroom {
    transition: all 0.15s ease-out 0s;
    left: 20px !important;
    width: calc(100% - 40px) !important;
    background-position: center center !important;
  }

  #comment {
    height: 100%;
    background: white;
    z-index: 100;
  }

  .comment-text {
    position: absolute;
    bottom: 20px;
  }

  /* cursed iPhone 5 styles */

  @media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (orientation: portrait) {
    .comment-text {
      bottom: 75px;
    }
  }

  /* end of iPhone 5 styles */

  .photo-link {
  }

  .thums-container {
    width: 305px;
    margin: 20px auto;
  }

  .icon {
    display: table-footer-group;
    position: absolute;
    right: 30px;
    top: 10px;
  }

  ul.topnav.responsive {
    display: table-cell;
    position: absolute;
    right: 60px;
    top: 50px;
    background: rgba(255, 255, 255, 0.81);
    z-index: 1;
  }

  ul.topnav.responsive li.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  ul.topnav.responsive li {
    float: none;
    display: inline;
  }
  ul.topnav.responsive li a {
    display: block;
    text-align: left;
  }

  #picture-container {
    height: 400px;
  }
  .contact-address {
    margin-left: 5%;
  }
  /* responsive setting */
  #pcontainer1 {
    width: 90%;
    height: 400px;
  }

  #sidebar {
    display: none !important;
    width: 100%;
    height: 140px;
    position: initial;
    margin: 10px 0 10px;
    padding: 10px 0;
  }

  #main-picture-wrap {
    margin-left: 0;
  }

  .zoomin {
    bottom: 70px;
  }
  .zoomout {
    bottom: 20px;
  }
}

@media screen and (max-width: 700px) {
  .contact-address a {
    margin-bottom: 32px;
  }
}

@media screen and (max-width: 550px) {
  /* responsive setting */
  #logo {
    margin: 8px 20px;
  }

  .clement-picture img {
    width: 100%;
  }

  .contact-address a {
    margin-bottom: 0px;
  }

  .main-content {
    margin-left: 5% !important;
  }
}

@media screen and (max-width: 450px) {
  /* responsive setting */

  #pcontainer1 {
    width: 95%;
  }

  ul.zoomcontrols-back {
    position: relative;
    float: none;
    list-style: none;
    top: 0;
    left: -90px;
    display: -webkit-inline-box;
    display: inline-box;
  }
}
