/*
Theme Name: Mitchell Robinson
Theme URI: http://www.mitchellrobinson.co.uk
Description: A custom WordPress theme for mitchellrobinson.co.uk
Version: 1.0
Author: Holly Pryce
Author URI: http://hollypryce.com
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    background: #fff8e5;
    color: #000000;
}

a {
    text-decoration: none;
    color: #000000;
    margin: 1.5em 0;
}

h1,
h2 {
	font-weight: 600 !important;
}

p {
    line-height: 1.5em;
}

li {
    margin: 0 0 15px 0;
}

img {
    max-width: 100%;
    height: auto;
}

.main-header {
    margin: 40px 0 50px;
}

.main-header .inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 5%;
	position: relative;
}

.logo {
    width: 100%;
    text-align: center;
}

.logo img {
    max-width: 600px;
	width: 100%;
}

.main-menu {
    width: 100%;
    margin: 40px 0 20px;
    text-transform: uppercase;
}

.main-menu > div {
    display: table;
    width: 100%;
    top: 0;
    height: 100%;
    text-align: center;
}

.main-menu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
    list-style-type: none;
    padding: 0;
    margin: auto;
    display: table-cell;
    vertical-align: middle;
}

.main-menu ul li {
    display: inline-block;
    margin: 0 25px;
}

.open-mobile-menu {
	display: none;
}

.mobile-menu {
  	height: 100%;
  	width: 0;
  	position: fixed; 
  	z-index: 1000; 
  	left: 0;
  	top: 0;
  	background: #fff8e5;
  	overflow-x: hidden; 
  	transition: 0.5s;
}

.mobile-menu-content {
  	position: relative;
  	top: 10%;
  	width: 100%;
  	text-align: center;
}

.mobile-menu-content ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.mobile-menu a {
  	padding: 8px;
  	text-decoration: none;
  	font-size: 1.8em;
  	display: block; 
  	transition: 0.3s; 
	margin: 1em 0;
}

.mobile-menu a:hover, .overlay a:focus {

}

.mobile-menu .close-button {
  	position: absolute;
  	top: 20px;
  	right: 20px;
  	font-size: 60px;
	padding: 0;
    margin: 0;
}

.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-title {
    text-align: center;
    margin: 0 0 50px 0;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home .page-title {
    display: none;
}

.page-image img {
    margin: 0 0 50px 0;
    height: 300px;
    object-fit: cover;
}

.home-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.home-buttons .home-button {
    width: 32%;
}

.home-buttons .home-button a {
    position: relative;
    display: block;
    line-height: 0;
}

.home-buttons .home-button .table {
    position: absolute;
    display: flex;
    width: 100%;
    top: 0;
    height: 100%;
    text-align: center;
}

.home-buttons .home-button .table h2 {
    margin: auto;
}

.workshops {
    max-width: 1200px;
    margin: 50px auto 0;
}

.workshop {
    display: flex; 
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 0 30px 0;
}

.workshop .workshop-image {
    width: 30%;
    position: relative;
    text-align: center;
    line-height: 0;
    font-size: 1.5em;
    text-transform: uppercase;
}

.workshop .workshop-image .table {
    display: table;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    background: #dcdcdc;
    color: #000000;
	display: none;
}

.workshop .workshop-image:hover .table {
	display: table;
}

.workshop .workshop-image .table-cell {
    list-style-type: none;
    padding: 0;
    margin: auto;
    display: table-cell;
    vertical-align: middle;
}

.workshop .workshop-image a {
    display: block;
    line-height: 0;
}

.workshop .workshop-content {
    width: 65%;
}

.workshop  .workshop-content .table {
    display: table;
    width: 100%;
    height: 100%;
}

.workshop  .workshop-content .table-cell {
    list-style-type: none;
    padding: 0;
    margin: auto;
    display: table-cell;
    vertical-align: middle;
}

.workshop .workshop-content .workshop-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 25px 0;
    font-weight: normal;
    font-size: 1.5em;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-wrapper .page-content {
    width: 100%;
}

.contact-wrapper .contact-form {
    width: 48%;
}

.contact-wrapper .contact-form input {
    width: 100% !important;
    max-width: none !important;
}

.wp-block-gallery {
    margin: 50px 0 0 0;
}

.site-footer {
    text-align: center;
    margin: 40px 0;
    clear: both;
}

.site-footer .social a {
    margin: 0 10px;
    font-size: 1.5em;
}

.blocks-gallery-grid .blocks-gallery-image figure, 
.blocks-gallery-grid .blocks-gallery-item figure, 
.wp-block-gallery .blocks-gallery-image figure, 
.wp-block-gallery .blocks-gallery-item figure {
	cursor: pointer;
}

.caption-wrapper {
	background: #dcdcdc;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;    
	display: none;

}

.blocks-gallery-grid .blocks-gallery-image figure:hover .caption-wrapper, 
.blocks-gallery-grid .blocks-gallery-item figure:hover .caption-wrapper, 
.wp-block-gallery .blocks-gallery-image figure:hover .caption-wrapper, 
.wp-block-gallery .blocks-gallery-item figure:hover .caption-wrapper {
	display: block;
}

.blocks-gallery-grid .blocks-gallery-image figcaption, 
.blocks-gallery-grid .blocks-gallery-item figcaption, 
.wp-block-gallery .blocks-gallery-image figcaption, 
.wp-block-gallery .blocks-gallery-item figcaption {
    padding: 0;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    width: 100%;
    left: 0;
	max-height: none;
	background: none;
	bottom: auto;
	font-size: 1.5em;
    text-transform: uppercase;
	color: #000000;
}

@media only screen and (max-width: 800px) {
	.logo {
		width: 100%;
	}
	
	.logo p {
		font-size: 1.6em;
	}
	
	.main-menu {
		display: none;
	}
	
	.open-mobile-menu {
		display: block;
		position: relative;
		z-index: 100;
		cursor: pointer;
		font-size: 1.6em;
		margin: 0 auto;
	}
	
	.home-buttons .home-button {
		width: 100%;
	}
	
	.workshop {
		flex-direction: column;
	}
	
	.workshop .workshop-image {
		width: 100%;
	}
	
	.workshop .workshop-image img {
		width: 100%;
		height: auto;
	}
	
	.workshop .workshop-content {
		width: 100%;
	}
	
	.contact-wrapper .page-content {
		width: 100%;
	}
	
	.contact-wrapper .contact-form {
		width: 100%;
	}
}
