/*
Theme Name: TheAisle Child
Theme URI: http://theaisle.elated-themes.com
Description: A child theme of TheAisle Theme
Author: Elated Themes
Author URI: http://themeforest.net/user/elated-themes
Version: 1.0.0
Text Domain: theaisle
Template: theaisle
*/

/* =========================================================
   Sets module (single-set.php / archive-set.php)
   Mobile-first: base rules target small screens; min-width
   breakpoints at 600px (tablet) and 1024px (desktop) layer on
   larger-screen enhancements.
   ========================================================= */

/* Force border-box on every Sets element so width:100%/50% + padding
   never pushes content past the viewport (the theme doesn't reset
   box-sizing globally). */
[class^="hbs-"],
[class*=" hbs-"] {
	box-sizing: border-box;
}

.hbs-set-hero {
	position: relative;
	height: 46vh;
	min-height: 280px;
	background-size: cover;
	background-position: center;
	background-color: #2b2b2b;
	display: flex;
	align-items: flex-end;
}

.hbs-set-hero-overlay {
	width: 100%;
	padding: 28px 18px;
	background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
	color: #fff;
	text-align: center;
}

.hbs-set-hero-title {
	color: #fff !important;
	margin: 0 0 8px;
	font-size: 26px;
}

.hbs-set-hero-tagline {
	color: #fff;
	font-size: 15px;
	font-style: italic;
	margin: 0;
}

.hbs-set-page {
	padding-top: 32px;
	padding-bottom: 40px;
}

.hbs-set-facts {
	display: flex;
	flex-direction: column;
	gap: 16px;
	border-top: 1px solid #e5e0da;
	border-bottom: 1px solid #e5e0da;
	padding: 18px 0;
	margin-bottom: 32px;
}

.hbs-set-fact {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hbs-set-fact-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	color: #9a8f83;
}

.hbs-set-fact-value {
	font-size: 16px;
	color: #333;
}

.hbs-set-section-title {
	margin: 0 0 14px;
	font-size: 21px;
}

.hbs-set-body {
	margin-bottom: 32px;
}

.hbs-set-content p {
	line-height: 1.75;
	font-size: 15px;
	color: #444;
}

.hbs-set-features {
	margin-bottom: 32px;
}

.hbs-set-features-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hbs-set-features-list li {
	position: relative;
	padding-left: 22px;
	line-height: 1.6;
	color: #444;
}

.hbs-set-features-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 9px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #b08d57;
}

.hbs-set-gallery-section {
	margin-bottom: 36px;
}

.hbs-set-gallery-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.hbs-set-gallery-item {
	display: block;
	overflow: hidden;
	border-radius: 3px;
}

.hbs-set-gallery-item img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.hbs-set-gallery-item:hover img {
	transform: scale(1.06);
}

.hbs-lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.hbs-lightbox:target {
	display: flex;
}

.hbs-lightbox img {
	max-width: 100%;
	max-height: 90vh;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hbs-lightbox-close {
	position: absolute;
	top: 14px;
	right: 18px;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	text-decoration: none;
}

.hbs-set-cta {
	text-align: center;
	padding: 30px 16px;
	background: #faf7f3;
	border-radius: 4px;
}

.hbs-set-cta p {
	margin: 0 0 14px;
	font-size: 16px;
	color: #333;
}

.hbs-set-cta-button {
	display: inline-block;
	padding: 13px 28px;
	background: #b08d57;
	color: #fff;
	text-decoration: none;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 12px;
	border-radius: 2px;
	transition: background 0.25s ease;
}

.hbs-set-cta-button:hover {
	background: #96754a;
	color: #fff;
}

.hbs-set-archive-header {
	text-align: center;
	padding: 40px 18px 16px;
}

.hbs-set-archive-header h1 {
	margin: 0 0 10px;
}

.hbs-set-archive {
	padding-bottom: 40px;
}

.hbs-set-archive-grid {
	column-count: 1;
	column-gap: 22px;
	margin-top: 24px;
}

.hbs-set-card {
	display: block;
	break-inside: avoid;
	margin-bottom: 22px;
	text-decoration: none;
	color: inherit;
	border: 1px solid #ece7e0;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hbs-set-card:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
	color: inherit;
}

.hbs-set-card-image {
	background: #f1ece5;
	overflow: hidden;
	line-height: 0;
}

.hbs-set-card-image img {
	width: 100%;
	height: auto;
	display: block;
}

.hbs-set-card-body {
	padding: 16px 18px 20px;
}

.hbs-set-card-title {
	margin: 0 0 6px;
	font-size: 19px;
}

.hbs-set-card-tagline {
	margin: 0 0 10px;
	font-style: italic;
	color: #7a7268;
	font-size: 14px;
}

.hbs-set-card-ideal-for {
	margin: 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #b08d57;
}

.hbs-set-archive-pagination {
	margin-top: 32px;
	text-align: center;
}

@media (min-width: 600px) {
	.hbs-set-facts {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 20px;
	}

	.hbs-set-fact {
		flex: 1 1 200px;
	}

	.hbs-set-features-list {
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	}

	.hbs-set-gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	}

	.hbs-set-archive-grid {
		column-count: 2;
	}
}

@media (min-width: 1024px) {
	.hbs-set-hero {
		height: 60vh;
		min-height: 360px;
	}

	.hbs-set-hero-overlay {
		padding: 40px 40px;
	}

	.hbs-set-hero-title {
		font-size: 42px;
		max-width: 60%;
		margin-left: auto;
		margin-right: auto;
	}

	.hbs-set-hero-tagline {
		font-size: 18px;
	}

	.hbs-set-page {
		padding-top: 50px;
		padding-bottom: 60px;
	}

	.hbs-set-facts,
	.hbs-set-body,
	.hbs-set-features {
		margin-bottom: 45px;
	}

	.hbs-set-facts {
		padding: 25px 0;
	}

	.hbs-set-section-title {
		font-size: 26px;
		margin-bottom: 18px;
	}

	.hbs-set-content p {
		font-size: 16px;
	}

	.hbs-set-gallery-section {
		margin-bottom: 50px;
	}

	.hbs-set-gallery-grid {
		gap: 14px;
	}

	.hbs-set-cta {
		padding: 45px 20px;
	}

	.hbs-set-cta p {
		font-size: 18px;
	}

	.hbs-set-cta-button {
		padding: 14px 36px;
		font-size: 13px;
	}

	.hbs-set-archive-header {
		padding: 70px 20px 20px;
	}

	.hbs-set-archive {
		padding-bottom: 60px;
	}

	.hbs-set-archive-grid {
		column-count: 3;
		column-gap: 30px;
		margin-top: 30px;
	}

	.hbs-set-card {
		margin-bottom: 30px;
	}

	.hbs-set-card-body {
		padding: 18px 20px 22px;
	}

	.hbs-set-card-title {
		font-size: 20px;
	}
}

/* =========================================================
   Our Sets page (page-our-sets.php)
   Masonry grid (CSS multi-column, so mixed portrait/landscape
   photos pack tightly with no JS layout library). Cards are just
   image + title, title overlaid at the bottom. Loads more sets on
   scroll via our-sets.js.
   ========================================================= */

.hbs-oursets {
	padding-bottom: 40px;
}

.hbs-oursets-grid {
	column-count: 1;
	column-gap: 18px;
	margin-top: 24px;
}

.hbs-oursets-card {
	display: block;
	break-inside: avoid;
	margin-bottom: 18px;
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

.hbs-oursets-card-image {
	background: #f1ece5;
	overflow: hidden;
	line-height: 0;
}

.hbs-oursets-card-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.35s ease;
}

.hbs-oursets-card:hover .hbs-oursets-card-image img {
	transform: scale(1.05);
}

.hbs-oursets-card-title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 30px 16px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
	color: #fff;
	font-size: 16px;
	line-height: 1.3;
}

.hbs-oursets-sentinel {
	height: 1px;
}

.hbs-oursets-loading {
	text-align: center;
	color: #7a7268;
	font-size: 13px;
	margin: 20px 0 0;
}

@media (min-width: 600px) {
	.hbs-oursets-grid {
		column-count: 2;
	}
}

@media (min-width: 1024px) {
	.hbs-oursets-grid {
		column-count: 3;
		column-gap: 24px;
	}

	.hbs-oursets-card {
		margin-bottom: 24px;
	}

	.hbs-oursets-card-title {
		font-size: 18px;
	}
}

/* =========================================================
   Sets module — "Photo Focus" template (single-set-gallery-focus.php)

   Mobile: photos are a swipeable horizontal slider (CSS scroll-snap,
   no JS) so browsing photos doesn't mean a long vertical scroll.
   Desktop (1024px+): split screen — photos fill a sticky left half
   as a masonry grid with its own scroll, content fills the right half.
   ========================================================= */

.hbs-pf-split {
	display: flex;
	flex-direction: column;
}

.hbs-pf-photos {
	width: 100%;
}

.hbs-pf-masonry {
	display: flex;
	gap: 10px;
	padding: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.hbs-pf-masonry::-webkit-scrollbar {
	display: none;
}

.hbs-pf-masonry-item {
	display: block;
	flex: 0 0 82%;
	scroll-snap-align: center;
	height: 64vh;
	border-radius: 3px;
	overflow: hidden;
}

.hbs-pf-masonry-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hbs-pf-content {
	width: 100%;
	padding: 26px 18px 40px;
}

.hbs-pf-title {
	margin: 0 0 8px;
	font-size: 27px;
}

.hbs-pf-tagline {
	margin: 0 0 22px;
	font-style: italic;
	color: #7a7268;
	font-size: 15px;
}

.hbs-pf-facts {
	margin-bottom: 24px;
}

@media (min-width: 600px) {
	.hbs-pf-masonry-item {
		flex-basis: 62%;
	}
}

/*
 * The parent theme wraps every page in .eltdf-wrapper-inner with
 * overflow:hidden (for its page-transition effect). Any ancestor
 * overflow (even :hidden, not just :auto/:scroll) makes position:sticky
 * compute stickiness against that ancestor's own scrollport instead of
 * the real page scroll — since that wrapper never actually scrolls,
 * sticky just sits static. Scoped strictly to this template's body
 * class so no other page on the site is affected; overflow-x stays
 * hidden so this can't introduce a horizontal scrollbar elsewhere.
 */
body.set-template-single-set-gallery-focus-php .eltdf-wrapper-inner {
	overflow-y: visible;
}

@media (min-width: 1024px) {
	.hbs-pf-split {
		flex-direction: row;
		align-items: flex-start;
	}

	.hbs-pf-photos {
		width: 50%;
		position: sticky;
		top: 0;
		align-self: flex-start;
		max-height: 100vh;
		overflow-y: auto;
	}

	.hbs-pf-masonry {
		display: block;
		column-count: 2;
		column-gap: 12px;
		padding: 12px;
		overflow-x: visible;
		scroll-snap-type: none;
	}

	.hbs-pf-masonry-item {
		display: block;
		break-inside: avoid;
		margin-bottom: 12px;
		height: auto;
		flex: none;
	}

	.hbs-pf-masonry-item img {
		height: auto;
	}

	.hbs-pf-content {
		width: 50%;
		padding: 70px 55px 60px;
	}

	.hbs-pf-title {
		font-size: 44px;
		margin-bottom: 12px;
	}

	.hbs-pf-tagline {
		font-size: 18px;
		margin-bottom: 34px;
	}

	.hbs-pf-facts {
		margin-bottom: 36px;
	}
}

