/*
Theme Name: IST-INBLOG
Theme URI: https://ist-design.co.kr
Author: IST CREATIVE
Author URI: https://ist-design.co.kr
Description: 인블로그(블로그 전용) 테마. 머터리얼 매서너리 카드 목록, 풀 이미지 게시물 헤더, 오른쪽 슬라이드 오프캔버스 메뉴.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ist-inblog
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ist-font: "Open Sans", Helvetica, sans-serif;
	--ist-text: #676767;
	--ist-heading: #444;
	--ist-dark: #444;
	--ist-accent: #3452ff;
	--ist-share-color: #26433d;
	/* Customizer > IST-INBLOG 설정 > 색상 스타일 */
	--ist-header-bg: #fff;
	--ist-menu-color: #555;
	--ist-menu-hover: #555;
	--ist-search-icon: rgba(0, 0, 0, .48);
	--ist-burger: rgba(0, 0, 0, .4);
	--ist-dropdown-bg: #fff;
	--ist-dropdown-text: #555;
	--ist-ocm-bg: #444;
	--ist-ocm-text: #fff;
	--ist-ocm-btn-bg: #32373c;
	--ist-ocm-btn-text: #fff;
	--ist-ocm-close: #666;
	--ist-footer-bg: #fff;
	--ist-footer-text: #777;
	/* Customizer > IST-INBLOG 설정 > 헤더 > 로고 높이 */
	--ist-logo-h: 30px;
	--ist-logo-h-small: 24px;
	--ist-logo-h-mobile: 24px;
	/* header height = logo + top/bottom margin (28px each, 15.56px when scrolled) */
	--ist-header-h: calc(var(--ist-logo-h) + 56px);
	--ist-ease-ocm: cubic-bezier(.15, .2, .1, 1);
	--ist-ease-btn: cubic-bezier(.25, 1, .33, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background-color: #fff;
	color: var(--ist-text);
	font-family: var(--ist-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 26px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

a { color: var(--ist-accent); text-decoration: none; transition: color .3s ease; }

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

h1, h2, h3, h4, h5, h6 {
	color: var(--ist-heading);
	font-family: var(--ist-font);
	font-weight: 600;
	letter-spacing: 0;
	margin: 0 0 7px;
}
h1 { font-size: 54px; line-height: 62px; }
h2 { font-size: 34px; line-height: 44px; margin-bottom: 10px; }
h3 { font-size: 22px; line-height: 34px; }
h4 { font-size: 18px; line-height: 32px; }
h5 { font-size: 16px; line-height: 26px; }
h6 { font-size: 14px; line-height: 24px; }

p { margin: 0; padding-bottom: 21px; }

strong, b { font-weight: 600; }

.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 !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100001;
	left: 10px;
	top: 10px;
	padding: 10px 16px;
	background: #fff;
	color: #000;
}

.container {
	position: relative;
	width: 100%;
	max-width: 1425px;
	margin: 0 auto;
	padding: 0 90px;
}

/* ==========================================================================
   Page wrapper (moves when the off canvas menu opens)
   ========================================================================== */
.ocm-effect-wrap {
	position: relative;
	z-index: 10;
	min-height: 100vh;
	background-color: #fff;
	transform-origin: center;
	transition: transform .8s var(--ist-ease-ocm);
}
.ocm-effect-wrap-inner {
	backface-visibility: hidden;
	transition: transform .8s var(--ist-ease-ocm);
}

/* ==========================================================================
   Header
   ========================================================================== */
#header-space { height: var(--ist-header-h); background-color: var(--ist-header-bg); }

#header-outer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background-color: var(--ist-header-bg);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow .42s ease, opacity .3s ease;
}
#header-outer.small-nav { box-shadow: 0 3px 45px rgba(0, 0, 0, .15); }
.admin-bar #header-outer { top: 32px; }

#top { position: relative; z-index: 9998; }

#top .header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#logo {
	display: block;
	margin: 28px 0;
	color: var(--ist-dark);
	font-size: 22px;
	font-weight: 600;
	line-height: 22px;
	letter-spacing: -1px;
	transition: margin .32s ease;
}
#logo img {
	display: block;
	width: auto;
	height: var(--ist-logo-h);
	max-width: none;
	transition: height .32s ease, opacity .2s ease;
}
#logo .logo-text { display: block; line-height: var(--ist-logo-h); transition: line-height .32s ease; }
#header-outer.small-nav #logo { margin: 15.56px 0; }
#header-outer.small-nav #logo img { height: var(--ist-logo-h-small); }
#header-outer.small-nav #logo .logo-text { line-height: var(--ist-logo-h-small); }

.header-right { display: flex; align-items: center; }

.header-nav { display: flex; align-items: center; }

.sf-menu,
.header-nav .buttons {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.sf-menu > li { position: relative; }
.sf-menu > li > a {
	display: block;
	position: relative;
	margin: 0 10px;
	padding: calc((var(--ist-logo-h) + 36px) / 2) 0;
	color: var(--ist-menu-color);
	font-size: 14px;
	line-height: 20px;
	transition: color .2s ease, padding .32s ease;
}
.sf-menu > li > a:hover,
.sf-menu > li > a:focus,
.sf-menu > .current-menu-item > a,
.sf-menu > .current-menu-ancestor > a,
.sf-menu > .current-post-ancestor > a { color: var(--ist-menu-hover); }
#header-outer.small-nav .sf-menu > li > a { padding: calc((var(--ist-logo-h-small) + 11.12px) / 2) 0; }
.sf-menu .menu-title-text { position: relative; display: inline-block; }
.sf-menu .menu-title-text::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 2px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .3s cubic-bezier(.2, .75, .3, 1);
}
.sf-menu > li > a:hover .menu-title-text::after,
.sf-menu > li > a:focus .menu-title-text::after,
.sf-menu > .current-menu-item > a .menu-title-text::after,
.sf-menu > .current-menu-ancestor > a .menu-title-text::after,
.sf-menu > .current-post-ancestor > a .menu-title-text::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* dropdown */
.sf-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	margin: 0;
	padding: 15px 0;
	list-style: none;
	background: var(--ist-dropdown-bg);
	box-shadow: 0 6px 28px rgba(0, 0, 0, .09);
	border-radius: 5px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.sf-menu li:hover > .sub-menu,
.sf-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}
.sf-menu .sub-menu a {
	display: block;
	padding: 6px 22px;
	color: var(--ist-dropdown-text);
	font-size: 13px;
	line-height: 20px;
	opacity: .8;
	transition: opacity .2s ease;
}
.sf-menu .sub-menu a:hover { opacity: 1; }

.header-nav .buttons { margin-left: 30px; }
#search-btn { margin-right: 14px; }
.header-nav .buttons .slide-out-widget-area-toggle { margin-left: 14px; }

.search-trigger {
	display: block;
	color: var(--ist-search-icon);
	line-height: 0;
	transition: color .2s ease, opacity .2s ease;
}
.search-trigger:hover { color: var(--ist-menu-hover); }
.ist-icon-search { display: block; }

/* hamburger */
.ocm-toggle { display: block; padding: 2px 0; line-height: 0; }
.lines-button {
	display: block;
	position: relative;
	width: 22px;
	height: 16px;
}
.lines-button i {
	position: absolute;
	left: 0;
	height: 2px;
	width: 22px;
	background-color: var(--ist-burger);
	transition: transform .3s ease, width .3s ease, opacity .2s ease, background-color .2s ease, top .3s ease;
}
.lines-button .l1 { top: 0; }
.lines-button .l2 { top: 7px; }
.lines-button .l3 { top: 14px; width: 16.5px; }
.ocm-toggle:hover .lines-button i { background-color: var(--ist-menu-hover); }
.ocm-toggle:hover .lines-button .l3 { width: 22px; }
body.ocm-open .lines-button .l1 { top: 7px; transform: rotate(45deg); }
body.ocm-open .lines-button .l2 { opacity: 0; }
body.ocm-open .lines-button .l3 { top: 7px; width: 22px; transform: rotate(-45deg); }

.mobile-search,
.slide-out-widget-area-toggle.mobile-icon { display: none; }

/* ==========================================================================
   Search overlay
   ========================================================================== */
#search-outer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10000;
	height: 35vh;
	min-height: 240px;
	background-color: #fff;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transform: translateY(-101%);
	transition: transform .8s cubic-bezier(.2, 1, .3, 1), box-shadow .8s cubic-bezier(.2, 1, .3, 1);
}
.admin-bar #search-outer { top: 32px; }
#search-outer.open {
	transform: translateY(0);
	box-shadow: 0 0 120px rgba(0, 0, 0, .25);
}
#search,
#search .container { height: 100%; }
#search .container { display: flex; align-items: center; }
#search-box { width: 100%; }
#search-box form { margin: 0; }
#search-box input[type="text"] {
	display: block;
	width: 100%;
	padding: 0 60px 0 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: transparent;
	color: #000;
	font-family: var(--ist-font);
	font-size: 48px;
	font-weight: 400;
	line-height: 58px;
	box-shadow: none;
}
#search-box input[type="text"]::placeholder { color: rgba(0, 0, 0, .3); }
#search-box span {
	display: block;
	margin-top: 14px;
	color: rgba(0, 0, 0, .45);
	font-size: 13px;
	line-height: 18px;
}
#search #close {
	position: absolute;
	top: 50%;
	right: 90px;
	margin-top: -23px;
}
#search #close a,
.slide_out_area_close {
	display: block;
	position: relative;
	width: 46px;
	height: 46px;
}
#search #close a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, .06);
	transform: scale(0);
	transition: transform .45s cubic-bezier(.2, 1, .3, 1);
}
#search-outer.open #close a::before { transform: scale(1); transition-delay: .2s; }
#search #close a:hover::before { background-color: rgba(0, 0, 0, .12); }

.close-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	display: block;
}
.close-line {
	position: absolute;
	top: 0;
	left: 9px;
	width: 2px;
	height: 20px;
	border-radius: 5px;
	background-color: #000;
	transform: scaleY(0) rotate(45deg);
	transition: transform .35s cubic-bezier(.2, 1, .3, 1);
}
.close-line2 { transform: scaleY(0) rotate(-45deg); }
#search-outer.open .close-line1 { transform: rotate(45deg); transition-delay: .3s; }
#search-outer.open .close-line2 { transform: rotate(-45deg); transition-delay: .4s; }

#ajax-content-wrap::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9990;
	background-color: rgba(0, 0, 0, .35);
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease, visibility 0s linear .5s;
}
body.search-open #ajax-content-wrap::after {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

/* ==========================================================================
   Content wrappers
   ========================================================================== */
#ajax-content-wrap { position: relative; }

.container-wrap {
	position: relative;
	z-index: 10;
	background-color: #fff;
}

/* ==========================================================================
   Blog list (home / archive)
   ========================================================================== */
.ist-section--list { padding-bottom: 8vw; }

h1.index__h1 {
	height: 0;
	margin: 0 0 7px;
	overflow: hidden;
	color: transparent;
	font-size: 54px;
	line-height: 62px;
}

.archive-header { padding: 50px 0 40px; }
.archive-title { margin: 0; color: var(--ist-heading); font-size: 34px; line-height: 44px; }
.archive-description { margin-top: 10px; }
.archive-description p { padding-bottom: 0; }

.post-area.masonry { margin-bottom: 20px; }

.posts-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 35px;
	align-items: start;
}
.posts-container.is-masonry { display: block; position: relative; }
.posts-container.is-masonry .masonry-blog-item { position: absolute; top: 0; left: 0; }

.masonry-blog-item { perspective: 1300px; }

.masonry-blog-item .inner-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 5px;
	background-color: #fff;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .14);
	transform-origin: 50% 0;
	backface-visibility: hidden;
}
.posts-container.ist-anim .masonry-blog-item .inner-wrap {
	opacity: 0;
	transform: translate3d(0, 160px, 0) rotateX(24deg);
	transition: opacity .3s cubic-bezier(.1, .3, .2, 1), transform .72s cubic-bezier(.1, .3, .27, 1);
}
.posts-container.ist-anim .masonry-blog-item.is-in .inner-wrap {
	opacity: 1;
	transform: none;
}

.masonry-blog-item .post-content,
.masonry-blog-item .content-inner { position: relative; }

.masonry-blog-item .entire-meta-link {
	position: absolute;
	inset: 0;
	z-index: 101;
}

.masonry-blog-item .post-featured-img {
	display: block;
	position: relative;
	overflow: hidden;
	line-height: 0;
}
.masonry-blog-item .post-featured-img img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	backface-visibility: hidden;
	transition: transform .7s cubic-bezier(.2, 1, .22, 1);
}
.masonry-blog-item .inner-wrap:hover .post-featured-img img { transform: scale(1.07); }

.masonry-blog-item .meta-category {
	display: block;
	position: relative;
	z-index: 110;
	padding: 20px 30px 0;
	background-color: #fff;
	line-height: 26px;
}
.masonry-blog-item .meta-category a {
	display: inline-block;
	position: relative;
	margin: 0 10px 10px 0;
	color: var(--ist-dark);
	font-size: 14px;
	font-weight: 600;
	line-height: 19px;
}
.masonry-blog-item .meta-category a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 20px;
	width: 100%;
	height: 2px;
	background-color: var(--ist-dark);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .3s cubic-bezier(.2, .75, .3, 1);
}
.masonry-blog-item .meta-category a:hover::before { transform: scaleX(1); transform-origin: left; }

.masonry-blog-item .article-content-wrap {
	padding: 10px 30px 30px;
	background-color: #fff;
	color: #000;
}
.masonry-blog-item .post-header { margin-bottom: 12px; }
.masonry-blog-item h3.title {
	margin: 0 0 4px;
	color: #000;
	font-size: 22px;
	font-weight: 600;
	line-height: 34px;
	overflow-wrap: break-word;
}
.masonry-blog-item h3.title a { color: inherit; }
.masonry-blog-item .excerpt { color: #000; font-size: 14px; line-height: 26px; }
.masonry-blog-item .grav-wrap {
	position: relative;
	z-index: 110;
	margin-top: 30px;
	line-height: 26px;
}
.masonry-blog-item .grav-wrap .text { display: inline-block; vertical-align: middle; line-height: 0; }
.masonry-blog-item .grav-wrap .text span { color: #000; font-size: 13px; line-height: 18px; }

/* pagination */
#pagination { margin: 55px 0 40px; text-align: center; }
#pagination ul { list-style: none; margin: 0; padding: 0; }
#pagination li { display: inline-block; margin: 0 2px; }
#pagination .page-numbers {
	display: inline-block;
	padding: 11px 13px 10px;
	border-radius: 4px;
	color: var(--ist-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 11px;
	text-transform: capitalize;
	transition: color .45s var(--ist-ease-btn), background-color .45s var(--ist-ease-btn), box-shadow .45s var(--ist-ease-btn);
}
#pagination .page-numbers.current,
#pagination a.page-numbers:hover {
	background-color: var(--ist-dark);
	color: #fff;
}
#pagination a.page-numbers:hover { box-shadow: 0 9px 20px rgba(0, 0, 0, .15); }
#pagination .page-numbers.dots { padding-left: 4px; padding-right: 4px; }

.no-results { padding: 60px 0; text-align: center; }

/* Youtube section (overlaid cards) */
.ist-section--youtube { padding-bottom: 8vw; }
.ist-section--youtube .ist-section-heading { margin-bottom: 60px; }
.ist-section--youtube h5 { margin: 0 0 7px; color: #000; font-size: 16px; line-height: 26px; }
.ist-section--youtube h2 { margin: 0 0 10px; color: #000; font-size: 34px; line-height: 44px; }
.ist-section--youtube h2 a { color: inherit; }

.overlaid-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.overlaid-item {
	position: relative;
	overflow: hidden;
	border-radius: 5px;
	aspect-ratio: 16 / 10;
	background-color: #2d2d2d;
	color: #fff;
}
.overlaid-item .entire-meta-link { position: absolute; inset: 0; z-index: 20; }
.overlaid-bg { position: absolute; inset: 0; }
.overlaid-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s cubic-bezier(.2, 1, .22, 1);
}
.overlaid-item:hover .overlaid-bg img { transform: scale(1.07); }
.overlaid-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .65) 100%);
}
.overlaid-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	padding: 30px;
}
.overlaid-content .meta-category { display: block; font-size: 14px; font-weight: 600; line-height: 20px; margin-bottom: 6px; }
.overlaid-content .title { margin: 0 0 6px; color: #fff; font-size: 22px; line-height: 30px; word-break: keep-all; }
.overlaid-content .meta-date { display: block; font-size: 13px; line-height: 18px; opacity: .85; }

/* ==========================================================================
   Single post
   ========================================================================== */
#page-header-wrap { position: relative; overflow: hidden; background-color: #fff; }

#page-header-bg {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	height: 550px;
	overflow: hidden;
	background-color: #2d2d2d;
	color: #fff;
}
#page-header-bg .page-header-bg-image {
	position: absolute;
	inset: 0;
	z-index: 1;
}
#page-header-bg .page-header-bg-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}
#page-header-bg .page-header-bg-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #2d2d2d;
	opacity: .4;
}
#page-header-bg .container { z-index: 100; }
#page-header-bg .inner-wrap { text-align: center; }
#page-header-bg .inner-wrap > a {
	display: inline-block;
	margin: 5px 6px 0 5px;
	padding: 4px 10px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-radius: 4px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	transition: border-color .45s var(--ist-ease-btn), background-color .45s var(--ist-ease-btn), color .45s var(--ist-ease-btn);
}
#page-header-bg .inner-wrap > a:hover { border-color: #fff; background-color: #fff; color: #000; }
#page-header-bg h1.entry-title {
	position: relative;
	z-index: 101;
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px 0;
	color: #fff;
	font-size: 44px;
	font-weight: 600;
	line-height: 54px;
}
#single-below-header {
	color: #fff;
	font-size: 14px;
	text-align: center;
}
#single-below-header > span {
	display: inline-block;
	position: relative;
	padding: 0 20px;
	font-size: 14px;
	line-height: 14px;
}
#single-below-header > span:first-child { padding-left: 0; }
#single-below-header > span:last-child { padding-right: 0; }
#single-below-header > span + span { border-left: 1px solid rgba(255, 255, 255, .4); }
#single-below-header a { color: #fff; }

.container-wrap.no-sidebar { padding-top: 80px; }
.single .main-content > .row { padding-bottom: 24px; }

.single .post-area { max-width: 1000px; margin: 0 auto; }

/* post body typography */
.single .post-area .content-inner { padding-bottom: 80px; }
.page-area .content-inner { padding-bottom: 40px; }
.single .post-area .content-inner,
.page-area .content-inner { overflow-wrap: break-word; }
.content-inner p:empty { display: none; }
.content-inner ul,
.content-inner ol { margin: 0 0 30px 30px; padding: 0; }
.content-inner ul { list-style: disc; }
.content-inner ol { list-style: decimal; }
.content-inner li ul,
.content-inner li ol { margin-bottom: 0; }
.content-inner p { padding-bottom: 1.5em; }
.content-inner p:last-child { padding-bottom: 0; }
.content-inner img { margin-bottom: 15px; }
.content-inner i { font-style: normal; }
.content-inner figure { margin: 0 0 30px; }
.content-inner figcaption { color: #999; font-size: 13px; line-height: 20px; text-align: center; }
.content-inner hr { border: 0; border-top: 1px solid #eee; margin: 30px 0; }
.content-inner blockquote {
	margin: 0 0 30px;
	padding-left: 25px;
	border-left: 3px solid var(--ist-dark);
	color: #444;
	font-size: 18px;
	line-height: 32px;
}
.content-inner table { width: 100%; margin-bottom: 30px; border-collapse: collapse; }
.content-inner th,
.content-inner td { padding: 10px 12px; border: 1px solid #eee; text-align: left; }
.content-inner th { background: #f8f8f8; color: #444; font-weight: 600; }
.content-inner iframe,
.content-inner video { max-width: 100%; }
.content-inner .alignleft { float: left; margin: 0 25px 15px 0; }
.content-inner .alignright { float: right; margin: 0 0 15px 25px; }
.content-inner .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.page-links { clear: both; padding-top: 20px; }

/* next / previous */
.blog_next_prev_buttons { margin-top: 80px; overflow: hidden; background-color: #333; }
.blog_next_prev_buttons .controls {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}
.blog_next_prev_buttons li {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50%;
	min-height: 300px;
	padding: 6% 9%;
	overflow: hidden;
	background-color: #333;
	line-height: 0;
}
.blog_next_prev_buttons li.only { width: 100%; }
.blog_next_prev_buttons li::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-color: #0d0d0d;
	opacity: .35;
	transition: opacity .4s cubic-bezier(.05, .2, .1, 1);
}
.blog_next_prev_buttons li:hover::after { opacity: .9; }
.blog_next_prev_buttons .post-bg-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform .4s cubic-bezier(.05, .2, .1, 1), opacity .3s ease;
}
.blog_next_prev_buttons li:hover .post-bg-img { transform: scale(1.1); }
.blog_next_prev_buttons li > a {
	position: absolute;
	inset: 0;
	z-index: 101;
	display: block;
}
.blog_next_prev_buttons h3 {
	display: inline-block;
	position: relative;
	z-index: 100;
	margin: 0 0 7px;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 34px;
	transform: translateX(0) translateZ(0);
	transition: transform .4s cubic-bezier(.05, .2, .1, 1);
}
.blog_next_prev_buttons .next-post:hover h3 { transform: translateX(-40px) translateZ(0); }
.blog_next_prev_buttons .previous-post:hover h3 { transform: translateX(40px) translateZ(0); }
.blog_next_prev_buttons h3 span:not(.text) {
	display: block;
	margin-bottom: 5px;
	color: #fff;
	font-size: 16px;
	line-height: 34px;
	text-align: left;
}
.blog_next_prev_buttons .previous-post h3 span:not(.text) { text-align: right; }
.blog_next_prev_buttons li.only h3 span:not(.text) { text-align: center; }
.blog_next_prev_buttons h3 .text {
	display: block;
	position: relative;
	margin-bottom: 5px;
	color: #fff;
}
.blog_next_prev_buttons .next-arrow {
	position: absolute;
	top: 50%;
	right: -43px;
	width: 40px;
	height: 30px;
	margin-top: -15px;
	overflow: visible;
	transform: translateX(38px);
	transition: transform .4s cubic-bezier(.05, .2, .1, 1);
}
.blog_next_prev_buttons .next-arrow line {
	stroke: #fff;
	stroke-width: 2px;
	stroke-dasharray: 10px;
	stroke-dashoffset: 10px;
	transition: stroke-dashoffset .3s cubic-bezier(.05, .2, .1, 1);
}
.blog_next_prev_buttons li:hover .next-arrow { transform: translateX(42px); }
.blog_next_prev_buttons li:hover .next-arrow line { stroke-dashoffset: 0; transition-delay: .1s; }
.blog_next_prev_buttons h3 .text .line {
	position: absolute;
	top: 50%;
	right: -74px;
	display: block;
	width: 45px;
	height: 2px;
	background-color: #fff;
	transform: translateY(-50%) translateX(28px) scaleX(0);
	transform-origin: right;
	transition: transform .4s cubic-bezier(.05, .2, .1, 1);
}
.blog_next_prev_buttons .next-post:hover h3 .text .line {
	transform: translateY(-50%) translateX(0) scaleX(1);
	transform-origin: left;
}
.blog_next_prev_buttons .previous-post .next-arrow { right: auto; left: -43px; transform: translateX(-38px) rotate(180deg); }
.blog_next_prev_buttons .previous-post:hover .next-arrow { transform: translateX(-42px) rotate(180deg); }
.blog_next_prev_buttons .previous-post h3 .text .line {
	right: auto;
	left: -74px;
	transform: translateY(-50%) translateX(-28px) scaleX(0);
	transform-origin: left;
}
.blog_next_prev_buttons .previous-post:hover h3 .text .line {
	transform: translateY(-50%) translateX(0) scaleX(1);
	transform-origin: right;
}

/* comments */
.comments-section { max-width: 1000px; margin: 0 auto; padding: 60px 0; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 20px 0; border-bottom: 1px solid #eee; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form .search-field {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font: inherit;
	color: #444;
}
.comment-form .submit,
.search-form .search-submit,
.ist-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 0;
	border-radius: 4px;
	background-color: var(--ist-dark);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: box-shadow .45s var(--ist-ease-btn), opacity .2s ease;
}
.comment-form .submit:hover,
.search-form .search-submit:hover,
.ist-btn:hover { box-shadow: 0 9px 20px rgba(0, 0, 0, .15); color: #fff; }

/* page / 404 */
.page-wrap { padding-bottom: 60px; }
.page-area { max-width: 1000px; margin: 0 auto; }
.error-404 { padding: 120px 0; text-align: center; }
.error-404 h1 { font-size: 90px; line-height: 100px; }
.error-404 .search-form { display: flex; gap: 8px; max-width: 420px; margin: 10px auto 30px; }
.error-404 .search-form label { flex: 1; }

/* ==========================================================================
   Footer
   ========================================================================== */
#footer-outer {
	position: relative;
	z-index: 10;
	background-color: var(--ist-footer-bg);
	color: var(--ist-footer-text);
}
#copyright { padding: 45px 0; color: var(--ist-footer-text); }
#copyright .copyright-inner { max-width: 70%; margin: 0 auto; text-align: center; }
#copyright ul { list-style: none; margin: 0; padding: 0; }
#copyright li { display: inline-block; margin: 0 10px; }
#copyright strong { font-weight: 600; }
#copyright a { color: inherit; }
#copyright .widget p { padding-bottom: 0; }
#copyright .footer-line { height: 1px; margin-top: 30px; background-color: rgba(0, 0, 0, .1); }
#copyright .footer-copyright { margin: 33px 0 0; padding: 0; line-height: 22px; }
#copyright .footer-copyright:first-child { margin-top: 0; }

/* ==========================================================================
   Off canvas menu (slide out from right)
   ========================================================================== */
#slide-out-widget-area-bg {
	position: fixed;
	inset: 0;
	z-index: 1;
	background-color: var(--ist-ocm-bg);
	visibility: hidden;
}
.ocm-effect-wrap-shadow {
	position: fixed;
	inset: 0;
	z-index: 2;
	box-shadow: 0 80px 145px rgba(0, 0, 0, .33);
	transform-origin: center;
	visibility: hidden;
	transition: transform .8s var(--ist-ease-ocm), visibility 0s linear .8s;
}

#slide-out-widget-area {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 5;
	display: flex;
	width: 33.3vw;
	min-width: 360px;
	height: 100%;
	padding: 10vh 4%;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	color: var(--ist-ocm-text);
	visibility: hidden;
	transition: visibility 0s linear .8s;
}
#slide-out-widget-area::-webkit-scrollbar { display: none; }
#slide-out-widget-area:focus { outline: 0; }
.admin-bar #slide-out-widget-area { padding-top: calc(10vh + 32px); }

#slide-out-widget-area .inner-wrap {
	width: 100%;
	margin: auto 0;
	opacity: 0;
	transition: opacity .5s ease;
}
#slide-out-widget-area .inner > * {
	transform: translateX(110px);
	transition: transform .8s var(--ist-ease-ocm);
}

body.ocm-open { overflow: hidden; }
body.ocm-open #slide-out-widget-area-bg { visibility: visible; }
body.ocm-open #slide-out-widget-area { visibility: visible; transition-delay: 0s; }
body.ocm-open #slide-out-widget-area .inner-wrap { opacity: 1; }
body.ocm-open #slide-out-widget-area .inner > * { transform: translateX(0); }
body.ocm-open .ocm-effect-wrap {
	min-height: 0;
	overflow: hidden;
	transform: scale(.8) translateX(-32vw) translateZ(0);
}
body.ocm-open .ocm-effect-wrap-inner { transform: scale(1.007); }
body.ocm-open .ocm-effect-wrap-shadow {
	visibility: visible;
	transform: scale(.79) translateX(-33.6vw) translateZ(0);
	transition-delay: 0s;
}
body.ocm-open #ajax-content-wrap { cursor: pointer; }
body.ocm-open .container-wrap,
body.ocm-open #footer-outer { pointer-events: none; }

/* menu inside the panel */
#slide-out-widget-area .off-canvas-menu-container { margin-bottom: 25px; }
#slide-out-widget-area .off-canvas-menu-container.mobile-only { display: none; }
#slide-out-widget-area .menu { list-style: none; margin: 0; padding: 0; }
#slide-out-widget-area .menu li { margin: 0 0 10px; }
#slide-out-widget-area .menu a {
	display: inline-block;
	position: relative;
	color: var(--ist-ocm-text);
	font-family: "Open Sans", var(--ist-font);
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
	transition: opacity .2s ease, color .2s ease;
}
#slide-out-widget-area .menu a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -6px;
	width: 100%;
	border-top: 2px solid currentColor;
	transform: scaleX(0);
	transition: transform .3s ease-out;
}
#slide-out-widget-area .menu a:hover,
#slide-out-widget-area .menu a:focus,
#slide-out-widget-area .menu .current-menu-item > a { opacity: 1; }
#slide-out-widget-area .menu a:hover::after,
#slide-out-widget-area .menu .current-menu-item > a::after { transform: scaleX(1); }
#slide-out-widget-area .menu .sub-menu { list-style: none; margin: 10px 0 0; padding-left: 20px; }
#slide-out-widget-area .menu .sub-menu a { font-size: 16px; line-height: 22px; }

/* widgets inside the panel */
#slide-out-widget-area .widget { margin: 0 0 25px; color: var(--ist-ocm-text); }
#slide-out-widget-area .widget:last-child { margin-bottom: 0; }
#slide-out-widget-area .widget-title { color: var(--ist-ocm-text); font-size: 16px; line-height: 26px; }
#slide-out-widget-area .widget a:not(.wp-block-button__link) { color: var(--ist-ocm-text); }
#slide-out-widget-area p { color: var(--ist-ocm-text); font-size: 14px; line-height: 26px; padding-bottom: 21px; margin: 0; }
#slide-out-widget-area strong { font-weight: 600; }
#slide-out-widget-area .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
#slide-out-widget-area .wp-block-button { display: inline-block; margin: 0; }
#slide-out-widget-area .wp-block-button__link {
	display: inline-block;
	padding: calc(.667em + 2px) calc(1.333em + 2px);
	border: 0;
	border-radius: 9999px;
	background-color: var(--ist-ocm-btn-bg);
	color: var(--ist-ocm-btn-text);
	font-size: 14px;
	line-height: 26px;
	text-align: center;
	transition: box-shadow .45s var(--ist-ease-btn), opacity .45s var(--ist-ease-btn), transform .45s var(--ist-ease-btn);
}
#slide-out-widget-area .wp-block-button__link:hover {
	box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
	transform: translateY(-2px);
	color: var(--ist-ocm-btn-text);
}

/* close buttons */
.slide_out_area_close { width: 0; height: 0; }
.slide_out_area_close::before {
	content: "";
	position: absolute;
	top: -23px;
	left: -23px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: var(--ist-ocm-close);
	transform: scale(0);
	transition: transform .45s cubic-bezier(.2, 1, .3, 1), filter .2s ease;
}
.slide_out_area_close .close-line { background-color: #fff; }
.slide_out_area_close .close-wrap { z-index: 2; }
.slide_out_area_close:hover::before { filter: brightness(.85); transform: scale(1.12) !important; }

.slide_out_area_close--desktop {
	position: fixed;
	top: 50%;
	right: -100px;
	z-index: 10000;
	opacity: 0;
	transition: transform .8s var(--ist-ease-ocm), opacity .3s ease;
	pointer-events: none;
}
body.ocm-open .slide_out_area_close--desktop {
	right: 0;
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-35.55vw);
}
body.ocm-open .slide_out_area_close::before { transform: scale(1); transition-delay: .25s; }
body.ocm-open .slide_out_area_close .close-line1 { transform: rotate(45deg); transition-delay: .45s; }
body.ocm-open .slide_out_area_close .close-line2 { transform: rotate(-45deg); transition-delay: .55s; }

#slide-out-widget-area .slide_out_area_close--mobile {
	display: none;
	position: absolute;
	top: 45px;
	right: 45px;
	transform: none;
}

/* ==========================================================================
   Floating buttons
   ========================================================================== */
#to-top {
	position: fixed;
	right: 17px;
	bottom: 0;
	z-index: 9994;
	display: block;
	width: 29px;
	height: 29px;
	overflow: hidden;
	border-radius: 200px;
	background-color: rgba(0, 0, 0, .25);
	color: #fff;
	line-height: 0;
	transform: translateY(105%);
	transition: transform .3s cubic-bezier(.55, 0, .1, 1), background-color .1s linear, box-shadow .3s cubic-bezier(.55, 0, .1, 1);
}
#to-top.visible { transform: translateY(-17px); }
#to-top::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 100px;
	background-color: var(--ist-dark);
	transform: scale(0);
	transition: transform .3s cubic-bezier(.55, 0, .1, 1);
}
#to-top:hover { box-shadow: 1px 2px 3px rgba(0, 0, 0, .16); }
#to-top:hover::after { transform: scale(1); }
#to-top svg {
	position: relative;
	z-index: 10;
	display: block;
	margin: 7px auto 0;
	transition: transform .2s ease;
}

.ist-share {
	position: fixed;
	right: 34px;
	bottom: 34px;
	z-index: 1000;
	width: 50px;
	height: 50px;
	transition: transform .45s var(--ist-ease-ocm);
}
.ist-share__btn {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: var(--ist-share-color);
	color: #fff;
	box-shadow: 0 9px 20px rgba(0, 0, 0, .15);
	transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.ist-share__btn:hover,
.ist-share.open .ist-share__btn { background-color: #fff; color: var(--ist-share-color); }
.ist-share__inner {
	position: absolute;
	right: 5px;
	bottom: 60px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ist-share__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #fff;
	color: var(--ist-share-color);
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px) scale(.6);
	transition: opacity .25s ease, transform .35s var(--ist-ease-btn), visibility 0s linear .35s, background-color .2s ease, color .2s ease;
}
.ist-share__item:hover { background-color: var(--ist-share-color); color: #fff; }
.ist-share.open .ist-share__item { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ist-share.open .ist-share__item:nth-child(2) { transition-delay: .05s; }
.ist-share.open .ist-share__item:nth-child(1) { transition-delay: .1s; }
.ist-share__toast {
	position: absolute;
	right: 60px;
	bottom: 12px;
	padding: 4px 12px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	font-size: 12px;
	line-height: 20px;
	white-space: nowrap;
}

body.ocm-open #to-top,
body.ocm-open .ist-share { transform: scale(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media only screen and (max-width: 1299px) {
	#page-header-bg h1.entry-title { padding-left: 0; padding-right: 0; }
}

@media only screen and (max-width: 999px) {
	:root { --ist-header-h: calc(var(--ist-logo-h-mobile) + 24px); }

	.container,
	#top .container,
	#copyright .container { max-width: 88%; padding: 0; }

	#header-outer { padding: 12px 0; }
	#logo,
	#header-outer.small-nav #logo { margin: 0; }
	#logo img,
	#header-outer.small-nav #logo img { height: var(--ist-logo-h-mobile); }
	#logo .logo-text,
	#header-outer.small-nav #logo .logo-text { line-height: var(--ist-logo-h-mobile); font-size: 18px; }

	.header-nav { display: none; }
	.mobile-search,
	.slide-out-widget-area-toggle.mobile-icon { display: block; }
	.mobile-search { padding: 0 10px; }
	.mobile-search .ist-icon-search { width: 18px; height: 18px; }
	.slide-out-widget-area-toggle.mobile-icon { padding-left: 10px; }

	#search-box input[type="text"] { font-size: 26px; line-height: 34px; }
	#search-box span { display: none; }
	#search #close { right: 0; }

	.container-wrap:not(.no-sidebar) { padding-top: 25px; }
	.posts-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
	.overlaid-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	#page-header-bg {
		height: auto;
		min-height: 250px;
		padding: 50px 0;
	}
	#page-header-bg h1.entry-title { font-size: 30px; line-height: 40px; }

	#copyright .copyright-inner { max-width: 100%; }

	/* off canvas: tablet */
	#slide-out-widget-area { width: 360px; min-width: 360px; padding: 60px; }
	.admin-bar #slide-out-widget-area { padding-top: 106px; }
	#slide-out-widget-area .off-canvas-menu-container.mobile-only { display: block; }
	#slide-out-widget-area .slide_out_area_close--mobile { display: block; }
	.slide_out_area_close--desktop { display: none; }
	body.ocm-open .ocm-effect-wrap { transform: scale(.835) translateX(-466px) translateZ(0); }
	body.ocm-open .ocm-effect-wrap-shadow { transform: scale(.825) translateX(-476px) translateZ(0); }
}

@media only screen and (max-width: 782px) {
	.admin-bar #header-outer,
	.admin-bar #search-outer { top: 46px; }
}

@media only screen and (max-width: 689px) {
	.posts-container { grid-template-columns: minmax(0, 1fr); gap: 25px; }
	.overlaid-grid { grid-template-columns: minmax(0, 1fr); }

	.archive-header { padding: 30px 0 25px; }
	.archive-title { font-size: 26px; line-height: 34px; }

	#page-header-bg h1.entry-title { font-size: 24px; line-height: 30px; }
	#single-below-header > span { padding: 0 8px; font-size: 13px; line-height: 10px; }

	.blog_next_prev_buttons li { width: 100%; min-height: 250px; }

	.ist-section--youtube h2 { font-size: 28px; line-height: 38px; }
}

@media only screen and (max-width: 450px) {
	#slide-out-widget-area { width: 85vw; min-width: 85vw; padding: 40px; }
	.admin-bar #slide-out-widget-area { padding-top: 86px; }
	#slide-out-widget-area .slide_out_area_close--mobile { top: 30px; right: 30px; }
	body.ocm-open .ocm-effect-wrap { transform: scale(.84) translateX(-93vw) translateZ(0); }
	body.ocm-open .ocm-effect-wrap-shadow { transform: scale(.83) translateX(-94vw) translateZ(0); }
}

@media (prefers-reduced-motion: reduce) {
	.posts-container.ist-anim .masonry-blog-item .inner-wrap { opacity: 1; transform: none; transition: none; }
}
