div.headbar {
	width: 100%;
	margin: 0px auto 0px auto;
	padding-bottom: 3px;
}

div.fcontent {
	justify-content: space-between;
	align-items: baseline;
	width: 100%;
	margin: 0;
	padding: 10px 0 0 0;
}

div.fptile {
	display: table;
	background-color: white;
	margin: 0 6px 12px 6px;
}

img.fpimg {
	max-height: 220px;
	cursor: pointer;
}
div.galcapt {
	display: table-caption;
	caption-side: bottom;
}
div.galcapt p {
	margin: 2px 0 0 0;
	font-size: 15px;
	line-height: 100%;
	cursor: pointer;
}

/*
@media screen and (min-width: 1075px) {
	div.fptile {
		width: 16.66%;
		height: 16.66vw;
	}
}
@media screen and (max-width: 1075px) {
	div.fptile {
		width: 20%;
		height: 20vw;
	}
}
@media screen and (max-width: 916px) {
	div.fptile {
		width: 25%;
		height: 25vw;
	}
}

@media screen and (max-width: 725px) {
	div.fptile {
		width: 33.33%;
		height: 33.33vw;
	}
}

@media screen and (max-width: 550px) {
	div.fptile {
		width: 50%;
		height: 50vw;
	}
}
*/
div.bigviewwrapper {
	position:fixed !important;
	position:absolute;
	top:0;
	right:0;
	bottom:0;
	left:0;
	display: none;
	background-color: white;
	box-sizing: border-box;
	padding: 10px;
}

div.bigimage {
	width: calc(100% - 320px);
	height: 100%;
	float: left;
	box-sizing: border-box;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

div.captwrapper {
	width: 320px;
	height: 100%;
	box-sizing: border-box;
	padding: 0;
	float: left;
	position: relative;
	box-sizing: border-box;
	overflow: hidden
}

div.navbuts {
	padding: 0;
	box-sizing: border-box;
	position: absolute;
	left: 10px;
	right: 0;
	top: 0;
}

p.pbutton {
	color: black;
	background-color: var(--bgcbutton);
	width: 20%;
	height: 40px;
	text-align: center;
	vertical-align: middle;
	float: left;
	margin: 0;
	cursor: pointer;
	text-indent: 0;
	padding-top: 9px;
	box-sizing: border-box;
	overflow: hidden;
}

p.cbutton {
	color: black;
	border-style: solid;
	border-width: 0 1px 0 1px;
	border-color: white;
	background-color: var(--bgcbutton);
	width: 60%;
	height: 40px;
	text-align: center;
	vertical-align: middle;
	float: left;
	margin: 0;
	cursor: pointer;
	text-indent: 0;
	padding-top: 9px;
	box-sizing: border-box;
	overflow: hidden;
}

p.nbutton {
	color: black;
	background-color: var(--bgcbutton);
	width: 20%;
	height: 40px;
	text-align: center;
	vertical-align: middle;
	float: left;
	margin: 0;
	cursor: pointer;
	text-indent: 0;
	padding-top: 9px;
	box-sizing: border-box;
	overflow: hidden;
}

p.wbutton {
	color: black;
	border-style: solid;
	border-width: 1px 0 0 0;
	border-color: white;
	background-color: var(--bgcbutton);
	width: 100%;
	height: 40px;
	text-align: center;
	vertical-align: middle;
	margin: 0;
	cursor: pointer;
	text-indent: 0;
	padding-top: 9px;
	box-sizing: border-box;
	overflow: hidden;
}

div.captiontxt {
	background-color: white;
	box-sizing: border-box;
	text-align: left;
	overflow-y: auto;
	position: absolute;
	left: 10px;
	right: 0;
	top:41px;
	bottom:0;
}

div.captiontxt p {
	color: black;
	text-indent: 0;
}

div.captiontxt p.buybut {
	margin: 0 0 5px 0;
	width: 100%;
}
div.captiontxt p.dropbut {
	margin: 0 0 5px 0;
}

div.captiontxt p.nla {
	font-size: 10px;
	font-weight: bold;
	line-height: 12px;
	display: block;
	color: black;
	background-color: var(--bgcbutton);
	padding: 9px 0 9px 0;
	margin: 0 0 5px 0;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

@media screen and (max-aspect-ratio: 5/4) {
	div.bigimage {
		width: 100%;
		height: calc(60% - 10px);
		margin-bottom: 10px;
	}
	
	div.captwrapper {
		width: 100%;
		height: 40%;
	}
	div.pricebutton {
		height: 30px;
	}
	
	div.captiontxt p {
		font-size: 16px; line-height: 18px; margin: 0;
	}
	div.captiontxt p.buybut, div.captiontxt p.dropbut, div.captiontxt p.nla {padding: 4px 0; margin: 0 0 4px 0;}
}

@media screen and (max-width: 529px) {
	p.pbutton, p.cbutton, p.nbutton, p.wbutton {
		height: 26px;
		padding-top: 5px;
		font-size: 80%;
	}
	
	div.captiontxt {
		top: 63px;
	}
	
}
