/* 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-image {
	position: relative;
	margin: 0;
	width: 100%;
	max-width: 235px;
	height: 132px;
	overflow: hidden;
	border-radius: 12px;
	background-color: #000;
	box-sizing: border-box;
}
.history-links {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	padding: 20px;
	box-sizing: border-box;
}
	.history-links 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-links figure:hover img {
			transform: scale(1.05);
			opacity: 1;
		}
	.history-links figure {
		position: relative;
		margin: 0;
		width: 235px;
		height: 132px;
		overflow: hidden;
		border-radius: 12px;
		background-color: #000;
	}
	.history-links 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-links figcaption a {
			color: #fff;
			font-size: 1.2rem;
			font-family: GI7;
			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-links 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-links figcaption a:hover::before {
				opacity: 1;
				transform: translateY(-50%) scale(1);
			}
			.history-links 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-links figcaption a:hover {
				color: #ffd700;
				text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
			}
			.history-links figcaption a:hover::after {
				width: 100%;
			}
@media (max-width: 600px) {
	.history-links {
		flex-direction: column;
	}
		.history-links figure {
			height: auto;
		}
		.history-links img {
			position: static;
			width: 100%;
			height: auto;
			opacity: 1;
		}
		.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;
				}
}

/* Tour Slices: /ctl/mid/id */
.tour-containment {
	width: 100%;
}
.tour-heading { 
	font-weight: bold; 
	font-size: 18px; 
	padding-top: 8px; 
	padding-bottom: 8px; 
	padding-left: 8px; 
}
.tour-mainimg { 
	text-align: center; 
	width: 25%; 
	vertical-align: text-top; 
	font-size: 10px; 
}
.tour-oact { 
	text-align: center; 
	padding: 8px; 
}
.tour-text { 
	font-size: 12px; 
	padding-left: 8px; 
	width: 75%; 
}
.tour-img { 
	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-family: GI7;
		font-size: 24px;
		font-weight: normal;
	}
	.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: #000;
		font-family: GI7;
		color: #FFCE08;
	}