html.tk-gallery-view .page-head {
  background-color: #1b1b1b;
  background-image: linear-gradient(rgba(27, 27, 27, .9), rgba(27, 27, 27, .9)), url('https://kuzasakougei.jp/system_panel/uploads/images/pattern.png')
}

html.page-gallery .gallery-reference {
  background: #1b1b1b;
  color: #ffffff;
  padding: 0;
  margin: 0 !important
}

html.page-gallery .page-content {
  background: #1b1b1b
}

html.page-gallery .page-head+.cate_wrap {
  border-top: 0;
  border-bottom: 1px solid #d9a518;
  background: #1b1b1b;
  color: #ffffff;
  margin: 0
}

html.page-gallery .cate_wrap a.is-active {
  background: #f3f3f3;
  color: #1c1e29
}

html.page-gallery .tk-gallery-wrap {
  width: 83.333333%;
  max-width: 1280px;
  padding: 130px 0 150px
}

html.page-gallery .tk-gallery-works {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 89px
}

html.page-gallery .tk-gallery-work {
  position: relative;
  display: block;
  min-width: 0
}

html.page-gallery .gallery-art {
  margin-left: 50px;
  width: calc(100% - 50px);
  height: 380px;
  border: 10px solid #ffffff;
  border-radius: 0;
  background: #ffffff;
  overflow: hidden;
  contain: paint
}

html.page-gallery .art-crop {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative
}

html.page-gallery .art-crop>img {
  position: absolute;
  max-width: none;
  left: -10.5%;
  top: -10.5%;
  width: 121%;
  height: 121%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1), filter .8s
}

html.page-gallery .gallery-caption {
  padding-top: 10px;
  min-height: 30px
}

html.page-gallery .gallery-caption>.price {
  font-family: var(--serif);
  font-size: 15px;
  line-height: max(1.6em, 20px);
  text-align: right;
  color: #ffffff;
  white-space: nowrap
}

html.page-gallery .gallery-label {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 5px;
  align-items: flex-start
}

html.page-gallery .gallery-label>.category {
  font-family: var(--english);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .1em;
  writing-mode: vertical-rl;
  line-height: 1.6;
  color: #66943f
}

html.page-gallery .gallery-label>.card-title {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0
}

html.page-gallery .gallery-label>.card-title>span {
  display: inline !important
}

html.page-gallery .gallery-reference .webgene-pagination {
  margin: 100px 0 0
}

html.page-gallery .webgene-pagination li {
  border-color: #38383a;
  background: #38383a;
  color: #ffffff
}

html.page-gallery .webgene-pagination li.selected {
  background: #f3f3f3;
  color: #1c1e29;
  border-color: #f3f3f3
}

@media(hover:hover)and(pointer:fine) {
  html.page-gallery .tk-gallery-work:hover .art-crop>img {
    transform: scale(1.035);
    filter: brightness(1.025)
  }
}

@media(max-width:1100px) {
  html.page-gallery .tk-gallery-wrap {
    width: calc(100% - 70px);
    padding-block: 90px
  }

  html.page-gallery .tk-gallery-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 55px 40px
  }

  html.page-gallery .gallery-art {
    height: 400px
  }

  html.page-gallery .gallery-reference .webgene-pagination {
    margin-top: 70px
  }
}

@media(max-width:768px) {
  html.page-gallery .tk-gallery-wrap {
    width: calc(100% - 50px);
    padding-block: 70px
  }

  html.page-gallery .tk-gallery-works {
    gap: 45px 25px
  }

  html.page-gallery .gallery-art {
    margin-left: 35px;
    width: calc(100% - 35px);
    height: 340px;
    border-width: 7px
  }

  html.page-gallery .gallery-label>.card-title {
    font-size: 17px
  }

  html.page-gallery .gallery-label>.category {
    font-size: 14px
  }

  html.page-gallery .gallery-caption>.price {
    font-size: 14px
  }
}

@media(max-width:576px) {
  html.page-gallery .tk-gallery-wrap {
    width: calc(100% - 40px);
    padding-block: 55px 70px
  }

  html.page-gallery .tk-gallery-works {
    grid-template-columns: 1fr;
    gap: 50px
  }

  html.page-gallery .gallery-art {
    margin-left: 40px;
    width: calc(100% - 40px);
    height: 420px;
    border-width: 9px
  }

  html.page-gallery .gallery-label>.card-title {
    font-size: 19px
  }

  html.page-gallery .gallery-label>.category {
    font-size: 14px
  }

  html.page-gallery .gallery-caption>.price {
    font-size: 14px
  }

  html.page-gallery .gallery-reference .webgene-pagination {
    margin-top: 60px
  }
}

@supports(-moz-appearance:none) {
  html.page-gallery .tk-gallery-work:hover .art-crop>img {
    transform: none;
    filter: none;
    transition: none
  }
}

html.page-gallery .tk-gallery-work:hover {
  transform: none
}

/* The generated pager spans all product columns. */
.page-gallery .tk-gallery-works .webgene-pagination {
  grid-column: 1 / -1;
  width: 100%;
}

/* CMSページャー：カードの列とは分け、一覧全幅の中央に配置する。 */
html.page-gallery .gallery-reference .tk-gallery-works .webgene-pagination {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  margin: clamp(32px, 5vw, 64px) 0 0;
}
html.page-gallery .gallery-reference .webgene-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
html.page-gallery .gallery-reference .webgene-pagination li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #38383a;
  border-radius: 50%;
  background: #38383a;
  color: #ffffff;
}
html.page-gallery .gallery-reference .webgene-pagination li.selected {
  border-color: #f3f3f3;
  background: #f3f3f3;
  color: #1c1e29;
}
html.page-gallery .gallery-reference .webgene-pagination li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  transition: opacity .3s;
}
html.page-gallery .gallery-reference .webgene-pagination li > a:hover { opacity: .7; }
html.page-gallery .gallery-reference .webgene-pagination li p { margin: 0; }

