body {
  background: #FFFFFF;
  margin: 0;
  padding: 0;
  color: #000;
  font-family: Arial, sans-serif;
  overflow-y: auto;
}

.content {
  text-align: center;
  width: 100%;
  height: auto;
}

#container {
  text-align: center;
  width: 100%;
  height: auto;
  overflow: visible;
}

table.my_nav_table {
  width: 50%;
  vertical-align: top;
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.mymain_img {
  max-height: 80vh;
  max-width: 100%;
  width: auto;
  height: auto;
}

.mypage_img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.myback {
  max-height: 27px;
  display: inline-block;
  width: 80%;
  height: auto;
}

.myalbum {
  max-height: 27px;
  display: inline-block;
  width: 100%;
  height: auto;
}

.mynext {
  max-height: 27px;
  display: inline-block;
  width: 80%;
  height: auto;
}

.album_title {
  font-size: 18px;
  font-weight: bold;
  color: #882233;
  padding-bottom: 5px;
}

.photo_title {
  font-size: 16px;
  font-weight: normal;
  padding-top: 5px;
}

hr.new1 {
  border: 0;
  border-top: 1px solid #DDDDDD;
  margin-left: 200px;
  margin-right: 200px;
}

hr.new2 {
  border: 0;
  border-top: 2px dashed gray;
  margin-left: 50px;
  margin-right: 50px;
}

hr.wide {
  border-width: 4px;
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: red;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}

.photo_click {
  font-size: 10px;
}

.my_td_back,
.my_td_album,
.my_td_next {
  width: 33%;
}

table.my_footer_table {
  width: 60%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 10px;
}

.mygallery_title1 {
  width: 100%;
  display: block;
  float: left;
  padding-top: 5px;
  padding-right: 5px;
  padding-left: 5px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  box-sizing: border-box;
}

.main_album_link {
  padding-left: 5px;
  text-align: left;
  font-size: 12px;
  font-weight: bold;
}

.mygallery_title2 {
  width: 100%;
  display: block;
  float: left;
  padding: 5px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  box-sizing: border-box;
}

.mygallery_row_title {
  width: 100%;
  display: block;
  float: left;
  padding: 15px 5px 0 5px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  box-sizing: border-box;
}

.mygallery_row {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 5px;
  text-align: center;
  font-size: 16px;
  border: 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.mygallery_img {
  width: 150px;
  display: block;
  padding-top: 5px;
  padding-right: 8px;
  padding-bottom: 0;
  padding-left: 8px;
  text-align: center;
  font-size: 14px;
  border: 0;
  vertical-align: top;
  box-sizing: border-box;
  flex: 0 0 150px;
}

.mygallery_img img {
  display: inline-block;
  padding: 0;
  border: 0;
  max-width: 100%;
  height: auto;
}

.myLargerImageText {
  font-size: 10px;
  padding: 0 0 15px 0;
}

.myNextPrevText {
  font-size: 20px;
  padding: 0 0 15px 0;
  font-weight: bold;
  width: 100%;
}

.imagenumber {
  font-size: 10px;
  font-weight: bold;
  font-style: italic;
}

.mygallery_img_text {
  width: 150px;
  padding: 1px;
  text-align: center;
  font-size: 10px;
  font-weight: normal;
  border: 0;
  box-sizing: border-box;
}

.mygallery_icon {
  display: inline-block;
  padding: 1px 8px;
  text-align: center;
  font-size: 12px;
  border: 0;
  vertical-align: top;
  box-sizing: border-box;
}

/* Single photo page only */

.single-photo-page {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.single-photo-page #container.photo-page {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.single-photo-page .content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  overflow: hidden;
}

.single-photo-page #footer {
  flex: 0 0 auto;
  width: 100%;
}

.single-photo-page .album_title,
.single-photo-page .my_nav_table,
.single-photo-page .photo_title,
.single-photo-page .photo_click,
.single-photo-page .imagenumber,
.single-photo-page hr.new1,
.single-photo-page .myLargerImageText {
  flex: 0 0 auto;
}

.single-photo-page .album_title {
  width: 100%;
  line-height: 1.2;
  padding: 4px 8px 2px 8px;
  box-sizing: border-box;
}

.single-photo-page .my_nav_table {
  width: 50%;
}

.single-photo-page .photo_title {
  width: 100%;
  line-height: 1.2;
  padding: 4px 8px 0 8px;
  box-sizing: border-box;
}

.single-photo-page .photo_click {
  width: 100%;
  line-height: 1.1;
  padding: 2px 8px 4px 8px;
  box-sizing: border-box;
}

.single-photo-page .imagenumber {
  width: 100%;
  line-height: 1.1;
  padding: 2px 8px;
  box-sizing: border-box;
}

.single-photo-page .myLargerImageText {
  padding: 2px 0 4px 0;
}

.single-photo-page hr.new1 {
  margin-left: 20px;
  margin-right: 20px;
}

.single-photo-page .image-wrap {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px 8px;
  box-sizing: border-box;
}

.single-photo-page .image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.single-photo-page .mypage_img,
.single-photo-page .mymain_img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

@media screen and (max-width: 850px) {
  table.my_nav_table {
    width: 90%;
  }

  table.my_footer_table {
    width: 90%;
  }

  hr.new1 {
    margin-left: 10px;
    margin-right: 10px;
  }

  hr.new2 {
    margin-left: 10px;
    margin-right: 10px;
  }

  .album_title {
    font-size: 16px;
  }

  .photo_title {
    font-size: 14px;
  }

  .mygallery_title1 {
    font-size: 18px;
  }

  .mygallery_title2 {
    font-size: 16px;
  }

  .mygallery_row_title {
    font-size: 18px;
  }

  .myNextPrevText {
    font-size: 16px;
  }

  #myBtn {
    right: 10px;
    bottom: 10px;
    font-size: 14px;
    padding: 10px;
  }

  .single-photo-page .my_nav_table {
    width: 92%;
  }

  .single-photo-page .image-wrap {
    padding: 2px 4px;
  }

  .single-photo-page .album_title {
    padding: 4px 6px 2px 6px;
  }

  .single-photo-page .photo_title {
    padding: 4px 6px 0 6px;
  }

  .single-photo-page .photo_click,
  .single-photo-page .imagenumber {
    padding-left: 6px;
    padding-right: 6px;
  }
}