/* ============================================================
 * Privato - result.css
 * Route-scoped result gallery styles ported from
 * HTML/Privato/result.html.
 * ============================================================ */

body.pc-result-page {
	background-color: var(--pc-paper);
	background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.59 0 0 0 0 0.41 0 0 0 0 0.37 0 0 0 0.018 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	background-attachment: scroll;
	padding-bottom: 72px;
}

@media (min-width: 900px) {
	body.pc-result-page { padding-bottom: 0; }
}

body.pc-result-page .pc-phero {
	background: linear-gradient(180deg, rgba(250, 239, 224, .82) 0%, rgba(255, 251, 246, .2) 100%);
	padding: 26px 0 22px;
	text-align: center;
}

@media (min-width: 768px) {
	body.pc-result-page .pc-phero { padding: 34px 0 26px; }
}

@media (min-width: 1280px) {
	body.pc-result-page .pc-phero { padding: 42px 0 32px; }
}

body.pc-result-page .pc-phero .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
	color: var(--pc-mocha);
	font-family: var(--pc-font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 6px;
	line-height: 1;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	body.pc-result-page .pc-phero .eyebrow { font-size: 13px; }
}

body.pc-result-page .pc-phero .eyebrow::before,
body.pc-result-page .pc-phero .eyebrow::after {
	content: "";
	display: inline-block;
	width: 32px;
	height: 1px;
	background: var(--pc-mocha);
	opacity: .38;
}

body.pc-result-page .pc-phero h1 {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 1140px;
	margin: 0 auto;
}

body.pc-result-page .pc-phero__thai {
	color: var(--pc-ink);
	font-family: var(--pc-font-body);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: .3px;
	line-height: 1.3;
	text-wrap: balance;
}

@media (min-width: 768px) {
	body.pc-result-page .pc-phero__thai { font-size: 26px; }
}

@media (min-width: 1280px) {
	body.pc-result-page .pc-phero__thai { font-size: 32px; }
}

body.pc-result-page .pc-wall-text {
	max-width: 620px;
	margin: -4px auto 28px;
	padding: 0 24px;
	color: var(--pc-sub-2);
	font-family: var(--pc-font-italic);
	font-size: 18px;
	font-style: italic;
	font-weight: 400;
	letter-spacing: .2px;
	line-height: 1.75;
	text-align: center;
}

@media (min-width: 768px) {
	body.pc-result-page .pc-wall-text {
		margin-bottom: 40px;
		font-size: 20px;
		line-height: 1.8;
	}
}

body.pc-result-page .pc-wall-text::before,
body.pc-result-page .pc-wall-text::after {
	display: inline-block;
	color: var(--pc-mocha);
	opacity: .6;
}

body.pc-result-page .pc-wall-text::before {
	content: "\2014 ";
	margin-right: 4px;
}

body.pc-result-page .pc-wall-text::after {
	content: " \2014";
	margin-left: 4px;
}

body.pc-result-page .pc-catgrid {
	padding: 12px 0 20px;
}

@media (min-width: 768px) {
	body.pc-result-page .pc-catgrid { padding: 16px 0 28px; }
}

body.pc-result-page .pc-cat-tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	max-width: 960px;
	margin: 0 auto;
}

@media (min-width: 640px) {
	body.pc-result-page .pc-cat-tiles {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
}

@media (min-width: 1024px) {
	body.pc-result-page .pc-cat-tiles {
		grid-template-columns: repeat(6, 1fr);
		gap: 14px;
		max-width: 1200px;
	}
}

body.pc-result-page .pc-cat-tile {
	display: block;
	color: inherit;
	text-decoration: none;
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

body.pc-result-page .pc-cat-tile:hover {
	opacity: 1;
	transform: translateY(-3px);
}

body.pc-result-page .pc-cat-tile__frame {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--pc-cream);
	box-shadow: 0 1px 2px rgba(75, 55, 40, .04), 0 12px 32px rgba(75, 55, 40, .09);
	transition: box-shadow .5s ease;
}

body.pc-result-page .pc-cat-tile__frame::after {
	position: absolute;
	inset: 6px;
	z-index: 2;
	border: 1px solid rgba(255, 252, 245, .3);
	content: "";
	pointer-events: none;
	transition: inset .5s ease;
}

body.pc-result-page .pc-cat-tile:hover .pc-cat-tile__frame {
	box-shadow: 0 4px 8px rgba(75, 55, 40, .05), 0 24px 48px rgba(75, 55, 40, .14);
}

body.pc-result-page .pc-cat-tile:hover .pc-cat-tile__frame::after {
	inset: 10px;
}

body.pc-result-page .pc-cat-tile__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

body.pc-result-page .pc-cat-tile:hover .pc-cat-tile__img {
	filter: saturate(1.05) contrast(1.02);
	transform: scale(1.05);
}

body.pc-result-page .pc-cat-tile__label {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 14px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%);
	color: var(--pc-white);
	text-align: center;
}

body.pc-result-page .pc-cat-tile__en {
	margin-bottom: 2px;
	font-family: var(--pc-font-display);
	font-size: 17px;
	letter-spacing: 1.2px;
	line-height: 1.1;
}

@media (min-width: 768px) {
	body.pc-result-page .pc-cat-tile__en { font-size: 20px; }
}

body.pc-result-page .pc-cat-tile__th {
	font-family: var(--pc-font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .2px;
	opacity: .92;
}

@media (min-width: 768px) {
	body.pc-result-page .pc-cat-tile__th { font-size: 13px; }
}

body.pc-result-page .pc-result-section {
	padding: 56px 0;
}

@media (min-width: 768px) {
	body.pc-result-page .pc-result-section { padding: 80px 0; }
}

@media (min-width: 1024px) {
	body.pc-result-page .pc-result-section { padding: 96px 0; }
}

@supports (content-visibility: auto) {
	body.pc-result-page .pc-result-section {
		contain-intrinsic-size: 900px;
		content-visibility: auto;
	}
}

body.pc-result-page .pc-result-section--ivory {
	background: rgba(250, 245, 236, .55);
}

body.pc-result-page .pc-result-section--cream {
	background: rgba(255, 251, 246, .6);
}

body.pc-result-page .section-header {
	margin-bottom: 36px;
	padding: 0 8px;
	text-align: center;
}

@media (min-width: 768px) {
	body.pc-result-page .section-header { margin-bottom: 48px; }
}

body.pc-result-page .section-label {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	color: var(--pc-dark);
	font-family: var(--pc-font-body);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 6px;
	line-height: 1;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	body.pc-result-page .section-label { font-size: 13px; }
}

body.pc-result-page .section-label::before,
body.pc-result-page .section-label::after {
	content: "";
	display: inline-block;
	width: 32px;
	height: 1px;
	background: var(--pc-mocha);
	opacity: .38;
}

body.pc-result-page .section-header h2 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 1000px;
	margin: 0 auto 10px;
	color: var(--pc-ink);
	font-family: var(--pc-font-display);
	font-size: 28px;
	font-weight: 400;
	letter-spacing: .2px;
	line-height: 1.25;
}

@media (min-width: 768px) {
	body.pc-result-page .section-header h2 {
		gap: 22px;
		font-size: 38px;
	}
}

@media (min-width: 1280px) {
	body.pc-result-page .section-header h2 { font-size: 44px; }
}

body.pc-result-page .section-header h2::before,
body.pc-result-page .section-header h2::after {
	content: "";
	flex: 1;
	max-width: 60px;
	height: 16px;
	background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 1h18v12H2V3h14v8H4V5h12v6H6V7h10' fill='none' stroke='%2396695E' stroke-width='1.3'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: repeat-x;
	background-size: 20px 14px;
	opacity: .85;
}

@media (min-width: 560px) {
	body.pc-result-page .section-header h2::before,
	body.pc-result-page .section-header h2::after { max-width: 120px; }
}

@media (min-width: 1024px) {
	body.pc-result-page .section-header h2::before,
	body.pc-result-page .section-header h2::after { max-width: 200px; }
}

body.pc-result-page .section-header .subtitle {
	max-width: 640px;
	margin: 12px auto 0;
	color: var(--pc-sub-2);
	font-size: 15px;
	line-height: 1.8;
}

@media (min-width: 768px) {
	body.pc-result-page .section-header .subtitle {
		font-size: 16px;
		line-height: 1.9;
	}
}

body.pc-result-page .pc-ba-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 300px);
	gap: 24px;
	justify-content: center;
}

@media (min-width: 1024px) {
	body.pc-result-page .pc-ba-grid { gap: 36px; }
}

body.pc-result-page .pc-ba-card {
	width: 300px;
	height: 300px;
	overflow: hidden;
	background: var(--pc-white);
	border: 1px solid var(--pc-line-warm);
	border-radius: var(--pc-r-card);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease, border-color .3s ease;
}

body.pc-result-page .pc-ba-card:hover {
	border-color: var(--pc-line-warm-deep);
	box-shadow: var(--pc-sh-card-hover);
	transform: translateY(-4px);
}

body.pc-result-page .pc-ba-card__images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	width: 100%;
	height: 100%;
	background: var(--pc-line-warm);
}

body.pc-result-page .pc-ba-card--composite .pc-ba-card__images {
	grid-template-columns: 1fr;
	background: transparent;
}

body.pc-result-page .pc-ba-card__slot {
	position: relative;
	overflow: hidden;
	background: var(--pc-cream);
	cursor: zoom-in;
}

body.pc-result-page .pc-ba-card__slot:focus-visible {
	outline: 3px solid var(--pc-focus-ring);
	outline-offset: 2px;
}

body.pc-result-page .pc-ba-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 1s cubic-bezier(.2, .8, .2, 1), filter .4s ease;
}

body.pc-result-page .pc-ba-card:hover .pc-ba-card__img {
	filter: saturate(1.04);
	transform: scale(1.04);
}

body.pc-result-page .pc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, visibility 0s linear .25s;
}

body.pc-result-page .pc-lightbox[aria-hidden="false"] {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition: opacity .25s ease;
}

body.pc-result-page .pc-lightbox__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	background: rgba(20, 15, 12, .88);
	border: 0;
	cursor: zoom-out;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

body.pc-result-page .pc-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: rgba(255, 255, 255, .14);
	border-radius: 999px;
	color: var(--pc-white);
	font-size: 28px;
	line-height: 1;
	transition: background .2s, transform .25s;
}

body.pc-result-page .pc-lightbox__close:hover {
	background: rgba(255, 255, 255, .24);
	transform: rotate(90deg);
}

body.pc-result-page .pc-lightbox__figure {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: min(1200px, 96vw);
	max-height: 90vh;
	margin: 0;
}

body.pc-result-page .pc-lightbox__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

body.pc-result-page .pc-lightbox__caption {
	max-width: min(820px, 92vw);
	margin-top: 12px;
	color: var(--pc-white);
	font-family: var(--pc-font-body);
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
}

body.pc-lightbox-open.pc-result-page {
	overflow: hidden;
}
