.gallery-grid {
  columns: 4 260px;
  column-gap: 22px;
}

.gallery-item {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  background: transparent;
  cursor: pointer;
  break-inside: avoid;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 45px;
  flex-wrap: wrap;
}

.gallery-page-btn {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 1px solid #e3e9f3;
  color: #001b44;
  display: grid;
  place-items: center;
  font-weight: 900;
  text-decoration: none;
  transition: 0.25s ease;
}

.gallery-page-btn:hover,
.gallery-page-btn.active {
  background: #0057ff;
  color: #fff;
  border-color: #0057ff;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 10, 30, 0.92);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

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

.gallery-lightbox-inner {
  max-width: 88vw;
  max-height: 88vh;
}

.gallery-lightbox-inner img {
  max-width: 100%;
  max-height: 88vh;
  display: block;
}

.gallery-close,
.gallery-arrow {
  position: absolute;
  border: 0;
  background: #0057ff;
  color: #fff;
  width: 54px;
  height: 54px;
  font-size: 34px;
  cursor: pointer;
  z-index: 2;
}

.gallery-close {
  top: 30px;
  right: 30px;
}

.gallery-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-empty {
  padding: 30px;
  background: #f7f9fc;
  border-left: 5px solid #0057ff;
  font-weight: 900;
}

@media (max-width: 767px) {
  .gallery-grid {
    columns: 2 160px;
    column-gap: 14px;
  }

  .gallery-item {
    margin-bottom: 14px;
  }

  .gallery-arrow {
    width: 44px;
    height: 44px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }
}