/*
Theme Name: JD Minimal
Theme URI: https://example.com/
Author: JD
Description: Minimal white theme with left sidebar, logo, portfolio cards, galleries, and contact form (no plugins).
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: jd-minimal
*/

:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#666666;
  --border:#e9e9e9;
  --sidebar-w:340px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;

  --lb-bg: rgba(0,0,0,.90);
  --lb-radius: 18px;
  --lb-shadow: 0 20px 60px rgba(0,0,0,.35);
  --lb-close-bg: rgba(20,20,20,.6);
  --lb-close-border: rgba(255,255,255,.25);
  --lb-close-size: 44px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  line-height:1.5;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.85; }

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

/* Sidebar */
.sidebar{
  width:var(--sidebar-w);
  padding:28px 24px;
  border-right:none;
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  background:var(--bg);
  display:flex;
  flex-direction:column;
  gap:24px;
}
.brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.brand a{
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.custom-logo{
  max-width:220px;
  height:auto;
  display:block;
}

/* Menu */
.nav{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:100px;
}
.nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.nav a{
  font-size:13px;
  letter-spacing:.20em;
  text-transform:uppercase;
  color:var(--text);
  padding:6px 0;
  display:inline-flex;
}
.nav .current-menu-item > a,
.nav .current_page_item > a{
  color:#111;
  font-weight:700;
}

/* Sidebar footer */
.sidebar-footer{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-top:18px;
}
.social-icons{
  display:flex;
  gap:12px;
  align-items:center;
}
.social-link{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--text);
  background:#fff;
}
.social-link:hover{ background:#f7f7f7; }
.sidebar-copyright{
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
  letter-spacing:.08em;
}

/* Content */
.content{
  margin-left:var(--sidebar-w);
  width:calc(100% - var(--sidebar-w));
  padding:40px;
}
.container{ max-width:1100px; }

/* Homepage hero */
.front-page .container,
.home .container{
  max-width:none;
  width:100%; 
}

.hero-image{
  width:95%;
  height:95vh;
/*  max-width:100%; */
  margin:0 !important;
  transform:translateY(-20px);
/*  will-change:transform; */
  border-radius:0;
  overflow:hidden;
  background:transparent;
  position:relative;
  box-shadow:none;
  border:none;
}
/*.hero-image::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.15);
  z-index:2;
}*/
.hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
/*  transform:none;
  position:relative;
  z-index:1;*/
}
.hero-image-link{
  display:block;
  cursor:pointer;
  opacity:1;
}
.hero-image-link:hover,
.hero-image-link:focus{
  opacity:1;
}

/* Homepage image - mobile responsive */
@media (max-width: 768px){

.heto-image{
  width:100%;
  height:70vh;
  margin:0 !important;
  transform:translateY(0);
}

.hero-image img{
  width:100%
  height:100%
  object-fit:cover;
  display:block;
}

}

/* Titles */
.page-title{
  font-size:18px;
  letter-spacing:.02em;
  margin:0 0 18px 0;
}

/* Portfolio cards */
.cards{
  display:grid;
  grid-template-columns:repeat(2, 500px);
  gap:48px;
  width:fit-content;
  margin:0 auto;
  justify-content:center;
}
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:0;
  overflow:hidden;
  box-shadow:0 28px 90px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.10);
  transition:transform .25s ease, box-shadow .25s ease;
}
.card:hover{
  transform:translateY(-2px);
  box-shadow:0 34px 110px rgba(0,0,0,.22), 0 10px 28px rgba(0,0,0,.12);
}
.card a,
.card a:hover,
.card a:focus{
  display:block;
  width:100%;
  height:100%;
  opacity:1;
}
.card-media{
  width:100%;
  aspect-ratio:1 / 1;
  background:#f6f6f6;
  overflow:hidden;
  position:relative;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .45s ease;
}
.card:hover .card-media img{ transform:scale(1.02); }
.card-overlay-title{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;
  font-size:14px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#fff;
  background:rgba(0,0,0,.18);
  opacity:1;
}

/* Gallery */
.jd-gallery{
  column-count: 4;
  column-gap: 5px;
}
.jd-gallery a{
  display:block;
  break-inside:avoid;
  margin-bottom:5px;
  border-radius:0;
  overflow:hidden;
  border:1px solid var(--border);
  background:#fff;
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 1;
}
.jd-gallery a:hover,
.jd-gallery a:focus{
  opacity:1;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.jd-gallery img{
  width:100%;
  height:auto;
  display:block;
}

@media (max-width: 900px){
.jd-gallery{
 column-count: 2;
}
}

@media (max-width: 520px){
.jd-gallery{
 column-count: 1;
}
}

/* Contact form */
.jd-form{
  max-width:560px;
  margin:130px auto 0 auto;
}
.jd-form-inner{
  border:1px solid var(--border);
  background:#fff;
  box-shadow:0 18px 60px rgba(0,0,0,.08), 0 2px 10px rgba(0,0,0,.04);
  padding:28px;
}
.jd-field{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:18px;
}
.jd-field label{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.jd-field input,
.jd-field textarea{
  font:inherit;
  padding:14px 14px;
  border-radius:0;
  border:1px solid var(--border);
  outline:none;
  background:#fff;
}
.jd-field input:focus,
.jd-field textarea:focus{ border-color:#cfcfcf; }

.jd-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  padding:13px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#111;
  color:#fff;
  cursor:pointer;
  font-size:13px;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.jd-button[disabled]{ opacity:.65; cursor:default; }

.jd-note{ margin-top:10px; font-size:13px; color:var(--muted); }

.jd-alert,
.jd-ajax-message{
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:0;
  background:#fafafa;
  margin:0 0 18px 0;
}
.jd-ajax-message.is-success{
  border-color:#d8e6d2;
  background:#f6fbf4;
}
.jd-ajax-message.is-error{
  border-color:#ead3d3;
  background:#fcf5f5;
}

/* Honeypot hidden field */
.jd-hp-wrap{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

/* Optional footer if used */
.site-footer{
  margin-top:40px;
  font-size:12px;
  color:var(--muted);
}

/* Specific page tweaks */
.page-template-page-portfolio-php .page-title,
.page-template-page-contact-php .page-title,
.page.page-id-about .page-title{
  display:none;
}
.page-template-page-portfolio-php .content{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
}
.page-template-page-portfolio-php .container{
  max-width:none;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.page-template-page-portfolio-php .cards{
  transform:translateX(-16px);
}

/* Responsive */
@media (max-width: 1200px){
  .cards{
    grid-template-columns:repeat(2, minmax(340px, 1fr));
    width:100%;
  }
}
@media (max-width: 900px){
  .sidebar{
    position:relative;
    width:100%;
    border-right:none;
    border-bottom:1px solid var(--border);
  }
  .content{
    margin-left:0;
    width:100%;
    padding:22px;
  }
  .site{ flex-direction:column; }

  .cards{
    grid-template-columns:1fr;
    width:100%;
    gap:24px;
    transform:none;
  }

 /* .jd-gallery{ grid-template-columns:repeat(2, minmax(0, 1fr)); }*/
  .jd-form{ margin:60px auto 0 auto; }
  .jd-form-inner{ padding:20px; }
  .page-template-page-portfolio-php .content{ min-height:auto; }
}
@media (max-width: 520px){
/*  .jd-gallery{ grid-template-columns:1fr; }*/
}

/* Lightbox */
.jd-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.96);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:0;
}
.jd-lightbox.is-open{ display:flex; }
.jd-lightbox-inner{
  position:relative;
  max-width:100vw;
  max-height:100vh;
  max-width:none;
  max-height:none;
  display:flex;
  align-items:center;
  justify-content:center;
}
.jd-lightbox-img{
  max-width:100vw;
  max-height:100vh;
  width:auto;
  height:auto;
  border-radius:0;
  box-shadow:none;
  object-fit:contain;
}
.jd-lightbox-close{
  position:absolute;
  top:30px;
  right:0;
  transform: translate(100%, -100%);
  width:30px;
  height:30px;
  padding:0;
  border-radius:0;
  border:none;
  background:var(--lb-close-bg);
  color:#fff;
  cursor:pointer;
  font-size:32px;
  line-height:1;
  text-align:center;
  z-index:10000;
  box-shadow:none;
}
.jd-lightbox-close:hover{ background:rgba(20,20,20,.85);
}
.jd-lightbox-prev,
.jd-lightbox-next{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:transparent;
  border:none;
  color:#fff;
  font-size:16px;
  font-weight:100;
  line-height:1;
  cursor:pointer;
  padding:0 8px;
  z-index:10000;
  box-shadow:none;
  opacity:55;
 /* pointer-events:none;
  transition:opacity .25s ease;*/
}
.jd-lightbox-prev{
  left:-36px;
}
.jd-lightbox-next{
  right:-36px;
}
/*.jd-lightbox:hover .jd-lightbox-prev,
.jd-lightbox:hover .jdlightbox-next{
  opacity:.65;
  pointer-event:auto;
}*/

.jd-lightbox-prev:hover,
.jd-lightbox-next:hover,
.jd-lightbox-prev:focus,
.jd-lightbox-next:focus{
  background:transparent;
  border:none;
  box-shadow:none;
  opacity:.9;
}
/*@media (hover:none){
  .jd-lightbox-prev,
  .jd-lightbox-next{
  opacity:.65;
  pointer-events:auto;
}*/
}

/* Hide featured image on gallery pages */
.page .wp-post-image{
  display:none;
}

/* Portfolio child pages (PORTRAITS / FINE ART NUDE): wider gallery area */
.page-child .container{
  background:#111;
  max-width: none;
}

.page-child .content{
  background:#111;
}

.page-child .page-title{
  color:#fff;
}

/* Cookie consent */
.jd-cookie-consent{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:99999;
  max-width:420px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:
    0 18px 60px rgba(0,0,0,.12),
    0 4px 14px rgba(0,0,0,.06);
  padding:18px 18px;
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease;
}

.jd-cookie-consent.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.jd-cookie-inner{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.jd-cookie-text{
  font-size:13px;
  line-height:1.6;
  color:var(--muted);
}

.jd-cookie-button{
  align-self:flex-start;
  background:#111;
  color:#fff;
  border:none;
  padding:10px 18px;
  cursor:pointer;
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.jd-cookie-button:hover{
  opacity:.9;
}

/* Mobile */
@media (max-width:640px){

  .jd-cookie-consent{
    left:16px;
    right:16px;
    bottom:16px;
    max-width:none;
  }

  .jd-cookie-button{
    width:100%;
    justify-content:center;
  }

}

.privacy-link{
  display:inline-block;
  margin-top:6px;
  color:var(--muted);
  text-decoration:none;
  font-size:12px;
  letter-spacing:.10;
  text-transform:uppercase;
}

.privacy-link:hover{
  opacity:.8;
  text-decoration:underline;
}

/* Privacy Policy page */

.page-id-3 .entry h2{
  margin-top:10px;
  margin-bottom:18px;
  font-size: 18px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:.08em;
}

.page-id-3 .entry h3{
  margin-top:28px;
  margin-bottom:8px;
  font-size:16px;
  font-weight:500;
  line-height:1.4;
  letter-spacing:.06em;
  text-transform:none;
}

.page-id-3 .entry p{
  margin:0 0 14px 0;
  line-height:1.8;
  font-size:14px;
  font-weight:300;
  letter-spacing:.06em;
  color:#444;
}

.page-id-3 .entry ul{
  margin:0 0 18px 20px;
  padding:0;
}

.page-id-3 .entry li{
  margin-bottom:10px;
  line-height:1.1;
  font-size:14px;
  font-weight:300;
  letter-spacing:.06em;
  color:#444;
}

.page-id-3 .entry strong{
  color:#111;
  font-weight:600;
}
