/* grid */
.grid-vero {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
  grid-auto-flow: dense;
}

/* item */
.grid-item {
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: transform;
}

/* image */
.grid-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* title */
.grid-vero .grid-item h3 {
  margin: 10px 0 4px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  color: #000;
}

/* year */
.grid-item .year {
  font-size: 12px;
  font-weight: 200;
  color: #555;
}

/* open item */
.grid-item.is-open {
  grid-column: span 3;
  z-index: 10;
}

/* hide preview */
.grid-item.is-open > img,
.grid-item.is-open > h3,
.grid-item.is-open > .year {
  display: none;
}

/* dim others */
.grid-vero.has-active .grid-item {
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.grid-vero.has-active .grid-item.is-open {
  opacity: 1;
}

/* compact grid */
.grid-vero.has-active {
  gap: 12px;
}

/* content */
.project-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.35s ease;
}

.grid-item.is-open .project-content {
  opacity: 1;
}

/* panel wrapper */
.panel-elementor {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}

/* close button */
.panel-close {
  align-self: flex-end;
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
}

/* inner content */
.project-content-inner {
  width: 100%;
  padding-bottom: 10px;
}

/* loading */
.panel-loading {
  font-size: 13px;
  color: #999;
  padding: 20px 0;
}

/* responsive */
@media (max-width: 1200px) {
  .grid-vero {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .grid-vero {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-item.is-open {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .grid-vero {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-vero {
    grid-template-columns: 1fr;
  }
  .grid-item.is-open {
    grid-column: span 1;
  }
}