/* ---------- Brand typography ---------- */
/* 1. ClassGarmnd BT — logo / brand accents */
@font-face {
  font-family: 'ClassGarmnd BT';
  src: url('fonts/ClassicalGaramondBoldBT.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* 2. Big Caslon — headings / titles / project names */
@font-face {
  font-family: 'Big Caslon';
  src: url('fonts/Big%20Caslon%20Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* 3. Humanist 521 BT — body / menu / footer / labels */
@font-face {
  font-family: 'Humanist 521 BT';
  src: url('fonts/Humanist521BT-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Humanist 521 BT';
  src: url('fonts/Humanist521BT-Roman.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-brand: 'ClassGarmnd BT', 'Garamond', 'EB Garamond', serif;
  --font-heading: 'Big Caslon', 'Big Caslon Medium', 'Didot', 'Times New Roman', serif;
  --font-body: 'Humanist 521 BT', 'Optima', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Headings — Big Caslon */
.about-text h1,
.work-intro h1,
.contact-wrap h1,
#albumTitle {
  font-family: var(--font-heading);
}

/* Brand accent — ClassGarmnd BT */
.brand-name,
.album-card .album-label {
  font-family: var(--font-brand);
}
.brand-name { letter-spacing: 0.08em; }

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

/* ---------- Home: Owl Carousel (center mode) ---------- */
.home-carousel {
  position: relative;
  width: 100%;
  padding: 80px 60px;
  background: #fff;
  max-width: 1800px;
  margin: 0 auto;
}

/* Allow titles & scaled-up center to extend vertically without being clipped */
.home-owl .owl-stage-outer {
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 60px;
  padding-top: 40px;
}

/* Slide content */
.owl-slide {
  display: block;
  text-align: center;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.home-owl .owl-item img.owl-img {
  display: block;
  width: auto;             /* width follows the photo's ratio (no crop) */
  height: 380px;           /* same height for every photo → equal gaps */
  background-color: #f4f4f4;
}
@media (max-width: 900px) {
  .home-owl .owl-item img.owl-img { height: 320px; }
}
@media (max-width: 700px) {
  .home-owl .owl-item img.owl-img { height: 60vh; max-height: 460px; }
}

/* Vertically centre items of differing heights */
.home-owl .owl-stage {
  display: flex;
  align-items: center;
}
.home-owl .owl-item {
  float: none;
}

.owl-title {
  display: block;
  margin-top: 14px;
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Dim non-centered items + grow the centered one */
.home-owl .owl-item {
  opacity: 0.5;
  transform: scale(0.92);
  transform-origin: center center;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.home-owl .owl-item.center {
  opacity: 1;
  transform: scale(1.2);
  z-index: 2;
  position: relative;
}
.home-owl .owl-item.center .owl-title { opacity: 1; }

/* Owl nav arrows — restyled to match site */
.home-owl .owl-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
  top: 50%;
  transform: translateY(-50%);
  height: 0;
}
.home-owl .owl-nav button.owl-prev,
.home-owl .owl-nav button.owl-next {
  pointer-events: auto;
  position: absolute;
  top: -22px;
  width: 44px;
  height: 44px;
  background: transparent !important;
  border: none;
  color: #1a1a1a !important;
  font-size: 38px !important;
  line-height: 1 !important;
  font-family: serif;
  cursor: pointer;
  transition: opacity 0.2s ease;
  /* white outline so the arrows stay visible on dark photos too */
  text-shadow:
    -1.5px -1.5px 0 #fff,
     1.5px -1.5px 0 #fff,
    -1.5px  1.5px 0 #fff,
     1.5px  1.5px 0 #fff,
     0     0      4px rgba(255,255,255,0.9);
}
.home-owl .owl-nav button.owl-prev:hover,
.home-owl .owl-nav button.owl-next:hover { opacity: 0.55; background: transparent !important; }
.home-owl .owl-nav button.owl-prev { left: -50px; }
.home-owl .owl-nav button.owl-next { right: -50px; }

@media (max-width: 900px) {
  .home-carousel { padding: 60px 40px; }
  .home-owl .owl-nav button.owl-prev { left: -34px; }
  .home-owl .owl-nav button.owl-next { right: -34px; }
}
@media (max-width: 700px) {
  .home-carousel { padding: 32px 20px; }
  .home-owl .owl-item { opacity: 1; transform: scale(1); }
  .home-owl .owl-item.center { transform: scale(1); }
  .owl-title { opacity: 1; }
  .home-owl .owl-nav button.owl-prev { left: -10px; }
  .home-owl .owl-nav button.owl-next { right: -10px; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}


.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 32px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: padding 0.55s cubic-bezier(0.4, 0, 0.2, 1), gap 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
  overflow: hidden;
  max-height: 120px;
  transition:
    max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: max-height, opacity, transform;
}

.logo a {
  display: block;
}

.logo img {
  width: 77px;
  height: 77px;
  display: block;
}

@media (min-width: 641px) {
  .logo img { width: 95px; height: 95px; }
}

.site-header.scrolled .logo {
  max-height: 0;
  opacity: 0;
  transform: translateY(-12px);
}

.site-header.scrolled .header-inner {
  padding-top: 4px;
  padding-bottom: 4px;
  gap: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 48px;
  justify-content: center;
}

nav a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: #011a3f;
  position: relative;
  padding: 4px 0;
  display: inline-block;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #011a3f;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* Layout */
main { min-height: calc(100vh - 200px); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px;
}

.container-wide {
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* About page */
.about-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-hero .about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text { padding-top: 24px; }

.about-text h1 {
  font-size: 42px;
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #011a3f;
  margin-bottom: 28px;
  line-height: 1.2;
}

.about-text p {
  font-size: 16px;
  margin-bottom: 18px;
  color: #333;
}

.about-text p + p { margin-top: 0; }

.about-cta {
  position: relative;
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  border: 1px solid #1a1a1a;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: transparent;
  transition: border-color 0.15s ease 0.55s;
}

.about-cta::before,
.about-cta::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.about-cta::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid #011a3f;
  border-left: 1px solid #011a3f;
  transition: width 0.3s ease 0.3s, height 0.3s ease;
}

.about-cta::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid #011a3f;
  border-right: 1px solid #011a3f;
  transition: width 0.3s ease 0.3s, height 0.3s ease;
}

.about-cta:hover {
  border-color: transparent;
  transition: border-color 0.15s ease;
}

.about-cta:hover::before,
.about-cta:hover::after {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}

/* Album cover grid */
.albums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.album-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
  display: block;
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.album-card:hover img { transform: scale(1.05); }

.album-card .album-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 50px;
  background: rgba(0,0,0,0.42);
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s;
}

.album-card:hover .album-label { background: rgba(0,0,0,0.6); }

@media (max-width: 640px) {
  .album-card .album-label { padding-left: 58px; font-size: 16px; }
}

.back-link {
  display: inline-block;
  margin: 0 32px 24px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  transition: color 0.2s;
}

.back-link:hover { color: #1a1a1a; }

@media (max-width: 900px) {
  .albums { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 20px 60px; }
  .album-card .album-label { font-size: 14px; }
}
@media (max-width: 560px) {
  .albums { grid-template-columns: 1fr; }
}

/* Work grid - masonry-style with CSS columns */
.work-intro {
  text-align: center;
  padding: 60px 32px 30px;
}

.work-intro h1 {
  font-size: 36px;
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #011a3f;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-row {
  display: flex;
  gap: 12px;
}

.gallery-row > a,
.gallery-row > .gallery-empty {
  flex: 1 1 0;
  min-width: 0;
}

.gallery-row.gallery-pair > a,
.gallery-row.gallery-pair > .gallery-empty {
  width: calc(50% - 6px);
}

.gallery a {
  display: block;
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease, opacity 0.3s;
}

/* Paired portraits: force a common aspect ratio so both tiles match in height */
.gallery-row.gallery-pair > a {
  aspect-ratio: 2 / 3;
}

.gallery-row.gallery-pair > a > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery a:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.gallery-empty {
  /* placeholder when a lone portrait has no pair partner */
}

/* Contact */
/* Contact two-column layout: photo + form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  max-width: 1500px;
  margin: 0 auto;
}

.contact-photo img {
  width: 100%;
  height: auto;            /* full image, original ratio, never cropped */
  display: block;
}

.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 48px;
}

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

.contact-wrap h1 {
  font-size: 36px;
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: #011a3f;
  margin-bottom: 16px;
}

.contact-wrap .lead {
  text-align: center;
  color: #555;
  margin-bottom: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #555;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  background: transparent;
  padding: 10px 0;
  font-size: 16px;
  font-family: inherit;
  color: #1a1a1a;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: #1a1a1a;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  position: relative;
  align-self: flex-start;
  margin-top: 12px;
  padding: 14px 40px;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease 0.55s;
}

.contact-form button::before,
.contact-form button::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.contact-form button::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid #011a3f;
  border-left: 1px solid #011a3f;
  transition: width 0.3s ease 0.3s, height 0.3s ease;
}

.contact-form button::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid #011a3f;
  border-right: 1px solid #011a3f;
  transition: width 0.3s ease 0.3s, height 0.3s ease;
}

.contact-form button:hover {
  border-color: transparent;
  transition: border-color 0.15s ease;
}

.contact-form button:hover::before,
.contact-form button:hover::after {
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  color: #2a7a2a;
  display: none;
}

.form-status.show { display: block; }
.form-status.error { color: #b3261e; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  display: block;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(0,0,0,0.3);
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.15); }

.lightbox-close {
  top: 18px;
  right: 24px;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  user-select: none;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.2em;
}

@media (max-width: 640px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 22px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid #eee;
  padding: 32px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
}

.site-footer a:hover { color: #1a1a1a; }

/* Responsive */
@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-text h1 { font-size: 32px; }
}

@media (max-width: 640px) {
  .gallery { gap: 12px; }
  .gallery-row {
    flex-direction: column;
    gap: 12px;
  }
  .gallery-row > a,
  .gallery-row.gallery-pair > a,
  .gallery-row.gallery-pair > .gallery-empty {
    width: 100%;
    flex: 0 0 auto;
  }
  /* On mobile each photo stacks alone; let it use its natural aspect */
  .gallery-row.gallery-pair > a {
    aspect-ratio: auto;
  }
  .gallery-row.gallery-pair > a > img {
    height: auto;
  }
  .gallery-empty { display: none; }
}

@media (max-width: 640px) {
  .header-inner { padding: 5px 20px 4px; }
  nav ul { gap: 24px; }
  nav a { font-size: 11px; letter-spacing: 0.14em; }
  .gallery { padding: 0 16px 40px; }
  .container { padding: 48px 20px; }
  .contact-wrap { padding: 48px 20px; }
  .about-text h1 { font-size: 28px; }
  .work-intro h1, .contact-wrap h1 { font-size: 26px; }
}
