/* InStyle responsive layout */

html,
body {
	overflow-x: hidden;
}

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

.entry iframe,
.entry embed,
.entry object,
.entry video {
	max-width: 100%;
}

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Tablet landscape */
@media screen and (max-width: 1024px) {
	#container {
		width: 94%;
		max-width: 960px;
	}

	#header {
		margin-left: 3%;
		margin-right: 3%;
	}

	#content-area {
		width: 65%;
	}

	#sidebar {
		width: 33%;
	}

	.slide {
		width: 100%;
	}

	#slidenews {
		width: 90%;
	}

	#comment-wrap,
	.fullwidth #comment-wrap {
		width: 100%;
	}
}

/* Tablet portrait and mobile */
@media screen and (max-width: 768px) {
	#backgrounds img {
		min-width: 0;
		min-height: 0;
		object-fit: cover;
		height: 100%;
	}

	#header {
		margin-left: 2%;
		margin-right: 2%;
		margin-bottom: 30px;
		padding: 12px 15px 15px;
	}

	#logo {
		float: none;
		display: block;
		max-width: 220px;
		margin: 0 auto 12px;
	}

	.mobile-menu-toggle {
		display: block;
		position: absolute;
		top: 14px;
		right: 14px;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid rgba(255, 255, 255, 0.45);
		border-radius: 6px;
		background: rgba(0, 0, 0, 0.25);
		cursor: pointer;
		z-index: 210;
	}

	.mobile-menu-toggle span {
		display: block;
		width: 22px;
		height: 2px;
		margin: 5px auto;
		background: #fff;
		border-radius: 1px;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
		opacity: 0;
	}

	body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	#header-right {
		display: none;
		float: none;
		width: 100%;
		clear: both;
		padding-top: 8px;
	}

	body.mobile-nav-open #header-right {
		display: block;
	}

	#language-switcher {
		float: none;
		margin: 0 auto 12px;
		width: fit-content;
	}

	ul#qtranslate-chooser {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
		gap: 10px;
	}

	ul#top-menu {
		float: none;
		margin: 0;
		width: 100%;
	}

	.nav li {
		float: none;
		margin: 0;
		width: 100%;
	}

	.nav > li > a,
	ul#top-menu a {
		float: none;
		display: block;
		padding: 12px 14px;
		font-size: 16px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	}

	ul.nav ul,
	ul.nav ul.sub-menu {
		position: static;
		width: 100%;
		margin: 0;
		padding: 0;
		border: none;
		border-radius: 0;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.2);
		display: none !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	ul.nav li.mobile-submenu-open > ul,
	ul.nav li.mobile-submenu-open > ul.sub-menu {
		display: block !important;
	}

	ul.nav li:hover > ul,
	ul.nav li.sfHover > ul,
	ul.nav li:focus-within > ul,
	ul.nav li li:hover > ul,
	ul.nav li li.sfHover > ul,
	ul.nav li li:focus-within > ul {
		display: none !important;
	}

	ul.nav li.mobile-submenu-open:hover > ul,
	ul.nav li.mobile-submenu-open > ul {
		display: block !important;
	}

	ul.nav ul ul,
	ul.nav ul.sub-menu ul.sub-menu {
		left: auto;
		top: auto;
		margin: 0;
		padding-left: 12px;
	}

	ul.nav span.top-arrow {
		display: none;
	}

	ul.nav ul li a {
		width: auto;
		padding-left: 24px;
	}

	.nav li.menu-item-has-children > a::after {
		content: "+";
		float: right;
		font-size: 18px;
		line-height: 1;
	}

	.nav li.mobile-submenu-open > a::after {
		content: "−";
	}

	#search-form {
		float: none;
		margin: 12px auto 0;
		width: 100%;
		max-width: 300px;
		background-size: 100% 100%;
	}

	#search-form #searchinput {
		width: calc(100% - 50px);
	}

	ul#qtranslate-chooser {
		float: none;
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		gap: 8px;
		padding: 12px 0 0;
	}

	#container {
		width: 100%;
		padding: 0 10px;
	}

	#featured-text {
		height: auto;
		margin-top: 60px;
		margin-bottom: 50px;
	}

	.slide {
		position: relative;
		width: 100%;
		font-size: 20px;
		margin-bottom: 30px;
	}

	.slide h2.title {
		font-size: 34px;
		line-height: 1.1;
	}

	h1.category-title {
		font-size: 34px;
		margin-top: 0;
	}

	p.category-tagline {
		font-size: 20px;
	}

	#content-top,
	#content-bottom,
	.fullwidth #content-top,
	.fullwidth #content-bottom {
		display: none;
		background: none;
		height: 0;
	}

	#content,
	.fullwidth #content {
		background: rgba(255, 255, 255, 0.95);
		border-radius: 8px;
		padding: 10px 0 20px;
		margin-bottom: 20px;
	}

	#content-area,
	#sidebar,
	.fullwidth #content-area {
		float: none;
		width: 100%;
	}

	#sidebar {
		margin-top: 0;
	}

	.post {
		padding: 0 18px 28px;
	}

	h2.post-title {
		font-size: 30px;
	}

	div.post-thumbnail {
		float: none;
		width: auto;
		max-width: 100%;
		height: auto;
		margin: 0 0 15px;
		padding: 0;
	}

	div.post-thumbnail img {
		width: 100%;
		height: auto;
	}

	span.post-overlay {
		display: none;
	}

	#comment-wrap,
	.fullwidth #comment-wrap {
		width: 100%;
	}

	#respond,
	#trackbacks {
		margin-left: 0;
	}

	h3#comments,
	.comment-body {
		padding-left: 0;
	}

	.comment ul.children {
		margin-left: 16px;
	}

	#commentform input[type=text],
	#commentform textarea#comment,
	li.comment #respond input[type=text] {
		width: 100% !important;
		box-sizing: border-box;
	}

	#slidenews {
		width: calc(100% - 20px);
		margin-top: -20px;
		margin-bottom: 16px;
		padding: 10px 12px;
		font-size: 12px;
		line-height: 1.4;
	}

	.service {
		float: none;
		width: 100%;
		margin: 0 0 30px;
	}

	.pagination,
	.wp-pagenavi {
		padding: 12px 18px 0;
		text-align: center;
	}

	.alignleft,
	.alignright,
	img.alignleft,
	img.alignright {
		float: none;
		display: block;
		margin: 0 auto 15px;
	}

	body.cufon-disabled .slide h2.title {
		font-size: 30px;
	}

	body.cufon-disabled h1.category-title {
		font-size: 30px;
	}

	body.cufon-disabled h2.post-title,
	body.cufon-disabled h3#comments {
		font-size: 28px;
	}
}

@media screen and (max-width: 480px) {
	#header {
		padding-top: 52px;
	}

	.mobile-menu-toggle {
		top: 10px;
		right: 10px;
	}

	.slide h2.title {
		font-size: 26px;
	}

	.slide {
		font-size: 16px;
	}

	h1.category-title {
		font-size: 26px;
	}

	h2.post-title {
		font-size: 24px;
	}

	.widget h3.widgettitle {
		font-size: 24px;
	}
}

/* Page templates (gallery, contact, search) */
@media screen and (max-width: 768px) {
	.et_pt_gallery_entry,
	.et_pt_portfolio_entry {
		float: none !important;
		width: auto !important;
		max-width: 100%;
		margin: 0 auto 24px !important;
	}

	#et-search,
	#et-search-left,
	#et-search-right {
		width: 100% !important;
		float: none !important;
		height: auto !important;
		background-size: 100% 100%;
	}

	#et-searchinput,
	textarea.input,
	input.input {
		width: 100% !important;
		box-sizing: border-box;
	}

	#wp-calendar {
		width: 100%;
		max-width: 100%;
	}
}
