/* RailLight Photo Gallery — on top of style.css (.dgrid-twocol-1fr-1fr, .gap16, .tl-stack…) */

.tlrwpb-gallery .tlrwpb-section {
	padding-top: 0 !important;
	scroll-margin-top: 24px;
}

.tlrwpb-gallery[style*="--tl-gap:"] .tlrwpb-gallery__grid,
.tlrwpb-gallery[style*="--tl-gap:"] .tlrwpb-gallery__col,
.tlrwpb-gallery[style*="--tl-gap:"] .tlrwpb-gallery__pair {
	gap: var(--tl-gap) !important;
}

.tlrwpb-gallery .tlrwpb-gallery__tile {
	margin: 0;
}

.tlrwpb-gallery .tlrwpb-gallery__tile .tlrwpb-media {
	aspect-ratio: var(--ratio, 4 / 3);
}

.tlrwpb-gallery .tlrwpb-gallery__link {
	display: block;
	cursor: zoom-in;
}

.tlrwpb-gallery .tlrwpb-gallery__link img {
	transition: transform .5s ease;
}

.tlrwpb-gallery .tlrwpb-gallery__link:hover img {
	transform: scale(1.03);
}

/* Placeholders from the design (used until a photo is chosen). */
.tlrwpb-gallery .tlrwpb-ph--g1 { background: linear-gradient(180deg, #121316, #3A3A2A 50%, #8A7A20 80%, #2A2A2A); }
.tlrwpb-gallery .tlrwpb-ph--g2 { background: linear-gradient(180deg, #1A2A5A, #6A5A40 60%, #4A4A3A); }
.tlrwpb-gallery .tlrwpb-ph--g3 { background: linear-gradient(180deg, #2A2420, #6A5A40 60%, #3A3632); }
.tlrwpb-gallery .tlrwpb-ph--g4 { background: linear-gradient(180deg, #7A9AC8, #9AB0C8 40%, #C8A020 75%, #5A5A5A); }
.tlrwpb-gallery .tlrwpb-ph--g5 { background: linear-gradient(180deg, #1A3AA0, #2A4AB0 40%, #C8B040 70%, #5A5A5A); }
.tlrwpb-gallery .tlrwpb-ph--g6 { background: linear-gradient(135deg, #3A2A8A, #C040A0 50%, #E8A0C0); }
.tlrwpb-gallery .tlrwpb-ph--g7 { background: linear-gradient(180deg, #8AA0C0, #2A3A8A 45%, #4A6A3A 80%, #5A5A5A); }
.tlrwpb-gallery .tlrwpb-ph--g8 { background: linear-gradient(180deg, #8AA0C0, #2A3A8A 40%, #6A6A5A 80%, #4A4A4A); }
.tlrwpb-gallery .tlrwpb-ph--g9 { background: linear-gradient(170deg, #121316, #5A4A2A 45%, #C8A060 70%, #3A3A3A); }
.tlrwpb-gallery .tlrwpb-ph--g10 { background: linear-gradient(180deg, #5A3A2A, #C8C4BC 40%, #E8E4DC 55%, #5A3A2A); }
.tlrwpb-gallery .tlrwpb-ph--g11 { background: linear-gradient(180deg, #4A5A7A, #6A7A9A 40%, #8A7A50 70%, #3A3A3A); }

/* Lightbox (created by frontend.js, appended to <body>). */
.tlrwpb-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 16px;
	background: rgba(24, 24, 24, .92);
}

.tlrwpb-lightbox img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}

.tlrwpb-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #F47730;
	color: #FFFFFF;
	font: 700 22px/1 "Poppins", sans-serif;
	cursor: pointer;
}

.tlrwpb-lightbox button:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}

.tlrwpb-lightbox .tlrwpb-lightbox__close { top: 8px; right: 8px; }
.tlrwpb-lightbox .tlrwpb-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.tlrwpb-lightbox .tlrwpb-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
