/*
Theme Name: Portfolio Mono
Author: You
Description: Monochrome portfolio theme for props & graphics
Version: 1.0
*/

/* =========================
   Fonts
   ========================= */

/* Avenir Next Ultra Light */
@font-face {
  font-family: 'AvenirNextUltraLight';
  src: url('assets/AvenirNext-UltraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Avenir Next Regular */
@font-face {
  font-family: 'AvenirNextRegular';
  src: url('assets/AvenirNext-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Variables
   ========================= */

:root {
  --bg: #f7f7f7;
  --bg-alt: #f0f0f0;
  --text: #111111;
  --muted: #666666;
  --accent: #000000;
  --border: #dddddd;
  --max-width: 1120px;

  --font-base: 'AvenirNextRegular', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =========================
   Reset / Base
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Layout
   ========================= */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* =========================
   Header
   ========================= */

.site-header {
  border-bottom: 1px solid var(--border);
  background-color: #ffffff;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
}

/* Logo + Name */

.site-brand-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-logo img {
  display: block;
  max-height: 65px;
  width: auto;
}

.site-name {
  font-family: 'AvenirNextUltraLight', 'AvenirNextRegular', sans-serif;
  font-size: 1.8rem;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =========================
   Navigation
   ========================= */

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

/* Menu hover only */
.site-nav a:hover {
  opacity: 0.5;
}

/* =========================
   Page Header
   ========================= */

.page-header {
  padding: 3rem 0 2rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0 0 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-intro {
  max-width: 640px;
  font-size: 1rem;
  color: var(--muted);
}

/* =========================
   Props Grid
   ========================= */

.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 4rem;
}

@media (max-width: 900px) {
  .props-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .props-grid {
    grid-template-columns: 1fr;
  }
}

.props-item {
  position: relative;
}

.props-item-link {
  display: block;
}

/* Thumbnail / placeholder */

.props-item-thumb {
  position: relative;
  padding-top: 72%;
  background: #e9e9e9;
  overflow: hidden;
}

/* Placeholder text */
.props-item-thumb::after {
  content: "Image coming soon";
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777;
}

/* Image */
.props-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide placeholder text if image exists */
.props-item-thumb:has(img)::after {
  content: "";
}

/* =========================
   Props Hover Overlay
   ========================= */

.props-item-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  padding: 0.85rem 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.props-item-link:hover .props-item-overlay {
  opacity: 1;
}

.props-overlay-inner {
  display: grid;
  gap: 0.2rem;
}

.props-overlay-show {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.props-overlay-line {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.92;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* =========================
   Project (child page) layout
   ========================= */

.project-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

.project-media {
  position: relative;
}

.kc-media-placeholder {
  background: #e9e9e9;
  padding: 4rem 1.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #777;
}

/* Slider */
.kc-slider {
  position: relative;
  overflow: hidden;
  background: #e9e9e9;
}

.kc-slider-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.kc-slide {
  min-width: 100%;
  position: relative;
  padding-top: 66%;
  overflow: hidden;
}

.kc-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* arrows */
.kc-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.75);
  color: #111;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.kc-slider-btn:hover {
  background: rgba(255,255,255,0.95);
}

.kc-prev { left: 1rem; }
.kc-next { right: 1rem; }

.project-text {
  position: relative;
}

.project-meta {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.25rem;
}

.project-meta-line {
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  line-height: 1.8;
}

.project-disclaimer {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* =========================
   Home (4-tile grid + crossfade)
   ========================= */

.kc-home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1400px;
  margin: 3rem 0 0;
}

.kc-home-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eee;
  overflow: hidden;
}

.kc-home-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
  will-change: opacity;
}

/* allow either .active or .is-active depending on JS */
.kc-home-tile img.active,
.kc-home-tile img.is-active,
.kc-home-img.active,
.kc-home-img.is-active {
  opacity: 1;
}

/* Hide page title on Home page */
.page-id-1768 h1,
.page-id-1768 .page-title {
  display: none;
}

/* Pull home grid up */
.page-id-1768 .kc-home-grid {
  margin-top: -2rem;
  padding-top: 0;
}

/* =========================
   Graphics child pages layout
   ========================= */

.kc-graphics-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* 3 columns: photo + photo + text */
.kc-graphics-layout--3col {
  grid-template-columns: 1fr 1fr 0.9fr;
}

/* 2 columns: photo + text */
.kc-graphics-layout--2col {
  grid-template-columns: 1.2fr 0.9fr;
}

.kc-graphics-photos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kc-graphics-photo {
  margin: 0;
}

.kc-graphics-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.kc-graphics-text {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.kc-graphics-title {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.kc-graphics-intro {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.kc-graphics-body p {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .kc-graphics-layout--3col,
  .kc-graphics-layout--2col {
    grid-template-columns: 1fr;
  }
  .kc-graphics-text {
    position: static;
  }
}

/* =========================
   ABOUT page tweaks (page-id-1516)
   ========================= */

/* Reduce image size + breathing space */
.page-id-1516 .kc-graphics-photo img {
  max-width: 420px;
  width: 100%;
  height: auto;
}

.page-id-1516 .kc-graphics-photo {
  margin-bottom: 2.5rem;
}

/* Make About title match other page titles */
.page-id-1516 .kc-graphics-title {
  font-family: 'AvenirNextUltraLight', 'AvenirNextRegular', sans-serif;
  font-weight: 200;
  font-size: 2.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 2rem 0;
}

/* Align the About layout spacing similar to other pages */
.page-id-1516 .kc-graphics-layout {
  margin-top: 3rem;
}

/* =========================
   About template
   ========================= */

.kc-about{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  align-items: start;
}

.kc-about-photo-img{
  width: 100%;
  height: auto;
  display: block;
  max-width: 420px;   /* adjust if you want smaller */
}

.kc-about-photo{
  display: flex;
  justify-content: flex-start;
}

.kc-about-photo-placeholder{
  background: #e9e9e9;
  padding: 2rem 1.25rem;
  color: #777;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.kc-about-body p:first-child{
  margin-top: 0;
}

/* Mobile */
@media (max-width: 900px){
  .kc-about{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .kc-about-photo-img{
    max-width: 320px;
  }
}
/* =========================
   Contact (two-column)
   ========================= */

.kc-contact-layout{
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 3rem;
  padding-bottom: 4rem;
  align-items: start;
}

.kc-contact-left{
  display: flex;
  justify content: centre;
  align-items: centre;
}

.kc-contact-logo img{
  display: block;
  max-width: 140px;  /* logo size */
  height: auto;
}

.kc-contact-logo-fallback{
  font-family: 'AvenirNextUltraLight', 'AvenirNextRegular', sans-serif;
  font-weight: 200;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--text);
}

.kc-contact-right{
  max-width: 640px;
}

.kc-contact-heading{
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

.kc-contact-item{
  margin: 0 0 0.75rem 0;
}

.kc-contact-link{
  display: inline-block;
  letter-spacing: 0.06em;
}

.kc-contact-link:hover{
  opacity: 0.5;
}

.kc-contact-note{
  margin-top: 2rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 900px){
  .kc-contact-layout{
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .kc-contact-logo img{
    max-width: 300px;
  }
}
/* CONTACT page – make logo larger */
.page-template-page-contact .kc-contact-logo img {
  max-width: 220px;   /* try 220–280px */
  width: 100%;
  height: auto;
  display: flex
  justify-content: center;
  align-items: center;
}