@import "_vars.css";
@import "_hyperlink.css";

/*********** Juicer - overlay style *********/
.juicer {
  /*** vars ***/
  --em-color-bg-base: hsl(0, 0%, 100%);
  --em-color-fg-base: hsl(210, 33%, 9%);
  --em-color-bg-primary: hsl(222, 98%, 21%);
  --em-color-fg-white-static: hsl(0, 0%, 100%);
  --em-color-fg-link-default: hsl(200, 100%, 33%);
  --juicer-gap: 2rem;
  list-style-type: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--juicer-gap);
  padding: 0;
  margin-inline: 0;
  margin-block: 2rem;
  background-color: transparent;
  border: none;
}

.juicer__item {
  position: relative;
  flex: 0 0 calc(33.333% - (var(--juicer-gap) * 0.75));
  max-width: calc(33.333% - (var(--juicer-gap) * 0.75));
  width: unset;
  border: none;
}

/*** link element ***/
.juicer__content {
  position: relative;
  block-size: 100%;
  padding: 2rem;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-size: auto 100%;
}

/* remove overlay from link */
.juicer__content::before {
  display: none;
}

/*** source icon ***/
.juicer__source {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem;
  background-color: hsla(0, 0%, 100%, 0.7);
  line-height: 1;
}

.juicer__source span[class^="fa"] {
  font-size: 1.5rem;
  line-height: 1;
  color: #007dba;
}

.juicer__datetime {
  --datetime-size-block: 1.5rem;
  
  position: relative;
  z-index: 2;
  background-color: var(--em-color-bg-primary);
  color: var(--em-color-fg-white-static);
  padding-inline: 1rem;
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 600;
  font-style: normal;
  margin-block-start: calc(50% + var(--datetime-size-block));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  block-size: var(--datetime-size-block);
  border-radius: 1rem;
  transform: translateY(0.5rem) translateX(0.5rem)
}

.juicer__message {
  background-color: var(--em-color-bg-base);
  color: var(--em-color-fg-base);
  font-size: 0.8rem;
  padding: 1rem;
  box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 48px;
  text-shadow: none;
  margin-bottom: 0;
}

/*** link text ***/
.juicer__readmore {
  color: var(--em-color-fg-link-default);
  text-decoration: underline;
  font-weight: 700;
  border: none;
  text-transform: none;
  text-align: start;
  opacity: 1;
  margin: 0;
}

@media (max-width: 992px) {
  .juicer__item {
    flex: 0 0 calc(50% - (var(--juicer-gap) * 0.5));
    max-width: calc(50% - (var(--juicer-gap) * 0.5));
    width: unset;
  }
}

@media (max-width: 768px) {
  .juicer__item {
    flex: 0 0 100%;
    max-width: 100%;
    width: unset;
  }
}
/********* Juicer - masonry style *********/
ul[data-juicer="feed"] .card {
    overflow: hidden;
    margin-block-end: 2rem;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 8px 24px, rgba(17, 17, 26, 0.1) 0px 16px 48px;
    border-radius: 8px;
  }
ul[data-juicer="feed"] .card hr {
    display: none;
  }
/* date posted */
ul[data-juicer="feed"] .card .text-muted {
    position: absolute;
    bottom: 0;
    right: 0;
    inline-size: 100%;
    display: block;
    min-block-size: 2rem;
    padding: 0.5rem;
    line-height: 1.4;
    /* margin-block-start: 0.5rem; */
    background-color: hsl(0, 0%, 100%);
    border-block-start: 1px solid #d0d0ce;
  }
ul[data-juicer="feed"] .card .card-body {
    overflow: hidden;
    text-overflow: ellipsis;
    
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    padding-block: 0.75rem;
  }
ul[data-juicer="feed"] .card .card-body:last-of-type {
    padding-block-end: 2.5rem;
  }
/* external link icon */
ul[data-juicer="feed"] .card.card-link> ::after {
    top: 0.5rem;
    right: 0.5rem;
  }
@media (min-width: 576px) {
  ul[data-juicer="feed"].card-columns {
    -moz-column-count: 2;
         column-count: 2;
    -moz-column-gap: 2rem;
         column-gap: 2rem;
  }
}


/* flip card */
@media screen and (min-width: 767px) and (max-width: 991.99px) {
	.row.flip-card-row {
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
	}
}

.row.flip-deck {
	margin-bottom: 100px;
}

.row.flip-deck .flip-card {
	margin-bottom: 100px !important;
}

.row.flip-deck .flip-card-inner {
	margin-bottom: 20px;
	background-color: rgba(1, 33, 105);
}

.flip-card-front .card-two-col__right,
.flip-card-front .card-two-col__left {
	width: 50%;
	float: left;
	overflow-wrap: break-word;
}

.multiple-pi {
	width: 100%;
	clear: both;
	padding: 10px;
	background-color: rgba(1, 33, 105);
}

.row.flip-deck .flip-card-inner .card-title {
	color: #f2a900;
}

@media screen and (max-width: 768px) {
	.row.flip-deck .flip-card-inner {
		padding-bottom: 100%;
	}
}

@media (min-width: 768px) and (max-width: 992px) {
	.row.flip-deck .flip-card-inner {
		padding-bottom: 60%;
	}

	.row.flip-deck .flip-back-content {
		font-size: 1rem;
	}
}

@media screen and (min-width: 992px) {
	.row.flip-deck .flip-card-inner {
		padding-bottom: 75%;
	}
}

/*Flip Deck Blocks */
.flip-deck .flip-card {
	background-color: transparent;
	perspective: 1000px;
	z-index: 100;
	margin-bottom: 4rem;
}

.flip-deck .flip-card:focus-within {
	z-index: 101;
}

.flip-deck .flip-card-inner {
	position: relative;
	transition: transform 0.6s;
	transform-style: preserve-3d;
	padding-bottom: 100%;
	color: #fff;
}

.flip-back-content {
	padding: 20px;
	background-color: rgb(1, 33, 105);
}

.flip-deck .flip-card-inner .card-body {
	position: absolute;
	bottom: 0%;
	background-color: rgba(1, 33, 105, .8);
}

.flip-card-inner .card-body ul {
	padding-left: 10px;
}

.flip-deck .flip-card:hover .flip-card-inner,
.flip-deck .flip-card:focus-within .flip-card-inner {
	transform: rotateY(180deg);
}

.flip-deck .flip-card-front,
.flip-deck .flip-card-back {
	position: absolute;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	width: 100%;
	height: 100%;
	background-color: white;
}

.flip-deck .flip-card-back {
	background-color: rgb(1, 33, 105);
	text-decoration: none;
	transform: rotateY(180deg);
	width: 100%;
	height: 100%;
	overflow-wrap: break-word;
	display: block;
	color: #fff;
}

.flip-deck .flip-card .flip-card-front::before {
	content: '';
	width: 0;
	height: 0;

	right: 0;
	top: 0;
	position: absolute;
	color: rgb(1, 33, 105);
}

@media screen (max-width: 1199px) {
	.flip-back-content {
		font-size: .9rem;
	}
}

.front-card-text {
	float: left;
	position: relative;
	padding: 0.5rem 1rem;
	overflow: hidden;
	line-height: 1.4;
	clear: both;
}

.textOptionStyle {
	position: absolute;
	top: 11vh;
	left: 2vw;
	font-size: 2.5rem;
	color: #012169;
	opacity: 100%;
	z-index: 34;
	background: transparent;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.1;
}

.overlay {
	overflow: hidden;
	height: 100%;
	top: 0;
	left: 0;
	opacity: .35;
}


/****** MFort new styles below ******/
h4,
.h4 {
	text-transform: none;
}

/* Cards */
.card-title {
	text-transform: none;
	font-size: 2rem;
}

/* Home Page - Entrepreneur section - reduce section spacing before cards diptych */
#anchor-expedition section {
	padding-bottom: 0;
}

#anchor-expedition .container.pb-5 {
	padding-bottom: 0 !important;
}

/* About Page - Testimonies flip cards - remove bottom margin */
#anchor-three-emory-researchers-making-the-expedition .row.flip-deck {
	margin-bottom: 1rem;
}

#anchor-three-emory-researchers-making-the-expedition .row.flip-deck .flip-card {
	margin-bottom: 1rem !important;
}

/* List items spacing */
.container .list-unordered li,
.container .list-ordered li {
	margin-block-end: 1rem;
}

/* CTA with overlay - apply blue background color to true element for accessibility */
.overlay-primary {
	background-color: #012169;
}

/*** Width limiter for content, matches existing width limiter on text ***/
.w-730 {
	max-width: 730px;
}

/********* Imported Block - Alert - vertical spacing *********/
.imported-block:has(.alert) {
  margin-block-start: 4rem;
}