/* CSS Resource Document for: Army Sustainment Command -> History Office 	*
!  Global classes should be defined in portal.css  							*
*  The proponent agency for this source is AMAS-PC 							*/

/* Classes for History Links on the landing page */
.history-links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	padding: 20px;
	box-sizing: border-box;
}
.history-image,
.history-links figure {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 235px;
	height: 132px;
	overflow: hidden;
	border-radius: 12px;
	background-color: #000;
	box-sizing: border-box;
}
	.history-image img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		object-fit: cover;
		opacity: 0.85;
		transition: transform 0.4s ease, opacity 0.4s ease;
	}
		.history-image figure:hover img {
			transform: scale(1.05);
			opacity: 1;
		}
	.history-image figcaption {
		position: absolute;
		bottom: 0;
		left: 0;
		width: 100%;
		padding: 12px 16px;
		background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2));
		box-sizing: border-box;
		display: flex;
		align-items: center;
	}
		.history-image figcaption a {
			color: #fff;
			font: 1.2rem "GI7", sans-serif;
			text-transform: uppercase;
			letter-spacing: 1px;
			text-decoration: none;
			text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
			position: relative;
			padding-left: 28px;
		}
			.history-image figcaption a::before {
				content: '';
				position: absolute;
				left: 0;
				top: 50%;
				transform: translateY(-50%) scale(0.8);
				width: 20px;
				height: 20px;
				background-image: url('/Portals/54/Images/usarmy.png');
				background-size: contain;
				background-repeat: no-repeat;
				opacity: 0;
				transition: opacity 0.3s ease, transform 0.3s ease;
			}
			.history-image figcaption a:hover::before {
				opacity: 1;
				transform: translateY(-50%) scale(1);
			}
			.history-image figcaption a::after {
				content: '';
				position: absolute;
				bottom: -4px;
				left: 0;
				width: 0%;
				height: 2px;
				background: linear-gradient(to right, #ffd700, #ff8c00);
				transition: width 0.3s ease;
			}
			.history-image figcaption a:hover {
				color: #ffd700;
				text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
			}
			.history-image figcaption a:hover::after {
				width: 100%;
			}

/* Events Calendar */
.key-museum		{ border-left: 6px solid #4b5320; color: #4b5320; }
.key-lecture	{ border-left: 6px solid #2f6f4f; color: #2f6f4f; }
.key-tour 		{ border-left: 6px solid #007b8a; color: #007b8a; }
.key-hlecture 	{ border-left: 6px solid #2980b9; color: #2980b9; }
.key-iwevent 	{ border-left: 6px solid #333333; color: #333333; }
.key-postponed 	{ border-left: 6px solid #a78d4b; color: #a78d4b; }
.key-cancelled 	{ border-left: 6px solid #7b1e1e; color: #7b1e1e; }
.key-museum i,
.key-lecture i,
.key-tour i,
.key-hlecture i,
.key-iwevent i,
.key-postponed i,
.key-cancelled i { color: inherit; }

/* News Rotator for History Page */
.top-rotator,
.top-rotator .bottom {
	background: #fafafa;	/* This increases the contrast for Section 508 compliance on the text section */
}
	.top-rotator.slideshow .slideTitle { 
		font-family: GI7; 
    }
	.top-rotator a.slide-inner { 
		background-size: contain; 
		background-position: 50% 50%; 
	}
	.top-rotator .slideTitle {	/* This forces the use of the proper font classing for titles */
		color: #000;
		font: 2.4rem "GI7", sans-serif;
	}
	.top-rotator .slideCaption {
		color: #000;			/* This assists with the contrast for S508 */
		font-family: GI5;		/* Lets bolden the text a bit to make it easier to see on the off white background */
	}
	.top-rotator .slideContainer {
		min-height: 660px;
	}
	.top-rotator-imagedistortion {
		width: auto !important;
		height: 100% !important;
	}
	.top-rotator a.page {
		background: #3A423A;
	}
	.top-rotator a.page:hover,
	.top-rotator a.page.activeSlide {
		background: #FFCE08;
		font-family: GI7;
		color: #000;
	}
@media (max-width: 768px) {
	.top-rotator .top {
		display: none !important;
		padding-top: 0 !important;
		height: 0 !important;
	}
	.top-rotator .slide {
		height: auto !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		background: none !important;
	}
	.top-rotator .slideContainer {
		height: auto !important;
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	.top-rotator {
		background: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	.history-links {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		padding: 0;
		margin: 0;
	}
		.history-links figure {
			height: auto;
		}
		.history-links figcaption {
			position: static;
			background: none;
			padding: 12px 0 0;
			justify-content: flex-start;
		}
			.history-links figcaption a {
				font-size: 1rem;
				text-transform: none;
				letter-spacing: normal;
				text-shadow: none;
				padding-left: 0;
			}
				.history-links figcaption a::before,
				.history-links figcaption a::after {
					display: none;
				}
	.history-image {
		width: 100vw;
		margin: 0;
		padding: 0;
		border-radius: 8px;
	}
	.history-image img,
	.history-links img {
		display: none;
	}
	.history-image figcaption a {
		display: block;
		width: 100%;
		background: #3A423A;
		color: #FFF;
		padding: 16px;
		font: 1.2rem "GI7", sans-serif;
		text-align: center;
		text-decoration: none;
		border: none;
		border-block: 1px solid #222;
		border-radius: 8px;
	}
		.history-image figcaption a:hover {
			background: #FFCB01;
			color: #000;
		}
}