:root { --bg:#fff; --text:#0f172a; --muted:#475569; --accent:#2563eb; --border:#e2e8f0; }
*{box-sizing:border-box} html,body{margin:0;padding:0}
body{font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:var(--text);background:var(--bg)}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
main.container img{max-width:100%;height:auto;display:block;margin:0 auto 16px}
.navbar{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.9);backdrop-filter:blur(6px);border-bottom:1px solid var(--border)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;min-height:56px}
.brand{font-weight:700;text-decoration:none;color:var(--text);font-size:18px}
.nav-links{display:flex;align-items:center;gap:16px}
.nav-link{text-decoration:none;color:var(--text);padding:8px 6px;border-radius:8px}
.nav-link:hover{color:var(--accent)}
.navbar .dropdown{position:relative}
.navbar .dropbtn{background:transparent;border:1px solid var(--border);padding:6px 10px;border-radius:8px;cursor:pointer;color:var(--text)}
.navbar .dropdown-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:160px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.08);padding:8px;display:none}
.navbar .dropdown-menu a{display:block;padding:8px 10px;border-radius:8px;color:var(--text);text-decoration:none}
.navbar .dropdown-menu a:hover{background:#f8fafc;color:var(--accent)}
.navbar .dropdown.open .dropdown-menu{display:block}
.nav-toggle{display:none;background:transparent;border:1px solid var(--border);padding:6px 10px;border-radius:8px}
@media (max-width:860px){.nav-links{display:none;position:absolute;left:0;right:0;top:56px;flex-direction:column;background:#fff;border-bottom:1px solid var(--border);padding:12px 16px}.nav-links.open{display:flex}.nav-toggle{display:inline-block}}
main.container{padding:24px 16px 64px}
h1,h2,h3{line-height:1.2} h1{font-size:32px;margin:16px 0} h2{font-size:24px;margin:24px 0 8px} h3{font-size:20px;margin:20px 0 8px}
.lead{color:var(--muted);max-width:70ch}
.section{scroll-margin-top:84px;padding-top:8px}

/* Gallery */
.gallery-toolbar { display: flex; align-items: center; gap: 12px; margin: 12px 0 20px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* Square tiles with cover-cropped images */
.gallery-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: block;
  aspect-ratio: 1 / 1;      /* <-- force square tiles */
}

.gallery-item img {
  width: 100%;
  height: 100%;             /* <-- fill the square */
  object-fit: cover;        /* <-- crop to square without distortion */
  display: block;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;   /* <-- ensures it scales proportionally */
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 16px; right: 16px;
  background: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* PSL-week-like tables (place at end so it overrides earlier table rules) */
table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  font-size: 0.95rem;
}

th, td{
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

thead th{
  position: sticky; /* optional */
  top: 58px;        /* adjust if navbar height changes */
  background: #ffffff;
  border-bottom: 1px solid #cbd5e1;
  font-weight: 700;
}

tbody tr:hover{
  background: #f8fafc;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.98rem;
}

table th,
table td {
  border: 1px solid #d0d0d0;
  padding: 0.85rem 0.7rem;
  text-align: center;
  vertical-align: middle;
}

table th {
  background: #efefef;
  font-weight: 700;
}

table tr:nth-child(even) td {
  background: #fafafa;
}

table tr:hover td {
  background: #f3f6fb;
}

table td:first-child,
table th:first-child {
  font-weight: 700;
  white-space: nowrap;
  background: #f1f1f1;
}