:root{
  --bg: #0b0c0f;
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius-sm: 12px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.07), transparent 50%),
              radial-gradient(900px 500px at 100% 0%, rgba(255,255,255,0.06), transparent 50%),
              var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a{ color: inherit; text-decoration: none; }
code{ background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 8px; }

.container{
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}
.muted{ color: var(--muted); }

/* Header/footer/tiles (unchanged from earlier baseline, kept here for completeness) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,12,15,0.65);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.brand-mark{
  width: 38px; height: 38px; border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.brand-text{ min-width:0; }
.brand-title{ font-weight:650; letter-spacing:.2px; }
.brand-subtitle{ font-size:13px; color: rgba(255,255,255,0.55); margin-top:2px; }
.header-contact{ text-align:right; white-space:nowrap; }
.contact-label{ font-size:12px; color: rgba(255,255,255,0.55); }
.contact-tel{
  display:inline-block; font-weight:650; letter-spacing:.2px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  transition: transform .15s ease, background .15s ease;
}
.contact-tel:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.10); }

.main{ padding: 28px 0 54px; }
.hero{ padding: 22px 0 18px; }
.hero h1{ margin:0 0 8px; font-size: clamp(22px, 3.2vw, 34px); letter-spacing:.2px; }
.hero p{ margin:0; max-width:70ch; }

.grid{ display:grid; gap:16px; grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width:700px){ .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width:980px){ .grid{ grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width:1180px){ .grid{ grid-template-columns: repeat(4, minmax(0,1fr)); } }

.card{
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}
.card-media{ position:relative; padding:12px; }
.badge{
  position:absolute; top:12px; right:12px;
  font-size:12px; color: rgba(255,255,255,0.88);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.thumbs{ display:grid; gap:8px; }
.thumbs--strip{ grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: repeat(2, minmax(0,1fr)); }
.thumbs--grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }

/* Thumbs: slightly portrait-friendly */
.thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  padding: 0;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.thumb:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,0.20); }
.thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.thumb-more{
  position:absolute; inset:0; display:grid; place-items:center;
  background: rgba(0,0,0,0.48);
  font-weight:700; font-size:18px; letter-spacing:.3px;
}

.card-body{ padding: 14px 14px 16px; }
.card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.card-title{ margin:0; font-size:16px; font-weight:650; letter-spacing:.2px; min-width:0; }
.card-price{
  white-space:nowrap; font-weight:700;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
}
.card-desc{
  margin: 10px 0 0;
  color: rgba(255,255,255,0.70);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 2);
}
.card-actions{ display:flex; gap:10px; margin-top:14px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  font-weight:650;
  font-size:14px;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.20); }
.btn--ghost{ background: transparent; border-color: rgba(255,255,255,0.16); }
.btn--ghost:hover{ background: rgba(255,255,255,0.08); }

.site-footer{ border-top: 1px solid var(--border); background: rgba(255,255,255,0.03); }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 0; }
.footer-title{ font-size:12px; color: rgba(255,255,255,0.55); margin-bottom:6px; }

/* ================== LIGHTBOX: true fullscreen, always shows whole image ================== */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}
.lightbox.is-open{ display:block; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(6px);
}

/* Fullscreen container (no padding constraints) */
.lightbox-dialog{
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Keep the close button visible above everything */
.lightbox-close{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1002;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.lightbox-close:hover{ background: rgba(0,0,0,0.60); }

/* Stage uses whole viewport */
.lightbox-stage{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Always show the whole image: max to viewport, do not crop */
.lightbox-image{
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Nav buttons above image */
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.lightbox-nav:hover{ background: rgba(0,0,0,0.60); }
.lightbox-nav--prev{ left: 14px; }
.lightbox-nav--next{ right: 14px; }

/* Counter overlay */
.lb-counter-overlay{
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1001;
  font-size: 12px;
  color: rgba(255,255,255,0.88);
  background: rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 6px 10px;
  border-radius: 999px;
  pointer-events: none;
}

/* Hide meta UI if present in HTML */
.lightbox-header,
.lightbox-meta,
.lightbox-actions,
.lightbox-thumbs{
  display: none !important;
}

body.is-locked{ overflow:hidden; }
