.gallery-category {
  padding-block: 40px;
}
@media (width >= 992px) {
  .gallery-category {
    padding-block: 70px;
  }
}
.gallery-category-wrapper {
  position: relative;
}
.gallery-category-wrapper:before {
  --margin: calc( ( 100vw - min( 100%, var(--wp--style--global--content-size)) ) * -1 / 2 );
  position: absolute;
  content: "";
  inset: min(735px, 60%) var(--margin) 25px var(--margin);
  display: block;
  z-index: -1;
  background-color: var(--background-color);
}
@media (width >= 992px) {
  .gallery-category-wrapper:before {
    inset-block: 50% 0;
    translate: 0 -50%;
  }
}
.gallery-category-title {
  margin-bottom: 32px;
}
@media (width > 600px) {
  .gallery-category-title {
    margin-bottom: 16px;
  }
}
.gallery-category-title__big {
  line-height: 46px;
  font-size: 36px;
  text-transform: uppercase;
  font-family: var(--wp--preset--font-family--arsenal), sans-serif;
  font-weight: 400;
  color: var(--wp--preset--color--primary-black);
  margin: 0;
  position: relative;
}
.gallery-category-title__big:after {
  content: "";
  position: absolute;
  left: 555px;
  top: 0.58lh;
  right: 0;
  display: block;
  width: 156px;
  height: 36px;
  background: url("/wp-content/themes/portraithy/src/assets/img/stroke.svg") no-repeat center/100% 100%;
  transition: opacity 0.3s ease-in-out;
  rotate: -6.3deg;
  z-index: -1;
  filter: brightness(0) saturate(100%) invert(49%) sepia(91%) saturate(555%) hue-rotate(347deg) brightness(95%) contrast(102%);
}
@media (width < 775px) {
  .gallery-category-title__big:after {
    display: none;
  }
}
@media (width > 600px) {
  .gallery-category-title__big {
    font-size: 48px;
    line-height: 68px;
  }
}
.gallery-category-title__small {
  margin: 0;
  margin-top: 8px;
  font-size: 24px;
  line-height: 30px;
  letter-spacing: 1.92px;
  font-weight: 400;
  font-family: var(--wp--preset--font-family--pristina), sans-serif;
  color: var(--wp--preset--color--background-green);
}
@media (width > 600px) {
  .gallery-category-title__small {
    line-height: 30px;
    font-size: 26px;
  }
}
.gallery-category__gallery {
  display: grid;
  margin-top: 16px;
  --auto-grid-max-columns: 4;
  --auto-grid-gap-vertical: 20px;
  --auto-grid-gap: 15px;
  --auto-grid-min-size: unset;
}
@media (width < 350px) {
  .gallery-category__gallery {
    --auto-grid-min-columns: 1;
    --auto-grid-min-size: 47%;
  }
}
@media (width > 1200px) {
  .gallery-category__gallery {
    --auto-grid-gap-vertical: 56px;
    --auto-grid-gap: 32px;
    margin-bottom: 40px;
  }
}
.gallery-category__gallery-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  position: relative;
}
.gallery-category__gallery-card a {
  text-decoration: none;
}
.gallery-category__gallery-card .image-container {
  box-shadow: inset -3px 3px 0px 3px #D9D9D9;
}
.gallery-category__gallery-card .image-container img, .gallery-category__gallery-card .image-container video {
  aspect-ratio: 1/1;
  object-fit: cover;
  height: auto;
  width: 100%;
  z-index: -1;
  position: relative;
}
.gallery-category__gallery-card .text-container {
  display: flex;
  flex-direction: column;
  margin-block: 4px 16px;
  grid-row-gap: 8px;
}
.gallery-category__gallery-card .text-container p {
  max-width: max-content;
  margin-block: 0;
  color: var(--wp--preset--color--background-green);
  font-size: var(--wp--preset--font-size--medium);
  font-weight: 600;
  line-height: 1.25em;
}
@media (width <= 1200px) {
  .gallery-category__gallery-card .text-container p {
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
    line-height: 1.25em;
  }
}
.gallery-category__gallery-card .price {
  font-size: 14px;
  line-height: 22px;
}
.gallery-category__gallery-card .price .price-prefix {
  color: var(--wp--preset--color--grey-500);
}
.gallery-category__gallery-card .price del {
  color: var(--wp--preset--color--grey-500);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--wp--preset--color--background-green);
  margin-inline-end: 8px;
}
.gallery-category__gallery-card .price:has(.onsale) .price-prefix, .gallery-category__gallery-card .price del {
  vertical-align: top;
}
.gallery-category__gallery-card .price > ins, .gallery-category__gallery-card .price > .amount {
  font-weight: 600;
  text-decoration: none;
  color: var(--wp--preset--color--background-green);
}
.gallery-category__gallery-card .price > ins {
  color: var(--wp--preset--color--sale-red);
}
.gallery-category__gallery-card .price:has(> .amount + .onsale) > .amount {
  color: var(--wp--preset--color--sale-red);
}
.gallery-category__gallery-card .price .woocommerce-Price-currencySymbol:after {
  content: " ";
}
.gallery-category__gallery-card:has(:has(.onsale)) .product-badge {
  top: 24px;
}
.gallery-category__gallery-title {
  font-size: 1rem;
}
.gallery-category__buttons-container {
  width: 100%;
  display: flex;
}
.gallery-category__buttons-container-button {
  margin: 0 auto;
  --skin--color: unset;
  --skin--border-color: unset;
}

.wp-block-owst-gallery-category {
  background-color: unset !important;
  overflow-x: hidden;
}

.block-editor-block-list__block .gallery-category-wrapper:before {
  z-index: 0;
}

.is-root-container {
  overflow-x: hidden;
}
