/*
	Theme Name: Csorba Péter Art
	Version: 1.0.0
	Author: Roland Szabó
	Author URI: https://rolandszabo.design/
	Description: A WordPress theme hand-crafted with ♥ by your friend, Roland.
*/



/* RESET CSS */

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;
}
html { scroll-behavior: smooth; }
body { line-height: 1; }
a { text-decoration-skip-ink: auto; }
a[href^="tel"] { color: inherit; text-decoration: none; }
button { outline: 0; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; }
q { display: inline; font-style: italic; }
q:before { content: '"'; font-style: normal; }
q:after { content: '"'; font-style: normal; }
textarea, input[type="text"], input[type="button"], input[type="submit"], input[type="reset"], input[type="search"], input[type="password"] { -webkit-appearance: none; appearance: none; border-radius: 0; }
/* input[type="search"] { -webkit-appearance: textfield; } */
table { border-collapse: collapse; border-spacing: 0; }
th, td { padding: 2px; }
big { font-size: 120%; }
small, sup, sub { font-size: 80%; }
sup { vertical-align: super; }
sub { vertical-align: sub; }
kbd, tt { font-family: courier; font-size: 12px; }
ins { text-decoration: underline; }
del, strike, s { text-decoration: line-through; }
dt { font-weight: bold; }
address, cite, var { font-style: italic; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

.visually-hidden:not(:focus):not(:active) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
	clip: rect(1px 1px 1px 1px);
	clip: rect(1px, 1px, 1px, 1px);
}



/* VARIABLES */

:root {
	--color: #fa983a;

	--text: #515559;
	--text-dark: #212529;
	--text-light: #818589;

	--transition-duration: .25s;
}



/* BASE STYLES */

html {
	font-size: 62.5%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 95vh;
	font-size: 1.6rem;
	font-family: "Teachers", sans-serif;
	font-style: normal;
	color: var(--text);
	letter-spacing: -.25px;
	line-height: 1.6;
}

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

.main {
	flex-grow: 1;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.container {
	max-width: 120rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 2rem;
	padding-right: 2rem;
}

.half {
	display: grid;
	grid-gap: 5rem;
}

@media only screen and (min-width: 768px) {
	.half {
		grid-template-columns: repeat(2, 1fr);
	}
}

.section {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

.section--top {
	padding-top: 0;
}



/*********************
/* BASIC COMPONENTS */
/********************/

/* Typography */

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
	margin-top: 3rem;
	margin-bottom: 3rem;
	font-family: "Sedan", serif;
	font-weight: 400;
	color: var(--text-dark);
}

h1, .h1 {
	font-size: 3rem;
	letter-spacing: -.5px;
}

@media only screen and (min-width: 768px) {
	h1, .h1 {
		font-size: 5rem;
		letter-spacing: -1px;
	}
}

h2, .h2 {
	font-size: 2rem;
	letter-spacing: -.4px;
}

@media only screen and (min-width: 768px) {
	h2, .h2 {
		font-size: 2.4rem;
	}
}

h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
	font-size: 1.8rem;
	letter-spacing: -.4px;
}

@media only screen and (min-width: 768px) {
	h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
		font-size: 2rem;
	}
}

p, li {
	margin-bottom: 2rem;
}

@media only screen and (min-width: 768px) {
	p, li {
		font-size: 1.8rem;
		line-height: 1.8;
	}
}

ul, ol {
	margin-bottom: 2rem;
	margin-left: 2rem;
}

ul { list-style: disc; }
ol { list-style: decimal; }

li::marker {
	font-weight: 800;
}

hr {
	margin: 2rem 0 4rem;
	border: 0;
	border-bottom: 1px solid #D1D5D9;
}

strong {
	font-weight: 700;
}

em {
	font-style: italic;
}

a,
a[href^="tel"] {
	color: var(--color);
	text-decoration: none;
	transition: color var(--transition-duration);
}

a:hover,
a:focus {
	color: var(--color);
}

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



/* Tables */

table {
	margin-bottom: 3rem;
}

th {
	font-weight: 700;
	text-align: left;
}



/* Buttons */

.btn,
input[type="submit"],
button[type="submit"] {
	cursor: pointer;
	display: inline-block;
	padding: 1rem 2rem;
	font: inherit;
	font-weight: 500;
	font-size: 2rem;
	color: #FFF;
	line-height: 1.5;
	text-decoration: none;
	border: 0;
	border-radius: .75rem;
	background-color: var(--color);
	transition: background-color var(--transition-duration);
}

.btn:hover,
.btn:focus {
	background-color: var(--text);
}



/* Forms */

label {
	font-weight: 400 !important;
}

input[type="text"],
input[type="email"],
select,
textarea {
	min-width: 100%;
	padding: 1rem;
	font: inherit;
	border-radius: .5rem;
	border: 1px solid #D1D5D9;
}

.mailpoet_submit {
	padding: 1rem 2rem !important;
}



/* Responsive Embed */

.embed {
	position: relative;
	overflow: hidden;
	display: block;
	width: 100%;
	padding: 0;
}

.embed:before {
	content: '';
	display: block;
	padding-top: 56.25%;
}

.embed iframe {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



/******************
/* PAGE ELEMENTS */
/*****************/

/* Main Header & Navigation */

@media only screen and (max-width: 768px) {
	.menu {
		display: none;
	}
}

.menu-list {
	list-style: none;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
}

@media only screen and (max-width: 768px) {
	.menu-list {
		flex-direction: column;
		height: 100%;
	}
}

.menu-item {
	list-style: none;
	margin-bottom: 0;
}

.menu-link {
	display: block;
	padding: 2rem;
	font-size: 1.8rem;
	color: var(--text-light);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.menu-toggle__btn {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	transition: var(--transition-duration) background-color;
}

.menu-toggle__btn:hover,
.menu-toggle__btn:focus {
	background-color: #D1D5D9;
}

@media only screen and (min-width: 768px) {
	.menu-toggle__btn {
		display: none;
	}
}

.menu-toggle__icon {
	margin-right: 1rem;
}

.menu-toggle__input {
	display: none;
}

@media only screen and (max-width: 767px) {
	.menu-toggle__input:checked + .menu {
		display: block;
	}
}



/*************************
/* PAGE-SPECIFIC STYLES */
/************************/

/* Homepage */

.home {
	background: url('/wp-content/themes/csorbapeterart/images/csorba-peter-homepage.webp') no-repeat center -8rem;
	background-size: cover;
	color: #FFF; */
}

.home .menu-link {
	color: #FFF;
	text-shadow: 0 .25rem .5rem rgba(0,0,0,.75);
}

.home-container {
	min-height: 75vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.home-title {
	margin-bottom: 0;
	color: #FFF;
	text-shadow: 0 .125rem .5rem rgba(0,0,0,1), 0 1rem 2rem rgba(0,0,0,1);
}

.home-description {
	margin-top: -1rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #FFF;
	text-shadow: 0 .25rem .5rem rgba(0,0,0,1);
}

@media only screen and (min-width: 768px) {
	.home-title {
		font-size: 6rem;
		letter-spacing: -3px;
	}
}

@media only screen and (min-width: 992px) {
	.home-title {
		font-size: 8rem;
		letter-spacing: -4px;
	}
}



/* Contact */

div.wpforms-container-full:not(:empty) {
	width: 100%;
	margin-top: 0 !important;
}

.wpforms-container .wpforms-submit {
	margin-top: 1rem;
}

.wpforms-container .wpforms-field:first-of-type {
	padding-top: 0;
}



/* Gallery */

.gallery {
	display: grid;
	grid-gap: 2rem;
	align-items: start;
}

@media only screen and (min-width: 768px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

.gallery__item {
	position: relative;
	color: #FFF;
}

.gallery__item:hover,
.gallery__item:focus {
	color: #FFF;
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus .gallery__overlay {
	opacity: 1;	
}

.gallery__photo {
	display: block;
}

.gallery__overlay {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2rem;
	background-color: rgba(0,0,0,.5);
	transition: var(--transition-duration) opacity;
}

.gallery__overlay-title {
	margin-top: 0;
	color: #FFF;
}

.gallery__overlay-text {
	margin-bottom: 0;
	color: #FFF;
}



/* Newsletter, Lister & Article */

.newsletter {
	margin-top: 4rem;
	margin-bottom: 4rem;
	padding: 2rem;
	background-color: #F1F5F9;
}

@media only screen and (min-width: 768px) {
	.newsletter {
		padding: 4rem;
	}
}

.newsletter__title {
	margin-top: 0;
	margin-bottom: 1rem;
}

.lister {
	display: grid;
	align-items: center;
	margin-bottom: 2rem;
}

@media only screen and (max-width: 767px) {
	.lister {
		grid-gap: 2rem;
	}
}

@media only screen and (min-width: 768px) {
	.lister {
		grid-template-columns: 1fr 3fr;
		grid-gap: 4rem;
	}
}

.lister-title {
	margin-top: 0;
	margin-bottom: 0;
	font-weight: 700;
	font-family: "Teachers", sans-serif;
}

.lister-date {
	display: block;
	margin-bottom: 2rem;
}

.lister-link {
	color: var(--text);
}

.lister-image {
	object-fit: cover;
	max-height: 24rem;
	width: 100%;
}

.article-header {
	padding-bottom: 3rem;
	margin-bottom: 3rem;
	text-align: center;
	border-bottom: 1px solid #D1D5D9;
}

.article-title {
	margin-bottom: 1rem;
}



/********************
/* UTILITY CLASSES */
/*******************/

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
