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

html, body {
  height: 100%;
}

body {
  background: #f5f5f5;
  color: #111;
  font-family: 'Sen', sans-serif;
}

/* ── Header ── */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.profile-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 6px;
  background: #f5f5f5;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}

/* ── Top bar ── */
.topbar {
  display: flex;
  gap: 0;
}

.tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: 'Sen', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  padding: 1rem 1.25rem;
  transition: color 0.15s, border-color 0.15s;
}

.tab:hover {
  color: #111;
}

.tab.active {
  color: #111;
  border-bottom-color: #111;
}

/* ── Panels ── */
.gallery-panel {
  display: none;
  padding: 2rem 40px;
}

.gallery-panel.active {
  display: block;
}

.gallery {
  columns: 3;
  column-gap: 16px;
}

@media (max-width: 900px) {
  .gallery { columns: 2; }
}

@media (max-width: 500px) {
  .gallery { columns: 1; }
}

/* ── Gallery items ── */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.15s;
}

.gallery-item img:hover {
  opacity: 0.85;
}

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

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: 'Sen', sans-serif;
}
