.grs-portfolio-item {
  aspect-ratio: 16/9;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  outline: 0px solid transparent;
  opacity: 1;
  transform: translateY(0px) scale(1);
  transition: box-shadow 0.3s, background-size 0.3s, outline 0.3s, transform 0.3s, opacity 0.3s;
}
.grs-portfolio-item.out-of-view {
  opacity: 0;
  transform: translateY(50px);
}
.grs-portfolio-item > .grs-portfolio-item-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  color: #fff;
  transition: opacity 0.3s;
}
.grs-portfolio-item > .grs-portfolio-item-content > h2 {
  font-family: Montreal, Helvetica, Arial, sans-serif;
}
.grs-portfolio-item > .grs-portfolio-item-content > * {
  color: #fff;
  max-width: 75%;
  text-align: center;
}
.grs-portfolio-item.subgrid > .grs-portfolio-item-content > h2 {
  font-size: 24px;
  max-width: 90%;
}
.grs-portfolio-item:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  outline: 6px solid #e44708;
  transform: translateY(0px) scale(1.02);
  z-index: 2;
}
.grs-portfolio-item:hover > .grs-portfolio-item-content {
  opacity: 1;
}
.grs-portfolio-item:hover > .grs-portfolio-item-content > .description {
  display: none;
}

.grs-portfolio-item-featured {
  max-width: 1200px;
  margin: 0 auto;
}
.grs-portfolio-item-featured > .grs-portfolio-item-content > .description {
  display: block;
}

.grs-portfolio-items {
  display: grid;
  max-width: 1200px;
  grid-gap: 20px;
  gap: 20px;
  grid-template-columns: 1fr;
}
.grs-portfolio-items.base {
  margin: 20px auto;
  padding: 20px;
}
@media screen and (min-width: 900px) {
  .grs-portfolio-items {
    grid-template-columns: 1fr 1fr;
  }
  .grs-portfolio-items.base {
    padding: 0;
  }
  .grs-portfolio-items.LGB > .grs-portfolio-item:last-child {
    grid-column: span 2;
  }
  .grs-portfolio-items.LGL > .grs-portfolio-item:first-child {
    grid-row: span 3;
    aspect-ratio: unset;
  }
}

.popover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: scroll;
  transition: opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popover.active {
  opacity: 1;
  pointer-events: all;
}

.grs_popover__content {
  min-width: 0;
  max-width: 900px;
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.grs_popover__content > .popover__video {
  max-width: 900px;
}
.grs_popover__content > .popover__video > iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  outline: none;
}
.grs_popover__content > .popover__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  color: #fff;
}
.grs_popover__content > .popover__info a {
  color: #fff !important;
  text-decoration: underline;
}
.grs_popover__content > .popover__info > * {
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.grs-portfolio-pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 20px 0;
}
.grs-portfolio-pagination > span, .grs-portfolio-pagination a {
  min-width: 0;
  display: flex;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  border: 1px solid #e44708;
  color: #e44708;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.grs-portfolio-pagination > span:hover, .grs-portfolio-pagination a:hover {
  background-color: #e44708;
  color: #fff;
}

body.disableScroll {
  overflow: hidden;
}
body.disableScroll #wpadminbar {
  display: none;
}
