:root {
  --content-space: 0.5em !important;
  --content-width: calc((1100px - (var(--content-space) * 8)) / 4) !important;
  --width: ;
  --height: ;
}
main#portfolio {
  background-color: #111;
  padding-bottom: 8rem;
}
.portfolio {
  max-width: 1100px !important;
  margin: 0 auto !important;
}
.spacer-box {
  visibility: hidden !important;
  transition: none !important;
}
.in-cate {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  background: #111;
}
.ui-group {
  margin: 0.5rem 0 1rem !important;
}

.cate_button {
  line-height: 1.2;
  display: inline-block !important;
  color: #fff !important;
  font-size: 4.7rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: var(--font_en-1);
  text-transform: uppercase !important;
  transition: color 0.3s;
}

.cate_button:hover {
  color: #36f5ff !important;
}

.cate_button.is-checked,
.cate_button:active {
  color: #1dd4ec !important;
}

.group-2 .cate_button:hover {
  background: #000 !important;
  color: #36f5ff !important;
}

.cate_button.is-checked {
  color: #1dd4ec !important;
}

.group-2 .cate_button {
  display: inline-block !important;
  padding: 10px 30px !important;
  background-color: #fff !important;
  color: #000 !important;
}

.group-2 .cate_button.is-checked,
.group-2 .cate_button:active {
  background-color: #ff0011 !important;
}

.cate_button:focus {
  outline: 0 !important;
}

.group-2 .cate_button.is-checked {
  color: #fff !important;
}

.button-group:after,
.grid:after {
  content: "" !important;
  display: block !important;
  clear: both !important;
}

.button-group {
}

.grid {
  width: 100% !important;
}

.grid > .content {
  overflow: hidden !important;
}

.content {
  transition: box-shadow 0.2s ease;
}

.content:hover {
  box-shadow: 0 0 0 1px #d6d6d6;
}

.c-container,
.c-container img {
  width: 100% !important;
  height: 100% !important;
}

.c-container {
  box-shadow: 0 0 0 1px #d6d6d6;
  transition: all 0.2s ease;
  transition: all 0.2s ease, -webkit-all 0.3s ease;
  -webkit-transform: scale(0.985);
  transform: scale(0.985);
}

.c-container:hover {
  -webkit-transform: scale(1);
  transform: scale(1);
}

.c-container img {
  -o-object-fit: cover !important;
  object-fit: cover !important;
  -o-object-position: top !important;
  object-position: top !important;
}

.c-container a:hover:after {
  opacity: 1;
}

.c-container a:after {
  opacity: 0;
  content: attr(data-title);
  color: #fff;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 6px;
  line-height: 1.5;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.ui-group,
.ui-group .button-group {
  display: inline-block !important;
}

.content:hover {
  box-shadow: 1px 2px 7px -2px rgba(0, 0, 0, 0.66);
}

.content {
  height: var(--content-width) !important;
  width: var(--content-width) !important;
  margin: var(--content-space) !important;
}

.d-caption {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
  color: #fff !important;
  padding: 1rem !important;
  font-family: "Lato", sans-serif !important;
  font-size: 16px !important;
  line-height: 18px !important;
  background: rgba(0, 0, 0, 0.66) !important;
}

@media only screen and (max-width: 1150px) {
  :root {
    --grid-width: 100vw !important;
    --content-width: calc(
      (var(--grid-width) - (var(--content-space) * 8)) / 4
    ) !important;
  }

  .grid {
    width: var(--grid-width) !important;
  }
}

@media only screen and (max-width: 900px) {
  :root {
    --content-width: calc(
      (var(--grid-width) - (var(--content-space) * 6)) / 3
    ) !important;
  }

  .d-caption {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
  }
}

@media only screen and (max-width: 768px) {
  :root {
    --content-width: calc(
      (var(--grid-width) - (var(--content-space) * 4)) / 2
    ) !important;
  }

  .cate_button {
    font-size: 3rem !important;
    line-height: 1.1;
    padding: 2px 4px !important;
    margin: 2px 8px;
  }

  .content a:after {
    display: none;
  }
}

/*  */
body.no-scroll {
  overflow: hidden;
}
.overlay {
  position: fixed;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transition: top 0.6s ease;
}
.overlay.active {
  top: 0;
}
.overlay.hidden {
  display: none;
}
