@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: 0;
  padding: 0;
  list-style: none;
}

.application-card {
  overflow: hidden;
  background: #f6f6f6;
}

.application-card:nth-child(even) {
  background: #e7e5e5;
}

.application-card:first-child {
  background: var(--color);
}

.application-card button {
  display: block;
  width: 100%;
  min-height: 456px;
  padding: 66px 20px 42px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.application-card .image {
  height: 270px;
  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 {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 60px;
  color: var(--fontcolor);
  font-size: 25px;
  font-weight: var(--fontbold4);
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.application-card .title::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-left: 8px;
  background: #9a9a9a;
}

.application-card:first-child .title {
  color: #FFFFFF;
}

.application-card:first-child .title::after {
  background: rgba(255, 255, 255, .65);
}

.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));
  }

  .application-card button {
    min-height: 400px;
    padding: 46px 20px 34px;
  }

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

  .application-card .title {
    margin-bottom: 36px;
    font-size: 22px;
  }
}

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

  .application-card button {
    min-height: 0;
    padding: 32px 16px;
  }

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

  .application-card .title {
    margin-bottom: 24px;
    font-size: 20px;
  }
}
