/**
 * Gallery page — parity with Sophia Pro demo.
 * https://demo-sophia-pro.wpcustomthemes.com/gallery/
 */

body.sophia-gallery-pro-page .gallery-tabs-frontend.wp-block-section {
	padding-bottom: var(--wp--custom--spacing--section-block-bottom, clamp(42px, 7.5vw, 91px));
	padding-top: var(--wp--custom--spacing--section-block-top, clamp(42px, 7.5vw, 91px));
}

body.sophia-gallery-pro-page .gallery-tabs-frontend .wp-block-group-heading {
	margin-bottom: 0;
	max-width: 1040px;
	margin-inline: auto;
}

body.sophia-gallery-pro-page .gallery-tabs-frontend .wp-block-group-heading .has-huge-post-title-font-size {
	font-family: var(--wp--preset--font-family--merriweather, Merriweather, serif);
	font-weight: 700;
	line-height: 1.15;
}

body.sophia-gallery-pro-page .gallery-tabs-frontend .tab-button br {
	display: none;
}

body.sophia-gallery-pro-page .gallery-tabs-frontend .tab-container {
	justify-content: center;
}

body.sophia-gallery-pro-page .gallery-tabs-frontend .grid.normal-grid,
body.sophia-gallery-pro-page .gallery-tabs-frontend .grid.before-after-grid {
	gap: clamp(1.5rem, 3vw, 2rem);
}

body.sophia-gallery-pro-page .gallery-tabs-frontend .treatment-card,
body.sophia-gallery-pro-page .gallery-tabs-frontend .slider-container {
	background-color: var(--wp--preset--color--background, #fff);
	border-radius: 10px;
	overflow: hidden;
}

body.sophia-gallery-pro-page .gallery-tabs-frontend .info-card {
	padding: var(--wp--custom--spacing--extra-small, clamp(16px, 2vw, 24px)) !important;
}

body.sophia-gallery-pro-page .wp-block-post-content > .wp-block-dot-pattern.wp-block-section {
	overflow: hidden;
	padding-bottom: var(--wp--preset--spacing--60, 60px);
	padding-top: var(--wp--preset--spacing--60, 60px);
	position: relative;
}

body.sophia-gallery-pro-page .wp-block-dot-pattern .wp-block-float-shape {
	bottom: 0;
	left: 0;
	max-width: 80%;
	position: absolute;
}

body.sophia-gallery-pro-page .wp-block-dot-pattern .wp-block-float-shape figure {
	margin: 0;
	overflow: hidden;
}

body.sophia-gallery-pro-page .wp-block-dot-pattern .wp-block-float-shape figure img {
	filter: drop-shadow(0 1000px 0 var(--wp--preset--color--shape-bg, #d5a686));
	opacity: 0.6;
	transform: translateY(-1000px);
}

body.sophia-gallery-pro-page .wp-block-post-content > .wp-block-dot-pattern + .wp-cta-section {
	margin-top: 0;
}

body.sophia-gallery-pro-page .wp-cta-section .wp-block-group-heading .has-extra-large-font-size {
	font-family: var(--wp--preset--font-family--merriweather, Merriweather, serif);
	font-weight: 700;
	line-height: 1.2;
	text-transform: capitalize;
}

@media screen and (min-width: 900px) {
	body.sophia-gallery-pro-page .gallery-tabs-frontend .grid.normal-grid,
	body.sophia-gallery-pro-page .gallery-tabs-frontend .grid.before-after-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 781px) {
	body.sophia-gallery-pro-page .gallery-tabs-frontend .tab-container {
		width: 100%;
	}

	body.sophia-gallery-pro-page .gallery-tabs-frontend .tab-button {
		flex: 1 1 auto;
		text-align: center;
	}
}
