/* ===== Slideshow Container ===== */
.slideshow-container {
	width: 100%;
	max-width: 800px;
	aspect-ratio: 16 / 9;
	margin: 0 auto 50px;
	position: relative;
	border-radius: 20px;
    overflow: hidden;
	background: rgba(0, 0, 0, 0.42);
	border: 3px solid rgba(86, 0, 122, 0.5);  /* optional base border */
    box-shadow: 0 0 20px rgba(180, 0, 255, 0.6), 
                0 0 40px rgba(180, 0, 255, 0.4), 
                0 0 60px rgba(180, 0, 255, 0.2);  /* glowing effect */
	transition: box-shadow 0.3s ease;  /* subtle hover effect */
    transform: scale(0.98);
	transition:
        transform 0.25s ease,
        box-shadow 0.3s ease;
}

/* Optional: glow intensifies on hover */
.slideshow-container:hover {
    box-shadow: 0 0 25px rgba(180, 0, 255, 0.9),
                0 0 50px rgba(180, 0, 255, 0.7),
                0 0 75px rgba(180, 0, 255, 0.5);
	transform: scale(1);
	transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* ===== Slides ===== */
.slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.slide.active {
	opacity: 1;
	z-index: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	cursor: pointer;
	border-radius: 20px;
	background: rgba(61, 1, 95, 0.7);
}

/* ===== Caption ===== */
.caption {
	position: absolute;
	bottom: 20px;
	left: 20px;
	padding: 10px 15px;
	background: #ff000080;
	border-radius: 5px;
	color: #ffffff;
	cursor: default;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active .caption {
	opacity: 1;
	transform: translateY(0);
}

/* ===== Modal Preview ===== */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.9);
	text-align: center;
	isolation: isolate;
}

/* 👉 KILL side elements under modal */
.modal-open .side-social,
.modal-open #menuToggle,
.modal-open #sideMenu {
	display: none !important;
}

/* When modal open, NOTHING should beat it */
.modal~#menuToggle {
	display: none !important;
}

.modal-content {
	max-width: 90%;
	max-height: 80%;
	margin-top: 5%;
}

.modal-caption {
	margin-top: 15px;
	font-size: 18px;
}

.close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 40px;
	cursor: pointer;
}

/* LOCK SCROLL WHEN MODAL OPEN */
body.modal-open,
html.modal-open {
	overflow: hidden !important;
	height: 100%;
	touch-action: none;
}


/* ===== Slideshow Controls ===== */
.slideshow-controls {
	text-align: center;
	margin-top: 10px;
}

.slideshow-controls button {
	background: purple;
	color: #fff;
	border: none;
	padding: 10px 18px;
	margin: 0 20px;
	font-size: 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: transform 0.3s ease, background 0.3s ease;
}

.slideshow-controls button:hover {
	background: #a300ff;
	transform: scale(1.3);
	box-shadow: 0 0 12px rgba(200, 0, 255, 0.8);
}

.slideshow-controls button:active {
	background: #64009e;
	transform: scale(1.1);
}

/* ===== Preview Navigation ===== */
.preview-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 48px;
	background: none;
	color: #fff;
	border: none;
	cursor: pointer;
	user-select: none;
}

#previewPrev {
	left: 30px;
}

#previewNext {
	right: 30px;
}