/*
Theme Name: DP Photo
Description: Dark gallery child theme for DP Photo Studio. Source of truth lives in the dpphoto_website ops repo — deploy with `make deploy-theme`, do not edit on the server.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Text Domain: dpphoto
*/

html {
	scroll-behavior: smooth;
}

::selection {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* ---------- Header ---------- */

.dp-header .wp-block-site-title a,
.dp-header .wp-block-navigation-item__content {
	text-decoration: none;
}

.dp-header .wp-block-navigation-item__content {
	opacity: 0.75;
	transition: opacity 0.2s ease;
}

.dp-header .wp-block-navigation-item__content:hover,
.dp-header .current-menu-item > .wp-block-navigation-item__content {
	opacity: 1;
}

/* On the front page the header floats over the hero photo. */
.home .wp-site-blocks > header:first-child {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 10;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
}

.home .wp-site-blocks > header:first-child .dp-header {
	background: transparent !important;
}

/* ---------- Hero ---------- */

/* The header is taken out of flow above, so the hero must start at the very top. */
.home .wp-site-blocks > .dp-hero {
	margin-block-start: 0;
}

.dp-hero .wp-block-cover__inner-container {
	width: 100%;
}

.dp-hero .dp-scroll-cue {
	text-decoration: none;
	opacity: 0.8;
}

.dp-hero .dp-scroll-cue:hover {
	opacity: 1;
}

/* ---------- Work grid ---------- */

.dp-grid .wp-block-post-featured-image {
	overflow: hidden;
	margin-bottom: var(--wp--preset--spacing--20);
}

.dp-grid .wp-block-post-featured-image img {
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
	filter: brightness(0.92);
}

.dp-grid li:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
	filter: brightness(1);
}

.dp-grid .wp-block-post-title a {
	text-decoration: none;
}

/* ---------- Single post: photos breathe wider than the text column ---------- */

.single .wp-block-post-content > .wp-block-image,
.single .wp-block-post-content > .wp-block-gallery {
	max-width: min(1200px, 100%);
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--60);
}

/* Wide shots fill the column; square and vertical shots fit one screen. */
.single .wp-block-post-content > .wp-block-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 88vh;
	margin-inline: auto;
}

.wp-block-image figcaption,
.wp-block-image .wp-element-caption {
	font-family: var(--wp--preset--font-family--manrope);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-4);
	text-align: center;
	margin-top: var(--wp--preset--spacing--20);
}

/* Empty paragraphs left over from the old editor content. */
.wp-block-post-content > p:empty {
	display: none;
}

/* ---------- Services ---------- */

.dp-card {
	border: 1px solid var(--wp--preset--color--accent-6);
	transition: border-color 0.2s ease;
}

.dp-card:hover {
	border-color: var(--wp--preset--color--accent-1);
}

.dp-card.is-featured {
	border-color: var(--wp--preset--color--accent-1);
}

.dp-card ul {
	list-style: none;
	padding-left: 0;
}

.dp-card li {
	padding: 0.35em 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
}

.dp-card li:last-child {
	border-bottom: 0;
}

.dp-price-table table {
	border-collapse: collapse;
}

.dp-price-table td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-6);
	padding: 0.9em 0;
}

.dp-price-table td:last-child {
	text-align: right;
	font-family: var(--wp--preset--font-family--literata);
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
