/*
Theme Name: Tyalgum Hotel Child
Theme URI: https://tyalgumhotel.com.au/
Author: Red Earth Designs
Author URI: https://redearth.agency/
Description: Child theme for Tyalgum Hotel. Use this theme to add customisations without editing the parent theme.
Version: 1.0.0
Template: tyalgum-parent
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tyalgum-child
*/

/* Add your custom styles below. */

.e-con {
	max-width: 100vw !important;
}

.pt-template-wide .container {
	max-width: 100% !important;
}

.pt-btn-text {
	color: var(--btn-bg) !important;
}

/* Override heading font from parent */
:root {
	--heading-font: 'Albertus MT Light', serif;
	--hf-weight: 300;
	--blog-title-weight: 300;
	--page-title-weight: 300;
	--side-padding: calc(var(--grid-val)*1vw);
}

.container {
    padding: 0 !important;
}

/* Accent word in headings: cursive font (Dragonis Coming). In Elementor Heading widget:
 * Add attribute: data-accent|with (Advanced > Attributes)
 * For dark backgrounds, add CSS class: tyalgum-accent-light (accent will be white)
 */
.tyalgum-accent {
	font-family: 'Dragonis Coming', cursive !important;
	font-weight: 400 !important;
	font-size: 3.2em;
	line-height: 0;
	color: #b8a88f;
	font-style: normal;
	display: inline-block;
	transform: rotate(-5deg);
}

/* Accent on dark backgrounds: add class tyalgum-accent-light to the heading */
.tyalgum-accent-light .tyalgum-accent {
	color: #fff;
}

/* Custom font: Dragonis Coming (accent text in headings) */
@font-face {
	font-family: 'Dragonis Coming';
	src: url('assets/fonts/DragonisComing.woff2') format('woff2'),
	     url('assets/fonts/DragonisComing.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Custom font: Albertus MT Light */
@font-face {
	font-family: 'Albertus MT Light';
	src: url('assets/fonts/AlbertusMT-Light.woff2') format('woff2'),
	     url('assets/fonts/AlbertusMT-Light.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

/* Remove max-width and padding from fullwidth section containers (override parent) */
.elementor-section.elementor-section-boxed.pt-section-content-fullwidth > .elementor-container,
.elementor-section.elementor-section-full_width.pt-section-content-fullwidth > .elementor-container {
	max-width: none;
	padding: 0;
}

/* Line separators between nav menu items (short vertical line) */
.pt-menu.main-navigation .menu > li + li {
	position: relative;
	margin-left: 0.75em;
	padding-left: 0.75em;
}
.pt-menu.main-navigation .menu > li + li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 0.5em;
	background-color: currentColor;
}

/* Short line separators between pt_info widgets (address, phone, etc.) */
.e-con > .elementor-element.elementor-widget-pt_info + .elementor-element.elementor-widget-pt_info {
	position: relative;
	padding-left: 3em;
}
.e-con > .elementor-element.elementor-widget-pt_info + .elementor-element.elementor-widget-pt_info::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 0.5em;
	background-color: currentColor;
}

/* Hero banner full-width breakout. Hero section: add class tyalgum-slider-section */
.tyalgum-slider-section {
	position: relative;
	width: 100vw !important;
	max-width: 100vw !important;
	left: calc(50% - 50vw) !important;
}

/* 100 Year logo pinned below nav, left 50px. Logo widget: add class tyalgum-slider-badge */
.tyalgum-slider-section .tyalgum-slider-badge {
	position: absolute;
	top: 140px;
	left: 50px;
	right: auto;
	bottom: auto;
	z-index: 50;
	width: clamp(220px, 26vw, 400px);
	max-width: 400px;
	margin: 0;
	padding: 0;
	text-align: left;
	opacity: 0.5;
}
.tyalgum-slider-section .tyalgum-slider-badge .elementor-widget-container {
	padding: 0;
}
.tyalgum-slider-section .tyalgum-slider-badge img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

@media (max-width: 1024px) {
	.tyalgum-slider-section .tyalgum-slider-badge {
		top: 120px;
		left: 30px;
		width: clamp(160px, 28vw, 200px);
		max-width: 200px;
	}
}
@media (max-width: 767px) {
	.tyalgum-slider-section .tyalgum-slider-badge {
		display: none;
	}
}

/* Bull logo pinned bottom-right. Logo widget: add class tyalgum-bull-logo */
.tyalgum-slider-section .tyalgum-bull-logo {
	position: absolute;
	bottom: 50px;
	right: 50px;
	left: auto;
	top: auto;
	z-index: 50;
	max-width: 250px;
	margin: 0;
	padding: 0;
	text-align: right;
	opacity: 0.5;
}
.tyalgum-slider-section .tyalgum-bull-logo .elementor-widget-container {
	padding: 0;
}
.tyalgum-slider-section .tyalgum-bull-logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin-left: auto;
}

@media (max-width: 1024px) {
	.tyalgum-slider-section .tyalgum-bull-logo {
		bottom: 30px;
		right: 30px;
		max-width: 150px;
	}
}
@media (max-width: 767px) {
	.tyalgum-slider-section .tyalgum-bull-logo {
		display: none;
	}
}

/* At laptop breakpoint, medium buttons use small button styles */
@media (max-width: 1366px) {
	.button:not(.pt-btn-small):not(.pt-btn-large):not(.pt-btn-extra-large) {
		padding: 0 16px;
		font-size: 11px;
		font-size: 0.6875rem;
		line-height: 32px;
	}
	.button:not(.pt-btn-small):not(.pt-btn-large):not(.pt-btn-extra-large).pt-btn-outline {
		line-height: 28px;
	}
	.button:not(.pt-btn-small):not(.pt-btn-large):not(.pt-btn-extra-large).pt-btn-underline {
		padding: 7px 0;
		line-height: 1;
	}
}

@media (min-width: 1920px) {
	.elementor-1036 .elementor-element.elementor-element-d2c3bc7 img {
		width: 450px !important;
	}
}

/* PatioTime / Elementor gallery carousel: square (1:1) slide images only; column/width stays in Elementor. Lightbox is separate. */

/* Slick’s .slick-slide { height:100% } breaks aspect-ratio */
.pt-gallery.gallery-carousel:not(.slider-height-full) .pt-gallery-item.slick-slide {
	height: auto;
}

/* Theme sets flex on the track for vertical alignment; prevent slides from shrinking */
.pt-gallery.gallery-carousel.align-middle-v .slick-track .slick-slide,
.pt-gallery.gallery-carousel.align-bottom-v .slick-track .slick-slide {
	flex-shrink: 0;
}

.pt-gallery.gallery-carousel:not(.slider-height-full) .pt-gallery-item {
	aspect-ratio: 1;
	overflow: hidden;
}

.pt-gallery.gallery-carousel:not(.slider-height-full) .pt-gallery-item > a {
	display: block;
	width: 100%;
	height: 100%;
}

.pt-gallery.gallery-carousel:not(.slider-height-full) .pt-gallery-item img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

/* What’s On list — same PatioTime pattern as elementor pt_title: h5.pt-title, pt-subtitle, pt-title-text, color-primary/secondary (see main.css) */
.tyalgum-whats-on {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Tablet / iPad and down: gutters (full-width shortcode in Elementor often has no page padding) */
@media (max-width: 1024px) {
	.tyalgum-whats-on {
		padding-left: clamp(1rem, 4vw, 1.5rem);
		padding-right: clamp(1rem, 4vw, 1.5rem);
	}
}

/* Excerpt: same as .elementor-widget-pt_title .pt-title-text */
.tyalgum-whats-on .pt-title-text {
	margin-top: 20px;
}
.tyalgum-whats-on .pt-title-text p {
	margin-bottom: 20px;
}
.tyalgum-whats-on .pt-title-text p:last-child {
	margin-bottom: 0;
}

/* Full description: avoid any inherited list/blog excerpt clamping */
.tyalgum-whats-on-item__excerpt.pt-title-text {
	display: block;
	max-height: none;
	overflow: visible;
	-webkit-line-clamp: unset;
	line-clamp: unset;
}

.tyalgum-whats-on .tyalgum-whats-on-item__date .pt-subtitle.color-secondary {
	text-transform: uppercase;
	letter-spacing: var(--shf-letter-spacing, 0.05em);
}

/* List item title = same as pt_title h5; only vertical rhythm (theme owns font size) */
.tyalgum-whats-on h5.pt-title.tyalgum-whats-on-item__title {
	margin: 0 0 0.5rem 0;
	text-transform: uppercase;
	letter-spacing: var(--shf-letter-spacing, 0.05em);
}

.tyalgum-whats-on h5.pt-title.tyalgum-whats-on-item__title a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.3s ease, color 0.3s ease;
}

.no-touch .tyalgum-whats-on h5.pt-title.tyalgum-whats-on-item__title a:hover {
	opacity: 0.85;
}

.tyalgum-whats-on-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.tyalgum-whats-on-item {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 1.75rem 2.25rem;
	align-items: flex-start;
	margin: 0;
	padding: 0 0 2.5rem 0;
	border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.tyalgum-whats-on-item:last-of-type,
.tyalgum-whats-on-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.tyalgum-whats-on-item__image {
	flex: 0 0 30%;
	width: 30%;
	max-width: 30%;
	min-width: 0;
}

.tyalgum-whats-on-item__image-link {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	position: relative;
	border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
	background: var(--light-grey, #f9f9f9);
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.no-touch .tyalgum-whats-on-item__image-link:hover {
	border-color: var(--primary-color);
	box-shadow: 0 2px 12px var(--primary-color-semi, rgba(221, 89, 3, 0.15));
}

.tyalgum-whats-on-item__image-link--static {
	cursor: default;
}

.no-touch .tyalgum-whats-on-item__image-link--static:hover {
	border-color: var(--border-color, rgba(0, 0, 0, 0.1));
	box-shadow: none;
}

.tyalgum-whats-on-item__img,
.tyalgum-whats-on-item__image-link .attachment-large {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.tyalgum-whats-on-item__image-placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--light-grey, #f9f9f9);
	border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.tyalgum-whats-on-item__body {
	flex: 0 0 70%;
	width: 70%;
	max-width: 70%;
	min-width: 0;
	box-sizing: border-box;
}

.tyalgum-whats-on-item__date.pt-subtitle-wrap {
	margin: 0 0 0.25rem 0;
}

/* Theme .button (Find out more) */
.tyalgum-whats-on-item__action {
	margin: 0.85rem 0 0 0;
}

.tyalgum-whats-on-item__action .button {
	margin: 0;
}

.tyalgum-whats-on__empty {
	margin: 0.5rem 0 1.5rem;
}

/* Single What's On: DOM — article.tyalgum-whats-on-single-article (date full width, image | text) */
#primary.tyalgum-whats-on-single {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

body.single-whats_on article.tyalgum-whats-on-single-article.has-date,
body.post-type-whats_on.single article.tyalgum-whats-on-single-article.has-date {
	display: grid !important;
	grid-template-columns: minmax(0, 35%) minmax(0, 65%);
	grid-template-areas:
		"date date"
		"media body";
	column-gap: 2.25rem;
	row-gap: 1rem;
	align-items: start;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
}

body.single-whats_on article.tyalgum-whats-on-single-article.no-date,
body.post-type-whats_on.single article.tyalgum-whats-on-single-article.no-date {
	display: grid !important;
	grid-template-columns: minmax(0, 35%) minmax(0, 65%);
	grid-template-areas: "media body";
	column-gap: 2.25rem;
	row-gap: 0;
	align-items: start;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
}

body.single-whats_on .tyalgum-whats-on-single__date,
body.post-type-whats_on.single .tyalgum-whats-on-single__date {
	grid-area: date;
	margin: 0 0 0.25rem 0;
	text-transform: uppercase;
	letter-spacing: var(--shf-letter-spacing, 0.05em);
}

body.single-whats_on .tyalgum-whats-on-single__image,
body.post-type-whats_on.single .tyalgum-whats-on-single__image {
	grid-area: media;
	min-width: 0;
	margin: 0;
}

body.single-whats_on .tyalgum-whats-on-single__content,
body.post-type-whats_on.single .tyalgum-whats-on-single__content {
	grid-area: body;
	min-width: 0;
	margin: 0;
}

body.single-whats_on .tyalgum-whats-on-single__image img,
body.post-type-whats_on.single .tyalgum-whats-on-single__image img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
	box-sizing: border-box;
}

/* What's On internal page — banner hero title + subtitle (match Elementor pt_title pattern) */
.page-title-section.post-header-section .page-title-bg + .container .pt-title-wrap .pt-title {
	color: inherit;
}

.page-title-section.post-header-section .page-title-bg + .container .pt-subtitle-wrap .tyalgum-whats-on-banner__date {
	margin: 0.35rem 0 0;
	text-transform: uppercase;
	letter-spacing: var(--shf-letter-spacing, 0.05em);
	color: inherit;
	opacity: 0.95;
}

/* Carousel of posters → each links to full detail page */
.tyalgum-whats-on--carousel .tyalgum-whats-on-carousel__track {
	margin-bottom: 0.75rem;
}

.tyalgum-whats-on-carousel__slide {
	padding: 0 0.625rem;
	box-sizing: border-box;
}

.tyalgum-whats-on-carousel__poster {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-decoration: none;
	color: inherit;
	height: 100%;
	border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
	background: var(--light-grey, #f9f9f9);
	overflow: hidden;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.no-touch .tyalgum-whats-on-carousel__poster:hover {
	border-color: var(--primary-color);
	box-shadow: 0 4px 14px var(--primary-color-semi, rgba(221, 89, 3, 0.12));
	color: inherit;
}

.tyalgum-whats-on-carousel__media {
	position: relative;
	width: 100%;
	/* ISO A4 portrait (210 × 297 mm) */
	aspect-ratio: 210 / 297;
	overflow: hidden;
	background: var(--light-grey, #f9f9f9);
}

.tyalgum-whats-on-carousel__media .tyalgum-whats-on-carousel__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.tyalgum-whats-on-carousel__placeholder {
	display: block;
	position: absolute;
	inset: 0;
	background: var(--light-grey, #f9f9f9);
}

.tyalgum-whats-on-carousel__poster-title {
	display: block;
	padding: 0.75rem 0.65rem 1rem;
	font-size: clamp(0.7rem, 1.8vw, 0.8125rem);
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: var(--shf-letter-spacing, 0.05em);
	text-align: center;
	flex: 0 0 auto;
	border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
	background: #fff;
}

.tyalgum-whats-on--carousel .slick-prev,
.tyalgum-whats-on--carousel .slick-next {
	z-index: 2;
}

.tyalgum-whats-on--carousel .slick-dots {
	margin-top: 0.75rem;
}

.tyalgum-whats-on-archive__desc {
	margin: 1rem 0 2rem 0;
}

@media (max-width: 768px) {
	.tyalgum-whats-on--list .tyalgum-whats-on-list {
		gap: 2rem;
	}

	.tyalgum-whats-on--list .tyalgum-whats-on-item {
		flex-direction: column;
		gap: 1.1rem 0;
		padding-bottom: 2rem;
	}

	.tyalgum-whats-on--list .tyalgum-whats-on-item__image {
		flex: none;
		width: 100%;
		max-width: 100%;
	}

	.tyalgum-whats-on--list .tyalgum-whats-on-item__body {
		flex: none;
		width: 100%;
		max-width: 100%;
	}
}

/* Single What's On: stack on narrow screens */
@media (max-width: 639px) {
	body.single-whats_on article.tyalgum-whats-on-single-article.has-date,
	body.post-type-whats_on.single article.tyalgum-whats-on-single-article.has-date {
		grid-template-columns: 1fr !important;
		grid-template-areas:
			"date"
			"media"
			"body";
		row-gap: 1.1rem;
	}

	body.single-whats_on article.tyalgum-whats-on-single-article.no-date,
	body.post-type-whats_on.single article.tyalgum-whats-on-single-article.no-date {
		grid-template-columns: 1fr !important;
		grid-template-areas:
			"media"
			"body";
		row-gap: 1.1rem;
	}
}

.tyalgum-whats-on-single__image {
	margin: 0;
}

.tyalgum-whats-on-single__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* Live Artists popup (2013): Elementor sets a fixed 764px frame — let it grow with the form */
#elementor-popup-modal-2013 .dialog-message {
	width: min(635px, 92vw) !important;
	height: auto !important;
	max-height: 90vh !important;
	overflow-y: auto !important;
	align-items: stretch !important;
}

#elementor-popup-modal-2013 .dialog-widget-content {
	overflow: visible !important;
}

@media (max-width: 1024px) {
	#elementor-popup-modal-2013 .dialog-message {
		width: min(635px, 92vw) !important;
		height: auto !important;
		max-height: 90vh !important;
	}
}

@media (max-width: 767px) {
	#elementor-popup-modal-2013 .dialog-message {
		width: 92vw !important;
		height: auto !important;
		max-height: 90vh !important;
	}
}
