/*
Theme Name: Light & Lense
Template: twentytwentyfive
Description: Child theme for lightandlense.com. Projection mapping portfolio. Dark, motion-first.
Author: Russell Klimas
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: lightandlense
*/

/* ponytail: almost all styling lives in theme.json; this file only covers what theme.json can't. */

/* Looping project clips: fill their tile, never show controls. */
.ll-loop video,
video.ll-loop {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--wp--custom--radius);
}

/* Tile media box holds its shape (and shows a placeholder) before a clip is added. */
.ll-tile .ll-loop {
	aspect-ratio: 16 / 10;
	width: 100%;
	margin: 0;
	background: linear-gradient(135deg, var(--wp--preset--color--surface), #1f1430);
	border-radius: var(--wp--custom--radius);
	overflow: hidden;
}
.ll-tile > * { width: 100%; }

/* Contact in the nav reads as the CTA. */
.ll-nav-cta a { color: var(--wp--preset--color--accent) !important; }

/* Project tile hover lift. */
.ll-tile {
	transition: transform 0.25s ease;
}
.ll-tile:hover {
	transform: translateY(-4px);
}

/* Fact table: mono labels, hairline rows. */
.ll-facts table {
	border-collapse: collapse;
	width: 100%;
}
.ll-facts td {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 0.6rem 0;
	vertical-align: top;
}
.ll-facts td:first-child {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--muted);
	width: 30%;
	padding-right: 1rem;
}

/* Logo row: grayscale until hover. */
.ll-logos img {
	filter: grayscale(1) brightness(1.6);
	opacity: 0.7;
	transition: opacity 0.2s, filter 0.2s;
	max-height: 40px;
	width: auto;
}
.ll-logos a:hover img {
	filter: none;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.ll-tile { transition: none; }
	.ll-tile:hover { transform: none; }
}

/* Case-study clips: never taller than the screen (vertical phone footage). */
.wp-block-video.ll-loop video { max-height: 80vh; }
.wp-block-video.ll-loop { margin-inline: auto; }

/* Pullquotes: a statement, not a billboard. */
.wp-block-pullquote { padding: 2rem 0; border-block: 1px solid var(--wp--preset--color--line); }
.wp-block-pullquote blockquote p { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--x-large); line-height: 1.2; }
.wp-block-pullquote cite { color: var(--wp--preset--color--accent); font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: 0.08em; }

/* Vertical reels keep phone proportions. */
.ll-tile .ll-loop.ll-vertical { aspect-ratio: 9 / 16; }

/* Image tiles crop like the video tiles. */
.ll-tile .wp-block-image.ll-loop img { width: 100%; height: 100%; object-fit: cover; }
.ll-tile .wp-block-image.ll-loop a { display: block; height: 100%; }

/* FAQ accordions. */
.wp-block-details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1rem 0; }
.wp-block-details summary { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--large); cursor: pointer; }
.wp-block-details p { color: var(--wp--preset--color--muted); }

/* Case-study clips: natural height, so captions sit below the video. */
.wp-block-video.ll-clip video { width: 100%; height: auto; max-height: 80vh; object-fit: cover; border-radius: var(--wp--custom--radius); display: block; }

/* Embeds carried over from the old blog are bare iframes (no width/height): size them properly. */
.entry-content iframe[src*="youtube.com/embed"],
.wp-block-post-content iframe[src*="youtube.com/embed"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--wp--custom--radius);
	margin: 1.5rem 0;
}
.entry-content iframe[src*="instagram.com"],
.wp-block-post-content iframe[src*="instagram.com"] {
	display: block;
	width: 100%;
	max-width: 480px;
	height: 780px;
	border: 0;
	border-radius: var(--wp--custom--radius);
	margin: 1.5rem auto;
	background: #fff;
}

/* Old blog images carry fixed width/height attributes: keep them inside the column. */
.wp-block-post-content img { max-width: 100%; height: auto; border-radius: var(--wp--custom--radius); }

/* Anchor jumps land with a little breathing room. */
h2[id], h3[id], h4[id], h5[id] { scroll-margin-top: 1.5rem; }

/* Vibe wall: square, silent loops, no captions. */
.ll-vibe-wall .wp-block-video { margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.ll-vibe-wall video { width: 100%; height: 100%; object-fit: cover; display: block; }

.ll-headshot img { border-radius: var(--wp--custom--radius); width: 100%; height: auto; }

/* Fluent Forms on the dark theme. */
.fluentform .ff-el-form-control { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--line); border-radius: 8px; }
.fluentform .ff-el-form-control:focus { border-color: var(--wp--preset--color--accent); box-shadow: none; }
.fluentform .ff-el-input--label label { color: var(--wp--preset--color--contrast); font-family: var(--wp--preset--font-family--display); }
.fluentform .ff-btn-submit { background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--base) !important; border-radius: 999px !important; font-family: var(--wp--preset--font-family--display); padding: 0.8rem 1.8rem; border: 0; }
.fluentform select.ff-el-form-control option { background: var(--wp--preset--color--surface); }

/* Native newsletter form (posts to Kit). */
.ll-kit { display: flex; gap: 0.5rem; flex-wrap: wrap; max-width: 560px; }
.ll-kit input { flex: 1 1 240px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 0.8rem 1.2rem; font: inherit; }
.ll-kit input:focus { outline: none; border-color: var(--wp--preset--color--accent); }
.ll-kit button { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base); border: 0; border-radius: 999px;
	padding: 0.8rem 1.6rem; font-family: var(--wp--preset--font-family--display); font-weight: 500; cursor: pointer; }
.ll-kit button:hover { background: var(--wp--preset--color--contrast); }
.ll-kit-note { color: var(--wp--preset--color--muted); font-size: 0.8rem; margin-top: 0.5rem; }
