/* RE/MAX Atlantis Core Catalog - network property detail gallery
   (SITE-NEXT item E, 2026-09-30). New public HTML component, ships with
   its own file rather than assuming any Houzez CSS covers it -- these
   classes (.racc-gallery*) are not Houzez's own. */

.racc-gallery {
	max-width: 100%;
}

.racc-gallery__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 100%;
	box-sizing: border-box;
}

.racc-gallery__thumb {
	flex: 0 0 calc(25% - 6px);
	aspect-ratio: 4 / 3;
	border: none;
	background: #eef0f3;
	padding: 0;
	cursor: zoom-in;
	overflow: hidden;
	border-radius: 6px;
}

/* First image is the hero: full row, 16:10 frame, same crop rules. */
.racc-gallery__thumb:first-child {
	flex: 0 0 100%;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
}

.racc-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
}

/* <dialog> defaults to a tiny intrinsic size and no backdrop dimming
   without these -- both are needed for it to actually behave like a
   lightbox rather than a small inline popup. */
.racc-gallery__lightbox {
	border: none;
	padding: 0;
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	background: #000;
}

.racc-gallery__lightbox::backdrop {
	background: rgba(0, 0, 0, 0.85);
}

.racc-gallery__close {
	position: fixed;
	top: 12px;
	right: 16px;
	z-index: 1;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.racc-gallery__viewport {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	height: 100%;
}

.racc-gallery__full {
	flex: 0 0 100%;
	scroll-snap-align: start;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.racc-gallery__nav {
	position: fixed;
	top: 50%;
	z-index: 1;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.racc-gallery__nav--prev {
	left: 12px;
}

.racc-gallery__nav--next {
	right: 12px;
}
