/*!
  * Item: Kitzu
  * Description: Personal Portfolio Template
  * Author/Developer: Exill
  * Author/Developer URL: https://themeforest.net/user/exill
  * Version: v2.0.0
  * License: Themeforest Standard Licenses: https://themeforest.net/licenses
  */

/*----------- ADD YOUR CUSTOM CSS STYLES BELOW -----------*/

/* Text logo (replaces the empty template logo image) */
.navbar .navbar-brand .brand-mark {
  color: #f3f3f3;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
}

.navbar .navbar-brand .brand-mark::after {
  color: var(--custom);
  content: '.';
}

/*----------- About -----------*/
.about-photo {
  margin: 0 auto 0 0;
  max-width: 420px;
  position: relative;
}

/* Offset accent frame behind the portrait */
.about-photo::before {
  border: 2px solid var(--custom);
  border-radius: 12px;
  bottom: -14px;
  content: '';
  left: 14px;
  position: absolute;
  right: -14px;
  top: 14px;
}

.about-photo img {
  border-radius: 12px;
  display: block;
  height: auto;
  position: relative;
  width: 100%;
}

.about-intro {
  padding-left: 30px;
}

.about-intro .about-kicker,
.resume-heading,
.contact-kicker {
  color: var(--custom);
  line-height: 1.5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-intro .about-kicker {
  margin-bottom: 12px;
}

.about-intro .about-title {
  color: #f3f3f3;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.about-intro .about-text p {
  color: #b9b9b9;
  font-size: 16px;
  line-height: 1.8;
}

.about-intro .about-facts {
  border-bottom: 1px solid #262626;
  border-top: 1px solid #262626;
  display: grid;
  gap: 18px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0;
  padding: 22px 0;
}

.about-intro .about-facts dt {
  color: #8d8d8d;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-intro .about-facts dd {
  color: #e6e6e6;
  font-size: 15px;
  margin: 4px 0 0;
}

.about-intro .about-actions {
  -ms-flex-align: center;
  align-items: center;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 14px;
}

.about-intro .about-actions .btn i {
  margin-left: 10px;
}

.about-intro .about-social {
  display: -ms-flexbox;
  display: flex;
  gap: 18px;
  margin: 0 0 0 10px;
}

.about-intro .about-social a {
  color: #cfcfcf;
  font-size: 21px;
}

.about-intro .about-social a:hover,
.about-intro .about-social a:focus {
  color: var(--custom);
}

/* Highlights */
.highlights {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.highlights li {
  background-color: #161616;
  border: 1px solid #242424;
  border-radius: 10px;
  padding: 26px 24px;
}

.highlights .highlight-value {
  color: #f3f3f3;
  display: block;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}

.highlights .highlight-value small {
  color: var(--custom);
  font-size: 20px;
  font-weight: 600;
  margin-left: 2px;
}

.highlights .highlight-label {
  color: #a9a9a9;
  display: block;
  font-size: 14px;
  line-height: 1.55;
}

/* What I do */
.service-card {
  background-color: #161616;
  border: 1px solid #242424;
  border-radius: 10px;
  height: calc(100% - 30px);
  margin-bottom: 30px;
  padding: 32px 32px 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: rgba(220, 53, 69, 0.55);
  transform: translateY(-3px);
}

.service-card .service-icon {
  -ms-flex-align: center;
  align-items: center;
  background-color: rgba(220, 53, 69, 0.12);
  border-radius: 10px;
  color: var(--custom);
  display: -ms-inline-flexbox;
  display: inline-flex;
  font-size: 26px;
  height: 54px;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 54px;
}

.service-card .service-title {
  color: #f3f3f3;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card .service-text {
  color: #a9a9a9;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .about-photo {
    margin: 0 auto 60px;
    max-width: 360px;
  }

  .about-intro {
    padding-left: 0;
  }

  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .about-photo {
    max-width: 280px;
  }

  .about-intro .about-title {
    font-size: 24px;
  }

  .about-intro .about-text p {
    font-size: 15px;
  }

  .about-intro .about-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-intro .about-social {
    margin: 8px 0 0;
    width: 100%;
  }

  .highlights {
    gap: 12px;
  }

  .highlights li {
    padding: 20px 18px;
  }

  .highlights .highlight-value {
    font-size: 30px;
  }

  .highlights .highlight-value small {
    font-size: 16px;
  }

  .highlights .highlight-label {
    font-size: 13px;
  }

  .service-card {
    padding: 26px 24px;
  }
}

/*----------- Resume -----------*/
.resume-heading {
  -ms-flex-align: center;
  align-items: center;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.resume-heading i {
  font-size: 18px;
}

.resume-heading .resume-heading-note {
  color: #8d8d8d;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-left: auto;
}

/* Experience timeline */
.timeline {
  border-left: 2px solid #262626;
  margin: 0 0 0 7px;
  padding: 0;
}

.timeline-item {
  padding: 0 0 38px 32px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  background-color: #111;
  border: 3px solid var(--custom);
  border-radius: 50%;
  content: '';
  height: 16px;
  left: -9px;
  position: absolute;
  top: 3px;
  width: 16px;
}

.timeline-item:first-child::before {
  background-color: var(--custom);
  box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.18);
}

.timeline-item .timeline-date {
  background-color: rgba(220, 53, 69, 0.12);
  border-radius: 20px;
  color: #ef6b78;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding: 3px 12px;
}

.timeline-item .timeline-title {
  color: #f3f3f3;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item .timeline-org {
  color: #d0d0d0;
  font-size: 15px;
  margin-bottom: 12px;
}

.timeline-item .timeline-points {
  color: #a9a9a9;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  padding-left: 18px;
}

.timeline-item .timeline-points li+li {
  margin-top: 6px;
}

.timeline-item .timeline-points li::marker {
  color: #5a5a5a;
}

/* Education, awards, community */
.resume-aside {
  padding-left: 30px;
}

.resume-aside .resume-heading:not(:first-child) {
  margin-top: 40px;
}

.resume-card,
.award-list li,
.skill-group {
  background-color: #161616;
  border: 1px solid #242424;
  border-radius: 10px;
}

.resume-card {
  padding: 20px 22px;
}

.resume-card .resume-card-title {
  color: #f3f3f3;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.resume-card .resume-card-meta {
  color: #a9a9a9;
  font-size: 14px;
  margin: 0;
}

.award-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.award-list li {
  -ms-flex-align: center;
  align-items: center;
  display: -ms-flexbox;
  display: flex;
  gap: 18px;
  padding: 16px 20px;
}

.award-list .award-rank {
  color: #f3f3f3;
  -ms-flex: 0 0 82px;
  flex: 0 0 82px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.award-list .award-rank small {
  color: var(--custom);
  font-size: 14px;
  font-weight: 600;
}

.award-list .award-text {
  color: #a9a9a9;
  font-size: 13px;
  line-height: 1.5;
}

.award-list .award-text strong {
  color: #e6e6e6;
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.community-list {
  margin: 0;
}

.community-list li {
  color: #c9c9c9;
  font-size: 15px;
  padding: 8px 0 8px 20px;
  position: relative;
}

.community-list li::before {
  background-color: var(--custom);
  border-radius: 50%;
  content: '';
  height: 6px;
  left: 2px;
  position: absolute;
  top: 17px;
  width: 6px;
}

.resume-aside .resume-cv {
  margin-top: 30px;
}

.resume-aside .resume-cv i {
  margin-left: 10px;
}

/* Skills grouped by area */
.skill-group {
  height: calc(100% - 30px);
  margin-bottom: 30px;
  padding: 26px 26px 18px;
}

.skill-group .skill-group-title {
  -ms-flex-align: center;
  align-items: center;
  color: #f3f3f3;
  display: -ms-flexbox;
  display: flex;
  font-size: 17px;
  font-weight: 600;
  gap: 10px;
  margin-bottom: 18px;
}

.skill-group .skill-group-title i {
  color: var(--custom);
  font-size: 20px;
}

.skill-group .skill-tags {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.skill-group .skill-tags li {
  background-color: #1d1d1d;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  color: #d0d0d0;
  font-size: 14px;
  padding: 5px 12px;
}

@media (max-width: 991.98px) {
  .resume-aside {
    margin-top: 60px;
    padding-left: 0;
  }
}

@media (max-width: 575.98px) {
  .timeline-item {
    padding-left: 24px;
  }

  .timeline-item .timeline-title {
    font-size: 18px;
  }

  .timeline-item .timeline-points,
  .timeline-item .timeline-org {
    font-size: 14px;
  }

  .award-list li {
    gap: 14px;
    padding: 14px 16px;
  }

  .award-list .award-rank {
    -ms-flex-preferred-size: 70px;
    flex-basis: 70px;
    font-size: 21px;
  }
}

/*----------- Contact -----------*/
.contact-main {
  padding-right: 40px;
}

.contact-main .contact-kicker {
  margin-bottom: 12px;
}

.contact-main .contact-title {
  color: #f3f3f3;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.contact-main .contact-text {
  color: #b9b9b9;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 520px;
}

.contact-email-box {
  -ms-flex-align: center;
  align-items: center;
  background-color: #161616;
  border: 1px solid #262626;
  border-radius: 12px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 26px;
  max-width: 560px;
  padding: 18px 20px 18px 24px;
}

.contact-email-box .contact-email-label {
  color: #8d8d8d;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-email-box .contact-email {
  color: #f3f3f3;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  font-size: 22px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-email-box .contact-email:hover,
.contact-email-box .contact-email:focus {
  color: var(--custom);
}

.contact-email-box .contact-copy {
  -ms-flex-align: center;
  align-items: center;
  background-color: #222;
  border: 1px solid #333;
  border-radius: 8px;
  color: #e6e6e6;
  cursor: pointer;
  display: -ms-inline-flexbox;
  display: inline-flex;
  font-size: 14px;
  gap: 8px;
  padding: 8px 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.contact-email-box .contact-copy:hover,
.contact-email-box .contact-copy:focus {
  border-color: var(--custom);
  outline: none;
}

.contact-email-box .contact-copy.is-copied {
  background-color: rgba(40, 167, 69, 0.15);
  border-color: #28a745;
  color: #7ee09a;
}

.contact-actions {
  -ms-flex-align: center;
  align-items: center;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-actions .btn i {
  margin-left: 10px;
}

.contact-main .contact-location {
  color: #a9a9a9;
  font-size: 15px;
  margin: 26px 0 0;
}

.contact-main .contact-location i {
  color: var(--custom);
  margin-right: 8px;
}

/* Social profiles */
.contact-social-title {
  margin-bottom: 16px;
}

.social-cards {
  display: grid;
  gap: 12px;
  margin: 0;
}

.social-card {
  -ms-flex-align: center;
  align-items: center;
  background-color: #161616;
  border: 1px solid #242424;
  border-radius: 12px;
  color: #e6e6e6;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.social-card:hover,
.social-card:focus {
  border-color: rgba(220, 53, 69, 0.6);
  color: #fff;
  transform: translateX(4px);
}

.social-card>i:first-child {
  font-size: 26px;
  text-align: center;
  width: 30px;
}

.social-card .social-card-text {
  color: #9a9a9a;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  font-size: 14px;
}

.social-card .social-card-text strong {
  color: #f3f3f3;
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.social-card .social-card-arrow {
  color: var(--custom);
  font-size: 18px;
}

@media (max-width: 991.98px) {
  .contact-main {
    margin-bottom: 50px;
    padding-right: 0;
  }
}

@media (max-width: 575.98px) {
  .contact-main .contact-title {
    font-size: 34px;
  }

  .contact-main .contact-text {
    font-size: 15px;
  }

  .contact-email-box {
    padding: 16px 16px 16px 18px;
  }

  .contact-email-box .contact-email {
    font-size: 18px;
  }

  .contact-actions .btn {
    text-align: center;
    width: 100%;
  }
}

/*----------- Home -----------*/
.home-area {
  background-color: #0e0e0e;
}

.home-area .hero-canvas {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* Darker centre so the text stays readable over the animation */
.home-area::after {
  background: radial-gradient(ellipse at center, rgba(14, 14, 14, 0.92) 0%, rgba(14, 14, 14, 0.7) 38%, rgba(14, 14, 14, 0) 72%);
  content: '';
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}

.home-area .container,
.home-area .fixed-wrapper {
  z-index: 3;
}

.home-area .container {
  position: relative;
}

.home-area .home-name {
  margin-bottom: 22px;
}

.home-area .home-name span {
  color: var(--custom);
}

.home-area .hero-intro {
  color: #b9b9b9;
  font-size: 17px;
  line-height: 1.7;
  margin: 22px auto 0;
  max-width: 560px;
}

.home-area .hero-actions {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 14px;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 34px;
}

.home-area .hero-actions .btn i {
  margin-left: 10px;
}

/* Secondary, outlined button */
.btn.button-ghost {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #f3f3f3;
}

.btn.button-ghost:hover,
.btn.button-ghost:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  box-shadow: none;
  color: #fff;
}

/* Social links under the buttons on phones (the side icons are hidden there) */
.home-area .hero-social {
  display: none;
  gap: 22px;
  -ms-flex-pack: center;
  justify-content: center;
  margin: 30px 0 0;
}

.home-area .hero-social a {
  color: #d6d6d6;
  font-size: 22px;
}

@media (max-width: 767.98px) {
  .home-area .hero-social {
    display: -ms-flexbox;
    display: flex;
  }
}

@media (max-width: 575.98px) {
  .home-area .hero-intro {
    font-size: 15px;
  }

  .home-area .hero-actions .btn {
    padding: 10px 24px;
  }
}


/*----------- Portfolio -----------*/
/* Filters are real buttons so they work with the keyboard (main.js listens for clicks on the <li>).
   They are shown as pills: easy to tap on phones and the active one is clear at a glance. */
.portfolio-section .filter-control {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 10px;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 36px;
}

.portfolio-section .filter-control>li,
.portfolio-section .filter-control>li:not(:last-child) {
  border: 0;
  margin: 0;
}

.portfolio-section .filter-control>li:before,
.portfolio-section .filter-control>li:hover:before,
.portfolio-section .filter-control>li.tab-active:before {
  display: none;
}

.portfolio-section .filter-control>li>button {
  background-color: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  color: #cfcfcf;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  letter-spacing: inherit;
  line-height: 1.4;
  padding: 9px 18px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.portfolio-section .filter-control>li>button:hover {
  border-color: #4a4a4a;
  color: #fff;
}

.portfolio-section .filter-control>li.tab-active>button {
  background-color: var(--custom);
  border-color: var(--custom);
  color: #fff;
}

.portfolio-section .filter-control>li>button:focus {
  outline: none;
}

.portfolio-section .filter-control>li>button:focus-visible {
  outline: 2px solid var(--custom);
  outline-offset: 3px;
}

/* Project cards: the whole card is a link. Images are never cropped: they are
   fitted inside the frame and the empty space shows a blurred copy of the image. */
.portfolio-section .portfolio-grid .single-item {
  margin-bottom: 30px;
}

.project-card {
  background-color: #161616;
  border: 1px solid #242424;
  border-radius: 8px;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover,
.project-card:focus {
  border-color: rgba(220, 53, 69, 0.6);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  color: inherit;
  transform: translateY(-4px);
}

.project-card:focus {
  outline: none;
}

.project-card:focus-visible {
  outline: 2px solid var(--custom);
  outline-offset: 3px;
}

/* Same ratio as the current project images, so they fill the frame; other ratios are fitted, not cropped */
.project-card .card-media {
  aspect-ratio: 680 / 727;
  background-color: #0c0c0c;
  overflow: hidden;
  position: relative;
}

.project-card .media-backdrop,
.project-detail .stage-backdrop {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.project-card .media-backdrop {
  filter: blur(18px) brightness(0.45) saturate(1.15);
  transform: scale(1.15);
}

.project-card .media-image {
  display: block;
  height: 100%;
  object-fit: contain;
  position: relative;
  transition: transform 0.35s ease;
  width: 100%;
}

.project-card:hover .media-image {
  transform: scale(1.03);
}

.project-card .card-body {
  padding: 20px 22px 22px;
}

.project-card .card-meta,
.project-detail .project-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card .card-meta {
  color: #8d8d8d;
  margin-bottom: 8px;
}

.project-card .card-meta span:not(:last-child)::after {
  content: '·';
  margin: 0 8px;
}

.project-card .card-category,
.project-detail .project-kicker {
  color: var(--custom);
}

.project-card .card-title {
  color: #f3f3f3;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card .card-summary {
  -webkit-box-orient: vertical;
  color: #a9a9a9;
  display: -webkit-box;
  font-size: 14px;
  -webkit-line-clamp: 2;
  line-height: 1.65;
  margin-bottom: 16px;
  min-height: 3.3em;
  overflow: hidden;
}

.project-card .card-more {
  color: #e6e6e6;
  font-size: 14px;
  font-weight: 500;
}

.project-card .card-more i {
  color: var(--custom);
  margin-left: 8px;
  transition: margin 0.2s ease;
}

.project-card:hover .card-more i {
  margin-left: 12px;
}

/*----------- Portfolio: project details lightbox -----------*/
.project-detail {
  background-color: #141414;
  border-radius: 10px;
  color: #b4b4b4;
  /* lity sets an inline max-height of the full viewport; keep room around the dialog */
  max-height: calc(100vh - 80px) !important;
  max-height: calc(var(--vh, 1vh) * 100 - 80px) !important;
  max-width: calc(100vw - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  width: 1040px;
}

/* Image stage: the image is shown whole, at its own aspect ratio */
.project-detail .project-stage {
  -ms-flex-align: center;
  align-items: center;
  background-color: #0b0b0b;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
  padding: 32px 32px 26px;
  position: relative;
}

.project-detail .stage-backdrop {
  filter: blur(40px) brightness(0.3) saturate(0.9);
  transform: scale(1.3);
}

.project-detail .stage-link {
  cursor: zoom-in;
  display: block;
  max-width: 100%;
  position: relative;
}

.project-detail .stage-image {
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: block;
  height: auto;
  max-height: 480px;
  max-height: min(50vh, 480px);
  max-width: 100%;
  width: auto;
}

/* Embedded project video (same height limit as the stage images) */
.project-detail .stage-video-wrap {
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
  width: 853px;
  width: min(100%, calc(min(50vh, 480px) * 16 / 9));
}

.project-detail .stage-video {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.project-detail .is-hidden {
  display: none !important;
}

/* Play badge on the video thumbnail */
.project-detail .stage-thumbs .thumb-video {
  position: relative;
}

.project-detail .stage-thumbs .thumb-play {
  -ms-flex-align: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 4px;
  color: #fff;
  display: -ms-flexbox;
  display: flex;
  font-size: 22px;
  -ms-flex-pack: center;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
}

/* Small hint that the image opens in full size */
.project-detail .stage-zoom {
  -ms-flex-align: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  bottom: 12px;
  color: #fff;
  display: -ms-flexbox;
  display: flex;
  font-size: 17px;
  height: 36px;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0.75;
  position: absolute;
  right: 12px;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  width: 36px;
}

.project-detail .stage-link:hover .stage-zoom,
.project-detail .stage-link:focus .stage-zoom {
  background-color: var(--custom);
  opacity: 1;
}

.project-detail .stage-caption {
  color: #d0d0d0;
  font-size: 13px;
  margin: 14px 0 0;
  position: relative;
  text-align: center;
}

.project-detail .stage-thumbs {
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-top: 16px;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px;
  position: relative;
}

.project-detail .stage-thumbs button {
  background: none;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  opacity: 0.55;
  padding: 0;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.project-detail .stage-thumbs button:hover,
.project-detail .stage-thumbs button:focus {
  opacity: 1;
  outline: none;
}

.project-detail .stage-thumbs button.is-active {
  border-color: var(--custom);
  opacity: 1;
}

.project-detail .stage-thumbs img {
  border-radius: 4px;
  display: block;
  height: 58px;
  width: auto;
}

/* Text */
.project-detail .project-content {
  padding: 38px 48px 46px;
}

.project-detail .project-kicker {
  margin-bottom: 10px;
}

.project-detail .project-title {
  color: #f3f3f3;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

/* Second name of a project, e.g. its Turkish name */
.project-detail .project-alt-name {
  color: #9a9a9a;
  font-size: 15px;
  font-weight: 500;
  margin: -6px 0 16px;
}

.project-detail .project-lead {
  color: #d2d2d2;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 72ch;
}

.project-detail .project-actions {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.project-detail .project-actions .btn i {
  margin-left: 10px;
}

.project-detail .project-columns {
  border-top: 1px solid #262626;
  display: grid;
  gap: 52px;
  grid-template-columns: minmax(0, 1fr) 290px;
  margin-top: 36px;
  padding-top: 34px;
}

.project-detail .project-subtitle {
  color: #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.project-detail .project-list {
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  padding-left: 18px;
}

.project-detail .project-list li+li {
  margin-top: 12px;
}

.project-detail .project-list li::marker {
  color: var(--custom);
}

.project-detail .project-list strong {
  color: #ececec;
  font-weight: 600;
}

.project-detail .project-facts {
  margin: 0 0 30px;
}

.project-detail .project-facts dt {
  color: #8d8d8d;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-detail .project-facts dd {
  color: #e2e2e2;
  font-size: 15px;
  line-height: 1.55;
  margin: 4px 0 16px;
}

.project-detail .project-facts dd:last-child {
  margin-bottom: 0;
}

.project-detail .project-facts dd ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-detail .project-facts dd li+li {
  margin-top: 6px;
}

.project-detail .project-tags {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.project-detail .project-tags li {
  background-color: #1c1c1c;
  border: 1px solid #2c2c2c;
  border-radius: 4px;
  color: #cfcfcf;
  font-size: 13px;
  padding: 4px 10px;
}

@media (max-width: 991.98px) {
  .project-detail .project-content {
    padding: 32px 36px 40px;
  }

  .project-detail .project-columns {
    gap: 32px;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .project-detail {
    border-radius: 8px;
    max-height: calc(100vh - 110px) !important;
    max-height: calc(var(--vh, 1vh) * 100 - 110px) !important;
    max-width: calc(100vw - 24px);
  }

  .project-detail .project-stage {
    padding: 18px 14px 14px;
  }

  .project-detail .stage-image {
    max-height: 44vh;
  }

  .project-detail .stage-video-wrap {
    width: min(100%, calc(44vh * 16 / 9));
  }

  .project-detail .stage-thumbs img {
    height: 48px;
  }

  .project-detail .project-content {
    padding: 24px 20px 30px;
  }

  .project-detail .project-title {
    font-size: 25px;
  }

  .project-detail .project-lead {
    font-size: 15px;
  }

  .project-detail .project-actions .btn {
    padding: 10px 20px;
    width: 100%;
  }
}

/* Only show one close button while a project lightbox is open */
.lity-active .lightbox-wrapper .lightbox-close {
  visibility: hidden;
}

/*----------- Close buttons -----------*/
/* Round buttons with a dark background, so they stay visible and never sit on top of
   text that scrolls under them (sections, project dialogs and full-size images) */
.lightbox-wrapper .lightbox-close {
  right: 4vw;
  top: 22px;
}

.lightbox-wrapper .lightbox-close .close-btn,
.lity-close,
.lity-close:hover,
.lity-close:focus,
.lity-close:active,
.lity-close:visited {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background-color: rgba(26, 26, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  height: 46px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 46px;
}

.lity-close,
.lity-close:hover,
.lity-close:focus,
.lity-close:active,
.lity-close:visited {
  right: 12px;
  top: 12px;
}

.lightbox-wrapper .lightbox-close .close-btn:before,
.lightbox-wrapper .lightbox-close .close-btn:after,
.lity-close:before,
.lity-close:after {
  left: 50%;
  margin: -1px 0 0 -9px;
  top: 50%;
  width: 18px;
}

@media (hover: hover) {
  .lightbox-wrapper .lightbox-close .close-btn:hover,
  .lity-close:hover {
    background-color: var(--custom);
    border-color: var(--custom);
  }
}

.lightbox-wrapper .lightbox-close .close-btn:focus,
.lity-close:focus {
  outline: none;
}

.lightbox-wrapper .lightbox-close .close-btn:focus-visible,
.lity-close:focus-visible {
  outline: 2px solid var(--custom);
  outline-offset: 3px;
}

/*----------- Phones and small screens -----------*/
/* Keep the home content below the fixed navbar */
.home-area .container {
  padding-bottom: 40px;
  padding-top: 84px;
}

/* Full-screen menu on phones (opened by js/custom.js) */
@media (max-width: 767.98px) {
  .navbar .navbar-brand,
  .navbar .navbar-menu {
    position: relative;
    z-index: 2;
  }

  .navbar .navbar-collapse {
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(12, 12, 12, 0.97);
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    -ms-flex-pack: center;
    justify-content: center;
    left: 0;
    opacity: 0;
    position: fixed;
    top: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
    width: 100%;
    z-index: 1;
  }

  .menu-open .navbar .navbar-collapse {
    opacity: 1;
    visibility: visible;
  }

  .navbar .navbar-collapse .navbar-nav {
    background: none;
    margin: 0 !important;
    padding: 0;
    text-align: center;
    top: 0;
    width: auto;
  }

  .navbar .navbar-collapse .navbar-nav .nav-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .menu-open .navbar .navbar-collapse .navbar-nav .nav-item {
    opacity: 1;
    transform: none;
  }

  .menu-open .navbar .navbar-nav .nav-item:nth-child(2) {
    transition-delay: 0.05s;
  }

  .menu-open .navbar .navbar-nav .nav-item:nth-child(3) {
    transition-delay: 0.1s;
  }

  .menu-open .navbar .navbar-nav .nav-item:nth-child(4) {
    transition-delay: 0.15s;
  }

  .navbar .navbar-collapse .navbar-nav .nav-link,
  .navbar .navbar-nav .nav-item:not(:last-child) .nav-link {
    color: #f3f3f3;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 10px 24px;
  }

  .navbar .navbar-collapse .navbar-nav .nav-link:hover,
  .navbar .navbar-collapse .navbar-nav .nav-link:focus {
    color: var(--custom);
  }

  .navbar .mobile-menu-social {
    display: -ms-flexbox;
    display: flex;
    gap: 28px;
    margin: 36px 0 0;
  }

  .navbar .mobile-menu-social a {
    color: #cfcfcf;
    display: block;
    font-size: 24px;
    padding: 6px;
  }

  /* Menu button turns into a close (X) button while the menu is open */
  .navbar .navbar-menu:before,
  .navbar .navbar-menu:after,
  .navbar .navbar-menu .btn-line {
    transition: opacity 0.2s ease, transform 0.25s ease, width 0.25s ease;
  }

  .menu-open .navbar .navbar-menu:before {
    transform: translateY(8px) rotate(45deg);
    width: 100%;
  }

  .menu-open .navbar .navbar-menu .btn-line {
    opacity: 0;
  }

  .menu-open .navbar .navbar-menu:after {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Short screens, e.g. phones in landscape */
@media (max-height: 520px) {
  .home-area .container {
    padding-bottom: 12px;
    padding-top: 64px;
  }

  .home-area .home-name {
    font-size: 38px;
    margin-bottom: 10px;
  }

  .home-area .hero-intro {
    font-size: 14px;
    margin-top: 8px;
  }

  .home-area .hero-actions {
    margin-top: 16px;
  }

  .home-area .hero-actions .btn {
    padding: 8px 22px;
  }

  .home-area .hero-social {
    margin-top: 14px;
  }

  .navbar .collapse .navbar-nav .nav-link,
  .navbar .navbar-collapse .navbar-nav .nav-link {
    font-size: 22px;
    padding: 6px 24px;
  }

  .navbar .mobile-menu-social {
    margin-top: 16px;
  }

  /* Bigger photos and video in the project dialog */
  .project-detail {
    max-height: calc(100vh - 30px) !important;
    max-height: calc(var(--vh, 1vh) * 100 - 30px) !important;
  }

  .project-detail .stage-image {
    max-height: 62vh;
  }

  .project-detail .stage-video-wrap {
    width: min(100%, calc(62vh * 16 / 9));
  }
}

/* Touch screens: no hover effects that stay "stuck" after a tap */
@media (hover: none) {
  .project-card:hover,
  .project-card:focus,
  .service-card:hover,
  .social-card:hover,
  .social-card:focus {
    border-color: #242424;
    box-shadow: none;
    transform: none;
  }

  .project-card:hover .media-image {
    transform: none;
  }
}

/*----------- Phones: sections, portfolio and project dialogs -----------*/
/* No grey flash when links and buttons are tapped on mobile browsers */
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767.98px) {
  /* Close buttons in the corner, a little smaller */
  .lightbox-wrapper .lightbox-close {
    right: 14px;
    top: 14px;
  }

  .lity-close,
  .lity-close:hover,
  .lity-close:focus,
  .lity-close:active,
  .lity-close:visited {
    right: 14px;
    top: 14px;
  }

  .lightbox-wrapper .lightbox-close .close-btn,
  .lity-close,
  .lity-close:hover,
  .lity-close:focus,
  .lity-close:active,
  .lity-close:visited {
    height: 44px;
    width: 44px;
  }

  /* Sections: tighter spacing, so more content fits on the screen */
  .lightbox-wrapper .lightbox-content {
    margin: 76px 0 56px;
  }

  .lightbox-wrapper .lightbox-content .section-heading.page-heading {
    margin-bottom: 44px;
  }

  .lightbox-wrapper .lightbox-content .section-heading.page-heading>.section-title {
    margin-bottom: 24px;
  }

  .lightbox-wrapper .lightbox-content .single-section:not(:last-child) {
    margin-bottom: 72px;
  }

  .lightbox-wrapper .lightbox-content .section-heading {
    margin-bottom: 32px;
  }

  /* Thin scrollbar, so it does not cover the content */
  .lightbox-wrapper .simplebar-track.simplebar-vertical {
    width: 8px;
  }

  .lightbox-wrapper .simplebar-track.simplebar-vertical .simplebar-scrollbar {
    right: 1px;
    width: 4px;
  }

  /* Portfolio */
  .portfolio-section .filter-control {
    gap: 8px;
    margin-bottom: 28px;
  }

  .portfolio-section .filter-control>li>button {
    font-size: 13px;
    padding: 8px 15px;
  }

  .portfolio-section .portfolio-grid .single-item {
    margin-bottom: 22px;
  }

  /* Project details open full screen, like a page of an app */
  .lity-inline .lity-wrap:before {
    display: none;
  }

  .lity-inline .lity-container {
    display: block;
    height: 100%;
  }

  .lity-inline .lity-content:after {
    box-shadow: none;
  }

  .project-detail {
    border-radius: 0;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    max-height: 100vh !important;
    max-height: calc(var(--vh, 1vh) * 100) !important;
    max-width: none;
    width: 100%;
  }

  /* Room for the close button above the photo or video */
  .project-detail .project-stage {
    padding: 70px 16px 18px;
  }
}

/* Narrow phones: the filters form one row that scrolls sideways, edge to edge */
@media (max-width: 575.98px) {
  .portfolio-section .filter-control {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin: 0 -15px 26px;
    overflow-x: auto;
    padding: 2px 15px 4px;
    scrollbar-width: none;
  }

  .portfolio-section .filter-control::-webkit-scrollbar {
    display: none;
  }

  .portfolio-section .filter-control>li {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
  }

  /* Fade the edge where more filters can be scrolled into view (classes set in js/custom.js) */
  .portfolio-section .filter-control.can-scroll-left {
    --fade-left: 36px;
  }

  .portfolio-section .filter-control.can-scroll-right {
    --fade-right: 56px;
  }

  .portfolio-section .filter-control.can-scroll-left,
  .portfolio-section .filter-control.can-scroll-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-left, 0px), #000 calc(100% - var(--fade-right, 0px)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-left, 0px), #000 calc(100% - var(--fade-right, 0px)), transparent 100%);
  }

  /* Space after the last filter when the row is scrolled to the end */
  .portfolio-section .filter-control:after {
    content: '';
    -ms-flex: 0 0 7px;
    flex: 0 0 7px;
  }
}

/* The template adds extra space under the About intro on smaller screens; the section spacing is enough */
@media (max-width: 991.98px) {
  #about .info-section {
    padding-bottom: 0;
  }
}

/* Small phones in landscape: the photo or video and its thumbnails fit on the screen
   (side padding keeps the close button clear of the media) */
@media (max-width: 767.98px) and (max-height: 520px) {
  .project-detail .project-stage {
    padding: 14px 64px;
  }
}

/* Tablets: keep the project dialog clear of the close button in the corner */
@media (min-width: 768px) and (max-width: 1199.98px) and (min-height: 521px) {
  .project-detail {
    max-height: calc(100vh - 150px) !important;
    max-height: calc(var(--vh, 1vh) * 100 - 150px) !important;
  }
}
