/* Patrick Jameson, Nov 2020 */

/* RESET */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed,  figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

a, a:hover, a:active, a:visited {
	color: #000;
	text-decoration: none;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

button {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

.random-artwork {
  width: 100%;
  max-width: 600px;
  margin: 2rem 0;
}

/* TYPE */

@font-face {
	font-family: 'HappyTimes';
	src: url('webfonts/happy-times-NG_regular_master_web.woff2') format('woff2'), 
		 url('webfonts/happy-times-NG_regular_master_web.woff')  format('woff'), 
		 url('webfonts/happy-times-NG_regular_master_web.ttf')   format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
	font-family: 'HappyTimes';
	src: url('webfonts/happy-times-NG_italic_master_web.woff2') format('woff2'), 
		 url('webfonts/happy-times-NG_italic_master_web.woff')  format('woff'), 
		 url('webfonts/happy-times-NG_italic_master_web.ttf')   format('truetype');
    font-weight: normal;
    font-style: italic;
}

html { 
	font-size: 62.5%; /* resets default browser settings so that 1em=10px */ 
} 

body {
	font-family: 'HappyTimes', Times New Roman, Times, serif;
	font-size: 1.6em; 
	line-height: 1.5em;
}

button {
	font-style: italic;
}


/* LAYOUT */

body {
	margin: 1.5em 2em 3em 2em;
}

header {
	margin-bottom: 2em;
}

header h1 {
	display: inline;
}

header ul li {
	display: inline;
	margin-right: 1em; 
}

main {
	max-width: 900px; 
}

main div {
    width: 100%;  /* Ensures that the container fills the width of the screen */
    max-width: 100%;  /* Avoids shrinking the container */
}


main div img {
    object-fit: contain;  /* Ensures the image fits within its container */
    width: 100%;
    height: auto;
}


.vimeo {
	margin-top: -1.4em; /* fixes bottom margin on the vimeo responsive embeds */
}

footer {
}


/* SLIDESHOWS */

/*  See http://jquery.malsup.com/cycle2/ and http://jquery.malsup.com/cycle2/demo/prevnext.php */

/* set border-box so that percents can be used for width, padding, etc */
.cycle-slideshow, .cycle-slideshow * { 
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box; 
	box-sizing: border-box; 
}

/* prev / next links */
.cycle-prev {
	position: absolute; 
	top: 0; 
	left: 0;
	width: 50%; 
	z-index: 800; 
	height: 100%; 
	cursor: pointer; 
}

.cycle-prev div {
	height: 0;
	position: absolute;
	bottom: -2em;
}

.cycle-next {
	position: absolute; 
	top: 0; 
	right: 0;
	width: 100%; 
	z-index: 500; 
	height: 100%; 
	cursor: pointer; 
}

.cycle-next div {
	height: 0;
	position: absolute;
	bottom: -2em;
	margin-left: 3em; 
}

/* media queries: some style overrides to make things more pleasant on mobile devices */
@media (max-width: 900px) {
  body {
    margin: 12px 15px 20px 15px;
  }
}

/* Global responsive image rule — applies to all screen sizes */
img {
  max-width: 60%;
  height: auto;
  display: block;
}

.section-title {
  margin-top: 4rem;
  line-height: 1.5em;
  font-style: regular;
  text-align: margin-left;
  font-size: 0.9em;
}
.image-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding-bottom: 1rem;
  margin-top: 1rem;
  
}
.image-row img {
  max-width: 40%;
  height: auto;
}

@media (max-width: 600px) {
  img,
  .image-row img {
    max-width: 100%;
  }

  .image-row {
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  body {
    font-size: 1.4em;
  }
}
