
// <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 400 to 900

.alegreya-<uniquifier> {
  font-family: "Alegreya", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

html {
	font-size: 36px;
}
@media (min-device-width: 600px) and (orientation:landscape) {
	html {
		font-size: 18px;
	}
}
body {
	width: 90vw;
	max-width: 55rem;
	margin: 0 auto;
    font-family: 'Alegreya';
    font-weight: 400;
}
p, li, dt, dd {
	font-size: 1rem;
	line-height: 150%;
}
h1 {
	font-size: 2rem;
	line-height: 3rem;
	margin-bottom: 1rem;
}


section {
	clear: both;
}	


header h2 {
	margin-top: 0.5em;
}
h2 strong {
	font: 1.33rem/2rem 'Alegreya SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	margin-top: 1.5em;
	margin-bottom: 0;
}
h3 {
	font-family: 'Alegreya Sans SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
	font-size: 1.17rem;
	margin-top: 1.5em;
	margin-bottom: 0;
}
p.subtitle {
	font-size: 1.33rem;
}
p.note {
	font-style: italic;
}


a, a:link {
	color: #369;
}
a:visited {
	color: #636;
}
a:link, a:visited {
	text-decoration: none;
	border-bottom: 1px solid #ccc;
}
a:hover {
	border-bottom-color: #369;
	background-color: #eee;
}
a:visited:hover {
	border-bottom-color: #636;
}
a:has(img):link, a:has(img):visited, a:has(img):hover {
	border-bottom: none;
	background-color: transparent;
}
a img:hover  {
	filter: brightness(1.1);
}
a.mainlink {
	font-family: 'Alegreya SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
}

@supports (font-variation-settings: "wght" 450) {
    h1, h2, h3, a.mainlink {
    	font-weight: 450;
    }
    h2 strong {
    	font-weight: 500;
    }
}

.cols {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}
@media (min-width: 600px) and (orientation:landscape) {
	.cols {
		flex-direction: row;
		justify-content: space-between;
	}
	.cols > * {
		flex-basis: fit-content;
	}
	.floatleft {
		float: left;
	}
	.floatright {
		float: right;
		margin: 1em 0 1em 1em;
	}
}
/* MASTHEAD
*/

/*
@media (orientation:portrait) or (max-width: 600px) {
	.masthead {
		position: fixed;
		width: 90vw;
		max-width: 55rem;
		margin: 0 auto;
	}
}
*/
.masthead {
	top: 0;
	left: 0;
	padding: 0.3rem 0;

}
.masthead {
	font-family: 'Alegreya Sans';
	
}
.masthead-inner {
	position: relative;
	padding-bottom: 0.5rem;
	border-bottom: double 3px #999;
}
.masthead h1 {
	font: 1.33rem/100% 'Alegreya SC';
	font-weight: 500;
	text-transform: lowercase;
	letter-spacing: 0.01em; 
	margin: 0.25em 0;
}
.masthead h1 a:link, .masthead h1 a:visited, .masthead h1 a:hover {
	color: black;
	background-color: transparent;
	border: none;
}
.masthead .logo {
	position: absolute;
	right: 0;
	top: 0;
	height: 3rem;
	opacity: 0.6;
}


.mainmenu {
	padding-right: 3rem;
}
.mainmenu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mainmenu li {
	display: inline-block;
	font-size: .83rem;
	margin-right: .8em;
}
.mainmenu li.selected {
	font-weight: 450;
}

.mainmenu li a {
	padding: 0.2em 0;
}
.mainmenu a:link, .mainmenu a:visited {
	color: #666;
	border-bottom-style: none;
}
.mainmenu a:hover {
/*
	background-color: #E6EFF7;
*/
	color: #369;
	border-bottom: solid 1px #369;

}

/* FOOTER
*/

footer {
	margin-top: 2em;
	padding-top: 0.5rem;
	border-top: double 3px #999;
	width: 100%;
}
footer {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	
}
footer .badge {
	max-height: 100px;

}

@media (min-width: 600px) and (orientation:landscape) {
	footer {
		flex-direction: row;
		justify-content: space-between;
	}
	footer form, footer section {
		flex-basis: auto;
	}
	footer form + section {
		margin-left: 3em;
	}
	footer section {
		justify-self: end;
	}
	footer .badge {
		flex-basis: 100px;
	}
}
footer p {
	font-size: .83rem;
	line-height: 1rem;
	margin: 0.5em 0;
}
footer h4 {
	font-size: 1rem;
	line-height: 1rem;
	font-family: 'Alegreya Sans SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
	margin: 0.5em 0;
}


/* SHOP / PRODUCTS 
*/

section.products {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}

section.singleproduct {
	display: flex;
	flex-direction: column;
	margin-top: 1em;
}
.singleproduct .photo img {
	max-width: 100%;
	max-height: 100%;
}

.products figure {
	margin: 1rem auto;
}
.w6, .portrait {
	max-width: 85%;
	margin: auto;
}
.w5 {
	max-width: 75%;
}
@media (min-width: 600px) and (orientation:landscape) {
	section.products {
    	flex-direction: row;
    	justify-content: left;
	}
	.products figure {
		flex-basis: calc( (attr(data-pwidth number)) + 1) * 40px );
	}
	.w5 {
		flex-basis: 200px;
	}
	.w6 {
		flex-basis: 240px;
	}
  	.w7 {
		flex-basis: 280px;
	}
  	.w8 {
		flex-basis: 320px;
	}
  	.w9 {
		flex-basis: 360px;
	}
  	.w10 {
		flex-basis: 400px;
	}
  	.w11 {
		flex-basis: 440px;
	}
	.w12 {
		flex-basis: 480px;
	} 
  	.w13 {
		flex-basis: 520px;
	}
  	.w14 {
		flex-basis: 560px;
	}
  	.w15 {
		flex-basis: 600px;
	}
  	.w16 {
		flex-basis: 640px;
	}
  	.w17 {
		flex-basis: 680px;
	}
  	.w18 {
		flex-basis: 720px;
	}
	section.singleproduct {
		flex-direction: row;
    	justify-content: left;
	}
	.singleproduct div.photo {
		max-width: 60%;
	}
	.singleproduct .portrait {
		max-height: 500px;
	}
	.singleproduct .productinfo {
		padding-left: 1em;
		margin-top: -1em;
	}
	.singleproduct .productinfo h1 {
		margin-top: 1rem;
	}
	
}

figure {
	padding: 10px;
	margin: 1em 0;
}
figcaption {
	font-size: .83rem;
	font-style: italic;
}
figcaption .year {
	font-style: normal;
}
img.full {
	width: 100%;	
}


.products {
	padding: 1em 0;
}
.products figure, .mgallery figure {
	padding: 0 20px 20px 0;
	margin: 0;
}

.products figure:hover {
	cursor: pointer;
}
.products figure:hover img {
	filter: brightness(1.1);
}
.products figure:hover figcaption {
	color: #369;
	border-bottom: 1px solid #369;
	padding-bottom: 0;
	background-color: #eee;
}

.products figure figcaption {
	text-align: center;
	font-style: normal;
	padding-bottom: 1px;
}
ul.productdetails {
	list-style: none;
	padding: 0;
	margin-top: 0.5em;
}
.productdetails li {
	display: inline-block;
	padding-right: 0.1em;
}
.productdetails li + li {
}
.productdetails li + li::before {
	content: "| ";
}
.products figure h4 {
	font-size: 1rem;
	margin: 0;
}
.products figure .thumbnail {
	width: 100%;
}
.availability {
	font-family: 'Alegreya SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
}
.availability a {
	cursor: pointer;
}

.singleproduct h1 {

}
.singleproduct .productdetails li {
	font-family: 'Alegreya SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
	color: #666;
	font-size: 1.33rem;	
}

button, a.button {
	color: black;
	font-family: 'Alegreya Sans SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
	font-size: 1.17rem;	
	padding: 0.25em 0.5em;
	border: solid 1px black;
	border-radius: 5px;
	background-color: #eee;
}
button:hover, a.button:hover {
	background-color: #ddd;
	cursor: pointer;
}

/* 	GALLERIES
*/


section.mgallery {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	list-style: none;
	padding: 1em 0;
 }
.mgallery img {
	max-width: 100%;

}
.mgallery img:hover  {
	filter: brightness(1.1);
	cursor: pointer;
}
.mgallery figcaption {
	display: none;
}




@media (min-width: 600px) and (orientation:landscape) {
	section.mgallery {
    	flex-direction: row;
    	justify-content: left;
	}
	section.fgallery {
    	justify-content: space-between;
	}
	.mgallery li {
		margin: 10px;
	}
	.fgallery .format-portrait {
		flex-basis: 30%;
	}
	.fgallery .format-landscape {
		flex-basis: 46%;
	}
}
section.singlephoto {
	display: block;
	text-align: center;
}
.singlephoto figure {
	display: none;
}
.singlephoto figure.singleshown {
	display: block;
}

@media (min-width: 600px) and (orientation:landscape) {
	.singlephoto figure.singleshown {
		width: clamp( 600px 100% 100vw);
		margin: auto;
	}
}

.singlephoto img {
	max-height: 60vh;
}
.singlephoto img:hover {
	filter: brightness(1);
	cursor: auto;
}

.singleshown figcaption {
	display: block;
}
.singleshown figcaption > * {
	margin: 0.5em 0;
}
.gnav {
	list-style: none;
	padding: 0;
	margin: -0.5em 0 0 0;
	font-family: 'Alegreya Sans SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
	font-size: 1.17rem;
	display: none;
}
.singleshown .gnav {
	display: block;
}	
.gnav li {
	display: inline-block;
	color: #666;
	border-bottom: 1px solid #ccc;
}
.gnav li:hover {
	border-bottom-color: #369;
	background-color: #eee;
	cursor: pointer;
}
figure:first-child .gnav li.gnav-prev, figure:last-of-type .gnav li.gnav-next {
	cursor: auto;
	border-bottom: none;
	color: #999;
}
figure:first-child .gnav li.gnav-prev:hover, figure:last-of-type .gnav li.gnav-next:hover {
	background-color: transparent;
}


.gnav li + li {
	margin-left: 1em;	
}


/* PRODUCT THUMBNAIL (CONTACT FORM)
*/

figure.productThumb {
	max-width: 10rem;
	display: inline-block;
}
.productThumb img {
	max-width: 100%;
}
.productThumbs h3 {
	display: block;
	font: 1rem 'Alegreya Sans SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	color: #666;
	margin: 0;
}


/* 	EVENTS
*/

ul.events {
	display: table;
}	
ul.events li {
	display: table-row;
}
ul.events li div {
	display: table-cell;
}
ul.events li div + div {
	padding-left: 2em;
}
ul.events li span {
	display: block;
	margin: 0.5em 0;
}
.ename, .edate {
	font-weight: 600;
	font-size: 1.2rem;
}	
ul.events li div p {
	margin: 0.5em 0;
}
.emore {
	font-style: italic;
}

.calendar-mini {
	border-top: solid 1px #999;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}	
.calendar-mini h3 {
}
.calendar-mini ol {
	display: table;
	padding: 0;
	float: left;
}
.calendar-mini .eventdate {
	font-family: 'Alegreya Sans SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
}
.calendar-mini li {
	display: table-row;
}
.calendar li + li {
	margin-top: 1em;
}
.calendar-mini .eventdate {
	display: table-cell;
	padding: 0em 0.3em;
	text-align: right;
}
.calendar-mini .eventname {
	display: table-cell;
	padding: 0em 0.3em;
}
.calendar-mini .logo {
	width: 200px;
	float: right;
	margin-left: 1rem;
	margin-top: 1rem;
}
@media (min-width: 600px) and (orientation:landscape) {
	.calendar-mini {
    	flex-direction: row;
    	justify-content: space-between;
	}
	.calendar-mini .logo {
		width: 150px;
	}
	.calendar-mini ol {
		margin-top: 1.5em;
	}
	.calendar-mini header {
		max-width: 20rem;
	}
}
/* FORMS 
*/

form {

}
fieldset {
	border: none;
	padding: 0;
	margin: 0;
}
input, textarea {
	font-size: 1rem;
}
input[type=text], input[type=email], textarea {
	width: 90%;
	padding: 0.3rem;
}

@media (min-width: 600px) and (orientation:landscape) {
	form {
		max-width: 25rem;
		margin-top: 1em;
	}
	input, textarea {
		font-size: .83rem;
	}
	input[type=text], input[type=email], textarea {
		width: 100%;
	}
}


input[type=tel], input[type=email] {
	padding: 0.3rem;
}

legend, label {
	display: block;
	font: 1rem 'Alegreya Sans SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	color: #666;
}
label.inline {
	display: inline-block;
}
legend {
	font-size: 1rem;
	padding: 0;
	margin: 0;
}
fieldset label {
	font-size: 0.8rem;
}
legend + p {
	margin-top: 0;
}
fieldset.name p {
	display: inline-block;
	width: calc(50% - 0.5rem - 2px);
	margin-top: 0em;
}
fieldset.citystatezip p {
	display: inline-block;
	width: calc(33% - 0.5rem - 4px);
	margin-top: 0em;
}
fieldset.name p + p, fieldset.citystatezip p + p {
	margin-left: 1rem;
}
fieldset.name p + p {
	margin-left: 1rem;
}
fieldset + p {
	margin-top: 0;
}
textarea {
	height: 5rem;
}
/*
label.required {
	margin-left: -0.8em;
}
label.required::before {
	display: inline-block;
	width: 0.8em;
	content: "\2606"; /* empty star */
	content: "\2605";
}
*/

footer form {
	margin: 0.5rem 0;
}
footer form input[type=email] {
	width: 10rem;
	font-size: 0.83rem;
}
footer form legend {
	color: #000;
	font-weight: bold;
}
footer form p {
	margin-bottom: 0.5em;
}
footer fieldset + p {
	margin-top: 0.5em;
}
footer button {
	font-size: 1rem;
}
footer .note {
	font-size: 0.75rem;
}


/* FOR INCLUDED AND MISC. PAGES 
*/

.innerpage article header, header.border {
	padding-bottom: 1em;
	border-bottom: solid 1px #999;
	margin-bottom: 1em;
}
/*
article section p:first-child::first-letter, article section figure:first-child + p::first-letter {
	font-size: 45px;
	float: left;
	margin-top: 5px;
	margin-right: 3px;
}
*/
article header h1 {
	margin-bottom: 0;
}
article header {
	margin-bottom: 2rem;
}
article p {
	margin: 0.5em 0;
}
article p + p {
	text-indent: 1em;
}
article strong {
	font-family: 'Alegreya SC';
	font-weight: 450;
	text-transform: lowercase;
	letter-spacing: 0.01rem;
}
section.cols { 
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
}
article img {
	max-width: 100%;
}
article > ul, article section > ul {
	margin: 2em 0;
}
article > ul li::marker, article section > ul li::marker {
	content: "\21D2\0020";
}
article > ul li + li, article section > ul li + li {
	margin-top: 0.5em;
}

@media (min-width: 600px) and (orientation:landscape) {
	section.cols {
    	flex-direction: row;
    	justify-content: space-between;
    	column-gap: 2rem;
	}
	section.cols.cols-reverse {
	}
	.maincol {
		max-width: 35rem;
	}
	img.sidecol {
		max-width: 15rem;
		margin: 1em 0;
	}
	
}

.sidebar p, .sidebar li {
	font: .83rem/1.5rem 'Alegreya Sans';
}
.sidebar ul {
	list-style: none;
	padding-left: 0;
	margin-top: 0;
}
.sidebar h2, nav.related h4, .featured figcaption h4 {
	font-size: 1rem;
	font-family: 'Alegreya Sans SC';
	text-transform: lowercase;
	letter-spacing: 0.01em;
	font-weight: 450;
	margin: 0.5em 0;
}



article figure {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	margin: 1em 0 2em 0;
	padding: 0;
}

@media (min-width: 600px) and (orientation:landscape) {
	article figure {
		flex-direction: row;
		column-gap: 1rem;
		align-items: baseline;
	}
	article figure img {
		max-width: 30rem;
	}
	article figcaption {
		margin-top: 1em;
	}
}

.photogrid {
		margin: 2em 2rem;

}
.photogrid img {
	width: 100%;
}
@media (min-width: 600px) and (orientation:landscape) {
	.photogrid {
		display: grid;
		column-gap: 2rem;
		row-gap: 2rem;
	}
	.photogrid.cols3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.photogrid.cols4 {
		grid-template-columns: repeat(4, 1fr);
	}
	.photogrid img {
		width: 100%;
	}
}

figure.featured {
	padding: 0;
}
nav.related, figure.featured figcaption {
	font-family: 'Alegreya Sans';
	margin-top: 1em;
	padding: 0;
	border-bottom: solid 1px #999;
}
nav.related {
	border-top: solid 1px #999;
	margin-top: 2em;
}

nav.related h4, nav.related ul, nav.related li,
.featured figcaption h4 {
	font-size: 1.17rem;
}
nav.related h4, nav.related ul, nav.related li,
figure.featured h4, figure.featured ul, figure.featured li {
	display: inline-block;
	font-style: normal;

}
figure.featured h4 {
	margin-right: .83em;
	margin-bottom: 0;
	font-weight: 400;
}
figure.featured h4 .title {
	font-weight: 600;
}
nav.related ul, figure.featured ul {
	list-style: none;
	padding: 0;
}
nav.related li, figure.featured li {
	font-size: 1rem;
}
nav.related li + li, figure.featured li + li {
}
nav.related li + li::before, figure.featured li + li::before {
	content: '\2002|\2002';
}





hr {
	border: none;
	text-align: center;
	margin: 1em 0;
}
hr.butterfly::before {
	content: url(dingbat-butterfly2.png);
}
hr.bird::before {
	content: url(dingbat-bird.png);
}
hr.fish::before {
	content: url(dingbat-fish.png);
}
hr.figures::before {
	content: url(dingbat-figures.png);
}
hr.lizard::before {
	content: url(dingbat-lizard.png);
}
hr.flower::before {
	content: url(dingbat-flower.png);
}
hr.ship::before {
	content: url(favicon-32x32.png);
}

