body {
  font-family: Georgia, serif;
  margin: 0;
  color: #222;
  background: #f5f5f5;
  line-height: 1.6;
}

.book {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
}

.name-block {
  font-weight: bold;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.name {
  font-size: 1.5em;
}

.title {
  font-size: 0.9em;
}

#about {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.about-text {
  flex: 1;
}

.profile {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.contact-links {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9em;
}

.contact-links p {
  margin: 3px 0;
}

.section {
  margin-bottom: 20px;
}

h3 {
  margin: 20px 0 10px 0;
  font-size: 1.1em;
}

h4 {
  margin: 15px 0 5px 0;
  font-size: 1em;
}

p, ul {
  margin: 5px 0;
}

a {
  color: #0066cc;
}

a:hover {
  text-decoration: underline;
}

.gallery {
  display: flex;
  gap: 10px;
  margin: 15px 0 25px 0;
  flex-wrap: wrap;
}

.gallery-item {
  height: 120px;
  width: auto;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #ddd;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  margin: auto;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.lightbox .close:hover {
  color: #ccc;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-header h4 {
  margin: 15px 0 5px 0;
}

.github-link {
  display: inline-flex;
  align-items: center;
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.github-link:hover {
  color: #0066cc;
}

.github-icon {
  display: block;
  width: 16px;
  height: 16px;
}
