body.dark-gallery {
  background: #0f1320;
  color: #dce3f2;
}

.dark-gallery .section,
.dark-gallery .navbar,
.dark-gallery .modal-content {
  background: #0f1320;
  color: #dce3f2;
}

.dark-gallery .navbar-inverse {
  background: rgba(15, 19, 32, 0.88);
  border-color: transparent;
}

.dark-gallery .affix {
  background: #151a2b !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.dark-gallery .navbar-inverse .navbar-nav > li > a,
.dark-gallery .navbar-inverse .navbar-header a,
.dark-gallery .navbar.menu-wrap .navbar-brand,
.dark-gallery .menu-icon i {
  color: #f4f7ff;
}

.dark-gallery .navbar .navbar-nav li a:hover,
.dark-gallery .navbar .navbar-nav li.active a {
  background: rgba(63, 81, 181, 0.24);
}

.dark-gallery a {
  color: #7ed7cd;
}

.dark-gallery a:hover,
.dark-gallery a:focus {
  color: #b7fff5;
  text-decoration: none;
}

.header-image {
  background: linear-gradient(rgba(9, 12, 22, 0.72), rgba(9, 12, 22, 0.78)), url(../img/in-front-of-admin-building-Large.jpg) no-repeat;
  background-size: cover;
  background-position: center bottom;
  color: #fff;
  overflow: hidden;
  padding: 90px 0;
}

.header-image .sticky-navigation {
  background: transparent;
}

.header-image .contents {
  padding-top: 76px;
}

.header-image .contents h1 {
  font-size: 34px;
  font-weight: 100;
  margin-bottom: 10px;
}

.header-image .contents p {
  color: #c8d1ef;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
}

#gallery {
  background: #0f1320;
}

#gallery .row {
  padding: 24px 0;
}

#gallery .section-title {
  color: #f5f7ff;
}

#gallery .section-subtitle {
  color: #9ea8c6;
}

.filter-panel {
  border-top: 1px solid rgba(126, 215, 205, 0.28);
  border-bottom: 1px solid rgba(63, 81, 181, 0.32);
  margin: 36px 0 8px;
  padding: 18px 0;
}

.tag-filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag-button,
.clear-filter-button {
  background: #151a2b;
  border: 1px solid #334064;
  border-radius: 4px;
  color: #dce3f2;
  line-height: 1.2;
  min-height: 38px;
  padding: 9px 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag-button:hover,
.tag-button:focus {
  background: #1c2440;
  border-color: #5264b8;
  color: #fff;
  outline: none;
}

.tag-button.is-active {
  background: #3f51b5;
  border-color: #7f90ff;
  color: #fff;
}

.clear-filter-button {
  border-color: #009688;
  color: #9ff4ea;
}

.clear-filter-button:hover,
.clear-filter-button:focus {
  background: #009688;
  border-color: #009688;
  color: #fff;
  outline: none;
}

.clear-filter-button:disabled {
  border-color: #334064;
  color: #6f7892;
  cursor: default;
}

.clear-filter-button:disabled:hover {
  background: #151a2b;
}

.thumbnail {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  cursor: pointer;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.video-box {
  display: block;
  min-height: 100%;
  padding: 10px 10px 18px;
  transition: transform 0.3s ease;
}

.video-box:hover .thumbnail {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.42);
}

.video-title {
  color: #dce3f2;
  font-size: 1.1em;
  line-height: 1.65;
  margin-top: 12px;
  transition: all 0.3s ease;
}

.video-box:hover .video-title {
  color: #7ed7cd;
  transform: scale(1.03);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.gallery-empty,
.gallery-error {
  color: #aeb7d2;
  padding: 34px 15px;
  text-align: center;
}

.modal-backdrop.in {
  opacity: 0.78 !important;
  background-color: #000 !important;
}

.modal.modal-center .modal-dialog {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 auto;
}

.dark-gallery footer.section {
  background: #0b0f1a;
  color: #aeb7d2;
  padding: 42px 0;
}

@media (max-width: 768px) {
  .header-image {
    padding: 82px 0 68px;
  }

  .header-image .contents {
    padding-top: 60px;
  }

  .header-image .contents h1 {
    font-size: 28px;
  }

  .tag-filter-bar {
    justify-content: flex-start;
  }

  .tag-button,
  .clear-filter-button {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .modal.modal-center .modal-dialog {
    top: auto;
    transform: none;
    margin-top: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}
