/* HOME — the gallery (approved layout). */
.gallery-wrap{ position:relative; background:#E3E0D8 }
.gallery-wrap > .section-inner{ position:relative; z-index:1 }

@media (min-width:1101px){
  .gallery-wrap .mosaic{ max-width:1100px; grid-auto-rows:74px; gap:3mm }
}
.gallery-wrap .mosaic{ gap:3mm }

.masonry{ max-width:1100px; margin:3mm auto 0; column-count:3; column-gap:3mm }
.masonry .m-item{
  position:relative; display:block; width:100%; margin:0 0 3mm;
  break-inside:avoid; -webkit-column-break-inside:avoid; page-break-inside:avoid;
  overflow:hidden; background:transparent;
}
.masonry .m-item img{
  display:block; width:100%; height:auto;
  filter:grayscale(78%) brightness(1.1) contrast(1.04) sepia(.1) saturate(.9);
  transition:filter 1s cubic-bezier(.2,.8,.2,1);
}
.masonry .m-item::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(155deg, #8A857D 0%, #A39C90 55%, #B5AC9C 100%);
  opacity:.5; mix-blend-mode:multiply;
  transition:opacity 1s cubic-bezier(.2,.8,.2,1);
}
.masonry .m-item:hover img{ filter:grayscale(0%) brightness(1) contrast(1) sepia(0) }
.masonry .m-item:hover::after{ opacity:0 }
.masonry .m-item.mult img{ mix-blend-mode:multiply }
.masonry .m-item.mult::after{ display:none }
@media (max-width:900px){ .masonry{ column-count:2 } }

.masonry.jr{ column-count:auto; display:flex; flex-direction:column }
.masonry.jr .jrow{ flex:none; width:100%; box-sizing:border-box }
.masonry.jr .jrow{ display:flex; gap:3mm; margin:0 0 3mm }
.masonry.jr .jrow .m-item{ margin:0; flex:0 0 auto }
.masonry.jr .jrow .m-item img{ width:100%; height:100%; object-fit:cover }

.gallery-wrap .mosaic-item .img{
  filter:grayscale(78%) brightness(1.1) contrast(1.04) sepia(.1) saturate(.9);
  transition:transform 1.4s cubic-bezier(.2,.8,.2,1), filter 1s cubic-bezier(.2,.8,.2,1);
}
.gallery-wrap .mosaic-item .img::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(155deg, #8A857D 0%, #A39C90 55%, #B5AC9C 100%);
  opacity:.5; mix-blend-mode:multiply; transition:opacity 1s cubic-bezier(.2,.8,.2,1); pointer-events:none;
}
.gallery-wrap .mosaic-item:hover .img{ filter:grayscale(0%) brightness(1) contrast(1) sepia(0) }
.gallery-wrap .mosaic-item:hover .img::after{ opacity:0 }

.gallery-wrap .mosaic-item .cap.cap-center{
  left:auto; right:22px; bottom:20px; top:auto; z-index:3; transform:none; width:auto; max-width:82%;
  padding:0; background:none; text-align:right;
}
.gallery-wrap .mosaic-item .cap.cap-center span::first-letter{ text-transform:uppercase }
.gallery-wrap .mosaic-item .cap.cap-center.on-dark span{ color:rgba(236,230,216,.9) }
.gallery-wrap .mosaic-item .cap.cap-center span{
  display:inline-block; font-family:var(--realist); font-style:normal; font-weight:200; font-variation-settings:normal;
  font-size:clamp(16.5px, 1.54vw, 21px); letter-spacing:.04em; text-transform:lowercase;
  color:rgba(62,36,21,.5); text-shadow:none;
}
