
.compare {
	position: relative;
	float: left;
	overflow: hidden;
	float: left;
	margin-right: 2em;
	border: 1px solid #e6e6e6;
}
.inner {
	overflow: hidden;
}

.compare .inner img {
	max-width: none;
}

.compare-eye {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 600;
	font-size: 50px;
	color: #ffffff;
	text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

.line {
	position: absolute;
	background-color: white;
	z-index: 100;
}

.vertical { 
	width: 2px;
	height: 100%;
}

.horizontal {
	width: 100%;
	height: 2px;
}

.text {
	color: white;
	background-color: black;
    opacity: 0.5;
	padding: 0.2em;
}

#attributes {
	width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin-top: 0.3em;
}

.input-buffer {
	width: calc(15% - 0.3em);
	height: auto;
	text-align: center;
	padding-right: 0.3em;

}

.img-zoom-result {
  border: 1px solid black;
  /*set the size of the result div:*/
  width: 150px;
  height: 150px;
  float: left;
  image-rendering: pixelated;

}


.input-buffer img {
	width: 100%;
	height: auto;
}

span.filetype {
	font-size: 1em;
}

.active {
	background-color: #f0f0f6;
}

.clickBox {
	cursor: pointer;

}

.scenes {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	font-size: 0.7em;
}

.scene {
	cursor: pointer;
	padding: 0.5em;
	border-top: 2px solid #f0f0f6;
}

.scene-inactive {
	background-color: #f0f0f6;
}

.scene-active {
	background-color: #fff;
}

.scene-inactive:hover {
	background-color: #fff;
}

.video-section {
	margin-top: 24px;
}

.video-section video {
	display: block;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	background: #000;
}

.video-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 10px;
}

.video-tab {
	display: inline-block;
	padding: 6px 10px;
	font-size: 0.9em;
	border: 1px solid #aaa;
	border-radius: 4px;
	cursor: pointer;
	background-color: #f0f0f0;
	transition: background-color 0.2s;
}

.video-tab.active {
	background-color: #34a853;
	color: #fff;
	border-color: #34a853;
}


.study-grid {
    display: grid;
    /* This forces exactly 5 columns of equal width */
    grid-template-columns: repeat(5, 1fr); 
    gap: 15px;
    margin-top: 20px;
}


.study-item img {
    width: 100%; 
    height: auto;
    display: block;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.study-item img:hover {
    transform: scale(1.05);
    z-index: 10;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.study-label {
    margin-top: 5px;
    font-size: 11px;
    color: #555;
    text-align: center;
    font-family: monospace;
    line-height: 1.2em;
}

#single-scene-view {
    padding: 10px;
    border: 1px solid #eee;
    background: #fff;
    margin-top: 10px;
}

.toggle-btn {
    display: block;
    margin: 20px auto 10px auto;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.toggle-btn:hover {
    background-color: #5a6268;
}

#content-wrapper h2 {
	text-align: center;
}

.image-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 1000;
}

.image-lightbox.is-open {
	display: flex;
}

.image-lightbox img {
	width: 96vw;
	height: auto;
	max-width: none;
	max-height: 96vh;
	border-radius: 6px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
	background: #111;
}

.image-lightbox .lightbox-close {
	position: absolute;
	top: 18px;
	right: 22px;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	padding: 8px 10px;
	border-radius: 999px;
	cursor: pointer;
}
