/* ─── simplinail-v2 ── Nail'Ori-inspired layout ──────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Prata&family=Raleway:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

@font-face {
  font-family: 'Garamond Premier Pro';
  src: url('/assets/fonts/garamond-premier-pro-regular.woff2') format('woff2'),
       url('/assets/fonts/garamond-premier-pro-regular.woff') format('woff'),
       url('/assets/fonts/garamond-premier-pro-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Garamond Premier Pro';
  src: url('/assets/fonts/garamond-premier-pro-semibold.woff2') format('woff2'),
       url('/assets/fonts/garamond-premier-pro-semibold.woff') format('woff'),
       url('/assets/fonts/garamond-premier-pro-semibold.ttf') format('truetype');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --primary:    #2a2a87;
  --accent:     #00dcf4;
  --bg:         #ffffff;
  --surface:    rgba(226,247,255,0.57);
  --surface-2:  #f7f5ff;
  --text:       #000000;
  --text-muted: #000000;
  --border:     #e8e8e8;
  --radius:     4px;
  --nav-h:      73px;
  --max-w:      1260px;
  --font-body:  'Open Sans', Arial, sans-serif;
  --font-head:  'Prata', Georgia, "Times New Roman", serif;
  --font-nav:   'Raleway', Helvetica, Arial, sans-serif;
  --font-btn:   'Garamond Premier Pro', Georgia, serif;
  --transition: 0.25s ease;
  --about-card-h: 420px; /* change this ONE value to resize the whole about section */
  --services-menu-nav-inset: 120px; /* increase/decrease to move Services menu further in/out */
  --services-menu-nav-inset-mobile: 8px; /* mobile-only inset control */
  --dsm-img-inset: 48px;     /* ← padding pushing the service image in from the left edge */
  --dsm-content-inset: 48px; /* ← padding pushing the service content in from the right edge */
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 14px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── Global image responsiveness ───────────────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 30px; }
.section    { padding: 80px 0; }
.sr-only    { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }

/* ── Section Labels (eyebrow) ──────────────────────────────────────────────── */
.section-eyebrow {
  display: block;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 12px;
}
.section-eyebrow--center { text-align: center; }

/* ── Section headings ──────────────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 8vw, 4.2rem);
  font-weight: 400;
  color: #000;
  line-height: 1.3;
  margin-bottom: 18px;
  display: inline-block;
  position: relative;
  padding-bottom: 0px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1.6em;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.section-title--center { text-align: center; display: block; }
.section-title--center::after { left: 50%; transform: translateX(-50%); }
.section-title--white { color: #fff; }
.section-title--white::after { background: #fff; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,0.97);
  display: flex; align-items: center;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
body { padding-top: var(--nav-h); }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-family: var(--font-nav); font-size: 1.15rem; font-weight: 800; }
.brand-logo { height: 65px; width: auto; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 0; }
.nav-links a {
  display: block; padding: 10px 16px;
  text-decoration: none; color: var(--primary);
  font-family: var(--font-nav); font-size: .88rem; font-weight: 600;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  border-radius: var(--radius); padding: 10px 20px !important;
  font-family: var(--font-btn) !important; font-size: .8rem !important;
  font-weight: 700 !important; letter-spacing: .05em !important;
  transition: background var(--transition) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent) !important; color: var(--primary) !important; }

.nav-toggle { display:none; flex-direction:column; justify-content:center; gap:5px; background:none; border:none; cursor:pointer; padding:8px; width:36px; height:36px; }
.nav-toggle span { display:block; height:2px; background:var(--primary); border-radius:2px; transition:transform .25s,opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── Hero (Home) ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh; /* fallback for browsers without svh */
  overflow: hidden;
  background: var(--surface);
}

/* Full-bleed banner image */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* ── Social icons bar (top-right, Ivy Nails Lounge – hardcoded) ─────────── */
.social-icons-bar {
  --social-icon-size: 50px;
  --social-icon-gap:  1.1rem;
  position: absolute;
  top: 1.0rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--social-icon-gap);
  z-index: 20;
}
.social-icon-link {
  display: block;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.55));
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  tap-highlight-color: rgba(0,0,0,0);
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}
#hero-social-yelp      { background-image: url('/assets/social/yelp.png');      }
#hero-social-instagram { background-image: url('/assets/social/instagram.png'); }
#hero-social-facebook  { background-image: url('/assets/social/facebook.png');  }
.social-icon-link:active,
.social-icon-link:focus,
.social-icon-link:focus-visible {
  background-color: transparent; outline: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
@media (hover: hover) and (pointer: fine) {
  .social-icon-link:hover {
    transform: scale(1.15);
    opacity: 0.85;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7));
  }
}
.social-icon-link:active { transform: scale(1.08); opacity: 0.8; }

/* ── Hero CTA — centered Book Now (Ivy Nails Lounge style) ─────────────── */
.hero-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  white-space: nowrap;
}
.hero-cta .btn {
  background: rgba(185, 108, 158, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.45),
    0 0  0 4px rgba(200, 40, 40, 1);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.04em;
  padding: 1.2rem 2.6rem;
  font-size: 1.15rem;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .hero-cta .btn:hover,
  .hero-cta .btn:focus-visible {
    background: rgba(157, 79, 131, 0.96);
    border-color: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.55),
      0 0  0 4px rgba(200, 40, 40, 1);
    outline: none;
    color: #fff;
  }
}
.hero-cta .btn:active {
  background: rgba(157, 79, 131, 0.96);
  outline: none;
}
.hero-eyebrow {
  display: block;
  font-family: var(--font-nav);
  font-size: 11px; font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-copy {
  color: var(--primary);
  font-size: .95rem;
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 420px;
  line-height: 1.85;
  opacity: 0.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Page hero (inner pages) ────────────────────────────────────────────────── */
.page-hero {
  background: var(--primary);
  padding: 60px 0 50px;
}
.page-hero-eyebrow {
  display: block;
  font-family: var(--font-nav);
  font-size: 11px; font-weight: 700;
  letter-spacing: 5px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: #fff; line-height: 1.2;
}
.page-hero p { color: rgba(255,255,255,.65); margin-top: 14px; max-width: 540px; font-size: .95rem; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 10px 18px;
  border-radius: var(--radius);
  font-family: var(--font-btn);
  font-size: 1rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #000; filter: brightness(0.82); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-navy { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-navy:hover { background: transparent; color: var(--primary); }
.btn-dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.btn-text {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-btn);
  font-size: 1rem; font-weight: 600;
  font-synthesis: none;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  border-bottom: none;
  padding-bottom: 0;
  filter: brightness(1);
  transition: color var(--transition), text-decoration-color var(--transition), filter var(--transition);
}
.btn-text::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--primary);
  border-top: 2px solid var(--primary);
  transform: translateX(-10px) rotate(45deg);
  opacity: 0;
  margin-left: 6px;
  margin-bottom: 1px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-text:hover { color: var(--primary); text-decoration-color: var(--primary); filter: brightness(0.82); }
.btn-text:hover::after { opacity: 1; transform: translateX(0) rotate(45deg); border-color: var(--primary); }

/* ── About section (homepage) ──────────────────────────────────────────────── */
.about-section {
  background: var(--surface);
  padding: 80px 0 100px;
}
.about-header {
  text-align: center;
  margin-bottom: 60px;
}
.about-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.about-img-wrap {
  align-self: stretch;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-img-wrap img {
  width: 100%;
  display: block;
  box-shadow: 0 20px 80px rgba(64,93,150,0.2);
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/2;
  background: rgba(42,42,135,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: .9rem;
  box-shadow: 0 20px 80px rgba(64,93,150,0.2);
}
.about-card {
  background: #fff;
  padding: 50px 46px;
  box-shadow: -70px 70px 80px rgba(78,130,170,0.16);
  transform: translateX(-40px);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  height: var(--about-card-h); /* fixed height — card never resizes */
  width: 480px;                /* fixed width — card never resizes */
}
.about-card h3 {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.4;
}
.about-card p {
  color: var(--text-muted);
  font-size: 1.0rem; /* ← change font size here */
  line-height: 1.8;
  margin-bottom: 14px;
}
.about-card .btn-text {
  margin-top: 20px;
  display: inline-block;
  align-self: flex-start;
}
.social-bar { display:flex; gap:10px; margin-top:20px; }
.social-bar a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); text-decoration: none;
}
.social-bar a:hover { border-color: var(--accent); background: var(--accent); }
.social-bar img { width: 16px; height: 16px; filter: grayscale(1); }
.social-bar a:hover img { filter: brightness(0) invert(1); }

/* ── Services carousel (homepage) ─────────────────────────────────────────── */
.services-section { background: #fff; padding: 80px 0; }
.services-header { margin-bottom: 60px; }
.services-carousel-wrap {
  position: relative;
}
.services-carousel-viewport {
  position: relative;
  overflow: hidden;
  padding: 20px; /* outline-offset is 14px — 20px padding keeps outlines visible */
  /* Promote to its own compositor layer for smooth transform transitions. */
  will-change: transform;
}
.services-carousel {
  display: flex;
  gap: 80px;                                      /* ← gap between service images */
  /* Animation is a CSS transition on transform: translate3d() set from JS —
     compositor-driven and not snapped by iOS touch gestures (same as Swiper). */
  will-change: transform;
}
.services-nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #fff;
  border: none;
  width: 44px; height: 44px;
  border-radius: 4px; /* square buttons */
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 5;
  flex-shrink: 0;
}
/* Hover only on real pointer devices — prevents sticky-hover on mobile touch */
@media (hover: hover) and (pointer: fine) {
  .services-nav-btn:hover { background: var(--primary); color: #000; filter: brightness(0.82); }
}
.services-nav-btn:active { filter: brightness(0.82); }
.services-nav-prev { left: 10px; }
.services-nav-next { right: 10px; }
.service-card-img {
  flex-shrink: 0;
  outline: 2px solid var(--primary);
  outline-offset: 14px;
  padding-bottom: 10px;
}
.service-card-img-inner {
  position: relative;
  overflow: hidden;
}
.service-card-img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity .35s ease;
}
/* Service card hover animations removed — images are non-interactive */
.service-card-img img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.service-card-img-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  font-family: var(--font-btn);
  font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity .35s ease;
  padding: 0 10px;
  text-align: center;
}
.service-card-img-label {
  padding: 12px 0 0;
  font-family: var(--font-btn);
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
  text-align: center;
}

/* ── Services menu (services page) — nailori-style ───────────────────────────── */
.services-page-banner {
  background: var(--primary);
  padding: 58px 0 52px;
  text-align: center;
}

.services-page-banner-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 8vw, 4.2rem); /* matches "Our Services" title scale on home */
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.services-menu-nav {
  padding: 32px 0 8px;
  text-align: center;
}
.services-menu-nav .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-left: calc(30px + var(--services-menu-nav-inset));
  padding-right: calc(30px + var(--services-menu-nav-inset));
  gap: 10px 14px;
}
.services-menu-nav a {
  font-family: var(--font-btn, var(--font-heading));
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.services-menu-nav a:hover { color: var(--primary); }
.services-menu-nav-sep { color: var(--border); }

.dsm-section { padding: 48px 0; }
.dsm-section { background: var(--bg); }
.dsm-section:nth-child(3n+1) { background: var(--surface); }
.dsm-section:nth-child(3n+2) { background: var(--bg); }
.dsm-section:nth-child(3n+3) { background: var(--surface-2); }
/* ── CHANGE SERVICE IMAGE SIZE HERE ────────────────────────────────────────── */
/* grid-template-columns controls the image vs content split.
   First value = image column width, second = content column width.
   Smaller first value = smaller image. Examples:
     1fr 3fr  → image takes 25% of the row (smallest)
     1fr 2fr  → image takes 33%
     2fr 3fr  → image takes 40% (was default)
   max-width on .dsm-col-img caps the absolute pixel size. */
.dsm-row {
  display: grid;
  grid-template-columns: 1fr 2fr;  /* ← Change these two values */
  gap: 50px;
  align-items: start;
}
.dsm-col-img {
  max-width: 360px;  /* ← Change this to set an absolute max image size */
  padding-left: var(--dsm-img-inset); /* ← change --dsm-img-inset in :root to adjust */
}
.dsm-col-content {
  padding-right: var(--dsm-content-inset); /* ← change --dsm-content-inset in :root to adjust */
}
.dsm-col-img img {
  width: 100%;
  aspect-ratio: 4 / 3;  /* ← Change to adjust shape: 1/1=square, 4/3=landscape, 3/4=portrait */
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.dsm-cat-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 0 0 28px;
}

.dsm-list { display: flex; flex-direction: column; gap: 22px; }
.dsm-item-header {
  display: flex;
  align-items: baseline; /* aligns the text baseline of the name and price exactly */
  gap: 0;
}
/* ── CHANGE SERVICE NAME FONT SIZE HERE ────────────────────────────────────── */
.dsm-item-title {
  font-size: 1.2rem;  /* ← Change this value to adjust service name size */
  font-weight: 600;
  color: var(--text);
  flex: 0 1 auto;
  min-width: 0;
  word-break: break-word;
  line-height: 1.4;
}
.dsm-item-sep {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px solid var(--border);
  margin-left: 8px;
  margin-right: 8px;
  /* shift the line up by half a cap-height so it sits in the middle of the text */
  position: relative;
  top: -0.3em;
}
/* ── CHANGE SERVICE PRICE FONT SIZE HERE ───────────────────────────────────── */
.dsm-item-price {
  font-size: 1.2rem;  /* ← Change this value to adjust price size */
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
  padding-left: 0;
}
.dsm-item-desc {
  margin: 7px 0 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Gallery ───────────────────────────────────────────────────────────────── */
/* ── Full gallery page grid ───────────────────────────────────────────────── */
.gallery-grid-v2 { columns: 3; column-gap: 40px; }
.gallery-grid-v2 .g-item {
  break-inside: avoid; margin-bottom: 40px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-grid-v2 .g-item img {
  width: 100%;
  display: block;
  box-sizing: border-box;
  /* 4-corner bracket border animation — same technique as D'Limo Nail Lounge.
     On hover, purple L-brackets sweep in from each corner to form a full border. */
  --c: var(--primary); /* ← border color */
  --b: 5px;            /* ← border thickness */
  --g: 0px;            /* ← gap between image edge and border */
  padding: calc(var(--g) + var(--b));
  --_g: #0000 25%, var(--c) 0;
  background:
    conic-gradient(from 180deg at top var(--b) right var(--b), var(--_g))
      var(--_i,200%) 0 / 200% var(--_i,var(--b)) no-repeat,
    conic-gradient(at bottom var(--b) left var(--b), var(--_g))
      0 var(--_i,200%) / var(--_i,var(--b)) 200% no-repeat;
  transition: .5s, background-position .5s .5s;
  cursor: pointer;
}
.gallery-grid-v2 .g-item img:hover,
.gallery-grid-v2 .g-item img:active,
.gallery-grid-v2 .g-item.is-touched img {
  --_i: 100%;
  transition: .5s, background-size .5s .5s;
}

/* ── Home gallery preview ──────────────────────────────────────────────────── */
.gallery-preview-section { background: var(--surface-2); padding: 80px 0; }
.gallery-view-more { text-align: center; margin-top: 48px; }
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 per row, 6 images = 2 rows */
  /* gap: 80px + padding: 0 20px mirrors the service carousel's inner sizing
     (carousel uses getViewportPadX=20 and gap=80px), so gallery images are
     exactly the same width as carousel service cards */
  gap: 80px;
  padding: 0 20px;
  margin-top: 60px;
}
/* ── Gallery hover: outline stationary, image corners pull outward ─────────
   The outline ring lives in ::after (z-index 3) so it renders above the
   scaled image (z-index 1) and is never obscured, even as the image expands.
   The container (.g-item) does NOT scale — only the img does, making all four
   corners pull outward past the stationary outline frame.                     */
/* box-shadow is NOT clipped by the element's own overflow:hidden,
   so the ring stays visible while the scaled img is clipped to the frame.
   Layer 1: gap fill (matches section background)
   Layer 2: the visible ring (2px at rest → 5px black on hover)            */
.gallery-preview-grid .g-item {
  border-radius: 0;
  overflow: visible;          /* allows img to physically expand outward on hover */
  cursor: pointer;
  position: relative;
  /* 14px gap fill + 2px purple ring */
  box-shadow: 0 0 0 14px var(--surface-2), 0 0 0 16px var(--primary);
  transition: box-shadow .35s ease;
}
.gallery-preview-grid .g-item:hover,
.gallery-preview-grid .g-item:active,
.gallery-preview-grid .g-item.is-touched {
  /* NO transform — outline is 100% stationary */
  /* 14px gap fill + 5px black ring (overlaps & replaces purple) */
  box-shadow: 0 0 0 14px var(--surface-2), 0 0 0 19px #111;
  z-index: 2;
}
.gallery-preview-grid .g-item img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.gallery-preview-grid .g-item:hover img,
.gallery-preview-grid .g-item:active img,
.gallery-preview-grid .g-item.is-touched img {
  transform: scale(1.05);     /* grows from all 4 corners, stays clipped inside frame with gap remaining */
}

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonials-section { background: #fff; padding: 80px 0; }
.testimonials-header { margin-bottom: 48px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition);
}
.testimonial-card:hover { box-shadow: 0 8px 32px rgba(42,42,135,.08); }
.testimonial-portrait {
  width: 60px; height: 60px; border-radius: 50%;
  overflow: hidden; margin-bottom: 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.testimonial-portrait img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-text {
  color: var(--text-muted);
  font-size: .9rem; line-height: 1.75;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  font-family: var(--font-btn);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
}
.testimonial-stars { color: var(--accent); font-size: .9rem; margin-bottom: 12px; }

/* ── Home teasers (quick links) ────────────────────────────────────────────── */
.home-teasers { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.teaser-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
  background: #fff;
}
.teaser-card:hover { box-shadow: 0 8px 28px rgba(42,42,135,.1); transform: translateY(-2px); }
.teaser-icon { font-size: 1.8rem; }
.teaser-card h3 {
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 400;
  color: var(--primary);
}
.teaser-card p  { color: var(--text-muted); font-size: .88rem; flex: 1; line-height: 1.65; }
.teaser-link {
  font-family: var(--font-btn);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); text-decoration: none;
  transition: color var(--transition);
}
.teaser-link:hover { color: var(--accent); }

/* ── About page (full) ─────────────────────────────────────────────────────── */
.about-page-section { padding: 80px 0 100px; background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 30px; align-items: start; }
.about-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--primary); margin-bottom: 24px;
}
.about-content p  { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 14px; line-height: 1.8; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: none; }
.about-img-placeholder { color: var(--text-muted); font-size: .9rem; }
.about-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.about-bullets li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text-muted); }
.about-bullets li::before { content: '✓'; font-weight: 900; color: var(--accent); flex-shrink: 0; }

/* ── Contact ───────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info h2 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 400; color: var(--primary); margin-bottom: 24px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail-icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-detail-label { font-family: var(--font-btn); font-size: .7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 3px; }
.contact-detail-body a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; }
.contact-detail-body a:hover { color: var(--primary); }
.hours-list { list-style: none; margin-top: 24px; }
.hours-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.hours-list li:last-child { border-bottom: none; }
.hours-day { font-weight: 700; color: var(--primary); }
.contact-map-v2 { margin-top: 24px; border-radius: var(--radius); overflow: hidden; height: 200px; background: var(--surface); }
.contact-map-v2 > * { width: 100%; height: 100%; border: 0; }

.contact-form-v2 { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.contact-form-v2 h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 400; color: var(--primary); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field-group label { font-family: var(--font-btn); font-size: .72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.form-input, textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .93rem;
  background: var(--bg); color: var(--text);
  transition: border-color var(--transition);
}
.form-input:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 120px; }
.required-star { color: var(--primary); }
.form-error { font-size: .78rem; color: #c00; display: none; }
.form-error.visible { display: block; }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--text-muted); margin-bottom: 12px; cursor: pointer; }
.consent-row input { flex-shrink: 0; margin-top: 3px; accent-color: var(--primary); }
.consent-row a { color: var(--primary); }
.form-success { padding: 13px 16px; background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: var(--radius); color: #065f46; font-weight: 600; display: none; margin-bottom: 12px; }
.form-send-error { padding: 12px 16px; background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius); color: #991b1b; display: none; margin-bottom: 12px; }
#store-tabs { margin-top: 16px; }

/* ── Gift Cards — embedded iframe ─────────────────────────────────────────── */
.gift-card-embed-section {
  width: 100%;
  background: var(--bg);
}
.gift-card-iframe {
  display: block;
  width: 100%;
  min-height: 100vh;
  border: none;
  overflow: hidden;
}
@media (max-width: 640px) {
  .gift-card-iframe { min-height: 100svh; }
}

.gift-amount-card.selected { background: rgba(42,42,135,.04); }
.gift-amount-price { font-family: var(--font-head); font-size: 1.9rem; font-weight: 400; color: var(--primary); }
.gift-amount-label { font-size: .83rem; color: var(--text-muted); margin-top: 4px; }

/* ── CTA Banner ────────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--primary);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400; color: #fff; margin-bottom: 14px;
}
.cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.75; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  padding: 60px 0 0;
  font-size: .88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-col h4 {
  font-family: var(--font-nav);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col p, .footer-col address {
  font-style: normal;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  font-size: .88rem;
}
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-brand-name {
  display: block;
  font-family: var(--font-nav);
  font-size: 1.15rem; font-weight: 800;
  color: #fff; margin-bottom: 12px;
}
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav-list li a { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--accent); background: var(--accent); }
.footer-social img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-links { display: flex; gap: 20px; }

/* ── Scroll-reveal animations (About section) ───────────────────────────── */
.reveal {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal--left  { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px); }
.reveal--up    { transform: translateY(40px); }

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* About card: starts at its natural position (no overlap), fades in slowly
   and lands at the original translateX(-80px) overlapping position */
.about-card--anim {
  opacity: 0;
  transform: translateX(120px);
  transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1),
              transform 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-card--anim.is-visible {
  opacity: 1;
  transform: translateX(-50px);
}

/* Stagger children inside a reveal group */
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.45s; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (min-width: 641px) {
  .section-title::after {
    bottom: 6px;
  }
}
@media (max-width: 1024px) {
  .about-card { transform: translateX(-30px); padding: 40px 32px; }
}
@media (max-width: 900px) {
  .dsm-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .dsm-col-img { max-width: 320px; margin: 0 auto; width: 100%; padding-left: 0; }
  .dsm-col-content { padding-right: 0; }
  /* ↓ GAP BETWEEN SERVICE CATEGORIES ON MOBILE — change this value */
  .dsm-section { padding: 48px 0; }
  /* ↓ SERVICE CATEGORY HEADING SIZE ON MOBILE — change this value */
  .dsm-cat-title { font-size: 1.8rem; }
  /* ↓ SERVICE NAME SIZE ON MOBILE — change this value */
  .dsm-item-title { font-size: 1.2rem; }
  /* ↓ SERVICE PRICE SIZE ON MOBILE — change this value */
  .dsm-item-price { font-size: 1.2rem; }
  .social-icons-bar {
    --social-icon-size: 38px;
    --social-icon-gap: 0.85rem;
    top: 0.5rem;
    right: 0.75rem;
  }
  .hero-cta .btn { padding: 0.9rem 1.4rem; font-size: 1rem; }
  .home-teasers { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-card { transform: none; box-shadow: 0 8px 30px rgba(78,130,170,0.14); width: 90%; height: auto; margin: 24px auto 0; }
  .about-card--anim { transform: translateX(calc(5vw + 18px)); }
  .about-card--anim.is-visible { transform: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-page-section { padding: 50px 0 60px; }
  .contact-grid { grid-template-columns: 1fr; }
  .gift-intro { grid-template-columns: 1fr; }
  .gallery-grid-v2 { columns: 1; }
  /* ── CHANGE MOBILE GALLERY IMAGE SIZE HERE ─────────────────────────────────
     Increase padding to make gallery images smaller on mobile.
     Decrease padding to make them larger. */
  #gallery-grid { padding: 0 32px; } /* ← adjust this value */
  .services-carousel { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; padding: 12px 16px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    border-top: 2px solid var(--accent);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Images */
  .services-menu-head { padding-top: 44px; }
  .services-page-banner {
    padding: 44px 0 38px;
  }
  .services-menu-nav .container {
    gap: 8px 10px;
    padding-left: calc(18px + var(--services-menu-nav-inset-mobile));
    padding-right: calc(18px + var(--services-menu-nav-inset-mobile));
  }
  .services-menu-nav a { font-size: .74rem; }
  .about-img-wrap img,
  .about-img-placeholder { aspect-ratio: 4/3; }
  .service-card-img img { aspect-ratio: 4/3; }
  .gallery-preview-grid .g-item img { aspect-ratio: 1; }
  /* ── CHANGE MOBILE GALLERY IMAGE SIZE HERE ─────────────────────────────────
     Increase padding to make the image (and outline) smaller on mobile.
     Decrease padding to make it larger. Minimum ~20px to keep outline visible. */
  .gallery-preview-grid {
    grid-template-columns: 1fr;
    gap: 60px;        /* ← CHANGE THIS to adjust vertical space between gallery images on mobile */
    padding: 0 32px;  /* ← CHANGE THIS to scale gallery image width on mobile */
    margin-top: 60px; /* ← CHANGE THIS to adjust gap below "Our Gallery" underline on mobile */
  }

  /* Purple underline — no override needed, em units auto-scale with font size */

  /* Typography */
  body { font-size: 13px; }
  .section-title { font-size: clamp(1.4rem, 7vw, 2rem); }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .hero-copy { font-size: .88rem; margin-bottom: 24px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }

  /* Spacing */
  .section { padding: 50px 0; }
  .container { padding: 0 18px; }
  .about-section { padding: 50px 0 60px; }
  .about-header { margin-bottom: 32px; }
  .about-card { padding: 28px 22px; }
  .about-card h3 { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .services-section { padding: 50px 0; }
  .services-header { margin-bottom: 28px; }
  .gallery-preview-section { padding: 50px 0; }
  .testimonials-section { padding: 50px 0; }
  .testimonials-header { margin-bottom: 28px; }
  .cta-banner { padding: 48px 0; }
  .cta-banner h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* Layouts */
  .home-teasers { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-v2 { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .services-carousel { grid-template-columns: 1fr; }

  /* ── Mobile carousel: one-card view, outline matches desktop style ── */
  .services-carousel-viewport {
    /* Top/bottom padding = space for the outline (14px offset + buffer).
       Left/right = 0 so the clip boundary is flush with the card's margin edge. */
    padding: 18px 0;
    overflow: hidden;
  }
  .services-carousel {
    gap: 0 !important; /* zero gap; card slot = cardW + 2×margin = vpW exactly → no bleed */
  }
  /* Horizontal margin > outline-offset keeps outline visible yet contained.
     ⚠️  MUST keep this value in sync with MOBILE_CARD_MARGIN_X in database.js  */
  .service-card-img {
    margin: 0 30px;   /* ← change this AND MOBILE_CARD_MARGIN_X in database.js to the same number */
    padding: 0 0 10px;
    outline: 2px solid var(--primary);   /* same as desktop */
    outline-offset: 14px;                /* keep margin > this value or outline will be clipped */
  }
  .service-card-img-inner {
    border: none; /* clear previous mobile border override */
  }
  .services-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    top: 42%;
  }
  /* Button inset = margin - outline-offset + 2px buffer = 30 - 14 + 2 = 18px
     If you change the card margin in MOBILE_CARD_MARGIN_X / .service-card-img,
     update these two values to: new-margin - outline-offset + 2  */
  .services-nav-prev { left: 18px; }
  .services-nav-next { right: 18px; }

  /* ── CHANGE CAROUSEL SERVICE NAME SIZE ON MOBILE HERE ──────────────────────
     Reduce the label below each carousel card on small screens.
     Adjust the font-size value to make it larger or smaller. */
  .service-card-img-label {
    font-size: 0.75rem;  /* ← change this value to adjust mobile carousel label size */
    letter-spacing: 0.07em;
  }

  /* Scale down View All Services button on mobile */
  .services-section .gallery-view-more .btn {
    font-size: 0.82rem;
    padding: 8px 14px;
    letter-spacing: 0.05em;
  }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Nav logo */
  .brand-logo { height: 48px; }

  /* Hero CTA button */
  .hero-cta .btn { padding: 0.85rem 1.2rem; font-size: 0.9rem; }

  /* Footer */
  .site-footer { padding: 40px 0 0; }
  .footer-grid { gap: 24px; padding-bottom: 32px; }
}
@media (max-width: 400px) {
  .section-title { font-size: clamp(1.3rem, 6vw, 1.8rem); }
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}

.lightbox.is-open {
  display: flex;
  animation: lb-fade-in 0.25s ease forwards;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Lightbox top bar: counter (left) + close button (right) ── */
.lightbox-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none; /* let clicks fall through to overlay, except on children */
}

.lightbox-counter {
  font-family: var(--font-nav);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 1px;
  user-select: none;
  pointer-events: none;
}

.lightbox-topbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: all;
}

/* ── Action buttons (top-right of topbar) — fullscreen, zoom, share, close ── */
.lightbox-action {
  width: 44px;
  height: 44px;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

/* Close button is slightly larger to match Palazzio */
.lightbox-close {
  width: 52px;
  height: 52px;
}

.lightbox-action:active svg { opacity: 0.5; }
.lightbox-action:focus  { outline: none; }
.lightbox-action:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ── Image wrapper ── */
.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 52px; /* clear the topbar */
  animation: lb-zoom-in 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@keyframes lb-zoom-in {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  display: block;
  max-width: min(84vw, 1100px);
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* ── Prev / Next nav arrows (left & right edges, vertically centered) ── */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 60px;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
}

.lightbox-nav:active  { transform: translateY(-50%); }
.lightbox-nav:active svg { opacity: 0.5; }
.lightbox-nav:focus   { outline: none; }
.lightbox-nav:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* No hover effects on lightbox buttons */

.lightbox-nav svg { width: 28px; height: 28px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Make gallery items show pointer and scale on hover to hint they're clickable */
.gallery-grid-v2 .g-item { cursor: pointer; }

@media (max-width: 640px) {
  .lightbox-content { animation: none; margin-top: 48px; }
  .lightbox-topbar { padding: 8px 10px; }
  .lightbox-counter { font-size: 13px; }
  .lightbox-action { width: 36px; height: 36px; }
  .lightbox-action svg { width: 16px; height: 16px; }
  .lightbox-nav { width: 52px; height: 70px; }
  .lightbox-nav svg { width: 28px; height: 28px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-img { max-width: 92vw; max-height: calc(100vh - 80px); border-radius: 4px; }
}

