
@font-face {
    font-family: 'American Typewriter';
    src: url('fonts/American-Typewriter-Regular.eot');
    src: url('fonts/American-Typewriter-Regular.eot?#iefix') format('embedded-opentype'),
         url('fonts/American-Typewriter-Regular.woff2') format('woff2'),
         url('fonts/American-Typewriter-Regular.woff') format('woff'),
         url('fonts/American-Typewriter-Regular.ttf')  format('truetype'),
         url('fonts/American-Typewriter-Regular.svg#American Typewriter') format('svg');

    font-weight: normal;
    font-style: normal;
}

/* General reset */
html, body {
	padding: 0;
	margin: 0;
	border: 0;
}

/*also for editor*/
html, body {
	position: relative;
	margin:0;
	font-family: 'American Typewriter', sans-serif;
    font-size: 14px;
    font-weight: 300;
	color:silver;
	background-color:#000;
}

/*also for editor*/
body a {
	text-decoration:underline;
	color:silver;
}

hr {
	border: 0;
	border-radius: 2.5px;
	height:5px;
	background-image: linear-gradient(to right, silver, transparent);

}

img {
  border: none;
}

#page {
}

.tox-promotion {
	display:none;
}

/*do not allow long links unbroken*/
/**
:not(.entry-title)
**/
#content a:not(.homelink):not(.editlink):not(.alertlink) {
	overflow-wrap: break-word;
	word-wrap: break-word;		
	word-break: break-all;
	text-decoration:underline;
	color:silver;
}

#head {
	clear:both;
	position:relative;
	width: 100%;
	height: auto;
	background-color:darkred;
}

#language {
	font-size:1.2em;
	text-transform: uppercase;	
}

#blogin {
	display:block;
	position:fixed;
	z-index:9;
	top:10px;
	right:17px;
	width:28px;
	height:17px;
	cursor:pointer;
	border:0;
}

#content {
	display:block;
	position:relative;
	top: 61px;
	max-width: 1400px;
	height: 100%;
	margin:0px auto;
	padding-top:12px;
	padding-right:12px;
	padding-left:12px;
	padding-bottom:64px;
    line-height: 150%;
	background-color:#000 !important;
}

#content img {
	max-width:100%;
	height:auto;
}

#content.homecontent {
}

#page.backside #content {
	background-color:#fff !important;
	color:#000 !important;
}

#content embed.innerembed {
	width: 100%;
	height:600px;
	min-height: calc(100vh-30px);
}

#foot {
	clear:both;
	position:fixed;
	width:100%;
	height:auto;
	background-color:transparent;
	background-color:#000;
	background: linear-gradient(0deg, black, transparent);
	bottom:0;
	margin:0px auto;
	z-index:1;
}

#social {
	width:100%;
	height:auto;
	background-color:transparent;
}

#masthead {
    position: fixed;
    display: block;
    top: 0px;
    width: 100%;
	height:60px;
    z-index: 8;
    border-bottom: 1px solid #dfdfdf;
	background-image:url("EMbackgroundPM.jpg");
	background-repeat: no-repeat;
	background-size: 100%;
	overflow:hidden;
}

#mastfoot {
    position: fixed;
    display: block;
    bottom: 0px;
    width: 100%;
	text-align:center;
    z-index: 8;
	color:silver;
}

#masthead .site-branding {
    padding-left: 12px;
    margin-top: 6px;
    white-space: nowrap;
    width: 300px;
    text-align: left;
}

#masthead .site-branding a {
    color: silver;
	text-shadow: 1px 1px black;
	text-decoration:none;
    background-color: transparent;
}

.menu-toggle {
    cursor: pointer;
    display: none;
    position: absolute;
    background: url(img/menu-toggleCS.png) no-repeat center;
    background-size: 35px 35px;
    cursor: pointer;
    top: 28px;
    right: 15px;
    height: 35px;
    width: 35px;
    color: transparent;
	opacity: 1;
    z-index: 8;
}

#site-navigation.main-navigation {
    clear: both;
    width: auto;
    padding-right: 15px;
    font-weight: 300;
    text-align: right;
    position: fixed;
    top: 33px;
    right: 0;
    padding-left: 10px;
    z-index: 10;
}

.main-navigation .menu {
    margin: 0px;
    float: right;
    width: auto;
    text-align: right;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.main-navigation li {
    display: inline-block;
	margin-left: 10px;
    white-space: nowrap;
}

.main-navigation li a {
    font-size: 1.4em;
    line-height: 1.6em;
    color: silver;
	text-shadow: 1px 1px black;
	text-decoration:none;
}

#homeimage {
	position:fixed;
	top:0px;
	cursor:pointer;
	height:100%;
	width:100%;
	z-index:7;
	/*overflow:hidden;
	overflow: clip;*/
}

#homeimage img {
	width:100%;
	height:100%;
}	

.portfolio-list {
	float: left;
	position:relative;
	width: 200px;
	height: 200px;
	margin: 0px;
	margin-top: 25px;
	margin-right: 25px;
	background-color:#fff;
	overflow: hidden;
}
.portfolio-list.singlesize,
.portfolio-list.doublesize {
	background-color:black;
}
.portfolio-list.doublesize {
	width: 425px;
	height: 300px;
}
.portfolio-list.doublesize iframe {
	width: 425px;
	height: 300px;
}

.portfolio-image {
	display:block;
	height: 100%;
	/*text-align: center;*/
	overflow: hidden;
}

.portfolio-image p {
	padding:0;
	margin:0;
}

.portfolio-image img {
	position: relative;
	height: auto;
	width:100%;
	vertical-align: bottom;
}

.portfolio-image p,
.portfolio-image img {
	transition: transform .2s; /* Animation */	
}

.portfolio-image p:hover,
.portfolio-image img:hover {
	transform: scale(1.1); 
}

.portfolio-list .entry-header {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	transition:all 0.5s ease-in-out;
	-moz-transition:all 0.5s ease-in-out;
	-webkit-transition:all 0.5s ease-in-out;
}

.portfolio-list .entry-title {
	position: absolute;
	left: 0;
	bottom: 0px;
	width: 100%;
	font-size: 1.2em;
	text-align: left;
	margin: 0;
	padding: 10px;
	padding-left: 0px;
	padding-right: 0px;
	line-height: 1;
	text-align:center;
	z-index:1;
	color:#000;
	background-color:#fff;
}

.portfolio-list .entry-title .editlink {
	font-size: 12px;
	text-decoration:none;
	color:red;
}

#content a.alertlink {
	font-size: 1.0em;
	color:red;
}

#content .imagefull {
	width:100%;
	height:auto;
}


/*
 * animations on home
 */

/*.group:hover */
.group-hover\:scale-105 {
    --tw-scale-x: 1.05;
    --tw-scale-y: 1.05;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:shadow-xl:hover {
    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.duration-300 {
    transition-duration: .3s;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
}
.transition-shadow {
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .15s;
}
.shadow-lg {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.rounded-2xl {
    border-radius: 1rem 16px;
}
.overflow-hidden {
    overflow: hidden;
}

/**
* Tiny templates styles
*/

.leftrightblockline {
	display: flex; 
	align-items: flex-start; 
	width: 100%; 
	box-sizing: border-box;
}

.leftrightblockline .rightblock {
	width: 100%; 
	max-width: 50%; 
	flex: none; /*1 1 200px;*/ /*shorthand for flex-grow, flex-shrink and flex-basis combined*/
	position: relative; 
	/*padding: 10px; */
	box-sizing: border-box;
}

.leftrightblockline .rightblock {
	padding: 10px;
}

.leftrightblockline .leftblock {
	width: 100%; 
	max-width: 50%; 
	flex: none; /*1 1 200px;*/  /*shorthand for flex-grow, flex-shrink and flex-basis combined*/
	position: relative; 
	/*padding: 10px; */
	box-sizing: border-box; 
	/*background-color: rgb(177, 133, 215);*/
}

.leftrightblockline .leftblock img{
	width:100%;
	height:auto;
}	

/**
 * jQuery Sortable
 * ----------------------------------------------------------------------------
 */

#sortable { 
	list-style-type: none; 
	margin: 0; 
	padding: 0; 
}

#sortable table { 
	width: 95%;
	max-width:650px;
	margin: 0 3px 3px 3px; 
	/*padding: 0.4em; */
	background: #fff;
}
#sortable table#editedRow {
	width: 100%;
}

#sortable table.disabled { 
	background: silver;
}

.ui-sortable-handle {
	cursor: move;
}

/*
 * fgallery styles
 */

#fgallery .header {
    display: block;
}	
/* Main gallery elements */
#fgallery h2
{
  margin: 1em;
}

#fgallery
{
	display: none;
	position: relative; /*absolute;*/
	top: 60px;
	left: 0;
	height: 85vh;
    /*max-width: 1440px;*/
	margin:0px auto;
	padding:12px;
	padding-top:0px;
	padding-bottom:32px;
    line-height: 150%;
}

#fgallery.no-cursor *
{
  cursor: none !important;
}

#fgallery a, #fgallery a:active, #fgallery a:focus
{
  outline: none;
}

#fgallery #background
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#fgallery #galcontent
{
  position: absolute;
  top: 0;
  left: 0;
}

#fgallery #flash
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
}

/* Main image */
#fgallery #galcontent img.current
{
  box-shadow: 0 0 2.5em rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 2.5em rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 2.5em rgba(0, 0, 0, 0.5);
}

/* Header */
#fgallery #galcontent #galheader {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;

  display: none;
  position: absolute;
  top: 0;
  left: 0;
  color: silver;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5em;
}

#fgallery #galcontent #galheader > :not(:first-child) {
  padding-left: 0.5em;
}

#fgallery #galcontent #galheader img {
  vertical-align: middle;
  height: 1em;
}

#fgallery #galcontent #galheader #throbber {
  height: 100%;
}

#fgallery #galcontent #galheader a {
  text-decoration: none;
  color: silver;
}

#fgallery #galcontent #galheader a:hover {
  text-decoration: underline;
}

/* Caption */
#fgallery #caption {
  background: rgba(0, 0, 0, 0.7);
  background: linear-gradient(to left,
			      rgba(0, 0, 0, 0.7) 60%,
			      rgba(0, 0, 0, 0.5) 75%,
			      rgba(0, 0, 0, 0.1) 93%,
			      rgba(0, 0, 0, 0));
  text-align: center;
  color: silver;
  display: none;
  position: relative;
  left: 0;
  top: 5px;
  padding: 0.5em 5% 0.5em 10%;
  font-size:1em;	
  white-space: pre-wrap;
}

/**
@media (max-height: 60em)
{
  #caption #title { font-size: 5vh }
  #caption #desc { font-size: 2.5vh }
}

@media (max-height: 30em)
{
  #caption #title { font-size: 1.5em }
  #caption #desc { font-size: 1em; }
}
**/

/* Navigation arrows */
#fgallery #galcontent #left,
#fgallery #galcontent #right
{
  position: absolute;
  width: 5%;
  min-width: 2.5em;
  top: 0;
  bottom: 0;
}

#fgallery #galcontent #left
{
  left: 0;
}

#fgallery #galcontent #right
{
  right: 0;
}

#fgallery #galcontent #left div,
#fgallery #galcontent #right div
{
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0.3;
  filter: alpha(opacity=30);
}

#fgallery #galcontent #left div:hover,
#fgallery #galcontent #right div:hover
{
  opacity: 0.6;
  filter: alpha(opacity=60);
}

#fgallery #galcontent #left img,
#fgallery #galcontent #right img
{
  position: absolute;
  display: block;
  margin: auto;
  top: 0;
  bottom: 0;
}

#fgallery #galcontent #left img
{
  left: 25%;
}

#fgallery #galcontent #right img
{
  right: 25%;
}

/* Thumbnail list */
#fgallery #list
{
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  padding-top: 0.5em;
  padding-left: 0.5em;

  box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
}

#fgallery #list:focus
{
  outline: none;
}

/* Invidivual thumbnails */
#fgallery #list .thumb
{
  display: inline-block;
  margin-bottom: 0.5em;
  margin-right: 0.5em;

  box-shadow: 0.25em 0.25em 0.25em rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0.25em 0.25em 0.25em rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0.25em 0.25em 0.25em rgba(0, 0, 0, 0.5);
}

#fgallery #list .thumb a
{
  display: block;
  position: relative;
  border: 2px solid #111
}

#fgallery #list .thumb.current a
{
  border: 2px solid #f00;
}

#fgallery #list .thumb a:hover,
#fgallery #list .thumb a:focus
{
  border: 2px solid #fff;
}

#fgallery #list .thumb.current a:hover,
#fgallery #list .thumb.current a:focus
{
  border: 2px solid #f00;
}

/* Thumbnail styles */
#fgallery #list .thumb .ovr
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#fgallery #list .thumb.cut-left .ovr
{
  background: url(cut-left.png) top left repeat-y;
}

#fgallery #list .thumb.cut-right .ovr
{
  background: url(cut-right.png) repeat-y top right;
}

#fgallery #list .thumb.cut-left.cut-right .ovr
{
  background: url(cut-left.png) top left repeat-y, url(cut-right.png) repeat-y top right;
}

#fgallery #list .thumb.cut-top .ovr
{
  background: url(cut-top.png) top left repeat-x;
}

#fgallery #list .thumb.cut-bottom .ovr
{
  background: url(cut-right.png) repeat-x bottom left;
}

#fgallery #list .thumb.cut-top.cut-bottom .ovr
{
  background: url(cut-left.png) top left repeat-x, url(cut-right.png) repeat-x bottom left;
}

#fgallery #list .thumb.movie .ovr
{
  background: url(cut-mov.png) top left repeat-y, url(cut-mov.png) top right repeat-y;
}


/* ecd cookies*/

#ecd_opt_in_banner {
    left: 0 auto;
    bottom: 0px;
    position: fixed;
    top: auto;
	width:80%;
    border-top: 1px solid #ccc;
    z-index: 99999;
    background-color: rgba(0,0,0,0.6);
	/*padding: 20px;*/
	padding-left: 10%;
	padding-right: 10%;
}
#ecd_opt_in_banner #ecd_opt_in_form p {
    z-index: 10000;
    color: silver;
    text-shadow: 1px 1px #000;
}
#ecd_opt_in_form p a {
    color: silver;
    text-decoration: underline;
}
#ecd_opt_in_form p a#ecd_opt_in_checkbox {
	float: right;
	display:block;
	position:relative;
	left:10%;
    cursor: pointer;
    font-size: 1.2em;
    color: #ff0000;
    margin-left: -20px;
    padding: 2px;
    letter-spacing: 2px;
    text-decoration: none;
    text-shadow: none;
    text-shadow: 1px 1px #ff0000;
    background-color: #fff;
    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    -ms-transform: rotate(5deg);
    -o-transform: rotate(5deg);
	opacity:0.8;
}
/* end ecd cookies*/


/**
 * 8.0 Media Queries
 * ----------------------------------------------------------------------------
 */

/* Does the same thing as <meta name="viewport" content="width=device-width">,
 * but in the future W3C standard way. -ms- prefix is required for IE10+ to
 * render responsive styling in Windows 8 "snapped" views; IE10+ does not honor
 * the meta tag. See http://core.trac.wordpress.org/ticket/25888.
 */
@-ms-viewport {
	width: device-width;
}
@viewport {
	width: device-width;
}

@media only screen and (max-width: 1600px) {
	#content {
		max-width: 1200px;
	}
}


@media only screen and (max-width: 1200px) {
	#content {
		max-width: 1000px;
	}
}

@media only screen and (max-width: 500px) {
	body, iframe, #homepage img, #content img {
		max-width:100% !important;
		height:auto; /*!important;*/
	}
	
	#blogin {
		display:none;
	}
	
	.menu-toggle {
		display:block;
	}
	
	#site-navigation.main-navigation {
		display:none;
		top:60px;
		width: 150px;
		height:auto;
		border-left: 1px solid #dfdfdf;
		border-bottom: 1px solid #dfdfdf;
	    background-image: url("EMbackgroundPM.jpg");
		background-repeat: no-repeat;
		background-size: 250%;
		background-position: center bottom;
	}
	.main-navigation li {
		display: block;
	}	
	
	.portfolio-list {
		width:95%;
		height:300px;
		margin-right:12px;
		text-align:center;
	}
	
	.portfolio-list.doublesize {
		width:95%;
	}
	.portfolio-list.doublesize iframe {
		width:100%;
		height: 300px;
	}
	
	.portfolio-image {
		height:100%;
		width:100%;
	}	
	.portfolio-image img {
		height: auto;
		width: 100%;
		top:-5%;
	}	
		
	#content table {
		width:100% !important;
	}

	.leftrightblockline {
		flex-wrap: wrap; 
		/**
		flex-flow: row wrap;
		flex-flow: row wrap;
		flex-wrap: wrap; 
		flex-direction: row; 
		justify-content: space-between; 
		**/
	}

	.leftrightblockline .leftblock {
		width: 100%; 
		max-width: 100%; 
	}

	.leftrightblockline .rightblock {	
		width: 100%; 
		max-width: 100%; 

	}
}
