/**
 * reba-gallery-152.css
 * Draft only — rental detail-page gallery: branded placeholder behind the
 * visible photos, and a 0.35s fade of the shimmer once the photo has
 * painted. The photo itself is never opacity:0 (that would delay LCP).
 * Does not change listing content, waitlist behavior, the showing phone,
 * Video Tour, lightbox markup, Share, or SEO.
 *
 * New filename on purpose: Hostinger sends a 1-year cache header and
 * strips ?ver=, so a same-name CSS edit would not reach returning visitors.
 */

/* Replace the flat #efefef box with a cream / navy-tint placeholder.
   The existing layout (flex gallery, secondary tiles hidden under 992px,
   min-height rules) is left alone. */
.reba-ld__preview{
	background-color:#f4efe4;
	background-image:linear-gradient(180deg, rgba(0, 19, 41, 0.03), rgba(0, 19, 41, 0.08));
}

/* Subtle gold shimmer while a visible gallery photo is still loading.
   It sits behind the img (z-index 0). JS adds .is-loaded to the img and
   to .reba-ld__preview on load, on error, and when the image is already
   complete at init. A LiteSpeed 1x1 gray GIF is not treated as loaded.
   The shimmer then fades out over 0.35s. */
.reba-ld__preview::before{
	content:"";
	position:absolute;
	inset:0;
	z-index:0;
	pointer-events:none;
	opacity:1;
	transition:opacity .35s ease;
	background:linear-gradient(105deg, transparent 35%, rgba(238, 183, 45, 0.22) 50%, transparent 65%);
	background-size:200% 100%;
	animation:reba-gallery-shimmer 1.8s ease-in-out infinite;
}
@keyframes reba-gallery-shimmer{
	0%{background-position:120% 0;}
	100%{background-position:-20% 0;}
}
.reba-ld__preview.is-loaded::before{
	animation:none;
	background:none;
	opacity:0;
}
@media (prefers-reduced-motion:reduce){
	.reba-ld__preview::before{
		animation:none;
		background:none;
		transition:none;
		opacity:0;
	}
	.reba-ld__preview:not(.is-loaded)::before{
		opacity:1;
	}
}

/* Lightbox photo: created in JS with a real src, so LiteSpeed never
   swaps in its gray GIF. Existing size rules stay in reba-rentals.css. */
.reba-lb__img{
	background-color:#001329;
}
