.textile_block { padding: 60px 0 30px; text-align: center; }
.textile_block h1 { margin-bottom: 35px; font-size: 70px; font-weight: 400; }
.textile_items { display: flex; flex-flow: row wrap; justify-content: flex-start; }
.textile_item { position: relative; display: block; width: calc((100% - 48px) / 4); margin: 0 16px 50px 0; text-align: left; }
.textile_item:nth-child(4n) { margin-right: 0; }
.textile_item__img { position: relative; margin-bottom: 12px; padding-bottom: 133%; }
.textile_item__img1, .textile_item__img2 { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 200ms ease; }
.textile_item__img1 { z-index: 1; }
.textile_item__img2 { z-index: 2; opacity: 0; }
.textile_item__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.textile_item__title { position: relative; padding: 0 40px; color: #000; font-size: 28px; line-height: 1.2; text-align: center; }
.textile_item__title span { position: absolute; top: 14px; left: 0; font-family: "TT Commons", Arial, sans-serif; font-size: 14px; }
.textile_item.with_hover:hover .textile_item__img1 { opacity: 0; }
.textile_item.with_hover:hover .textile_item__img2 { opacity: 1; }

.single_block { padding: 20px 0; font-size: 20px; line-height: 31px; }
.go_back { position: absolute; top: 20px; right: 0; transition: transform 200ms ease; }
.go_back:hover { transform: scale(1.1); }
.single_top { position: relative; max-width: 720px; margin-right: 50px; padding-bottom: 8px; }
.single_top h1 { max-width: 18em; margin: 0 0 9px; font-size: 30px; font-weight: 400; line-height: 1.05; text-wrap: balance; }
.single_chars { max-width: 48em; margin-bottom: 22px; font-family: "TT Commons", Arial, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: .015em; color: #737373; }
.single_chars p { margin: 0; }
.single_gallery { position: relative; width: calc(100vw - 48px); }
.single_images { position: relative; width: 100%; height: 100vh; max-height: calc(100vh - 180px); padding-bottom: 40px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.single_images::-webkit-scrollbar { display: none; }
.single_image { position: relative; display: inline-block; margin-right: 20px; scroll-snap-align: start; vertical-align: top; }
.single_image__box { position: relative; overflow: hidden; }
.back_img__relative { position: relative; height: 100vh; max-height: calc(100vh - 180px); transition: transform 200ms ease; }
.back_img__relative picture { position: relative; display: block; height: 100%; }
.back_img__relative img { position: relative; display: block; width: auto; height: 100%; }
.single_image:hover .back_img__relative { transform: scale(1.2); }
.single_gallery__nav { position: absolute; z-index: 4; top: 50%; display: grid; width: 64px; height: 64px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #222; background: rgb(255 255 255 / 58%); box-shadow: 0 3px 18px rgb(0 0 0 / 8%); cursor: pointer; backdrop-filter: blur(8px); transform: translateY(-50%); transition: color 180ms ease, background-color 180ms ease, opacity 180ms ease, transform 100ms ease; }
.single_gallery__nav--prev { left: 18px; }
.single_gallery__nav--next { right: 18px; }
.single_gallery__nav span { display: block; width: 15px; height: 15px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.single_gallery__nav--prev span { transform: translateX(2px) rotate(-135deg); }
.single_gallery__nav--next span { transform: translateX(-2px) rotate(45deg); }
.single_gallery__nav:active:not(:disabled) { transform: translateY(-50%) scale(.94); }
.single_gallery__nav:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.single_gallery__nav:disabled { opacity: 0; pointer-events: none; }

@media (hover: hover) {
  .single_gallery__nav:hover:not(:disabled) { color: #fff; background: rgb(34 34 34 / 72%); }
}

@media (max-width: 1500px) {
  .single_images, .back_img__relative { height: 36vw; }
}
@media (max-width: 1250px) {
  .textile_item { width: calc((100% - 40px) / 3); margin-right: 20px; margin-bottom: 60px; }
  .textile_item:nth-child(4n) { margin-right: 20px; }
  .textile_item:nth-child(3n) { margin-right: 0; }
}
@media (max-width: 1100px) {
  .textile_item.with_hover:hover .textile_item__img1 { opacity: 1; }
  .textile_item.with_hover:hover .textile_item__img2 { opacity: 0; }
  .single_image:hover .back_img__relative, .go_back:hover { transform: none; }
}
@media (max-width: 1000px) {
  .textile_block { padding: 40px 0 10px; }
  .textile_item { width: calc((100% - 10px) / 2); margin-right: 10px; }
  .textile_item:nth-child(3n), .textile_item:nth-child(4n) { margin-right: 10px; }
  .textile_item:nth-child(2n) { margin-right: 0; }
}
@media (max-width: 750px) {
  .textile_block { padding: 30px 0 50px; }
  .textile_block h1 { margin-bottom: 20px; font-size: 30px; }
  .textile_item { margin-bottom: 30px; }
  .textile_item__title { padding: 0; font-size: 20px; text-align: left; }
  .textile_item__title span { position: relative; top: auto; left: auto; display: block; padding-top: 5px; font-size: 12px; }
  .single_block { padding: 10px; }
  .go_back { top: 10px; right: 10px; }
  .single_top h1 { max-width: calc(100% - 54px); margin-bottom: 7px; font-size: 24px; }
  .single_chars { margin-bottom: 18px; font-size: 13px; }
  .single_gallery { width: 100%; }
  .single_images { width: 100%; height: auto; max-height: none; padding: 0; overflow: visible; scroll-snap-type: none; white-space: normal; }
  .single_gallery__nav { display: none; }
  .single_image { display: block; margin: 0 0 20px; }
  .back_img__relative { width: 100%; height: auto; max-height: none; }
  .back_img__relative picture { height: auto; }
  .back_img__relative img { width: 100%; height: auto; }
}
