.circular--portrait {
    position: relative;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
  }
  
  .circular--portrait img {
    width: 120%;
    height: auto;
  }

  div.scroll {
    overflow-y: auto;

  }

  .scrollable {
    overflow: auto;
    max-height: 100vh;
  }

  #tm-section-11 { 
    max-width: 100%; 
    padding: 20px;
    height: 100%;
  }

  .carousel {
    align-self: center;
    height: 50%;
  }
  /* carousel-caption{
    position:absolute;
    right:15%;
    top:20px;
    left:15%;
    z-index:10;
    padding-top:20px;
    padding-bottom:20px;
    color:#fff;
    text-align:left
  } */
 .carousel-caption-hidden {
  	opacity:0;
  	transition:500ms ease-in-out;
    font-size: small;
    top:0px;
    left:20px;
    text-align:left;
    padding-top:5px;
  }
  .image-camera {
    font-size: smaller;
  }
  .pic-info {
    font-size: smaller;
    line-height: 100%;
  }
  .detail {
    position: relative;
  }
  .detail-image-caption {
    /* position:absolute;
    right:15%;
    left:15%;
    bottom: 10px; */
    z-index:10;
    font-size: smaller;
    line-height: 100%;
    text-align:center;
    opacity:0.7;
    transition:500ms ease-in-out;
  }
  .image-display {
    width: 100%;
  }
  
  /* Customise the gallery image title */
  .mfp-bottom-bar {
    margin-top: -40px;
    background-color: rgb(0, 0, 0);
  }
  .mfp-title {
    text-align: center;
    line-height: 18px;
    color: #c7c7c7;
    word-wrap: break-word;
    padding-right: 36px;
    font-size: 12px;
   }
  
  /* SHow hide titles */
  #os-popup-item {
	  position:absolute;
	  left:auto;
	  right:auto;
	  display: none;
  }
  .os-popup {
    display: none;
    text-align: center;
    align-content: center;
    width:100%;
    position: absolute;
    bottom: 0;
    left: auto;
    right: auto;
    padding: 10px 10px;
  }

  .os-showpopup:hover .os-popup {
	display: block;
  }
  
  .detail-image:hover .detail-image-caption {
		opacity:1;
	}

 .carousel-item:hover .carousel-caption{
		opacity:1;
	}
	.os-showpopup:hover .carousel-caption{
		opacity:1;
	}
	
	/* Modal popup */
	#myImg {
  border-radius: 0px;
 cursor: zoom-in; 
  transition: 0.3s;
}

#myImg:hover {opacity: 1.0;}

#hvrImg:hover {
	background-color: rgba(0,0,0,0.45);  
  text-decoration: none;
  border: 1px solid #ffad33;
}
.tm-section a:hover .circular--portrait {
    border-color: #ffad33;
}
.selected {
  color:  #ffad33;
  border-color: #ffad33;
}
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 99999; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  border-radius: 0px;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 100%;
 
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}



/* Modals */

.modal-wrapper {
  align-items: center;
  background-color: rgba(100, 100, 100, 0.5);
  bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  height: 100vh;
  justify-content: center;
  left: 0;
  opacity: 0;
  position: fixed;
  right: 0;
  transition: all 0.2s ease-in-out;
  visibility: hidden;
  width: 100%;
  z-index: 1000;
}

.modal-wrapper.visible {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background-color: rgba(0, 0, 0, 0.753);
  border-radius: 0px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  padding: 5px;
  transform: scale(0);
  transition: 0.2s ease-in-out all;
}

.modal-wrapper.visible .modal-window {
  transform: scale(1);
}

.modal-header {
  align-items: center;
  border-bottom: 2px solid black;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.close-modal-button {
  border: none;
  background-color: transparent;
  color: rgb(112, 112, 112);
  cursor: pointer;
  padding: 0.2em;
  text-align: right;
  vertical-align: top;
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-modal-button:hover {
  color: black;
}

.modal-trigger {
  color: rgb(10, 47, 255);
  cursor: pointer;
  text-decoration: underline;
}

.modal-trigger:hover {
  border: 1px solid #ffad33;
}

.p-sm-c p {
  font-size: small; 
  text-align: center;
}

/* Browser */
.h-220 {
  min-height: 220px;
}

.h-200 {
  min-height: 200px;
}
.column.sidebar {
  float: left;
  width: 20%;
  height: 100vh;
  background-color: rgb(43, 43, 43);
  padding-top: 20px;
  padding-left: 10px;
  padding-right: 10px;
}

.container.sidebar {
  width: 100%;
  height: 100%;
}

.d-flex {
  height: 100%;
  width: 100%;
}
.flex-column {
  width: 100%;
}

#img-list {
  height: 100%;
  overflow-y: scroll;
}

#sidebar-title {
  border-bottom: 1px solid #ffad33;
  padding-bottom: 5px;
}

#sidebar-caption {
  font-size: 16px;
  font-weight: bold;
}

#sidebar-list {
  height: 100%;
  overflow-y: scroll;
  font-size: 16px;
}

.row {
  width: 100%;
}

.column.detail {
  width: 80%;
  height: 100vh;
  overflow: auto;
  align-content: center;
  vertical-align: middle;
}

#detail {
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: 100%;
}

#textbox {
  display: flex;
  justify-content: space-between;
}

#document {
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 300;
  color: white;
	min-height: 100vh;
  height: 100%;
  position: relative;
  background: #222222;
  width: 80%;
  max-width: 1000px;
  margin-left: 50px;
}
#single-document {
	font-family: 'Open Sans', Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: 300;
  color: white;
	min-height: 100vh;
  height: 100%;
  position: relative;
  background: #222222;
  margin-left: 50px;
  margin-right: 50px;
}

ul {margin-left: 0; padding-left: 20px;}

#bullet-list {font-size: 14px;}

#text-subscript {font-size: 12px;}

#embedded-image {
  width: 100%;
}

#loaderX {
  position: fixed;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: visible;
  background: #fff url('loader.gif') no-repeat center center;
}

#pre-loader{
	position: fixed;
	width: 100%;
	height: 100vh;
	background: #21242d url('https://duncangroenewald.com/img/gallery/loader.jpg') no-repeat center;
  background-size: cover;
	z-index: 999;
}

#pre-loader2{
	position: fixed;
	width: 100%;
	height: 100vh;
	background: #000000;
  background-size: cover;
	z-index: 999;
}

#centered-loader {
  /* width: 200px;  */
  color: #ffad33;  
  text-align: center; 
  margin: auto;  
  line-height: 100px; 
  height: 100px; 
  font-weight: bold; 
  font-size: large; 
  border:1px solid #ffad33;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50px;
  padding-left: 20px;
  padding-right: 20px;
}

.centered-loader-title {
  width: 400px; 
  height: 400px;
  text-align: center; 
  margin: auto;  
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Gallery layout */
.videoRow {
  clear: left;
  width: 100%;
  flex-wrap: nowrap;
  /* overflow-x: hidden; */
  /* direction: rtl;*/
}

.imgRow {
  clear: left;
  width: 100%;
  flex-wrap: nowrap;
  /* overflow-x: hidden; */
  /* direction: rtl;*/
}

.thumbnail-image {
  display: flex;
  justify-content: flex-end;
  overflow-x: hidden;
  overflow-y: hidden;
}

/*
.imgRow img {
  float: left;
  margin-left: 0px;
} */

.container-fluid {
  padding-left: 0px;
  padding-right: 0px;
}

.col-img {
  position: relative;
  min-height: 1px; 
  padding: 2px;
  display: inline-block; 
  direction: ltr;
  cursor: zoom-in;
}

.image-display {
  max-width: none;
  padding-top: 3px;
  padding-bottom: 5px;
  padding-left: 5px;
  padding-right: 10px;
  
}

.col-img img {
  max-width: none;
  cursor: zoom-in;
}

.viewer-download {
  color: #fff;
  font-family: FontAwesome, serif;
  font-size: 0.75rem;
  line-height: 1.5rem;
  text-align: center;
}

.viewer-download::before {
  content: "\f019";
}