/* Car page: gallery and lightbox only. The rest of the car page's look is the Bricks global class rs-po-page on the central site (see class-rs-po-design.php). */
/* Gallery */
.rs-po-gal { display: flex; flex-direction: column; gap: 10px; width: 100%;}
.rs-po-gal__stage { position: relative; border-radius: var(--po-radius, 16px); overflow: hidden; background: #DDE3E9;}
.rs-po-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: -3px;}
.rs-po-gal__track::-webkit-scrollbar { display: none;}
.rs-po-gal__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; display: block; cursor: zoom-in;}
.rs-po-gal__slide img { width: 100%; height: 100%; object-fit: cover; display: block;}
.rs-po-gal__count { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 27, 42, .75); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; pointer-events: none;}
.rs-po-gal__nav, .rs-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(15, 27, 42, .6); cursor: pointer; padding: 0;}
.rs-po-gal__nav::before, .rs-lb__nav::before { content: ''; position: absolute; inset: 0; margin: auto; width: 11px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(135deg); left: 4px;}
.rs-po-gal__nav--next::before, .rs-lb__nav--next::before { transform: rotate(-45deg); left: -4px;}
.rs-po-gal__nav--prev, .rs-lb__nav--prev { left: 12px;}
.rs-po-gal__nav--next, .rs-lb__nav--next { right: 12px;}
.rs-po-gal__nav:hover, .rs-lb__nav:hover { background: rgba(15, 27, 42, .85);}
.rs-po-gal__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;}
.rs-po-gal__thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #DDE3E9; aspect-ratio: 4 / 3; cursor: pointer;}
.rs-po-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block;}
.rs-po-gal__thumb.is-active { border-color: var(--po-blue, #0B5A9C);}
.rs-po-gal__more span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 27, 42, .6); color: #fff; font: 800 20px/1 'VW', sans-serif;}
/* Lightbox */
html.rs-lb-open { overflow: hidden;}
.rs-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 14, 22, .94); display: flex; align-items: center; justify-content: center;}
.rs-lb[hidden] { display: none;}
.rs-lb__fig { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 72px 24px; box-sizing: border-box;}
.rs-lb__img { max-width: 100%; max-height: calc(100% - 36px); object-fit: contain; user-select: none;}
.rs-lb__count { color: #DCE4EC; font-size: 14px; font-weight: 600;}
.rs-lb__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 1;}
.rs-lb__nav { z-index: 1;}
@media (max-width: 991px) {
	.rs-po-gal__stage { border-radius: 0;}
	.rs-po-gal__nav, .rs-po-gal__thumbs { display: none;}
	.rs-lb__fig { padding: 56px 8px 24px;}
	.rs-lb__nav { display: none;}
}
