/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.masonry-grid {
  position: relative;
}

.masonry-sizer,
.masonry-item {
  width: 20%;
}

.masonry-item {
  float: left;
  margin-bottom: 1.5rem;
}

.masonry-item {
  position: relative;
  overflow: hidden;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
}

.masonry-grid.masonry-grid--columns {
  display: flex;
  gap: 1.5rem;
}

.masonry-grid.masonry-grid--columns .masonry-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.masonry-grid.masonry-grid--columns .masonry-item {
  width: 100%;
  float: none;
  margin-bottom: 0;
}

.masonry-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(183, 28, 70, 0.35),
    rgba(224, 169, 109, 0.35),
    rgba(183, 28, 70, 0.35)
  );
  opacity: 0.85;
  transform: scale(1.02);
  transform-origin: center;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.masonry-item--loaded::before {
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.masonry-image {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.masonry-image--loaded {
  opacity: 1;
  transform: scale(1);
}

.blur-2xl {
  filter: blur(75px);
}
