.gpw-post {
	margin: 24px 0;
}

.gpw-post__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
	gap: 32px;
	align-items: start;
}

.gpw-post__gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.gpw-post__item {
	display: block;
	border-radius: 14px;
	overflow: hidden;
	background: #f5f5f5;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.gpw-post__item img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.gpw-post__item:hover img,
.gpw-post__item:focus img {
	transform: scale(1.02);
}

.gpw-post__content {
	padding-top: 8px;
}

.gpw-post__title {
	margin: 0 0 16px;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.gpw-post__description {
	font-size: 16px;
	line-height: 1.7;
	color: #444;
	max-width: 42ch;
}

.gpw-lightbox[hidden] {
	display: none !important;
}

.gpw-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.gpw-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
}

.gpw-lightbox__dialog {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.gpw-lightbox__image {
	max-width: min(92vw, 1400px);
	max-height: 86vh;
	width: auto;
	height: auto;
	object-fit: contain;
	position: relative;
	z-index: 2;
	border-radius: 8px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
	background: #fff;
}

.gpw-lightbox__close,
.gpw-lightbox__nav {
	position: absolute;
	z-index: 3;
	border: 0;
	cursor: pointer;
	border-radius: 999px;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(6px);
}

.gpw-lightbox__close {
	top: 20px;
	right: 20px;
}

.gpw-lightbox__nav--prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.gpw-lightbox__nav--next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

body.gpw-lightbox-open {
	overflow: hidden;
}

@media (min-width: 1200px) {
	.gpw-post__gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.gpw-post__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 640px) {
	.gpw-post__gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.gpw-post__title {
		font-size: clamp(26px, 9vw, 36px);
	}

	.gpw-lightbox__dialog {
		padding: 24px 12px;
	}

	.gpw-lightbox__close,
	.gpw-lightbox__nav {
		width: 42px;
		height: 42px;
		font-size: 24px;
	}
}


body.gpw-hide-featured-image .post-thumbnail,
body.gpw-hide-featured-image figure.post-thumbnail,
body.gpw-hide-featured-image .single-post-thumbnail,
body.gpw-hide-featured-image .featured-media,
body.gpw-hide-featured-image .entry-media,
body.gpw-hide-featured-image .post-thumb,
body.gpw-hide-featured-image .single-featured,
body.gpw-hide-featured-image .featured-image,
body.gpw-hide-featured-image .article-thumbnail,
body.gpw-hide-featured-image .entry-thumbnail {
	display: none !important;
}


body.gpw-plugin-post .page-header,
body.gpw-plugin-post .entry-header,
body.gpw-plugin-post .single-post-header,
body.gpw-plugin-post .single-page-header,
body.gpw-plugin-post .single-post-hero,
body.gpw-plugin-post .post-header,
body.gpw-plugin-post .blog-header,
body.gpw-plugin-post .archive-header,
body.gpw-plugin-post .page-title-bar,
body.gpw-plugin-post .titlebar,
body.gpw-plugin-post .breadcrumb,
body.gpw-plugin-post .breadcrumbs,
body.gpw-plugin-post #breadcrumbs,
body.gpw-plugin-post .breadcrumb-wrap,
body.gpw-plugin-post .page-breadcrumb,
body.gpw-plugin-post .rank-math-breadcrumb,
body.gpw-plugin-post .aioseo-breadcrumbs,
body.gpw-plugin-post .entry-breadcrumbs,
body.gpw-plugin-post .entry-categories,
body.gpw-plugin-post .cat-links,
body.gpw-plugin-post .posted-in,
body.gpw-plugin-post .entry-meta,
body.gpw-plugin-post .post-meta {
	display: none !important;
}

body.gpw-plugin-post article.post,
body.gpw-plugin-post .site-main article,
body.gpw-plugin-post .content-area article,
body.gpw-plugin-post .elementor-widget-theme-post-content,
body.gpw-plugin-post .elementor-location-single .elementor-widget-theme-post-content {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.gpw-plugin-post .entry-content,
body.gpw-plugin-post .post-content,
body.gpw-plugin-post .elementor-widget-theme-post-content .elementor-widget-container {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.gpw-plugin-post .gpw-post {
	margin-top: 0;
}


.gpw-template-main {
	padding: 28px 0 48px;
}

.gpw-template-container {
	max-width: 1460px;
	margin: 0 auto;
	padding: 0 28px;
}

body.gpw-plugin-template-active .site-main > .page-header,
body.gpw-plugin-template-active .site-main > .entry-header,
body.gpw-plugin-template-active .site-main > .single-post-header,
body.gpw-plugin-template-active .site-main > .post-header,
body.gpw-plugin-template-active .site-main > .blog-header,
body.gpw-plugin-template-active .site-main > .titlebar,
body.gpw-plugin-template-active .site-main > .page-title,
body.gpw-plugin-template-active .site-main > .page-title-wrap,
body.gpw-plugin-template-active .site-main > .page-title-area,
body.gpw-plugin-template-active .site-main > .page-banner,
body.gpw-plugin-template-active .site-main > .inner-banner,
body.gpw-plugin-template-active .site-main > .subheader,
body.gpw-plugin-template-active .site-main > .breadcrumbs {
	display: none !important;
}

@media (max-width: 640px) {
	.gpw-template-main {
		padding: 18px 0 32px;
	}

	.gpw-template-container {
		padding: 0 16px;
	}
}
