/*==============================================
  Front page gallery block
===============================================*/

.fp-gallery {
  position: relative;
  display: block;
  padding: 60px 0 60px;
  background-color: var(--nexin-white);
}

.fp-gallery__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.fp-gallery__title {
  margin: 0 0 8px;
  font-family: var(--nexin-font);
  font-size: 34px;
  line-height: 1.26;
  font-weight: 700;
  color: var(--nexin-black);
}

.fp-gallery__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--nexin-gray);
}

.fp-gallery__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

.fp-gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  background-color: #E7ECF4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  transform-origin: center center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.fp-gallery__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.16);
}

.fp-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fp-gallery__item--main .fp-gallery__img {
  min-height: 320px;
}

.fp-gallery__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.fp-gallery__btn-wrap {
  margin-top: 30px;
  text-align: center;
}

.fp-gallery__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 34px;
  border-radius: 999px;
  background-color: #0b73ff;
  color: var(--nexin-white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(11, 115, 255, 0.35);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

.fp-gallery__btn:hover,
.fp-gallery__btn:focus {
  background-color: #075cd1;
  color: var(--nexin-white);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(7, 92, 209, 0.40);
}

.fp-gallery__btn-text {
  white-space: nowrap;
}

.fp-gallery__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.16);
}

.fp-gallery__btn-icon .icon-arrow-up-right {
  font-size: 14px;
}

@media (max-width: 991px) {
  .fp-gallery {
    padding: 48px 0 32px;
  }

  .fp-gallery__grid {
    grid-template-columns: 1.4fr 1.1fr;
    gap: 14px;
  }

  .fp-gallery__title {
    font-size: 30px;
  }

  .fp-gallery__item--main .fp-gallery__img {
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  .fp-gallery {
    padding: 40px 0 26px;
  }

  .fp-gallery__grid {
    grid-template-columns: 1fr;
  }

  .fp-gallery__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .fp-gallery__item {
    border-radius: 24px;
  }

  .fp-gallery__item--main .fp-gallery__img {
    min-height: 260px;
  }
}

@media (max-width: 575px) {
  .fp-gallery {
    padding: 32px 0 22px;
  }

  .fp-gallery__header {
    margin-bottom: 22px;
  }

  .fp-gallery__title {
    font-size: 24px;
  }

  .fp-gallery__subtitle {
    font-size: 14px;
  }

  .fp-gallery__grid {
    gap: 10px;
  }

  .fp-gallery__side {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fp-gallery__item {
    border-radius: 20px;
  }

  .fp-gallery__img,
  .fp-gallery__item--main .fp-gallery__img {
    min-height: 220px;
  }
}

