.gallery__item-img {
  position: relative; }
  .gallery__item-img img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover; }

.gallery__item-title {
  font-size: 24px; }
  @media screen and (max-width: 1919px) {
    .gallery__item-title {
      font-size: 24px; } }
  @media screen and (max-width: 1279px) {
    .gallery__item-title {
      font-size: 20px; } }
  @media screen and (max-width: 1023px) {
    .gallery__item-title {
      font-size: 20px; } }
  @media screen and (max-width: 639px) {
    .gallery__item-title {
      font-size: 14px; } }

.gallery__item-img, .gallery__item-title {
  margin-bottom: 20px; }
  @media screen and (max-width: 1919px) {
    .gallery__item-img, .gallery__item-title {
      margin-bottom: 20px; } }
  @media screen and (max-width: 1279px) {
    .gallery__item-img, .gallery__item-title {
      margin-bottom: 20px; } }
  @media screen and (max-width: 1023px) {
    .gallery__item-img, .gallery__item-title {
      margin-bottom: 10px; } }
  @media screen and (max-width: 639px) {
    .gallery__item-img, .gallery__item-title {
      margin-bottom: 10px; } }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 45px;
  position: relative; }
  @media screen and (max-width: 1919px) {
    .gallery {
      grid-template-columns: repeat(3, 1fr); } }
  @media screen and (max-width: 1279px) {
    .gallery {
      grid-template-columns: repeat(3, 1fr); } }
  @media screen and (max-width: 1023px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr); } }
  @media screen and (max-width: 639px) {
    .gallery {
      grid-template-columns: repeat(1, 1fr); } }
  @media screen and (max-width: 1919px) {
    .gallery {
      grid-column-gap: 30px; } }
  @media screen and (max-width: 1279px) {
    .gallery {
      grid-column-gap: 30px; } }
  @media screen and (max-width: 1023px) {
    .gallery {
      grid-column-gap: 30px; } }
  @media screen and (max-width: 639px) {
    .gallery {
      grid-column-gap: 30px; } }
  @media screen and (max-width: 1919px) {
    .gallery {
      grid-row-gap: 45px; } }
  @media screen and (max-width: 1279px) {
    .gallery {
      grid-row-gap: 45px; } }
  @media screen and (max-width: 1023px) {
    .gallery {
      grid-row-gap: 45px; } }
  @media screen and (max-width: 639px) {
    .gallery {
      grid-row-gap: 30px; } }
  .gallery__item-img {
    height: 350px; }
    @media screen and (max-width: 1919px) {
      .gallery__item-img {
        height: 350px; } }
    @media screen and (max-width: 1279px) {
      .gallery__item-img {
        height: 270px; } }
    @media screen and (max-width: 1023px) {
      .gallery__item-img {
        height: 255px; } }
    @media screen and (max-width: 639px) {
      .gallery__item-img {
        height: 270px; } }
  .gallery__item-title {
    line-height: 1.2; }
  .gallery__item-ancor {
    display: flex;
    align-items: center;
    text-decoration: none; }
    .gallery__item-ancor svg {
      margin-left: 10px; }
