.smallGallery {
  overflow: visible;
  position: relative;
  width: 100%;
  background: rgba(5, 38, 46, 0.5);
}

.smallGallery__background {
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.smallGallery__background-svg {
  display: block;
  height: auto;
  left: 50%;
  max-width: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1440px;
}

.smallGallery__container {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin: 0 auto;
  max-width: 1280px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.smallGallery__header {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 768px;
  text-align: center;
  width: 100%;
}

.smallGallery__top-row {
  align-items: center;
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.smallGallery__top-icon {
  display: block;
  height: 9px;
  width: 54px;
}

.smallGallery__top-text {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.smallGallery__title {
  color: #ffffff;
  font-family: "Gilda Display", serif;
  font-size: 60px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.6px;
  line-height: 1.2;
  margin: 0;
}

.smallGallery__text {
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
}

.smallGallery__button {
  align-items: center;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 4px;
  color: #ffffff;
  display: inline-flex;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  line-height: 1.6;
  padding: 10px 20px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.smallGallery__button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.smallGallery__button-icon {
  display: block;
  height: 15px;
  width: 15px;
}

.smallGallery__gallery {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.smallGallery__column {
  display: grid;
  gap: 32px;
  grid-template-rows: auto auto;
}

.smallGallery__image {
  border-radius: 20px;
  display: block;
  height: auto;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
  transition:
    transform 400ms ease,
    filter 280ms ease;
  width: 100%;
}

.smallGallery__image--1 {
  aspect-ratio: 39 / 40;
}

.smallGallery__image--2 {
  aspect-ratio: 640 / 426;
}

.smallGallery__image--3 {
  aspect-ratio: 624 / 415.35;
}

.smallGallery__image--4 {
  aspect-ratio: 39 / 40;
}

@media (hover: hover) and (pointer: fine) {
  .smallGallery__image:hover {
    filter: brightness(1.03);
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .smallGallery__image {
    transition: none;
  }

  .smallGallery__image:hover {
    filter: none;
    transform: none;
  }
}

@media (max-width: 1440px) {
  .smallGallery__background-svg {
    width: 1320px;
  }

  .smallGallery__container {
    width: 90%;
  }
}

@media (max-width: 992px) {
  .smallGallery__background-svg {
    width: 1180px;
  }

  .smallGallery__title {
    font-size: 48px;
  }

  .smallGallery__text {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .smallGallery__background-svg {
    width: 980px;
  }

  .smallGallery__container {
    gap: 36px;
  }

  .smallGallery__header {
    gap: 18px;
  }

  .smallGallery__title {
    font-size: 38px;
  }

  .smallGallery__text {
    font-size: 16px;
  }

  .smallGallery__gallery {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .smallGallery__column {
    gap: 18px;
  }
}
