/*********************************************
* Banner slideshow - replaces Flash SimpleViewer
* Matches original gallery.xml settings:
* 770x454 images, 10px white frame, thumbnail strip below
*********************************************/

.banner {
	position: relative;
	width: 100%;
	max-width: 790px;
	margin: 0 auto;
	font-family: Arial, Calibri, "Trebuchet MS", sans-serif;}

/* Main image area: 10px white frame as per the old frameColor/frameWidth */
.banner-stage {
	position: relative;
	background: #FFFFFF;
	padding: 10px;
	box-sizing: border-box;}

.banner-viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 770 / 454;
	overflow: hidden;
	background: #1C1C1C;}

.banner-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease;}

.banner-slide.is-active { opacity: 1;}

/* Prev / next arrows */
.banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #FFFFFF;
	font-size: 26px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease, background 0.2s ease;}

.banner-arrow.prev { left: 20px;}
.banner-arrow.next { right: 20px;}
.banner:hover .banner-arrow,
.banner-arrow:focus-visible { opacity: 1;}
.banner-arrow:hover { background: rgba(0, 0, 0, 0.75);}

/* Touch screens have no hover, so always show the arrows */
@media (hover: none) {
	.banner-arrow { opacity: 1;}}

.banner-counter {
	position: absolute;
	right: 20px;
	bottom: 18px;
	z-index: 2;
	padding: 2px 8px;
	background: rgba(0, 0, 0, 0.45);
	color: #FFFFFF;
	font-size: 12px;
	border-radius: 3px;}

/* Thumbnail strip - scrolls sideways, current thumb kept in view */
.banner-thumbs {
	display: flex;
	gap: 8px;
	margin: 20px 0 0;
	padding: 3px 3px 6px;
	list-style: none;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: #555 transparent;}

.banner-thumbs li { margin: 0; flex: 0 0 auto;}

.banner-thumbs button {
	display: block;
	padding: 3px;
	border: 0;
	background: #FFFFFF;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.2s ease, outline-color 0.2s ease;
	outline: 2px solid transparent;}

.banner-thumbs button:hover,
.banner-thumbs button:focus-visible { opacity: 0.9;}

.banner-thumbs button.is-active {
	opacity: 1;
	outline-color: #0071BB;}

.banner-thumbs img { display: block; width: 65px; height: 65px;}

@media (prefers-reduced-motion: reduce) {
	.banner-slide { transition: none;}
	.banner-thumbs { scroll-behavior: auto;}}
