/* Madison Tattoo Company — Crisp Industrial Minimal
   Pages:
   - Home: brick → white gallery panel → mahogany
   - Portfolio: aura vignette + bright center for art
   - Contact/About: clean paper + subtle vignette
*/

:root{
  /* text tokens */
  --text-strong: rgba(15,15,15,0.92);
  --text-body: rgba(15,15,15,0.74);
  --text-muted: rgba(15,15,15,0.56);
  --text-strong-on-dark: rgba(245,245,243,0.96);
  --text-body-on-dark: rgba(245,245,243,0.84);
  --text-muted-on-dark: rgba(245,245,243,0.68);

  --soft-black:#0F0F0F;
  --charcoal:#1E1E1E;
  --warm-concrete:#B8B4AE;
  --bone-white:#F5F5F3;
  --oxide:#6F3B2C;
  --steel:#4A5560;

  --maxw:1120px;
  --radius:14px;

  --border:1px solid rgba(184,180,174,.20);
  --shadow:0 16px 40px rgba(0,0,0,.22);
  --shadow-soft:0 10px 26px rgba(0,0,0,.14);

  --ease:cubic-bezier(.2,.8,.2,1);
  --dur:160ms;

  --mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.55;
  background:var(--soft-black);
  color:var(--bone-white);
}

img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
p{margin:0 0 1rem;color:rgba(245,245,243,.88)}
h1,h2,h3{margin:0 0 .75rem;line-height:1.12}
h1{font-size:clamp(2rem,4vw,3.25rem);letter-spacing:-.02em}
h2{font-size:clamp(1.35rem,2.2vw,2rem);letter-spacing:-.01em}

.small-label{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.72rem;
  color:rgba(184,180,174,.95);
}

.container{width:min(var(--maxw),calc(100% - 2rem));margin-inline:auto}

/* Skip */
.skip-link{
  position:absolute;left:-999px;top:0;
  padding:.75rem 1rem;background:var(--bone-white);color:var(--soft-black);
  border-radius:10px;z-index:9999;
}
.skip-link:focus{left:1rem;top:1rem;outline:3px solid rgba(111,59,44,.65);outline-offset:2px}

/* Header (same across pages) */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(15,15,15,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(184,180,174,.14);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.95rem 0;
}
.wordmark{display:flex;flex-direction:column;gap:.25rem}
.wordmark a{
  font-weight:650;letter-spacing:.08em;text-transform:uppercase;font-size:.92rem;
}
.wordmark .sub{
  font-family:var(--mono);
  text-transform:uppercase;letter-spacing:.18em;font-size:.68rem;
  color:rgba(184,180,174,.92);
}
.nav{display:flex;align-items:center;gap:.25rem}
.nav a{
  display:inline-flex;align-items:center;
  padding:.55rem .75rem;border-radius:999px;
  color:rgba(245,245,243,.86);
  border:1px solid transparent;
  transition:background var(--dur) var(--ease),border-color var(--dur) var(--ease),transform var(--dur) var(--ease);
}
.nav a:hover{background:rgba(30,30,30,.7);border-color:rgba(184,180,174,.16);transform:translateY(-1px)}
.nav a[aria-current="page"]{background:rgba(30,30,30,.85);border-color:rgba(184,180,174,.24);color:rgba(245,245,243,.96)}
@media (max-width:720px){
  /* Mobile header: keep content visually centered */
  .nav{width:100%;flex-wrap:wrap;justify-content:center}
  .wordmark{width:100%;align-items:center;text-align:center}
}

/* Buttons */
.button{
  display:inline-flex;justify-content:center;align-items:center;
  padding:.85rem 1.05rem;border-radius:999px;
  border:1px solid rgba(184,180,174,.22);
  background:rgba(245,245,243,.04);
  color:rgba(245,245,243,.92);
  font-weight:600;
  transition:transform var(--dur) var(--ease),background var(--dur) var(--ease),border-color var(--dur) var(--ease);
}
.button:hover{transform:translateY(-1px);background:rgba(245,245,243,.06);border-color:rgba(184,180,174,.32)}
.button--primary{background:rgba(111,59,44,.20);border-color:rgba(111,59,44,.55)}
.button--primary:hover{background:rgba(111,59,44,.26);border-color:rgba(111,59,44,.72)}

/* Sections */
main{padding:0 0 3rem}
.section{padding:3rem 0}

/* HOME */
.page-home{background:var(--soft-black)}
.home-hero{
  overflow:hidden;
  position:relative;
  padding:4.5rem 0 3.25rem;
}
.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("/.netlify/images?url=/images/hero/tattoo-chair.png&w=1600&fm=webp&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.06) saturate(0.92);
  opacity: 1;
}
.home-hero::after{
  content:"";
  position:absolute;
  inset:0;
  /* Keeps text readable without crushing the photo */
  background:
    radial-gradient(900px 600px at 50% 45%, rgba(15,15,15,0.20), rgba(15,15,15,0.58));
}
.home-hero>.container{position:relative;z-index:1}
.hero-stack{max-width:760px;margin:0 auto;text-align:center}
.hero-title{
  font-size:clamp(2.4rem,5vw,3.6rem);
  letter-spacing:-.01em;
  text-transform:uppercase;
}
.hero-artist{
  margin-top:.75rem;
  font-family:var(--mono);
  letter-spacing:.2em;
  text-transform:uppercase;
  font-size:.78rem;
  color:rgba(245,245,243,.92);
}
.hero-line{margin-top:1rem;color:rgba(245,245,243,.90)}
.hero-actions{margin-top:1.35rem;display:flex;justify-content:center;gap:.85rem;flex-wrap:wrap}

/* White gallery panel */
.panel{
  background:var(--bone-white);
  color:var(--soft-black);
  position:relative;
}
.panel::before{
  content:"";position:absolute;inset:0;
  background:url("../images/ambient/texture-grain.svg") 0 0/700px 700px repeat;
  opacity:.14;pointer-events:none;
}
.panel>.container{position:relative}
.panel h2,.panel p{color:rgba(15,15,15,.86)}
.panel p{max-width:72ch}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(12,1fr);gap:1.25rem}
.gallery-item{
  grid-column:span 6;
  border-radius:calc(var(--radius) - 2px);
  overflow:hidden;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(15,15,15,.12);
  box-shadow:0 12px 24px rgba(0,0,0,.10);
  transition:transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position:relative;
  z-index:1;
}
.gallery-item:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(0,0,0,.14)}
.gallery-item a,.gallery-item button{display:block;width:100%;height:100%;background:transparent;border:none;padding:0;cursor:pointer}
.gallery-item img{width:100%;height:100%;object-fit:cover;display:block;background:transparent}
@media (max-width:720px){.gallery-item{grid-column:span 12}}

/* Featured grid: 2 centered rows of 3 thumbnails */
[data-featured-grid]{
  grid-template-columns:repeat(3,1fr);
  gap:0.75rem;
  max-width:800px;
  margin-left:auto;
  margin-right:auto;
}
[data-featured-grid] .gallery-item{grid-column:span 1}
@media (max-width:600px){[data-featured-grid]{grid-template-columns:repeat(2,1fr)}}

/* Gallery item with Instagram link - hidden per user request */
.gallery-item{position:relative}
.gallery-item-ig-link{
  display:none;
}

/* Mahogany base */
.base{position:relative;background:var(--soft-black);padding:2.25rem 0}
.base::before{
  content:"";position:absolute;inset:0;
  background:url("../images/ambient/texture-mahogany.svg") center/cover no-repeat;
  opacity:.95;
}
.base::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom, rgba(15,15,15,.30), rgba(15,15,15,.62))}
.base>.container{position:relative;z-index:1}
.cta-strip{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.2rem 1.1rem;border-radius:var(--radius);
  border:1px solid rgba(184,180,174,.18);
  background:rgba(15,15,15,.35);
}
.cta-strip p{margin:0;color:rgba(245,245,243,.92)}
@media (max-width:720px){.cta-strip{flex-direction:column;align-items:flex-start}}

/* PORTFOLIO */
.page-portfolio{
  color:var(--soft-black);
  background:var(--bone-white);
  min-height:100vh;
  position:relative;
}
.page-portfolio::before{
  content:"";position:fixed;inset:0;
  background:
    radial-gradient(900px 700px at 50% 45%, rgba(245,245,243,1) 0%, rgba(245,245,243,1) 50%, rgba(30,30,30,.24) 78%, rgba(15,15,15,.96) 100%),
    url("../images/ambient/texture-aura.svg");
  background-size:cover,cover;
  background-position:center,center;
  background-repeat:no-repeat,no-repeat;
  opacity:1;
  pointer-events:none;
  z-index:-1;
}
.page-portfolio main{padding-top:2.25rem}
.portfolio-wrap{width:min(1600px, calc(100% - 2rem));margin:0 auto;padding:0 0 1.5rem}
.portfolio-title{text-align:center;margin:2rem 0 1.75rem}
.portfolio-title h1{font-size:clamp(2.1rem,4vw,3rem);letter-spacing:-.02em;color:rgba(15,15,15,.88)}
.portfolio-title p{margin:.75rem auto 0;max-width:70ch;color:rgba(15,15,15,.70)}
.portfolio-grid .gallery-item{
  background:#fff;
  border:1px solid rgba(15,15,15,.12);
  box-shadow:0 14px 30px rgba(0,0,0,.14);
}
.portfolio-grid .gallery-item:hover{box-shadow:0 20px 44px rgba(0,0,0,.18)}
.portfolio-actions{display:flex;justify-content:center;gap:.9rem;flex-wrap:wrap;margin-top:1.25rem}

/* CONTACT/ABOUT */
.page-contact,
.page-about{
  color:var(--soft-black);
  background:var(--bone-white);
  min-height:100vh;
  position:relative;
}
.page-contact::before{
  content:"";position:fixed;inset:0;
  background:
    radial-gradient(900px 650px at 50% 40%, rgba(245,245,243,1) 0%, rgba(245,245,243,1) 62%, rgba(30,30,30,.18) 82%, rgba(15,15,15,.92) 100%),
    url("../images/ambient/texture-grain.svg");
  background-size:cover,900px 900px;
  background-position:center,0 0;
  background-repeat:no-repeat,repeat;
  opacity:1;
  pointer-events:none;
  z-index:-1;
}
.page-contact main{padding-top:2.25rem}
.page-about main{padding-top:2.25rem}

.card{
  background:rgba(245,245,243,.92);
  border:1px solid rgba(15,15,15,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  padding:1.25rem;
}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}

.kv{display:grid;gap:.55rem;margin-top:.75rem}
.kv div{
  display:flex;flex-wrap:wrap;gap:.5rem .75rem;align-items:baseline;
  padding:.65rem .75rem;border-radius:12px;
  border:1px solid rgba(15,15,15,.10);
  background:rgba(245,245,243,.82);
}
.kv dt{
  font-family:var(--mono);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.72rem;
  color:rgba(15,15,15,.62);
}
.kv dd{margin:0;color:rgba(15,15,15,.88)}
.kv a{text-decoration:underline;text-underline-offset:3px}

form{display:grid;gap:.85rem}
.field label{display:block;font-size:.95rem;margin-bottom:.35rem;color:rgba(15,15,15,.88)}
.field input,.field textarea{
  width:100%;
  padding:.85rem .9rem;
  border-radius:12px;
  border:1px solid rgba(15,15,15,.16);
  background:rgba(255,255,255,.95);
  color:rgba(15,15,15,.92);
  outline:none;
  transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea{min-height:140px;resize:vertical}
.field input:focus,.field textarea:focus{
  border-color:rgba(111,59,44,.70);
  box-shadow:0 0 0 3px rgba(111,59,44,.18);
}
.hint{font-size:.92rem;color:rgba(15,15,15,.62)}
.inline-message{
  padding:.85rem .95rem;border-radius:12px;
  border:1px solid rgba(15,15,15,.12);
  background:rgba(74,85,96,.10);
  color:rgba(15,15,15,.88);
}
.inline-message[hidden]{display:none}

/* Payment section */
.kv-payment .payment-preferred{
  font-size:.82rem;
  color:rgba(111,59,44,.88);
  font-weight:500;
}
.kv-payment .payment-cash{
  display:inline-block;
  color:rgba(15,15,15,.72);
  font-size:.95rem;
}
.kv-social dd{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem .85rem;
  align-items:baseline;
}

/* Footer */
@media (max-width:900px){}
/* Focus */
:focus-visible{outline:3px solid rgba(111,59,44,.55);outline-offset:2px;border-radius:10px}

/* Lightbox */
.lightbox{position:fixed;inset:0;display:grid;place-items:center;padding:1rem;background:rgba(15,15,15,.86);backdrop-filter:blur(8px);z-index:10000}
.lightbox[hidden]{display:none}
.lightbox-dialog{width:min(980px,100%);max-height:92vh;border-radius:var(--radius);border:1px solid rgba(184,180,174,.22);background:rgba(30,30,30,.80);box-shadow:var(--shadow);overflow:hidden}
.lightbox-bar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem .85rem;border-bottom:1px solid rgba(184,180,174,.14)}
.lightbox-title{font-family:var(--mono);text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:rgba(184,180,174,.92)}
.lightbox-close{
  all: unset;
  cursor: pointer;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(184,180,174,.30);
  background: rgba(15,15,15,.45);
}
.lightbox-close:hover{background:rgba(255,255,255,.10)}
.lightbox-body{padding:.85rem}
.lightbox-body img{width:100%;max-height:76vh;object-fit:contain;border-radius:calc(var(--radius) - 6px)}
.lightbox-body video{width:100%;max-height:76vh;object-fit:contain;border-radius:calc(var(--radius) - 6px);background:#000}


/* --- Portfolio refinements: stronger vignette + cleaner center + integrated footer --- */
.page-portfolio{
  /* stronger edges, brighter center */
  background:
    radial-gradient(1100px 820px at 50% 42%,
      rgba(245,245,243,1) 0%,
      rgba(245,245,243,1) 46%,
      rgba(230,230,228,0.98) 58%,
      rgba(90,90,90,0.28) 76%,
      rgba(15,15,15,0.92) 100%);
}

.page-portfolio::before{
  opacity: 0.62; /* dial back literal strokes; keep aura */
}

.page-portfolio .portfolio-grid .gallery-item{
  border: 1px solid rgba(15,15,15,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.page-portfolio .portfolio-grid .gallery-item:hover{
  box-shadow: 0 26px 56px rgba(0,0,0,0.22);
}

/* Portfolio Gallery Grid */
.page-portfolio .portfolio-gallery{
  margin: 0.75rem 0;
}

.page-portfolio .gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.page-portfolio .gallery-grid .gallery-item{
  background: #fff;
  border: 1px solid rgba(15,15,15,0.10);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-portfolio .gallery-grid .gallery-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

.page-portfolio .gallery-grid .gallery-item a{
  display: block;
}

.page-portfolio .gallery-grid .gallery-item img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(30,30,30,0.85);
  display: block;
}

.page-portfolio .gallery-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.page-portfolio .gallery-controls span{
  color: rgba(15,15,15,0.68);
  font-size: 0.9rem;
}

.page-portfolio .gallery-loading{
  color: rgba(15,15,15,0.60);
  font-style: italic;
}

@media (max-width: 540px){
  .page-portfolio .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
}

.page-portfolio .page-portfolio .site-footer .container{
  background: rgba(15,15,15,0.66);
  border: 1px solid rgba(184,180,174,0.14);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}


/* Instagram profile embed */
.ig-embed-wrap{padding:1rem 0 0; text-align:center;}
.ig-fallback{margin:.85rem auto 0; max-width: 60ch; color: rgba(15,15,15,0.68);}
.ig-fallback a{color: rgba(15,15,15,0.85); text-decoration: underline; text-underline-offset: 3px;}


/* --- Portfolio: wider + taller Instagram embed (Option A) --- */
.page-portfolio .portfolio-wrap{
  width: min(1600px, calc(100% - 2rem));
}

@media (min-width: 1100px){
  .page-portfolio .portfolio-wrap{
    width: min(1760px, calc(100% - 3rem));
  }
}

/* Make IG embed occupy more vertical space and avoid "half page" look */
.ig-embed-frame{
  width: 100%;
  min-height: 1100px;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 1rem 0 0;
}

@media (max-width: 700px){
  .ig-embed-frame{ min-height: 850px; }
}

/* Let Instagram embed expand to container width */
.ig-embed-frame blockquote,
.ig-embed-frame .instagram-media{
  width: 100% !important;
  max-width: none !important;
}


/* --- Header brand mark --- */
.header-brand{
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-mark img{
  height: 44px;
  width: auto;
  opacity: 0.95;
}

@media (max-width: 720px){
  .header-brand{
    flex-direction: column;
  }
  .brand-mark img{
    height: 36px;
  }
}

/* --- Header: large left circular mark --- */
.header-left{
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.brand-mark-left img{
  height: 96px;
  width: 96px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 720px){
  .header-left{
    flex-direction: column;
  }
  .brand-mark-left img{
    height: 72px;
    width: 72px;
  }
}

/* --- Header left mark with hero overlap --- */
.site-header{
  position: sticky;
  z-index: 20;
}

.brand-mark-left{
  position: relative;
  z-index: 30;
  margin-right: 1.25rem;
}

.brand-mark-left img{
  height: 96px;
  width: 96px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateY(28px); /* overlap hero */
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* Mobile adjustment */
@media (max-width: 720px){
  .brand-mark-left img{
    height: 72px;
    width: 72px;
    transform: translateY(18px);
  }
}


/* 3-column grid keeps center truly centered */
.header-inner{
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  grid-template-areas:
    "mark wordmark spacer"
    "nav nav nav";
  align-items: center;
  justify-items: center;
  text-align: center;
}

.brand-mark-left{ grid-area: mark; justify-self: start; z-index: 10; position: relative; }
.wordmark{ grid-area: wordmark; justify-self: center; }
.nav{ grid-area: nav; justify-self: center; }
.header-spacer{ grid-area: spacer; }

.brand-mark-left img{
  display:block;
  height: 96px;
  width: 96px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  z-index: 20;
  transform: translateY(28px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.38);
}

/* Overlap hero on home */
.page-home .home-hero{ position: relative; z-index: 1; }
.page-home .site-header{ z-index: 999; }

/* Ensure Featured Work panel is above any header overlap */
.page-home .panel{ position: relative; z-index: 1000; }

@media (max-width: 720px){
  .header-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "mark"
      "wordmark"
      "nav";
    justify-items: center;
    text-align: center;
  }
  .brand-mark-left{ justify-self: center; }
  .brand-mark-left img{
    height: 72px;
    width: 72px;
    transform: translateY(18px);
  }
}


/* Contact layout safety */
.contact-grid{
  grid-auto-rows: minmax(min-content, max-content);
}




/* Footer (home-style, identical on all pages) */
@media (max-width: 900px){
  }



/* Portfolio – Large Instagram embed */
.ig-embed-large{
  width: min(1100px, 100%);
  margin: 2.5rem auto 0;
}

.ig-embed-large blockquote.instagram-media{
  width: 100% !important;
  max-width: 100% !important;
  min-height: 900px;
}

@media (min-width: 1200px){
  .ig-embed-large{
    width: min(1300px, 100%);
  }
  .ig-embed-large blockquote.instagram-media{
    min-height: 1100px;
  }
}



/* Make Instagram embed appear larger visually */
@media (max-width: 700px){
  }



/* was roomier */
.portfolio-title{
  margin: 1.25rem 0 0.9rem;
}
.portfolio-title h1{
  margin-bottom: .5rem;
}
@media (max-width: 700px){
  .page-portfolio main{ padding-top: 1rem; }
  .portfolio-title{ margin: 1rem 0 .75rem; }
}







/* lighter, cleaner overlay (less fog) */
.page-contact::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      900px 650px at 50% 40%,
      rgba(245,245,243,0.72) 0%,
      rgba(245,245,243,0.60) 50%,
      rgba(15,15,15,0.45) 100%
    );
  z-index: -1;
}

/* =========================================================
   Maintenance pass: clarity, contrast, and maintainability
   (single place for surface rules + link visibility)
   ========================================================= */

/* Default heading/body hierarchy on light surfaces */
.page-contact, .page-portfolio{
  color: var(--text-body);
}

.page-contact h1, .page-contact h2, .page-contact h3,
.page-portfolio h1, .page-portfolio h2, .page-portfolio h3{
  color: var(--text-strong);
}

.page-contact p, .page-portfolio p{
  color: var(--text-body);
}

.small-label{ color: var(--text-muted); }

/* Link visibility on light cards (prevents 'underline only' issue) */
.page-contact .card a,
.page-contact .kv a,
.page-contact .page-contact .card a:hover,
.page-contact .kv a:hover,
.page-contact /* Header: always readable */
.site-header{
  background: rgba(15,15,15,0.92);
}
.wordmark a{ color: var(--bone-white); }
.wordmark .sub{ color: rgba(245,245,243,0.82); }
.nav a{ color: rgba(245,245,243,0.88); }

/* Portfolio condensation (tight but breathable) */
.page-portfolio main{ padding-top: 1.25rem; }
.portfolio-title{ margin: 1.25rem 0 0.9rem; text-align: center; }
.portfolio-title p{ display:none; }

/* Instagram embed sizing strategy:
   Note: IG profile embed hard-limits layout; scale provides best 'bigger' feel. */
@media (max-width: 700px){
  }

/* Contact page background: crisp photo + light glass overlay */
.page-contact{
  position: relative;
  min-height: 100vh;
  background: none;
}
.page-contact::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/.netlify/images?url=/images/backgrounds/contact-bg.jpg&w=1600&fm=webp&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.08) saturate(1.05);
  z-index: -2;
}
.page-contact::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      900px 650px at 50% 40%,
      rgba(245,245,243,0.72) 0%,
      rgba(245,245,243,0.60) 50%,
      rgba(15,15,15,0.45) 100%
    );
  z-index: -1;
}

/* Footer: ensure consistent black bar across backgrounds */
/* --- Header mobile alignment polish --- */
.wordmark{
  text-align: center;
}
.wordmark .sub{
  display: grid;
  gap: .15rem;
}
.wordmark .sub > div{
  line-height: 1.2;
}

/* Ensure header grid centers cleanly on mobile */
@media (max-width: 720px){
  .header-inner{
    justify-items: center;
    align-items: center;
  }
  .brand-mark-left{
    justify-self: center !important;
    margin-right: 0;
  }
  .nav{
    width: 100%;
    justify-content: center;
  }
  .nav a{
    padding: .5rem .7rem;
  }
}

/* Footer (canonical — identical across pages) */
.site-footer{
  border-top: 1px solid rgba(184,180,174,0.14);
  padding: 2rem 0 2.5rem;
  background: var(--soft-black); /* fully opaque to look identical on all page backgrounds */
  color: rgba(245,245,243,0.92);
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.25rem;
}

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

.footer-title{
  font-weight: 650;
  margin-bottom: .5rem;
  letter-spacing: .02em;
  color: rgba(245,245,243,0.96);
}

.site-footer .small-label{
  color: rgba(245,245,243,0.72);
}

.footer-links{
  display:flex;
  flex-direction: column;
  gap: .45rem;
  color: rgba(245,245,243,0.88);
}

.footer-links a{
  text-decoration: underline;
  text-decoration-color: rgba(184,180,174,0.32);
  text-underline-offset: 3px;
}

.footer-links a:hover{
  text-decoration-color: rgba(245,245,243,0.60);
}

.footer-meta{
  margin-top: 1rem;
  color: rgba(184,180,174,0.9);
  font-size: .92rem;
}



/* Ensure selection highlight doesn't look like a black bar */
.page-contact .kv a::selection{
  background: rgba(15,15,15,0.12);
  color: var(--text-strong);
}



/* Contact Details: standard link hover (no black highlight) */
.page-contact .kv a,
.page-contact .kv a:visited{
  color: var(--text-strong);
  background: transparent;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(15,15,15,0.28);
}

.page-contact .kv a:hover,
.page-contact .kv a:focus{
  background: transparent;
  color: var(--text-strong);
  text-decoration-color: rgba(15,15,15,0.65);
}

/* Prevent browser default selection/active highlight */
.page-contact .kv a:active{
  background: transparent;
}



/* Contact Details alignment + social block */
.page-contact .kv div,
.page-contact .kv .kv-social{
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  column-gap: 1rem;
}

.page-contact .kv dt{
  margin: 0;
}

.page-contact .kv dd{
  margin: 0;
}

.page-contact .kv .kv-social dd{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.1rem;
  align-items: center;
}

.page-contact .kv .kv-social a{
  text-decoration: underline;
  text-decoration-color: rgba(15,15,15,0.28);
  text-underline-offset: 3px;
}



/* Portfolio page: brick background (page-specific) */
.page-portfolio{
  background: none;
  position: relative;
  min-height: 100vh;
}

.page-portfolio::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/.netlify/images?url=/images/backgrounds/portfolio-brick.jpg&w=1600&fm=webp&q=80");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(1.05) saturate(0.95);
  z-index: -2;
}

.page-portfolio::after{
  content: "";
  position: fixed;
  inset: 0;
  /* light readable overlay (keeps content crisp on brick) */
  background:
    radial-gradient(900px 650px at 50% 40%,
      rgba(245,245,243,0.88) 0%,
      rgba(245,245,243,0.74) 55%,
      rgba(15,15,15,0.58) 100%);
  z-index: -1;
}



/* Portfolio Instagram embed card */
.portfolio-embed-card{
  background: rgba(245,245,243,0.92);
  border-radius: 22px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  margin: 1.5rem auto 0;
  width: fit-content;
  max-width: 100%;
}

/* Ensure embed stays centered within card */
.portfolio-embed-card .ig-embed-large{
  margin: 0 auto;
}





.page-home .wordmark{
  display: none !important;
}

/* Home header: keep the 3-column grid so the nav stays truly centered on the page.
   (Without the right-side spacer column, the nav centers in the remaining width and drifts right.) */
.page-home .header-inner{
  grid-template-columns: 120px 1fr 120px;
  grid-template-areas: "mark nav spacer";
}

.page-home .nav{
  grid-area: nav;
  justify-self: center;
}

.page-home .header-spacer{
  display: block;
}

.page-home .brand-mark-left{
  margin-right: 0;
}

.page-home .brand-mark-left img{
  transform: translateY(16px);
}

/* Mobile: stack icon + nav and center them */
@media (max-width: 720px){
  /* Mobile site header: keep everything centered (brand + wordmark + nav) */
  .header-inner{
    justify-items: center;
    text-align: center;
  }
  .nav{
    justify-content: center;
  }
}

/* Mobile: center top-of-page titles in card-style pages */
@media (max-width: 720px){
  .card .small-label,
  .card h1{
    text-align: center;
  }
}

/* Mobile home page: horizontal centered nav without vertical stacking */
@media (max-width: 720px){
  .page-home .header-inner{
    grid-template-columns: 1fr;
    grid-template-areas: "nav";
    justify-items: center;
    text-align: center;
    padding: 0.75rem 0;
  }
  .page-home .brand-mark-left{
    display: none;
  }
  .page-home .wordmark{
    display: none !important;
  }
  .page-home .header-spacer{
    display: none;
  }
  .page-home .nav{
    width: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.25rem;
  }
  .page-home .nav a{
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }
}

/* Mobile other pages: centered header with horizontal nav */
@media (max-width: 720px){
  .page-contact .header-inner,
  .page-portfolio .header-inner,
  body:not(.page-home) .header-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "wordmark"
      "nav";
    justify-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }
  .page-contact .brand-mark-left,
  .page-portfolio .brand-mark-left,
  body:not(.page-home) .brand-mark-left{
    display: none;
  }
  .page-contact .header-spacer,
  .page-portfolio .header-spacer,
  body:not(.page-home) .header-spacer{
    display: none;
  }
  .page-contact .wordmark,
  .page-portfolio .wordmark,
  body:not(.page-home) .wordmark{
    display: flex !important;
    align-items: center;
    text-align: center;
  }
  .page-contact .nav,
  .page-portfolio .nav,
  body:not(.page-home) .nav{
    width: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.25rem;
  }
  .page-contact .nav a,
  .page-portfolio .nav a,
  body:not(.page-home) .nav a{
    padding: 0.5rem 0.65rem;
    font-size: 0.9rem;
  }
}

/* --- Contact link background hardening (prevents black highlight in hosted mode) --- */
.page-contact{
  color-scheme: light;
}

.page-contact .kv a,
.page-contact .kv a:visited,
.page-contact .kv a:hover,
.page-contact .kv a:active,
.page-contact .kv a:focus,
.page-contact .kv a:focus-visible{
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  color: rgba(15,15,15,0.92) !important;
  -webkit-text-fill-color: rgba(15,15,15,0.92);
  text-decoration-color: rgba(15,15,15,0.35);
}

.page-contact .kv a:hover,
.page-contact .kv a:focus-visible{
  text-decoration-color: rgba(15,15,15,0.65);
}

/* If any forced-color mode is active, keep links readable */
@media (forced-colors: active){
  .page-contact .kv a{ forced-color-adjust: none; color: LinkText !important; }
}




@media (max-width: 720px){
  .page-portfolio .portfolio-panel{
    margin: 1.25rem auto 2.25rem;
    padding: 1.25rem 1.1rem 1.35rem;
    border-radius: 18px;
  }
}



/* Portfolio: simple centered white wrapper (final) */
.page-portfolio .portfolio-wrap{
  display:flex;
  justify-content:center;
  padding: 1.5rem 0 2.25rem;
}

.page-portfolio .portfolio-small-panel{
  display:inline-block;
  background: rgba(245,245,243,0.94);
  border: 1px solid rgba(15,15,15,0.12);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.20);
  padding: 1.1rem 1.1rem 1.25rem;
  text-align:center;
  max-width: calc(100% - 2rem);
}

.page-portfolio .portfolio-h1{
  margin: 0 0 .75rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--text-strong, rgba(15,15,15,0.92));
}

.page-portfolio .ig-embed-large{
  margin: 0 auto .75rem;
}

/* Keep IG card size reasonable; don't try to scale it */
.page-portfolio .instagram-media{
  max-width: 540px !important;
  width: 100% !important;
  border-radius: 14px;
  overflow:hidden;
}

.page-portfolio .portfolio-links{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: .85rem;
  margin-top: .25rem;
}

.page-portfolio .portfolio-ig-link{
  color: rgba(15,15,15,0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(15,15,15,0.30);
}

.page-portfolio .portfolio-ig-link:hover{
  text-decoration-color: rgba(15,15,15,0.60);
}

@media (max-width: 720px){
  .page-portfolio .portfolio-wrap{ padding: 1.1rem 0 1.8rem; }
  .page-portfolio .portfolio-small-panel{ border-radius: 14px; padding: .95rem .9rem 1.05rem; }
}






/* Portfolio wrapper centering (no main display:flex) */
.page-portfolio .portfolio-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
}

.page-portfolio .portfolio-small-panel{
  margin: 0 auto;
}



/* =========================================================
   Contact page mobile readability pass
   Goal: no clipped panes, no accidental inner scrolling
   ========================================================= */

.page-contact main{ display: block; }

@media (max-width: 900px){
  .contact-grid{
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .contact-grid > .card{
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 520px){
  .card{ padding: 1rem; }
  .kv div{ padding: .55rem .65rem; }
  .field input, .field textarea{ padding: .75rem .8rem; }
}

.page-contact .kv dd,
.page-contact .kv a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-contact .card,
.page-contact .kv,
.page-contact form{
  overflow: visible;
}



/* =========================================================
   Sticky header (global)
   Keeps navigation accessible while scrolling
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
}


/* =========================================================
   Portfolio: Google Images-style dense gallery
   ========================================================= */

/* Full-page portfolio container - edge to edge */
.page-portfolio .portfolio-fullpage{
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.75rem 0.75rem 1.5rem;
}

/* Compact header bar - centered title */
.page-portfolio .portfolio-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(245,245,243,0.92);
  border-radius: 8px;
  border: 1px solid rgba(15,15,15,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-portfolio .portfolio-header .portfolio-h1{
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-strong, rgba(15,15,15,0.92));
  text-align: center;
}

.page-portfolio .portfolio-header .portfolio-links{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0;
}

.page-portfolio .portfolio-header .portfolio-links .button{
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

.page-portfolio .portfolio-header .portfolio-ig-link{
  font-size: 0.85rem;
}

/* Full-width gallery section */
.page-portfolio .portfolio-gallery-fullpage{
  width: 100%;
}

/* Dense grid: 6 images per row, smaller thumbnails, centered */
.page-portfolio .gallery-grid-fullpage{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(245,245,243,0.92);
  border-radius: 14px;
  border: 1px solid rgba(15,15,15,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  width: calc(100% - 2rem);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Gallery items: small, tight, minimal decoration */
.page-portfolio .gallery-grid-fullpage .gallery-item{
  background: #fff;
  border: 1px solid rgba(15,15,15,0.08);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  transition: transform 0.18s ease, box-shadow 0.18s ease, z-index 0s;
  position: relative;
  min-width: 0; /* Prevent grid blowout */
}

.page-portfolio .gallery-grid-fullpage .gallery-item:hover{
  transform: scale(1.15);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  z-index: 10;
}

.page-portfolio .gallery-grid-fullpage .gallery-item a{
  display: block;
}

/* Gallery trigger button styling */
.page-portfolio .gallery-grid-fullpage .gallery-item .gallery-trigger{
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}


/* Featured work: uniform tiles (no letterboxing) */
[data-featured-grid] .gallery-item{aspect-ratio: 4 / 5;}
[data-featured-grid] .gallery-item img{object-position:center;}

/* Portfolio: uniform square tiles */
.page-portfolio .gallery-grid-fullpage .gallery-item{aspect-ratio: 1 / 1;}
.page-portfolio .gallery-grid-fullpage .gallery-item img{object-position:center;}

/* Video play icon overlay */
.page-portfolio .gallery-grid-fullpage .gallery-item .gallery-play-icon{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.page-portfolio .gallery-grid-fullpage .gallery-item .gallery-play-icon svg{
  width: 10px;
  height: 10px;
  margin-left: 1px; /* Visual centering for play triangle */
}

.page-portfolio .gallery-grid-fullpage .gallery-item:hover .gallery-play-icon{
  background: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.1);
}

.page-portfolio .gallery-grid-fullpage .gallery-item img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(30,30,30,0.85);
  display: block;
}

/* Compact controls bar */
.page-portfolio .portfolio-gallery-fullpage .gallery-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.75rem;
  background: rgba(245,245,243,0.92);
  border-radius: 8px;
  border: 1px solid rgba(15,15,15,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.page-portfolio .portfolio-gallery-fullpage .gallery-controls span{
  color: rgba(15,15,15,0.65);
  font-size: 0.8rem;
}

.page-portfolio .portfolio-gallery-fullpage .gallery-controls .button{
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
}

/* Very large screens (1600px+): 8 columns, centered */
@media (min-width: 1600px){
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    padding: 1.25rem 1.5rem;
    max-width: 1400px;
  }
}

/* Large screens (1200-1599px): 7 columns, centered */
@media (min-width: 1200px) and (max-width: 1599px){
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 1.15rem 1.35rem;
    max-width: 1200px;
  }
}

/* Medium-large screens (992-1199px): 6 columns, centered */
@media (min-width: 992px) and (max-width: 1199px){
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 1100px;
  }
}

/* Medium screens (768-991px): 5 columns, centered */
@media (min-width: 768px) and (max-width: 991px){
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 900px;
  }
}

/* Small tablets (600-767px): 4 columns, centered */
@media (min-width: 600px) and (max-width: 767px){
  .page-portfolio .portfolio-fullpage{
    padding: 0.5rem 0.5rem 1rem;
  }
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0.85rem 1rem;
    max-width: 700px;
  }
  .page-portfolio .portfolio-header{
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }
  .page-portfolio .portfolio-header .portfolio-links{
    justify-content: center;
  }
}

/* Large phones (480-599px): 4 columns, centered */
@media (min-width: 480px) and (max-width: 599px){
  .page-portfolio .portfolio-fullpage{
    padding: 0.5rem 0.5rem 1rem;
  }
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 0.75rem 0.85rem;
    max-width: 560px;
  }
  .page-portfolio .portfolio-header{
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
  }
  .page-portfolio .portfolio-header .portfolio-links{
    justify-content: center;
  }
}

/* Mobile (< 480px): 3 columns, centered */
@media (max-width: 479px){
  .page-portfolio .portfolio-fullpage{
    padding: 0.4rem 0.4rem 1rem;
  }
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0.65rem 0.75rem;
    max-width: 420px;
  }
  .page-portfolio .gallery-grid-fullpage .gallery-item{
    border-radius: 4px;
  }
  .page-portfolio .portfolio-header{
    flex-direction: column;
    text-align: center;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    gap: 0.35rem;
  }
  .page-portfolio .portfolio-header .portfolio-h1{
    font-size: 1.1rem;
  }
  .page-portfolio .portfolio-header .portfolio-links{
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
  }
  .page-portfolio .portfolio-header .portfolio-links .button{
    width: 100%;
    padding: 0.45rem 0.6rem;
  }
  .page-portfolio .portfolio-gallery-fullpage .gallery-controls{
    padding: 0.5rem;
    border-radius: 6px;
  }
}

/* Portfolio grid: 4-up desktop, responsive */
.page-portfolio .gallery-grid-fullpage{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px){
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px){
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px){
  .page-portfolio .gallery-grid-fullpage{
    grid-template-columns: 1fr;
  }
}


/* --- Portfolio thumbnail grid overrides (scoped) --- */
/* Ensure portfolio items behave like thumbnails (not full-row blocks) */
.page-portfolio .gallery-grid-fullpage .gallery-item{
  grid-column: auto !important; /* override global span rules */
}

/* Skeleton loading placeholder styles */
.page-portfolio .gallery-grid-fullpage .gallery-item--loading{
  background: rgba(15,15,15,0.08);
}

.page-portfolio .gallery-grid-fullpage .gallery-placeholder{
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
}

.page-portfolio .gallery-grid-fullpage .gallery-placeholder img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Portfolio thumbnails: consistent crop */
.page-portfolio .gallery-grid-fullpage .gallery-item img{
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: transparent;
}

/* Keep overrides on small screens too (global CSS spans items on mobile) */
@media (max-width: 720px){
  .page-portfolio .gallery-grid-fullpage .gallery-item{
    grid-column: auto !important;
  }
}
/* --- end portfolio overrides --- */

/* --- Featured grid: consistent thumbnail sizing --- */
[data-featured-grid] .gallery-item a{
  display:block;
  width:100%;
  overflow:hidden;
  border-radius: 12px;
}

[data-featured-grid] .gallery-item img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* --- Featured lightbox --- */
.featured-tile{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}

.featured-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;
  z-index: 9999;
}

.featured-lightbox.is-open{ display:block; }

.featured-lightbox-inner{
  position:absolute;
  inset: 64px 72px;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.featured-lightbox-img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0,0,0,.45);
}

.featured-lightbox-ig{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.06);
}

.featured-lightbox-close{
  position:absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.featured-lightbox-nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-size: 44px;
  line-height: 1;
  cursor:pointer;
}

.featured-lightbox-prev{ left: 16px; }
.featured-lightbox-next{ right: 16px; }

.no-scroll{ overflow: hidden; }

@media (max-width: 720px){
  .featured-lightbox-inner{ inset: 56px 16px; }
}

.lightbox-iglink{
  all: unset;
  cursor: pointer;
  padding: .5rem .75rem;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(184,180,174,.30);
  background: rgba(15,15,15,.45);
  margin-right: .5rem;
}
.lightbox-iglink:hover{background:rgba(255,255,255,.10)}

/* --- Portfolio lightbox: fullscreen image --- */
.lightbox.is-open img,
.lightbox.open img,
.lightbox[data-open="true"] img,
.lightbox [data-lightbox-image]{
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  display: block;
  margin: 0;
  border-radius: 0;
  max-width: none;
  max-height: none;
}

/* Ensure content container doesn't constrain sizing */
.lightbox.is-open .lightbox-inner,
.lightbox.open .lightbox-inner,
.lightbox.is-open .lightbox-content,
.lightbox.open .lightbox-content{
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* --- Featured Work skeleton loading styles --- */
[data-featured-grid] .gallery-item--loading{
  background: rgba(15,15,15,0.06);
}

[data-featured-grid] .gallery-placeholder{
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  overflow: hidden;
  border-radius: 18px;
}

/* Shimmer animation for featured grid */
.featured-shimmer{
  background: linear-gradient(
    90deg,
    rgba(15,15,15,0.04) 0%,
    rgba(15,15,15,0.10) 50%,
    rgba(15,15,15,0.04) 100%
  );
  background-size: 200% 100%;
  animation: featured-shimmer-animation 1.5s ease-in-out infinite;
}

@keyframes featured-shimmer-animation{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

/* Shimmer animation for portfolio grid */
.portfolio-shimmer{
  background: linear-gradient(
    90deg,
    rgba(15,15,15,0.04) 0%,
    rgba(15,15,15,0.10) 50%,
    rgba(15,15,15,0.04) 100%
  );
  background-size: 200% 100%;
  animation: featured-shimmer-animation 1.5s ease-in-out infinite;
  width: 100%;
  aspect-ratio: 1 / 1;
}

/* --- Mobile hero side-by-side layout override --- */
@media (max-width: 768px) {
  .hero,
  .hero-container,
  .hero-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .hero-text,
  .hero-content {
    flex: 1;
  }

  .hero-image,
  .hero-media {
    flex: 1;
  }
}
