/* Pathum Works: sized for Visualize's right-hand column (~670px) and reused full-width on the archive.
   Card photos are landscape (4:3) because the work photos are mostly shot that way. */

.ptw-works {
	clear: both;
	margin: 48px 0 24px;
}

.ptw-works__title {
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid hsl(250, 10%, 80%);
	font-size: 32px;
	line-height: 1.25;
}

.ptw-works__grid {
	display: grid;
	grid-template-columns: repeat(var(--ptw-cols, 2), minmax(0, 1fr));
	gap: 28px 24px;
}

.ptw-card {
	margin: 0;
	padding: 0;
}

.ptw-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: hsl(250, 10%, 93%);
}

.ptw-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.ptw-card:hover .ptw-card__media img,
.ptw-card:focus-within .ptw-card__media img {
	transform: scale(1.04);
}

.ptw-card__title {
	margin: 12px 0 0;
	font-size: 18px;
	line-height: 1.45;
}

.ptw-card__title a {
	color: inherit;
	text-decoration: none;
}

.ptw-card__title a:hover,
.ptw-card__title a:focus {
	text-decoration: underline;
}

.ptw-works__more {
	margin: 28px 0 0;
}

/* LINE call-to-action under each work */

.ptw-line {
	margin: 36px 0 8px;
	padding: 24px;
	background: hsl(250, 10%, 96%);
	text-align: center;
}

.ptw-line__note {
	margin: 0 0 14px;
}

.entry-content .ptw-line__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 28px;
	border-radius: 6px;
	background: #06c755;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.entry-content .ptw-line__btn:hover,
.entry-content .ptw-line__btn:focus {
	background: #05a647;
	color: #fff;
	text-decoration: none;
}

/* Front page left column: slideshow in place of the cover photo.
   Slides use fixed backgrounds like the theme's own .entry-visual, so the photo stays put while the page scrolls. */

.ptw-hero {
	display: none;
}

.ptw-hero-ready .entry-visual {
	background-image: none !important;
}

.ptw-hero-ready .ptw-hero {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

.ptw-hero__slide {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	opacity: 0;
	transition: opacity .9s ease;
	background-color: hsl(250, 10%, 13%);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	color: #fff;
	text-decoration: none;
}

.ptw-hero__slide.is-active {
	opacity: 1;
	z-index: 1;
}

/* Sticky so the caption rides the bottom of the viewport, like the fixed photo. */
.ptw-hero__cap {
	position: sticky;
	top: calc(100vh - 128px);
	display: block;
	box-sizing: border-box;
	height: 128px;
	padding: 40px 32px 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
}

.ptw-hero__label {
	display: block;
	font-size: 13px;
	letter-spacing: .04em;
	opacity: .85;
}

.ptw-hero__title {
	display: block;
	font-size: 20px;
	line-height: 1.35;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

.ptw-hero__slide:hover .ptw-hero__title,
.ptw-hero__slide:focus .ptw-hero__title {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.ptw-hero__slide {
		transition: none;
	}
}

/* Archive page */

.ptw-archive {
	max-width: 1120px;
	margin: 0 auto;
	padding: 56px 24px;
	background: hsl(0, 0%, 100%);
}

.ptw-archive__header {
	margin-bottom: 32px;
}

.ptw-archive__title {
	margin: 0 0 8px;
}

.ptw-archive .ptw-works {
	margin-top: 0;
}

.ptw-archive .navigation.pagination {
	margin-top: 40px;
	text-align: center;
}

.ptw-archive .page-numbers {
	display: inline-block;
	padding: 6px 12px;
}

@media screen and (max-width: 900px) {
	.ptw-works--archive .ptw-works__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 600px) {
	.ptw-works__grid,
	.ptw-works--archive .ptw-works__grid {
		grid-template-columns: 1fr;
	}

	.ptw-works__title {
		font-size: 26px;
	}
}
