@charset "utf-8";

.application-main .page-container {
  display: block;
}

.application-main .page-main {
  width: 100%;
}

.application-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 0;
  list-style: none;
}

.application-card {
  overflow: hidden;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .08);
}

.application-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.application-card .image {
  height: 290px;
  overflow: hidden;
  background: #f5f5f5;
}

.application-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.application-card:hover img {
  transform: scale(1.03);
}

.application-card .title {
  min-height: 56px;
  padding: 13px 12px;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.application-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, .78);
}

.application-lightbox.active {
  display: flex;
}

.application-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .35);
}

.application-lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 30px;
  line-height: 42px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .application-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .application-card .image {
    height: 230px;
  }
}

@media (max-width: 640px) {
  .application-gallery {
    grid-template-columns: 1fr;
  }

  .application-card .image {
    height: 220px;
  }

  .application-card .title {
    font-size: 18px;
  }
}
