/*
Theme Name: mttmr
Theme URI: http://mttmr.com
Author: Matt Moore
Author URI: http://mttmr.com
Description: A theme for Matt Moore's personal site at mttmr.com.
Version: 2.23
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mttmr.com
*/


/* Fonts */
@font-face {
    font-family: 'Graphik';
    src: url('Graphik-Regular.eot');
    src: local('Graphik Regular'), local('Graphik-Regular'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Regular.eot?#iefix') format('embedded-opentype'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Regular.woff2') format('woff2'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Regular.woff') format('woff'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik';
    src: url('Graphik-RegularItalic.eot');
    src: local('Graphik Regular Italic'), local('Graphik-RegularItalic'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-RegularItalic.eot?#iefix') format('embedded-opentype'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-RegularItalic.woff2') format('woff2'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-RegularItalic.woff') format('woff'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-RegularItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Graphik';
    src: url('Graphik-Medium.eot');
    src: local('Graphik Medium'), local('Graphik-Medium'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Medium.eot?#iefix') format('embedded-opentype'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Medium.woff2') format('woff2'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Medium.woff') format('woff'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Graphik';
    src: url('Graphik-Bold.eot');
    src: local('Graphik Bold'), local('Graphik-Bold'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Bold.eot?#iefix') format('embedded-opentype'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Bold.woff2') format('woff2'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Bold.woff') format('woff'),
        url('https://mttmr.com/wp-content/themes/mttmr/assets/fonts/Graphik-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


/* Main styles */


#loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-video {
  width: 200px;
  height: auto;
  margin: auto;
}

#main-content {
  display: none;
  height: 100%;
  overflow: auto;
}


body, html {
  text-align: left;
  font-size: 100%;
  margin: 0;
  padding: 0;
  /* overflow-x: hidden;
  height: 100%;
  width: 100%; */
}

strong {
	font-weight: 500;
}

.gradient-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(238deg, #E1D5F1 13.85%, #DCF4DC 93.98%);
  z-index: -1; /* Ensure the container is behind other content */
}

.container {
	max-width: 1100px;
  	padding: 3em 3em 0 3em;
  	margin: 0 auto;
}

.post {
	max-width: 1100px;
  	padding: 3em 3em 0 3em;
  	margin: 0 auto;
}

.frosted {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 2em 3em 3em 3em;
    margin: 2em auto 1em auto;
    max-width: 1000px;
}

.frosted p, .frosted h1, .frosted h2, .frosted h3, .frosted h4, .frosted h5, .frosted h6, .frosted ul {
	width: 100%;
	padding-right: 5%;
}

.hero-image {
	margin: 0 1em;
}

.highlights {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 1.5em 3em 2em 2em;
    margin: 3em 0;
    justify-content: left;
}

.highlights > .wp-block-group__inner-container {
	justify-content: left;
}

.cinema {
	background: #444;
	border-radius: 8px;
    margin: 3em 0 1em 0;
    padding: 3em 1em 1em 1em;
}

	.cinema img {
		margin: 0 auto;
		max-width: 250px;
	}

	.cinema-white {
		background: #fff;
		border-radius: 8px;
	    margin: 3em 0 1em 0;
	    padding: 3em 1em 1em 1em;
	}

	.cinema-black {
		background: #111;
		border-radius: 8px;
	    margin: 3em 0 1em 0;
	    padding: 3em 1em 1em 1em;
	}

.wp-block-jetpack-videopress {
	width: 100%;
}

.jetpack-videopress-player__wrapper {
	width: 90%;
	max-width: 450px;
	margin: 0 auto;
}

.navigation {
    padding: 0;
}

	.navigation > .wp-block-group__inner-container {
		padding: 0;
		width: 100%;
	}

.wp-block-group__inner-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.wp-block-group__inner-container > .wp-block-image {
  	margin: 0 1em 2em 1em;
  	/* max-width: 260px; */
}

.wp-block-group > .wp-block-image {
	margin: 2em 1em 1em 0;
}

.post {
    display: flex;	
}

.column {
    flex: 2;
	max-width: 800px;
}

.sidebar {
    flex: 1;
    padding-left: 56px;
    max-width: 320px;
}

.footer {
	width: 100%;
	text-align: left;
	margin-bottom: 3em;
}

h1, h2, h3, h4, h5, p, ul, li {
	font-family: "Graphik", sans-serif;
	color: #111;
}

h1 {
	font-size: 3em;
	font-style: normal;
	font-weight: normal;
	line-height: 120%;
}


h2 {
	font-size: 1.3em;
	font-style: normal;
	font-weight: 500;
	line-height: 120%;
	margin: 2em 0 1em 0;
}

h3 {
	font-size: 1.1em;
	font-style: normal;
	font-weight: 500;
	line-height: 120%;
	margin: 0 0 16px 0;
}

h3.wp-block-heading {
	margin: 2em 0 1em 0;
}

h4 {
	font-size: 1em;
	font-style: normal;
	font-weight: 500;
	line-height: 120%;
	letter-spacing: -0.42px;
	margin-bottom: 0;
}

p {
	font-family: "Graphik", sans-serif;
	font-size: 1.1em;
	font-style: normal;
	font-weight: normal;
	line-height: normal;
	letter-spacing: -0.32px;
	line-height: 160%;
	color: #444;
	width: 100%;
}

p.side {
	font-size: 12pt;
	margin-top: 8px;
}

p.has-small-font-size {
	font-size: 12pt;
	color: #444;
}

p.has-text-align-center {
	text-align: center;
}

.wp-block-heading {
	width: 100%;
}

header h1 {
	margin-top: 0;
}

header p {
	font-size: 1em;
	font-weight: 500;
	color: #444;
	margin-bottom: 24px;
}

article strong {
	font-weight: 500;
}

.footer p, .footer h4 {
	font-size: 1em;
	line-height: 140%;
	margin-top: 0;
}

a {
  color: #444;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #685BC7;
  text-decoration: underline;
}

ul {
}


li {
	list-style-type: disc;
	font-family: "Graphik", sans-serif;
	font-size: 1.1em;
	font-style: normal;
	font-weight: normal;
	line-height: normal;
	letter-spacing: -0.32px;
	line-height: 160%;
	color: #444;
}

ul.alignfull {
	padding: 0px;
}

ul.alignfull > li {
	padding: 0px;
}

ul.logos {
	padding: 8px 0px 0px 0px;
}

li.logo {
	list-style-type: none;
	display: flex;
  	line-height: 42px;
  	margin-bottom: 16px;
}

.logo img {
	height: 42px;
	width: 42px;
	padding-right: 16px;
}

.mttmr_logo {
	margin-top: 0em;
    transition: transform 0.3s;
}

.mttmr_logo:hover {
      transform: scale(1.01);
 }

.mttmr_logo:active {
      transform: scale(0.99);
}

.mttmr_logo_home {
	width: 300px;
	height: auto;
	display: block;
	padding-bottom: 16px;
    transition: transform 0.3s;
}

.mttmr_logo_home:hover {
      transform: scale(1.01);
 }

.mttmr_logo_home:active {
      transform: scale(0.99);
}

.logos {
	padding-bottom: 16px;
}

.about {
	padding-bottom: 24px;
}

.writing p {
	margin: 0 0 8px 0;
}

.elsewhere {
	padding: 0 0 24px 0;
}

.elsewhere ul {
	margin-top: 16px;
	padding-left: 0;
}

.elsewhere li {
	list-style-type: none;
	margin: 0 0 8px 0;
	display: flex;
	align-items: center;
}

.icon {
	margin-right: 8px;
}

.elsewhere li a {
	color: #444444;
	text-decoration: underline;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
}

.elsewhere a:hover {
	color: #685BC7;
}

.writing, .experience {
	flex: 1;
	background: rgba(255, 255, 255, 0.3);
	margin-right: 1em;
	padding: 32px;
	border-radius: 8pt;
}

.team-and-date {
	position: relative;
	display: inline-block;
	width: 100%;
}

.tooltip {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  text-align: center;
  padding: 5px;
  border-radius: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.image-container:hover .tooltip {
  visibility: visible;
}

/* Work project tiles */

.work {
    display: flex;
    overflow-x: auto; /* Allow horizontal scrolling */
    width: 100vw; /* Set a width to limit horizontal space */
    margin: 0 auto; /* Center the content */
  	padding: 2em 0;
    white-space: nowrap;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.work::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}

.work > div {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    margin-right: 16px;
}

.work > div:first-child {
    margin-left: 3em;
}

.work > div:last-child {
    margin-right: 3em;
}

.project {
    background: rgba(255, 255, 255, 0.3);
    display: inline-block;
    margin-right: 16px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    transform: scale(.99);
    cursor: pointer;
}

.project a {
    padding: 0;
    display: block;
  	text-decoration: none;
  	margin: 0;
}

.project:hover {
	background: rgba(255, 255, 255, 1.0);
    transform: scale(1.0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project:active {
    transform: scale(.985);
}

.project img {
    display: block;
    width: auto;
    max-width: 288px;
    height: auto;
}

.project h4 {
	margin: 32px;
}

.project img.padded {
	margin: 32px 32px 0 32px;
}

.project img.unpadded {
	max-width: 352px;
}

/* Post and page css adjustments */
.wp-block-image {
	margin: 1em 1em 3em 1em;
}

.wp-block-image img {
	max-width: 100%;
	aspect-ratio: auto;
	height: auto;
	display: block;
	margin: 0 auto	;
}

.caption {
	margin: 0;
}

.cinema .wp-element-caption {
	color: #ddd;
}

.wp-block-jetpack-videopress > figcaption {
	color: #ccc;
}

.hero-image {
	margin: 0 0 1em 0;
}

.primary-image img {
	max-width: 100%;
}

.rounded img {
	border-radius: 8px;
}

video, .vjs-tech {
	max-width: 100%;
}

figure {
	margin: 0;
}

figcaption, .wp-element-caption {
	font-family: "Graphik", sans-serif;
	color: #444;
	text-align: center;
	margin-top: 16px;
}

.wp-block-table {
	width: 100%;
	margin-inline-start: 0;
	font-family: "Graphik", sans-serif;
	font-size: 1.1em;
	color: #444;
}

	.wp-block-table td {
		min-width: 100px;
		vertical-align: top;
	}

	.wp-block-table tr {
		margin: 8px 0 0 0;
		display: block;
	}

	.wp-block-table strong {
		font-weight: 500;
		color: #111;
	}

	.wp-block-table a {
		margin-right: 8px;
	}

.wp-block-group {
	display: flex;
}

.team {
	padding-left: 0em;
	padding-right: 0em;
}

.wp-block-text {
	padding-left: 0em;
	padding-right: 0em;
}

.wp-block-columns {
	display: flex;
	margin: 2em 0em 1em 0em;
  	width: 100%;
}

.wp-block-column {
	flex: 1;
  	margin-right: 18px;
}

.wp-block-column:last-child {
	margin-right: 0;
}

.wp-block-group > .wp-block-group__inner-container {
	justify-content: center;
}

.writing-block > .wp-block-group__inner-container {
	justify-content: left;
}

ul.wp-block-post-template {
	padding: 0;
}

.wp-block-group__inner-container li {
	padding-left: 0;
}

.content {
	max-width: 1100px;
	margin: 0 auto;
}

.highlights h3 {
	margin: 1em 0;
}

.proj-button-left {
	height: 100%;
}

	.proj-button-left a {
		display: block;
    	background: rgba(255, 255, 255, 0.6);
		border-radius: 8px;
		padding: 1.5em 2em 1.5em 2em;
		text-align: left;
  		text-decoration: none;
    	transition: transform 0.3s;
    	transform: scale(.99);
    	cursor: pointer;
	}

	.proj-button-left a:hover {
    	background: rgba(255, 255, 255, 1.0);
    	transform: scale(1.0);
    	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	}

	.proj-button-left a:active {
   		transform: scale(.985);
	}

	.proj-button-left strong {
		font-weight: 500;
	}

.proj-button-right {
	height: 100%;
}

	.proj-button-right a {
		display: block;
    	background: rgba(255, 255, 255, 0.6);
		border-radius: 8px;
		padding: 1.5em 2em 1.5em 2em;
		text-align: right;
  		text-decoration: none;
    	transition: transform 0.3s;
    	transform: scale(.99);
    	cursor: pointer;
	}

	.proj-button-right a:hover {
    	background: rgba(255, 255, 255, 1.0);
    	transform: scale(1.0);
    	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	}

	.proj-button-right a:active {
   		transform: scale(.985);
	}

	.proj-button-right strong {
		font-weight: 500;
	}

.wp-block-group > h4, .wp-block-group > h3 {
	width: 100%;
}



/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

/* Media queries for smaller screens */
@media only screen
	and (max-width: 768px) 
	and (-webkit-min-device-pixel-ratio: 2) {
    body {
    }

    body, html {
		text-align: left;
		font-size: 100%;
		margin: 0;
		padding: 0;
		overflow-x: hidden;
		height: 100%;
		width: 100%;
	}

    .about, .content {
    	flex-direction: column;
    }

    .about > div {
    	padding: 0;
    	margin: 16pt 0;
    }

    .writing, .experience {
		margin: 0 0 1em 0;
		border-radius: 0;
	}

    .post {
        flex-direction: column;
    }

    .column {
        flex: 1;
    }
    .sidebar {
        flex: 1;
        padding-left: 0;
        margin-top: 40px;
        max-width: 100%;
    }

    .container {
    	padding: 1em 2em 0 2em;
    }

    .frosted {
    	border-radius: 0px;
    	padding: 1em 0 2em 0;
    	margin: 2em 0em 1em 0em;
	}

		.frosted p, .frosted h1, .frosted h2, .frosted h3, .frosted h4, .frosted h5, .frosted h6, .frosted ul {
			width: 100%;
			padding-right: 5%;
		}

	.hero-image {
    	margin: 0 1em 1em 1em;
	}

	.highlights {
		padding-left: 2em;
		padding-right: 2em;
		border-radius: 0px;
	}

	.team {
		padding-left: 2em;
		padding-right: 2em;
	}

	.wp-block-text {
		padding-left: 2em;
		padding-right: 2em;
	}

	.cinema, .cinema-black, .cinema-white {
		border-radius: 0;
	}

	.mttmr_logo_home {
		margin-top: 1em;
		max-width: 250px;
		padding-bottom: 0;
	}

	.work > div:first-child {
    	margin-left: 2em;
	}

	.work > div:last-child {
    	margin-right: 2em;
	}

	.project img.padded {
		margin: 8px 8px 0 8px;
		width: 100%;
	}

	.wp-block-columns {
		display: block;
	}

	.wp-block-column {
		margin: 0;
	}

	.navigation {
    	padding: 0 2em;
	}

	.post {
		padding: 2em;
	}
}

/* Hacking Wordpress styles */

/* Hide Share this and Like this */
.sharedaddy, .jp-relatedposts, .single-post .sd-social.sd-social-inline {
    display: none;
}

/* Hide Related Posts */
.related-posts {
    display: none;
}

h3.jp-relatedposts-headline {
	display: none;
	visibility: hidden;
}

#jp-relatedposts h3.jp-relatedposts-headline {
	font-size: 0px;
	visibility: hidden;
	line-height: 0;
}