body {
  padding-top: 50px;
  background-color: #eeeeee;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
}

@media (max-width: 979px) {
  body {
    padding-top: 0;
  }

  .navbar-search {
    width: 100%;
    box-sizing: border-box;
  }

  .navbar-search .search-query {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 9px 15px;
  }
}

.profile-img {
  width: 80px;
  height: 80px;
  border: 1px solid #ccc;
  padding: 3px;
  background: #fff;
}

.sidebar-nav {
  padding: 9px 0;
}

.sidebar-nav .nav-header {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
  color: #999;
}

.content-panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
}

.content-panel h3 {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.project-table img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.visitor-counter {
  font-family: "Courier New", monospace;
  font-size: 11px;
}

#contact-form textarea {
  max-width: 100%;
  resize: vertical;
}

footer {
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
  color: #999;
  font-size: 11px;
  border-top: 1px solid #ddd;
}

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gallery-lightbox-fade-in 0.2s ease-out;
}

.gallery-lightbox.closing {
  animation: gallery-lightbox-fade-out 0.2s ease-in forwards;
}

.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  animation: gallery-lightbox-zoom-in 0.2s ease-out;
}

.gallery-lightbox.closing .gallery-lightbox-img {
  animation: gallery-lightbox-zoom-out 0.2s ease-in forwards;
}

.gallery-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

@keyframes gallery-lightbox-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gallery-lightbox-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes gallery-lightbox-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gallery-lightbox-zoom-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.85);
  }
}
