.misc-work-page {
  width: 100%;
}

.misc-work-filters,
.misc-work-filters li {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.misc-work-filters {
  font-family: "HCo Gotham SSm", sans-serif;
  font-size: 0.9375rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 auto 60px;
}

@media (min-width: 768px) {
  .misc-work-filters {
    margin-bottom: 48px;
  }
}

.misc-work-filters li {
  display: inline;
  margin: 0 15px;
}

.misc-work-filters button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
  padding: 0;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.misc-work-filters button:hover {
  color: blue;
}

.misc-work-filters button.is-active {
  color: blue;
}

@media (min-width: 768px) and (max-width: 1650px) {
  .misc-work-gallery,
  .misc-work-filters {
    max-width: calc(100% - 120px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .misc-work-filters {
    font-size: 0.63157895rem;
    margin-bottom: 20px;
  }

  .misc-work-filters li {
    display: inline-block;
    white-space: nowrap;
  }

  .misc-work-grid {
    padding-left: 25px;
    padding-right: 25px;
  }
}

.misc-work-grid {
  width: 100%;
}

.misc-work-row {
  display: grid;
  width: 100%;
  margin-bottom: 20px;
  gap: 20px;
}

.misc-work-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.misc-work-item-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.misc-work-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.misc-work-item:hover img {
  transform: scale(1.02);
}

.misc-work-item-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.misc-work-item:hover .misc-work-item-content {
  opacity: 1;
}

.misc-work-item-content h2 {
  margin: 0;
}

.misc-work-subhead {
  margin-top: 5px;
}

.misc-work-row--2-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.misc-work-row--2-columns .misc-work-item {
  aspect-ratio: 1 / 1;
}

.misc-work-row--full-width {
  grid-template-columns: 1fr;
}

.misc-work-row--full-width .misc-work-item {
  aspect-ratio: auto;
}

.misc-work-row--full-width .misc-work-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.misc-work-row--3-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.misc-work-row--3-columns .misc-work-item {
  aspect-ratio: 1 / 1.3;
}

.misc-work-row--2-columns-tall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.misc-work-row--2-columns-tall .misc-work-item {
  min-height: 0;
  aspect-ratio: auto;
}

.misc-work-row--2-columns-tall .misc-work-item:nth-child(1),
.misc-work-row--2-columns-tall .misc-work-item:nth-child(2) {
  min-height: 350px;
}

.misc-work-row--2-columns-tall .misc-work-item:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.misc-work-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.misc-work-item:hover video {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .misc-work-filters {
    gap: 15px;
    margin-bottom: 30px;
  }

  .misc-work-row {
    display: block;
    margin-bottom: 15px;
  }

  .misc-work-row .misc-work-item,
  .misc-work-row--2-columns-tall .misc-work-item:nth-child(1),
  .misc-work-row--2-columns-tall .misc-work-item:nth-child(2),
  .misc-work-row--2-columns-tall .misc-work-item:nth-child(3) {
    display: block;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
  }

  .misc-work-row--full-width .misc-work-item {
    aspect-ratio: 1.5 / 1;
  }

  .misc-work-item-content {
    opacity: 1;
  }
}
