/* 
 Author: Emma Jaud
 Organization: University of Delaware Library, Museums and Press
 File: dept-contact.css
 Description: Styling for Dept Subsite Contact Pages.
*/

html {
  scroll-behavior: smooth !important;
}

.dept-wp-block a:hover,
.dept-info-block a:hover {
	color: var(--color-blue-light) !important;
}

/* Display Flex Row */
.dept-row {
	display: flex;
	flex-direction: row;
}
.dept-row-center {
	align-items: center;
}
/* Display Flex Column */
.dept-col {
	display: flex;
	flex-direction: column;
}
.dept-col-center {
	justify-content: center;
}
/* Margin top */
.dept-margin-info {
	margin: 8px 0;
}
#contact-no-img .dept-margin-info, #lh-no-map .dept-margin-info {
	margin: 8px 15px;
}
/* Margin bottom */
.dept-margin-sm {
	margin: 0 0 1.375rem;
}
.dept-margin-md {
	margin: 0 0 2rem;
}
.dept-margin-xl {
	margin: 0 0 4rem;
}


/* SECTION TITLE  ||||||||||||||||||||||||||||||||||*/
.dept-subtitle {
	margin:  0 0 1.5rem;
	padding: 2rem 0 1rem 0.5rem;
	border-bottom: 2px solid var(--color-gold);
	font-size: calc(1.75rem + 0.5vmin);
}

/* SECTION CARDS  ||||||||||||||||||||||||||||||||||*/
.dept-cards {
	padding: 1.5rem 2.5rem !important;
	margin-bottom: 1.5rem;
	background: white;
	border-radius: 1rem;
}
.dept-info-cards {
	padding: 10px 2.5rem !important;
	margin-bottom: 1.5rem;
	background: white;
	border-radius: 1rem;
}
#contact-no-img.dept-info-cards, #lh-no-map.dept-info-cards {
	padding: 10px 15px !important;
	margin-bottom: 0;
}
.dept-data {
	flex-basis: 100%;
}
.dept-btn {
	background: linear-gradient(var(--color-blue-med),#00539a);
    color: #fff;
    display: table;
/*    margin: 0 auto;*/
    text-align: center;
    text-decoration: none;
    padding: .5rem 2rem .5rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 1rem rgba(0,0,0,.2);
    font-family: "greycliff_semibold";
    cursor: pointer;
    border: 0;
}
.dept-btn:hover {
	background: var(--color-blue-light);
}


/* WP CONTENT  ||||||||||||||||||||||||||||||||||*/
.dept-wp-content h3, .dept-wp-content h2 {
	margin:  0 0 1.5rem;
	padding: 2rem 0 1rem 0.5rem;
	border-bottom: 2px solid var(--color-gold);
}
.dept-wp-content h2 {
	font-size: calc(1.75rem + 0.5vmin);
}
.dept-wp-content > p {
	background: white;
	padding: 1.5rem 1.5rem 0 !important;
	margin-bottom: 0;
}
.dept-wp-content > p:first-of-type {
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
}
.dept-wp-content > p:last-of-type {
	border-bottom-left-radius: 1rem;
	border-bottom-right-radius: 1rem;
	padding: 1.5rem 1.5rem !important;
	margin-bottom: 2rem;
}
/*
.dept-wp-content .wp-div {
	background: white;
	border-radius: 1rem;
	padding: 1.5rem 1.5rem !important;
	margin: 0 0 2rem;
}
.dept-wp-content div p:last-child{
	margin: 0;
}
*/
.dept-wp-content ul {
	background: white !important;
	border-radius: 1rem;
}
.dept-wp-content table {
	background: white;
	border-color: white !important;
}
.dept-wp-content table tr p {
	padding: 6px !important;
	background: none !important;
}
.dept-wp-content table tr:nth-child(even) {
	background-color: rgb(102 175 233 / 15%) !important;
}

.venue-hours-arrow {
	cursor: pointer;
}
/* ask widget */
.dept-wp-content .s-la-widget {
	padding: 1.5rem 2.5rem !important;
	margin-bottom: 1.5rem;
	background: white;
	border-radius: 1rem;
}
.dept-wp-content .s-la-widget legend {
	padding-top: 12px;	
}
.dept-wp-content .s-la-widget .btn-primary {
	background: linear-gradient(var(--color-blue-med),#00539a);
    color: #fff;
    display: table;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    padding: .5rem 3rem;
    line-height: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 1rem rgba(0,0,0,.2);
    font-family: "greycliff_semibold";
    cursor: pointer;
    border: 0;
}
.dept-wp-content .s-la-widget .btn-primary:hover {
	background: var(--color-blue-light);
}

/* CONTACT INFO  ||||||||||||||||||||||||||||||||||*/
.dept-contact-info {
	margin: 0; 
	flex-basis: 60%;
	border-radius: 0 1rem 1rem 0;
}

.dept-contact-img {
	width: 45%; 
	height: inherit;
}
.dept-contact-img img {
	border-radius: 1rem 0 0 1rem;
	height: 100%;
	object-fit: cover;
}

/* LOCATION AND HOURS  ||||||||||||||||||||||||||||||||||*/
.dept-map-img {
	flex-basis: 60%;
	border-radius: 1rem 0 0 1rem;
}
#lh-no-map .venue-hours-wrap .iconlist__data {
	min-width: 200px;
}
#lh-no-map .venue-hours-wrap {
	order: 1;
}
#location-hours .hours-row.today, .iconlist__data--row.current {
	font-weight: bold;
}
#location-block .hours-row span {
	margin-left: 10px;
}
.dept-lh-info {
	margin: 0; 
	flex-basis: 60%;
	border-radius: 0 1rem 1rem 0;
}

/* ASK QUESTION  ||||||||||||||||||||||||||||||||||*/
.ask {
	padding: .5rem 1.2rem;
	min-width: 99.58px;
	max-height: 28px;
}
.ask-desc {
	padding: 0 1rem 2rem;
}
/* ask queue */
.askqueue {
	display: block;
}
.askqueue p, .askqueue button {
	display: inline;
}
/* ask widget */
.dept-ask-widget .s-la-widget legend {
	padding-top: 12px;	
}
.dept-ask-widget #ask-widget-title {
	padding-bottom: 12px;
}
.dept-ask-widget .s-la-widget .btn-primary {
	background: linear-gradient(var(--color-blue-med),#00539a);
    color: #fff;
    display: table;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    padding: .5rem 3rem;
    line-height: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 1rem rgba(0,0,0,.2);
    font-family: "greycliff_semibold";
    cursor: pointer;
    border: 0;
}
.dept-ask-widget .s-la-widget .btn-primary:hover {
	background: var(--color-blue-light);
}


/* Responisive Styling */
@media screen and (min-width: 1280px) {
	#contact-block .dept_data {
		font-size: 16.9px;
	}	
}
@media screen and (max-width: 780px) {
	#contact-block {
		flex-direction: column;
	}
	.dept-contact-img {
		width: 100%;
	}
	.dept-contact-img img {
		border-radius: 1rem 1rem 0 0 !important;
		height: inherit;
	}
	.dept-contact-info {
		border-radius: 0 0 1rem 1rem;
	}
	.dept-map-img {
		flex-basis: 40%;
	}	
}
@media screen and (max-width: 655px) {
	.ask {
		margin-top: 6px;
	}	
}
@media screen and (max-width: 618px) {
	#location-block {
		flex-direction: column;
	}
	.dept-map-img iframe {
		border-radius: 1rem 1rem 0 0 !important;
	}
	.dept-lh-info, .dept-map-img {
		border-radius: 0 0 1rem 1rem;
	}	
}
@media screen and (max-width: 480px) {
	.dept-wp-content ul li {
		line-height: 150% !important;
	}
}
@media screen and (max-width: 408px) {
	#askqueue-block .dept-row-center, #feedback-block .dept-row-center {
		align-items: normal;
	}
}
@media screen and (max-width: 380px) {
	.dept-cards {
		padding: 1.5rem !important;
	}	
}
@media screen and (max-width: 350px) {
	#dept-email .iconlist__data--row {
		display: block;
	}
	#dept-email a {
		word-wrap: break-word;
		word-break: break-all;
	}	
}


