:root{
  --bg: #ffffff;
  --text: #0b1115;
  --muted: #556066;
  --accent: #0b63ff;
  --gap: 16px;
  --max-width: 1200px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-size:16px;
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Header */
.site-header{
  border-bottom:1px solid #ececec;
  background:var(--bg);
  position:sticky;
  top:0;
  z-index:20;
}
.header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  align-items:center;
  gap:12px;
  justify-content:space-between;
}

/* brand left */
.brand{display:flex;gap:8px;align-items:center;white-space:nowrap}
.brand-text{font-weight:700;font-size:15px}
.brand .name{font-weight:700}
.brand .nick{font-weight:600;color:var(--accent)}
.brand .surname{opacity:0.95}

/* nav inline */
.main-nav{display:flex;gap:14px;align-items:center}
.main-nav a{
  color:var(--text);
  text-decoration:none;
  padding:6px 8px;
  border-radius:6px;
  font-weight:600;
  font-size:15px;
}
.main-nav a:hover,
.main-nav a:focus{
  color:var(--accent);
  outline:none;
}

/* language toggle — bez specjalnych stylów, zwykły tekst */
.lang-switch button{
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
  font-weight:600;
  color:var(--text);
  font-size:15px;
}
.lang-switch button:hover,
.lang-switch button:focus{
  color:var(--accent);
  outline:none;
}

/* language select */
.lang-switch select{
  background:transparent;
  border:none;
  padding:0;
  cursor:pointer;
  font-weight:600;
  color:var(--text);
  font-size:15px;
  font-family:inherit;
}
.lang-switch select:hover,
.lang-switch select:focus{
  color:var(--accent);
  outline:none;
}

/* main layout */
.site-main{
  max-width:var(--max-width);
  margin:20px auto;
  padding:0 20px 80px;
}

/* Masonry-like responsive grid using CSS columns */
.gallery{
  column-width:300px;
  column-gap:var(--gap);
  width:100%;
}
.gallery-item{
  display:inline-block;
  width:100%;
  margin:0 0 var(--gap);
  break-inside:avoid;
  border-radius:8px;
  overflow:hidden;
  background: #fafafa;
  box-shadow: 0 6px 18px rgba(11,17,20,0.04);
}
.gallery-item img{
  width:100%;
  height:auto;
  display:block;
  cursor:pointer;
}
.gallery-item .meta{
  padding:8px 10px;
  font-size:13px;
  color:var(--muted);
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}

/* lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(11,17,20,0.8);
  padding:20px;
  gap:12px;
  z-index:60;
  flex-direction:column;
}
.lightbox img{max-width:90vw;max-height:80vh;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,0.6)}
.lb-close{
  position:absolute;
  right:18px;
  top:18px;
  background:transparent;
  border:none;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

/* Footer */
.site-footer{
  text-align:center;
  padding:20px;
  border-top:1px solid #ececec;
  font-size:14px;
  color:var(--muted);
}

/* small screens */
@media (max-width:800px){
  .header-inner{padding:10px}
  .brand .surname{display:none}
  .main-nav{display:none}
  .gallery{column-width:180px}
}

/* Hide body until translations are loaded */
html[data-loading="true"] body {
  visibility: hidden;
}

html[data-loading="false"] body {
  visibility: visible;
}

html[data-loading="true"] {
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

html[data-loading="false"] {
  opacity: 1;
}