/* Resource Tools Compact Plugin - Clean CSS */

/* Fix preview image wrapper to match image width instead of fixed 740px min-width */
#previewimagewrapper {
	min-width: auto !important;
	width: fit-content !important;
	max-height: 528px !important;
	height: auto !important;
}

#previewimage {
	max-height: 528px !important;
	height: auto !important;
	width: auto !important;
}

/* Hide default RS elements */
#resourcetools {
	display: none;
}

#RecordDownloadTabButtons,
.RecordDownload > .TabBar {
	display: none !important;
}

/* Main container - 15px padding on all sides, no rounded corners */
.RecordDownload {
	border: 1px solid #ccc;
	border-radius: 0 !important;
	padding: 8px 3px 13px 3px;
	box-sizing: border-box;
}

.RecordDownloadSpace {
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 0 !important;
	box-sizing: border-box;
}

/* Remove ALL rounded corners */
.RecordDownload *,
.RecordDownloadSpace * {
	border-radius: 0 !important;
}

/* === BUTTONS === */
/* All buttons: 10px margin-bottom except Options */
.view-download-button {
	display: block;
	line-height: 3em;
	text-align: center;
	background: linear-gradient(#000000, #333333);
	color: white !important;
	margin: 0 0 10px 0;
	width: 100%;
	box-sizing: border-box;
}

.share-resource-button {
	display: block;
	line-height: 3em;
	text-align: center;
	background: linear-gradient(#444444, #777777);
	color: white !important;
	margin: 0 0 10px 0;
	width: 100%;
	box-sizing: border-box;
}

.view-resource-tools {
	display: block;
	line-height: 3em;
	text-align: center;
	background: linear-gradient(#888888, #999999);
	color: white !important;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}


/* === EXPANDABLE SECTIONS === */
/* Download options table */
#ResourceDownloadOptions {
	display: none;
	margin: 0 0 10px 0;
	width: 100%;
	box-sizing: border-box;
}

table#ResourceDownloadOptions {
	margin: 0 0 10px 0;
}

/* Share options container */
.ResourceShareContainer,
ul#CentralSpace_ResourceShareContainer.ResourceShareContainer {
	display: none;
	padding: 0 !important;
	margin: 0 0 10px 0 !important;
	list-style: none;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	overflow: hidden;
}

.ResourceShareContainer li {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Override RS default fixed width on RecordTools wrapper */
.RecordTools {
	width: 100% !important;
	display: block !important;
	background: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Options list container - padding-top creates space after Options button */
#ResourceToolsContainer {
	display: none;
	padding: 10px 0 0 0 !important;
	margin: 0 !important;
	list-style: none;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	overflow: hidden;
}

#ResourceToolsContainer li {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Links inside Share and Options - must match button width exactly */
.ResourceShareContainer li a,
#ResourceToolsContainer a,
#ResourceToolsContainer li a {
	display: block;
	background: rgb(219, 219, 219);
	padding: 5px 0;
	border-bottom: 1px solid #fff;
	text-align: center;
	color: #414042;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	transition: background-color 0.15s ease;
}

/* Hover effect for Share and Options links */
.ResourceShareContainer li a:hover,
#ResourceToolsContainer a:hover,
#ResourceToolsContainer li a:hover {
	background: rgb(190, 190, 190);
	cursor: pointer;
}

/* === OTHER STYLES === */
.ViewPanelTitles .Title {
	display: block;
	text-align: right;
	margin-right: 6px;
}

.RecordPanel .Title {
	font-size: 1.2em;
}

#Metadata {
	display: none;
}

.RecordPanel .itemNarrow {
	float: none;
	width: auto;
}

.RecordPanel .itemNarrow h3 {
	float: left;
	margin-right: 15px;
	width: 200px;
	font-weight: bold;
}

.RecordPanel .itemNarrow p {
	margin: 0 0 0 215px;
	padding: 0;
}

.RecordPanel .RecordDownloadSpace li {
	float: none;
	margin: 0;
}

.RecordPanel .RecordDownloadSpace li a {
	display: block;
	line-height: 1.5em;
}

.RecordDownloadSpace br {
	display: none;
}

#VideoCaptionContainer {
	float: left;
	margin: 10px 0;
}

#RelatedResources .CollectionPanelShell {
	width: 150px;
	height: 175px;
}

#RelatedResources .CollectionResourceAlign {
	height: 150px;
	width: 150px;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
	.RecordPanel .itemNarrow p {
		margin: 0;
		padding: 0;
	}
}

@media (max-width: 559px) {
	ul#ResourceToolsContainer li,
	ul.ResourceShareContainer li {
		width: 100% !important;
		float: none !important;
		clear: left !important;
	}
}

@media (max-width: 819px) {
	.RecordPanel .RecordDownloadSpace ul li {
		width: 50%;
		float: left !important;
		clear: none !important;
	}
}
