/*
SIZE OF ARTWORK
WIDE IMAGES set by .theArtwork
widthImage: 65% = image size 582 x 388
widthImage: 70% = image size 630 x 420

TALL IMAGES set by .theArtwork .artImage img 
max-height: 550 = image size 408 x 510
max-height: 565 = image size 420 x 525
*/



.theArtwork {
	max-width: 100%;
	position: relative;
	--widthImage: 70%; /* WIDE IMAGE SIZE: 2022-11-30 increased from 65% to 70% */
	--widthText: calc(100% - var(--widthImage));
	--picframe: 20px;
	--gutter: 35px;
	margin: 3rem 0; /* added 2022-11-14 to increase negative space */
}

.theArtwork > div {
	position: relative;
	/* float: left; */
}

.theArtwork .artImage {
	max-width: calc(var(--widthImage) - 2px);
	width: calc(var(--widthImage) - 2px);
	align-content: center;
	float: right;
}

.theArtwork .artImage img {
	max-width: 100%;
	/* width: 100%; */
	max-height: 565px; /* TALL IMAGE SIZE: 2022-11-30 increased from 550 to 565 */
	padding: var(--picframe);
	/* to center: */
	margin: 0 auto;
	display: block;
	box-sizing: border-box;
}

.theArtwork .artInfo {
	max-width: calc(var(--widthText) - var(--gutter));
	width: calc(var(--widthText) - var(--gutter));
	margin-right: var(--gutter);
	float: left;
	box-sizing: border-box;
}

.theArtwork h3 {
	/* float: left; */
	margin: 0 0 1.5em 0;
	z-index: 99;
}

.artInfo p, .relatedart p {
	font-size: 0.85em;
	line-height: 1.4em;
}
.artInfo p {
	margin: 0 0 0.5em 0;
}

.artInfo p.title {
	font-size: 0.95em;
	font-weight: 500;
}

.pricelist { width:75%; margin: 1.5em 0 0.5em 0; }
.pricelist p { margin-bottom: inherit; }
.pricelist  p span.term {
	float: left;
	width: 50px;
}

.pricelist p span.term::after{
content: ""; display: table; clear: both;
}

.artInfo .newbuttons {
	margin: 25px 0;
}


/* ENLARGE PHOTO */
.infoLargePhoto {
	display: none;			
}
.artLargePhoto {
	max-width: calc(100% - var(--picframe)) !important; 
	width:  calc(100% - var(--picframe)) !important;		
}
.artLargePhoto img {
	max-height: 650px !important;
}
.artLargePhoto .enlarge {
	cursor: zoom-out !important;
}


/* clear floats */
.theArtwork::after{
	content: ""; display: table; clear: both;
}

#breadcrumbs {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.breadcrumb-buttons {
	margin: 0 0 0.5em 0;
}
.breadcrumb-buttons a:not(:last-of-type) {
	margin: 0 5px 0 0;
}


.filterDescription {
	margin: 10px 0 0 0;
	font-size: 0.9em;
	line-height: 1.4em;
}
.filterDescription .subhead {
	/* font-weight: 500; */
	/* font-style: italic; */
	text-transform: uppercase;
	font-size: 0.85em;
	padding-right: 10px;
}

.descriptionSHOW .fas, .descriptionHIDE .fas {
	opacity: 0.4;
	padding: 0 10px;
}
.descriptionSHOW, .descriptionHIDE {
	cursor: hand;
	display: none;
}


#filters {
	margin: 20px 0 0 0;
}

#filterbylist {
	max-width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	justify-content: space-between;
	gap: 5px;
}

/* */
/* HEROS FOR ART.PHP DEFAULT and SAVEDART.PHP project list */
/* */
.heroes, .themes {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.heroes-sectiontitle {
	margin: 0 0 35px 0;
}

.hero {
	position: relative;
	max-width: calc(33% - 10px);
	width: calc(33% - 10px);
	margin-bottom: 15px;
}

.hero4x {
	position: relative;
	max-width: calc(25% - 15px);
	width: calc(25% - 15px);
	margin-bottom: 15px;
}

.hero h2, .hero h3 {
	margin: 20px 0 10px 0;
}
.hero p {
	line-height: 1.4em;
}

.hero .heroimage {
	height: 155px;
	overflow: hidden;
	box-shadow: 2px 2px 5px hsl(33deg 16% 50% / 0.5);
}
.hero4x .heroimage {
	height: 120px;
	overflow: hidden;
	box-shadow: 2px 2px 5px hsl(33deg 16% 50% / 0.5);
}



.hero img, .hero4x img {
	position: relative;
	object-fit: cover;
	object-position: 49% 49%;
	height: 102%; /* slightly larger to make sure div is filled, copyright hidden */
	width: 102%; 
}







.emptyproject {
	content: "";
	flex: auto;
	max-width: calc(33% - 10px);
	box-shadow: none !important;
}
.theme {
	width: 140px; /* was 150 */
}
.theme img {
	width: 100%;
	box-shadow: 2px 2px 5px #AAA;
}

.relatedart {
	margin-top: 2rem;
}

/* */
/*! HEART STYLES */
/* */

.heart {
	z-index: 200;
	overflow: hidden;
	position: absolute;
	top: 15px;
	left: 15px;
	width: 23px;
	height: 23px;
	opacity: 1;
	cursor: hand;
}
.heart-tight {
	top: 12px;
	left: 12px;
}

.hearton {
	background: url("ui/webicons/heart-icon.png");
	background-position: -23px 0px;
	 background-size: 46px 20px;
	background-repeat: no-repeat;
	display: block !important;
}
.hearton-lb {
	background: url("ui/webicons/heart-icon.png");
	background-position: -23px 0px;
	 background-size: 46px 20px;
	background-repeat: no-repeat;
	display: none;
}

.heartoff {
	background: url("ui/webicons/heart-icon.png");
	background-position: 0px 0px;
	 background-size: 46px 20px;
	background-repeat: no-repeat;
/*     opacity: 0.75; */
	display: none;
}
.hearthover {
	opacity: 0.4 !important;
	background: url("ui/webicons/heart-icon.png");
	background-position: -23px 0px;
	background-size: 46px 20px;
	background-repeat: no-repeat;
}
.heartclick {
	opacity: 1 !important;
}

/* used for img titles */
#tooltip {
	position:absolute;
	border: 1px solid #DDD;
	background: #d8d4cd;
	padding: 6px 9px;
	color:#333;
	font-size:0.8em;
	line-height: 1em;
	display:none;
	z-index: 999;
	width: 100px;
	text-align: left;
	box-shadow: 1px 1px 4px #777;
	border-radius: 5px;
}
#tooltip em {
	font-weight: bold; 
}

/* used for hearts */
.newtooltip {
	display:none;
	position:absolute;
	border:1px solid #DDD;
	background-color:#d8d4cd;
	border-radius:5px;
	padding: 5px 10px;
	color:#333;
	width: 150px;
	font-size:0.8em;
	line-height: 1em;
}






/* */
/*! FULL JUSTIFIED ROW OF ART */
/* */

.artRow2 {
	display: flex; 
	--artframe: 5px;
}
.artRowsContainer {
	margin-top:20px;
}
.relatedart .artRow2 {
	--artframe: 4px;
}
.artRow2.formobile {
	display: none;
}


.artRow2 > div {
	margin-bottom: calc(var(--artframe)*2) !important;
	position: relative;
}
.artRow2 > div:not(:last-child) {
	margin-right: calc(var(--artframe)*4);
}
.artRow2 > div { flex: calc(3/2); } /* WIDE 3/2 IMAGES, DEFAULT */
.artRow2 .wide4x5 { flex: calc(5/4); } /* WIDE 5x4 IMAGES, flex = 5/4 */
.artRow2 .tall4x5 { flex: calc(4/5); } /* TALL 4x5 IMAGES, flex = 4/5 */
.artRow2 .tall2x3 { flex: calc(2/3); } /* TALL 2x3 IMAGES, flex = 2/3 */

.artRow2 img {
	width: 100%;
	height: auto;
	vertical-align: middle; 
	padding: var(--artframe);
	box-sizing: content-box;
	/* box sizing needs to be content-box for flex aspect ratios to size images correctly */
	/* box-sizing: border-box; */
}



/* */
/*! RESPONSIVE STYLES FOR MOBILE SCREENS */
/* */


/*! RESPONSIVE MEDIUM SCREENS:  */
/* iPads, new iPhones (wide orientation) */
@media screen and (max-width: 1000px) {
	
	.theArtwork {
		--widthImage: 60%;
		--picframe: 15px;
		--gutter: 30px;
	}

}

/*! RESPONSIVE MEDIUM SCREENS:  */
/* new iPhones (tall orientation) */
@media screen and (max-width: 700px) {

	#breadcrumbs {
		display: block;
		margin-bottom: 20px; /* needed to make up for different when breadcrumbs flex is turned off */
	}
	.breadcrumb-buttons {
		margin: 1em 0 0 0;

	}
	.breadcrumb-buttons .newbutton {
		margin: 0 10px 0 0;
	}

	.filterDescription .description {
		display: none;
	}
	.descriptionSHOW {
		display: inline-block;
	}

	.viewingroom { margin-top: 0px; }
	.viewingroom > div { margin-bottom: 30px; }
	
	.theArtwork {
		--picframe: 10px;
	}
	
	.theArtwork { margin-bottom: 30px; }
	
	.theArtwork .artImage {
		max-width: 100%;
		width: 100%;
		align-content: center;
		float: none;
		clear: both;
	}
	
	.theArtwork .artImage img {
		max-width: 100%;
		/* width: 100%; */
		max-height: 450px;
		padding: var(--picframe);
		/* to center: */
		margin: 0 auto;
		display: block;
	}
	
	.theArtwork .artInfo {
		max-width: 100%;
		width: 100%;
		margin-right: 0;
		margin-top: 35px;
		float: none;
		clear: both;
	}

	#filterbylist {
		grid-template-columns: 50% 50%;
	}
	
	.artRow2.formobile {
		display: flex;
	}
	.artRow2.fordesktop {
		display: none;
	}
	
	.hero, .hero4x {
		max-width: calc(50% - 10px);
		width: calc(50% - 10px);
	}


}

/* RESPONSINVE FOR SMALL SCREENS: Switch to column flex */
@media screen and (max-width: 500px) {
	.hero {
		max-width: 100%;
		width: 100%;
	}
	.pricelist { width: 100%; }
}

/* RESPONSINVE FOR SMALL SCREENS: Switch to column flex */
@media screen and (max-width: 300px) {

	/* Switch to column flex */
	.artRow2 {
		flex-direction: column;
		align-items: center;
	}
	.artRow2 > div {
		max-width: 100%;
	}
	.artRow2 .tall2x3, .artRow2 .tall4x5 { 
		max-width: 70%;
	}
	.artRow2 > div:not(:last-child) {
		margin-right: 0;
	}
	
	#filterbylist select {
		font-size: 0.75em;
	}
	

	
}
