/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: Child theme for Remote Guides customizations.
 Author: Remote Guides
 Template: generatepress
 Version: 1.0.0
 Text Domain: generatepress-child
*/

.rg-layout {
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 20px 56px;
}

.rg-page-header {
	margin-bottom: 24px;
}

.rg-page-description {
	max-width: 72ch;
}

.rg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.rg-grid--compact {
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.rg-card {
	border: 1px solid var(--rg-surface);
	border-radius: 0;
	background: #fff;
	overflow: hidden;
}


.rg-card > h3,
.rg-card > .rg-card-title,
.rg-card > p {
	padding: 14px 16px;
}

.rg-card-title {
	margin: 0 0 8px;
	font-size: 1.2rem;
	line-height: 1.3;
}

.rg-card-meta {
	margin: 0 0 6px;
	font-size: 0.85rem;
	color: var(--rg-muted);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.rg-breadcrumbs a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--rg-line);
}

.rg-breadcrumbs a:hover,
.rg-breadcrumbs a:focus {
	color: var(--rg-muted);
	border-bottom-color: currentColor;
}

.rg-card-image {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}


.rg-related {
	margin-top: 28px;
}

/* Fallback cleanup for legacy GP hero wrappers on region taxonomy archives. */

/* Article design system (single article pages only). */
.single-articles .site-content,
.single-article .site-content {
	background: var(--rg-surface);
}

.rg-article-breadcrumbs {
	margin: 0 0 18px;
	font-size: 12px;
	color: var(--rg-muted);
}

.rg-article-breadcrumbs a {
	color: var(--rg-muted);
	text-decoration: none;
}

.rg-article-content {
	margin: 0;
	font-family: var(--rg-serif);
	font-size: 17px;
	line-height: 1.85;
	color: var(--rg-ink);
}

.rg-article-content > p:first-of-type::first-letter {
	float: left;
	font-size: 64px;
	line-height: 0.8;
	padding-right: 8px;
	color: var(--rg-ink);
}

.rg-article-content h2,
.rg-article-content h3 {
	margin: 46px 0 14px;
	font-family: var(--rg-serif);
	font-weight: 700;
	color: var(--rg-ink);
}

.rg-article-content h2 {
	font-size: clamp(26px, 2.3vw, 34px);
}

.rg-article-content h3 {
	font-size: clamp(24px, 2.2vw, 30px);
}

.rg-article-content p {
	margin: 0 0 18px;
	font-size: 17px;
}

.rg-article-content img {
	width: 100%;
	height: auto;
	border-radius: 0;
}

.rg-article-content .wp-block-gallery,
.rg-article-content .blocks-gallery-grid,
.rg-article-content .gallery,
.rg-article-content .rg-inline-gallery {
	margin: 34px 0;
	position: relative;
}

.rg-article-content .rg-gallery-carousel {
	padding: 0 56px 56px;
}

.rg-article-content .ohrid-food-gallery {
	gap: 16px;
}

.rg-article-content .ohrid-food-gallery .wp-block-image,
.rg-article-content .ohrid-food-gallery .blocks-gallery-item,
.rg-article-content .ohrid-food-gallery .gallery-item {
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--rg-surface);
	border-radius: 0;
}

.rg-article-content .ohrid-food-gallery img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--rg-surface);
}

.rg-gallery-carousel__viewport {
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 0;
	background: var(--rg-line);
	border: 1px solid var(--rg-line);
	box-shadow: 0 18px 34px rgba(17, 17, 17, 0.08);
	touch-action: pan-y;
}

.rg-gallery-carousel__track {
	display: flex;
	height: 100%;
	transition: transform 280ms ease;
	will-change: transform;
}

.rg-gallery-carousel__slide {
	flex: 0 0 100%;
	margin: 0;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background: linear-gradient(180deg, var(--rg-surface) 0%, var(--rg-line) 100%);
}

.rg-gallery-carousel__slide a {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.rg-gallery-carousel__slide img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: 0;
}

.rg-gallery-carousel__slide figcaption {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	margin: 0;
	padding: 10px 12px;
	background: rgba(236, 235, 230, 0.9);
	backdrop-filter: blur(6px);
	border-radius: 0;
	font-size: 12px;
	line-height: 1.55;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rg-muted);
}

.rg-gallery-carousel__nav {
	position: absolute;
	top: calc(50% - 22px);
	z-index: 2;
	border: none;
	border-radius: 0;
	padding: 12px 14px;
	background: rgba(236, 235, 230, 0.95);
	color: var(--rg-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.rg-gallery-carousel__nav--prev {
	left: 0;
}

.rg-gallery-carousel__nav--next {
	right: 0;
}

.rg-gallery-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
	position: relative;
	z-index: 1;
}

.rg-gallery-carousel__dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: var(--rg-line);
	cursor: pointer;
	padding: 0;
}

.rg-gallery-carousel__dot.is-active {
	background: var(--rg-ink);
	transform: scale(1.15);
}

.rg-article-content .wp-block-group {
	border: 1px solid var(--rg-line);
	border-radius: 0;
	padding: 26px;
	background: var(--rg-surface);
}

@media (max-width: 960px) {

	.rg-article-content .gallery,
	.rg-article-content .rg-inline-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 768px) {

	.rg-article-content {
		font-size: 17px;
	}

	.rg-article-content .rg-gallery-carousel {
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 60px;
	}

	.rg-gallery-carousel__nav {
		top: auto;
		bottom: -2px;
		padding: 10px 12px;
	}

	.rg-gallery-carousel__nav--prev {
		left: 16px;
	}

	.rg-gallery-carousel__nav--next {
		right: 16px;
	}

	.rg-gallery-carousel__slide img {
		height: 100%;
	}

	.rg-gallery-carousel__dots {
		margin-top: 30px;
	}
}

/* Shared section heading row for non-article pages. */

/* Location page. */

/* Country page (v2): shares the article layout; media rendered by rg_core_figure(). */
.rg-breadcrumbs {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--rg-muted);
}

.rg-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rg-breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--rg-muted);
}

.rg-breadcrumbs a {
	color: var(--rg-ink);
	text-decoration: none;
}

.rg-breadcrumbs a:hover,
.rg-breadcrumbs a:focus-visible {
	text-decoration: underline;
}

/* Standard figure: every editorial image uses this markup. */
.rg-figure {
	margin: 30px 0;
}

.rg-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0;
	background: var(--rg-surface);
}

.rg-figure figcaption {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	margin-top: 8px;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 12px;
	line-height: 1.4;
	color: var(--rg-muted);
}

.rg-figure__credit a {
	color: inherit;
}

.rg-figure--hero {
	margin: 0;
}

.rg-figure--hero img {
	aspect-ratio: 2 / 1;
	max-height: 560px;
	border-radius: 0;
}

.rg-article-content table {
	width: 100%;
	margin: 22px 0 28px;
	border-collapse: collapse;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

.rg-article-content th,
.rg-article-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--rg-line);
	text-align: left;
	vertical-align: top;
}

.rg-article-content th {
	background: var(--rg-surface);
	font-weight: 600;
	color: var(--rg-ink);
}

.rg-article-content ul,
.rg-article-content ol {
	margin: 0 0 22px;
	padding-left: 22px;
}

.rg-article-content li {
	margin-bottom: 8px;
}

.rg-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--rg-line);
	border-radius: 0;
	background: var(--rg-surface);
}

@media (prefers-reduced-motion: no-preference) {
	.rg-card {
		transition: box-shadow 0.15s ease;
	}

	.rg-card:hover {
		box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
	}
}

@media (max-width: 768px) {
	.rg-layout {
		padding-left: 16px;
		padding-right: 16px;
	}

}

/* Regions archive design. */

/* Writers page. */

/* Author page. */

/* Who we are page (slug: writers). */

/* Locations archive design. */

/* Travel tips archive design. */

/* Articles archive design. */

/* Countries archive design (grouped by regions). */

/* Travel AI hub (assistant connector). */

/* Honeypot: off-screen for people, still in the form for bots. */

/* Countries archive additions. */
