:root {
  --si-head-height: 40vh; 	/* height of head image */
  --si-left-width: 33%;  	/* width of left floating image */
  --si-right-width: 33%; 	/* width of right floating image */
}

.simage {
	max-width: 100%;
	position: relative;
	z-index: 0;
}
.simage img {
	max-width: 100%;
	height: auto !important;
}

.simage div.si-head {
	height:var(--si-head-height); 
	overflow: hidden;
	position: relative;
	z-index: -1;
}

.simage div.si-head img {
	position:absolute;
    top: 50%;
    transform: translateY(-50%);
    max-width: 100%;
}
	
.simage figure.si-left,
.simage img.si-left {
	float: left;
	margin: 5px 20px 0px 0px;
	max-width: var(--si-left-width); ;
}
.simage figure.si-right,
.simage img.si-right {
	float: right;
	margin: 5px 0px 0px 20px;
	max-width: var(--si-right-width); ;
}

@media (max-width: 767px) {
	.simage figure.si-left,
	.simage img.si-left,
	.simage figure.si-right,
	.simage img.si-right {
		float: none;
		max-width: 100%;
		margin: 0;
	}
}



/* create extra margins around floating images */
.simage figure.si-caption[style*="float:left"],figure.si-caption[style*="float: left"],figure.si-caption[align="left"] {
  margin: 5px 15px 0px 0px;
}
.simage figure.si-caption[style*="float:right"],figure.si-caption[style*="float: right"],figure.si-caption[align="right"] {
  margin: 5px 0px 0px 15px;
}

/* set captions */
.simage figure.si-caption {
	position: relative;
	display: inline-block;
	max-width: 100%;
	height: auto !important;
}
.simage figure.si-caption figcaption {
    background: rgba(0,0,0,0.6);
    color: #fff;
    text-align: center;
    padding: 5px;
	font-size: 12px;
	line-height: 20px;
	position: absolute;
	bottom: 0;
	width: 100%;
	opacity: 0; /* remove to show caption always */
	-webkit-transition: opacity .6s ease-in-out;
	-moz-transition: opacity .6s ease-in-out;
	-o-transition: opacity .6s ease-in-out;
	transition: opacity .6s ease-in-out;
}
.simage figure.si-caption:hover figcaption {
  opacity: 1;
}

.simage figure.si-caption figcaption a {
    color: #fff;
	text-decoration: none;
}

/* set hover questionmark - remove when caption is always shown */
.simage figure:before { 
  content: "?"; 
  position: absolute; 
  background: rgba(255,255,255,0.95); 
  color: black;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 20px;
  -webkit-transition: all 0.6s ease;
  -moz-transition: all 0.6s ease;
  -o-transition: all 0.6s ease;
  transition: all 0.6s ease;
  opacity: 0.95;	
  bottom: 5px; 
  right: 5px; 
}
.simage figure:hover:before {
  opacity: 0;
}
