.application-projects {
  margin-top: 0;
}

.application-projects .js-projects-gallery > .row {
  margin-inline: 0;
}

.application-projects .project figure img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.application-project-main {
  background-position: center;
}

.application-project-main .main-header h1 {
  font-size: clamp(28px, 5.5vw, 64px);
  overflow-wrap: anywhere;
}

.application-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}

.application-photo-grid a:first-child {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: center;
}

.application-photo-grid .application-photo-portrait {
  width: min(100%, 680px);
}

.application-photo-grid img {
  width: 100%;
}

.application-project-page .mfp-detail-btn {
  display: none;
}

@media (max-width: 767px) {
  .application-photo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
