/* =====================================================
   Client Photo Gallery — Public Styles
   Aesthetic: Elegant Photography Portfolio
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --cpg-cream:    #FAF8F5;
  --cpg-dark:     #1A1A1A;
  --cpg-gold:     #C9A96E;
  --cpg-gold-l:   #E8D5B0;
  --cpg-muted:    #8A8A8A;
  --cpg-border:   #E8E0D5;
  --cpg-white:    #FFFFFF;
  --cpg-overlay:  rgba(26, 26, 26, 0.72);
  --cpg-radius-s: 6px;
  --cpg-radius-m: 12px;
  --cpg-radius-l: 20px;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', system-ui, sans-serif;
}

/* ── Base ── */
.cpg-gallery-wrap {
  font-family: var(--font-sans);
  color: var(--cpg-dark);
  background: var(--cpg-cream);
  min-height: 60vh;
  padding: 0 0 80px;
}

/* ── Breadcrumb ── */
.cpg-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 40px;
  font-size: 13px;
  color: var(--cpg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cpg-border);
  background: var(--cpg-white);
}
.cpg-breadcrumb a { color: var(--cpg-gold); text-decoration: none; }
.cpg-breadcrumb a:hover { text-decoration: underline; }
.cpg-bc-sep { color: var(--cpg-border); }

/* ── Page Header ── */
.cpg-page-header {
  text-align: center;
  padding: 60px 40px 48px;
}
.cpg-page-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--cpg-dark);
}
.cpg-page-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--cpg-gold);
  margin: 16px auto 0;
}
.cpg-page-subtitle {
  font-size: 15px;
  color: var(--cpg-muted);
  margin: 16px 0 0;
  letter-spacing: 0.05em;
  font-weight: 300;
}

/* ── Clients Grid ── */
.cpg-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.cpg-client-card {
  text-decoration: none;
  color: inherit;
  background: var(--cpg-white);
  border-radius: var(--cpg-radius-m);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: block;
}
.cpg-client-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,.14); }

.cpg-client-photo {
  height: 220px;
  background: var(--cpg-dark) center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpg-placeholder-icon { font-size: 56px; opacity: .3; }
.cpg-client-hover-overlay {
  position: absolute; inset: 0;
  background: var(--cpg-overlay);
  opacity: 0; transition: .3s;
  display: flex; align-items: center; justify-content: center;
}
.cpg-client-card:hover .cpg-client-hover-overlay { opacity: 1; }
.cpg-view-gallery-btn {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding-bottom: 4px;
}
.cpg-client-info { padding: 20px 24px 24px; }
.cpg-client-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--cpg-dark);
}
.cpg-event-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cpg-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.cpg-client-desc { font-size: 13px; color: var(--cpg-muted); margin: 8px 0 0; line-height: 1.6; }

/* ── Client Hero ── */
.cpg-client-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--cpg-dark);
}
.cpg-client-hero-bg {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  filter: brightness(0.5);
}
.cpg-client-hero-content {
  position: relative;
  padding: 40px;
  color: #fff;
  width: 100%;
}
.cpg-client-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.cpg-client-hero-content p { font-size: 15px; opacity: .85; margin: 0 0 12px; }
.cpg-client-hero-meta { display: flex; gap: 20px; font-size: 13px; opacity: .75; }

/* ── Section Title ── */
.cpg-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.cpg-section-title h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  margin: 0;
}
.cpg-count {
  background: var(--cpg-gold-l);
  color: var(--cpg-dark);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

/* ── Events Grid ── */
.cpg-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.cpg-event-card {
  text-decoration: none;
  color: inherit;
  background: var(--cpg-white);
  border-radius: var(--cpg-radius-m);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  display: block;
}
.cpg-event-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(0,0,0,.12); }
.cpg-event-cover {
  height: 200px;
  background: var(--cpg-dark) center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpg-event-placeholder { font-size: 56px; }
.cpg-event-overlay {
  position: absolute; inset: 0;
  background: var(--cpg-overlay);
  opacity: 0; transition: .3s;
  display: flex; align-items: center; justify-content: center;
}
.cpg-event-card:hover .cpg-event-overlay { opacity: 1; }
.cpg-event-view-btn {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 3px;
}
.cpg-photo-count-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.cpg-event-info { padding: 18px 20px 22px; }
.cpg-event-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin: 8px 0 4px;
}
.cpg-event-date { font-size: 13px; color: var(--cpg-muted); display: block; margin-bottom: 6px; }
.cpg-event-desc { font-size: 13px; color: var(--cpg-muted); margin: 6px 0 0; line-height: 1.6; }

/* ── Event Type Pills ── */
.cpg-event-type-pill, .cpg-badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 500;
}
.cpg-pill-wedding, .cpg-badge-wedding                       { background:#FEE2E2; color:#991B1B; }
.cpg-pill-birthday, .cpg-badge-birthday                     { background:#FEF9C3; color:#854D0E; }
.cpg-pill-engagement-ceremony, .cpg-badge-engagement-ceremony { background:#FCE7F3; color:#9D174D; }
.cpg-pill-baby-shower, .cpg-badge-baby-shower               { background:#DBEAFE; color:#1E3A5F; }
.cpg-pill-anniversary, .cpg-badge-anniversary               { background:#D1FAE5; color:#065F46; }
.cpg-pill-pre-wedding, .cpg-badge-pre-wedding               { background:#EDE9FE; color:#5B21B6; }
.cpg-pill-reception, .cpg-badge-reception                   { background:#FFEDD5; color:#9A3412; }
.cpg-pill-other, .cpg-badge-other                           { background:#F1F5F9; color:#475569; }

/* ── Event Hero ── */
.cpg-event-hero {
  position: relative;
  height: 360px;
  background: var(--cpg-dark);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.cpg-event-hero-bg {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  filter: brightness(0.45);
}
.cpg-event-hero-content {
  position: relative;
  padding: 40px;
  color: #fff;
}
.cpg-event-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  margin: 10px 0 6px;
}
.cpg-event-hero-content time { font-size: 14px; opacity: .75; display: block; margin-bottom: 8px; }
.cpg-event-hero-content p { font-size: 15px; opacity: .85; max-width: 600px; }
.cpg-photo-total {
  display: inline-block; margin-top: 12px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 13px;
  padding: 5px 14px; border-radius: 999px;
}

/* ── Photos Masonry Grid ── */
.cpg-photos-masonry {
  columns: 4;
  column-gap: 12px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}
@media(max-width:1100px){ .cpg-photos-masonry { columns: 3; } }
@media(max-width:760px) { .cpg-photos-masonry { columns: 2; padding: 20px; } }
@media(max-width:480px) { .cpg-photos-masonry { columns: 1; } }

.cpg-photo-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  border-radius: var(--cpg-radius-s);
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
}
.cpg-photo-item img {
  display: block; width: 100%; height: auto;
  transition: transform .4s ease;
}
.cpg-photo-item:hover img { transform: scale(1.04); }
.cpg-photo-zoom {
  position: absolute; inset: 0;
  background: var(--cpg-overlay);
  opacity: 0; transition: .3s;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.cpg-photo-item:hover .cpg-photo-zoom { opacity: 1; }

/* ── Lightbox ── */
.cpg-lightbox {
  position: fixed; inset: 0;
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
}
.cpg-lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, .93);
  backdrop-filter: blur(6px);
}
.cpg-lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpg-lb-content { text-align: center; }
#cpg-lb-image {
  max-width: 88vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--cpg-radius-s);
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  display: block;
}
.cpg-lb-close {
  position: fixed; top: 24px; right: 28px;
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 36px; cursor: pointer; z-index: 2;
  transition: color .2s; line-height: 1;
}
.cpg-lb-close:hover { color: #fff; }
.cpg-lb-prev, .cpg-lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none; color: #fff;
  font-size: 36px; cursor: pointer;
  padding: 16px 20px;
  border-radius: var(--cpg-radius-s);
  transition: background .2s;
  z-index: 2;
}
.cpg-lb-prev { left: 20px; }
.cpg-lb-next { right: 20px; }
.cpg-lb-prev:hover, .cpg-lb-next:hover { background: rgba(255,255,255,.25); }
.cpg-lb-counter {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  margin-top: 12px;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

/* ── No Content ── */
.cpg-no-content {
  text-align: center;
  padding: 80px 40px;
  color: var(--cpg-muted);
}
.cpg-no-content .cpg-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.cpg-no-content p { font-size: 16px; }
.cpg-back-btn {
  display: inline-block; margin-top: 20px;
  padding: 10px 24px;
  background: var(--cpg-gold);
  color: #fff; border-radius: var(--cpg-radius-s);
  text-decoration: none; font-weight: 500;
  transition: background .2s;
}
.cpg-back-btn:hover { background: #b8914d; }

/* ── Responsive ── */
@media(max-width: 768px) {
  .cpg-breadcrumb, .cpg-clients-grid, .cpg-events-grid,
  .cpg-section-title, .cpg-photos-masonry { padding-left: 20px; padding-right: 20px; }
  .cpg-client-hero-content, .cpg-event-hero-content { padding: 24px 20px; }
}
