.collection-56__item {
  display: block;
}

.collection-v56__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  row-gap: var(--xo-grid-row-gap, 15px);
}
@media (max-width: 991px) {
  .collection-v56__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 575px) {
  .collection-v56__grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 576px) {
  .collection-v56__grid {
    gap: 2rem;
  }
}
@media (min-width: 992px) {
  .collection-v56__grid {
    gap: var(--gap, 30px);
  }
}

.collection-v56__item--1 {
  grid-row: span 2;
}
@media (max-width: 991px) {
  .collection-v56__item--1 {
    grid-row: 1;
    grid-column: 1;
  }
}

.collection-v56__item--2 {
  grid-column: span 2;
}
@media (max-width: 991px) {
  .collection-v56__item--2 {
    grid-column: 1/3;
  }
}
@media (max-width: 575px) {
  .collection-v56__item--2 {
    grid-row: 2;
    grid-column: 1;
  }
}

.collection-v56__item--3 {
  grid-row: span 2;
}
@media (max-width: 991px) {
  .collection-v56__item--3 {
    grid-row: 1;
    grid-column: 2;
  }
}
@media (max-width: 575px) {
  .collection-v56__item--3 {
    grid-row: 5;
    grid-column: 1;
  }
}

.collection-v56__item {
  position: relative;
  border-radius: var(--media-radius);
  overflow: hidden;
}
.collection-v56__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.1);
}
.collection-v56__item:hover::before {
  background-color: rgba(0, 0, 0, 0.3);
}
.collection-v56__item:hover .collection-v56-content__line {
  width: 100%;
}
.collection-v56__item:hover .collection-v56__desc {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 575px) {
  .collection-v56__item .collection-v56__desc {
    opacity: 1;
    transform: translateY(0);
  }
}

.collection-v56__img {
  height: 100%;
}
.collection-v56__img .xo-image {
  height: 100%;
}
.collection-v56__img .xo-image img {
  height: 100%;
}

.collection-v56__content {
  position: absolute;
  width: 90%;
  max-width: fit-content;
  left: 4rem;
  top: 4rem;
  z-index: 3;
}

.collection-v56__title {
  color: rgba(var(--color-background));
  text-transform: capitalize;
  letter-spacing: calc(var(--font-heading-scale) * 0.2rem);
  line-height: calc(1 + 0.2 / var(--font-heading-scale));
  font-size: calc(var(--font-body-scale) * 2rem);
  font-weight: 500;
  text-align: center;
}

.collection-v56__desc {
  color: rgba(var(--color-background));
  font-size: calc(var(--font-body-scale) * 1.4rem);
  grid-area: auto;
  line-height: calc(1 + 0.8 / var(--font-heading-scale));
  text-align: center;
  transition: all 0.3s ease;
  transform: translateY(1rem);
  opacity: 0;
  position: relative;
}

.collection-v56-content__line {
  width: 40%;
  margin: 1.2rem auto;
  height: 0.01rem;
  background-color: rgba(var(--color-background));
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}