/*  
Theme Name: 
Theme URI: http://www.matmartin.co.uk
Description: Theme designed by <a href="http://www.matmartin.co.uk">Mat Martin</a>.
Version: 1.0
Author: Mat Martin Studio
Author URI: http://www.matmartin.co.uk
*/

/*variables*/

:root {
	--mms-background-color: rgba(255,255,255,1);
	--mms-body-text-color: rgba(0,0,0,1);
	--mms-accent-color: rgba(132,101,224,1);
	--mms-font-family: 'Spectral', georgia, serif;
	--mms-font-weight-body: 400;
	--mms-font-weight-bold: 600;
	--mms-font-size-s: 0.8rem;
	--mms-font-size: 1rem;
	--mms-line-height-1: 1.3;
	--mms-transition: all 0.4s ease-in 0s;
}

* {
	margin: 0px;
	padding: 0px;
	box-sizing: border-box;
}

html {
	position: relative;
	min-height: 100%;
	font-size: 140%;
	-webkit-animation: bugfix infinite 1s; 
	-webkit-text-size-adjust: none;
}

body {
	background: var(--mms-background-color);
	font-family: var(--mms-font-family);
	font-weight: var(--mms-font-weight-body);
	font-size: var(--mms-font-size);
	line-height: var(--mms-line-height-1);
	color: var(--mms-body-text-color);
	height: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.pagewrap {
	position: relative;
	flex: 1 0 auto;
}

/*overrides*/

@-webkit-keyframes bugfix { 
	from { padding: 0; } to { padding: 0; } 
}

div, p, a, li, td { 
	-webkit-text-size-adjust:none; 
}

/*footer*/

footer {
	flex-shrink: 0;
	width: 100%;
}

/*body text*/

p {
	padding-bottom: 1.3rem;
}

em, i {
	font-style: italic;
}

small,
.small {
	font-size: var(--mms-font-size-s);
}

strong, b {
	font-weight: var(--mms-font-weight-bold);
}

/*lists*/

ul,
ol {
	padding: 0 0 0 1rem;
}

ul.nostyle,
ol.nostyle {
	list-style-type: none;
	padding-left: 0;
}

ul.inside,
ol.inside {
	list-style-position: inside;
}

ul.inline,
ol.inline {
	display: flex;
}

ul.inline.centered,
ol.inline.centered {
	justify-content: center;
}

ul.inline li,
ol.inline li {
	margin-right: 24px;
	position: relative;
}

ul.inline li::after,
ol.inline li::after {
	content: '-';
	color: var(--mms-accent-color);
	position: absolute;
	right: -16px;
}

ul.inline li:last-of-type,
ol.inline li:last-of-type {
	margin-right: 0;
}

ul.inline li:last-of-type::after,
ol.inline li:last-of-type::after {
	display: none;
}

li {
	font-size: inherit;
}

/*heading text*/

h1, h2, h3, h4, h5, h6 {
	font-weight: var(--mms-font-weight-body);
	font-size: var(--mms-font-size);
	padding-bottom: 1.3rem;
}

/*links*/

a {
	color: var(--mms-accent-color);
	text-decoration: none;
}

a:hover { 
	color: var(--mms-body-text-color);
	cursor: pointer;
}

/*global properties*/

.transition {
	transition: var(--mms-transition);
}

/*images & videos*/

img {
	display: block;
}

/*topbar*/

.topbar {
	width: 100%;
	padding: 24px;
}

/*body styles*/

.body-text {
	position: relative;
	max-width: 1480px;
	padding: 64px 48px 0;
}

.body-text .init-text p {
	padding-bottom: 12px;
}

.body-text .reveal-text {
	padding-top: 12px;
}

.wrapper {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: 0fr;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-out;
  transition: grid-template-rows 0.5s ease-out, -ms-grid-rows 0.5s ease-out;
}

.wrapper.open {
  -ms-grid-rows: 1fr;
  grid-template-rows: 1fr;
}

.inner {
  overflow: hidden;
}

.body-text a.reveal {
	display: inline-block;
	transition: var(--mms-transition);
	font-size: 1.6rem;
	font-weight: 200;
	line-height: 1;
}

.body-text a.reveal.turn {
	-webkit-transform: rotate(180deg);
	        transform: rotate(180deg);
	-webkit-transform-origin: center;
	        transform-origin: center;
}

.gallery .gallery-image {
	width: 100%;
}

.gallery .gallery-image img {
	width: 100%;
	height: auto;
}