/* General snippet-supporting CSS */
#main-content .row:first-child div:first-child:not(.main-column) div:first-child {
  margin-top: 0;
}

#main-content .row:first-child div:first-child:not(.main-column) >section:first-child {
  padding-top: 0;
}

/* Grid Tiles. */
@media all and (min-width: 768px) {
  .columnized-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .columnized-content .column {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    flex: 1;
  }

  .columnized-content .column.margined {
    margin-right: 1em;
  }

  .columnized-content .quicklinks {
    margin-top: 2em !important;
  }
}

.columnized-content .column {
  float: none;
  padding: 0;
}

.grid-tile h3 {
  font-family: National2WebBold, Arial, sans-serif;
  letter-spacing: 0.5px;
}

.grid-tile a {
  text-decoration: none;
}

.grid-tile a:hover {
  text-decoration: underline;
}

.grid-tile p {
  color: #666;
  font-size: 0.875em;
  line-height: 1.3em;
}

.grid-tile .learn-more {
  background-color: #333;
  border-radius: 5px;
  display: inline-block;
  font-size: 1em;
  padding: 2px 10px 6px;
  width: fit-content;
}

.grid-tile .learn-more:hover {
  background-color: #fff;
  color: #666;
  text-decoration: none;
}

.grid-tile.image {
  padding: 0 1em;
}

.grid-tile.image img {
  padding: 1em 0;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
}

.grid-tile.color {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  justify-content: center;
  padding: 1em;
}

.grid-tile.color h3, .grid-tile.color a, .grid-tile.color p {
  color: #fff;
}

.grid-tile.color img {
  display: none;
}

.grid-tile.color.green {
  background-color: #00693e;
}

.grid-tile.color.blue {
  background-color: #267aba;
}

/* Quicklinks. */
.columnized-content .quicklinks, .two-third--one-third .quicklinks {
  float: none;
  width: 100%;
  padding: 1em;
  background-color: #e2e2e2;
}

.columnized-content .quicklinks ul {
  margin-bottom: 0;
}

/* 2/3 and 1/3 Content. */
@media all and (min-width: 768px) {
  .two-third--one-third {
    display: flex;
    flex-direction: row;
  }

  .two-third--one-third > * {
    margin: 0;
  }

  .two-third--one-third > *:nth-child(1) {
    width: calc(100% / 3 * 2);
  }

  .two-third--one-third > *:nth-child(2) {
    width: calc(100% / 3 * 1);
    margin-left: 1rem;
  }
}

.two-third--one-third {
  margin: 2rem 0;
}

.two-third--one-third li {
  color: #424242;
}

/* Slideshows */
.slick-error {
  border: 2px dashed red;
}

.slick-error p {
  margin: 1em;
}

.slick {
  display: none;
}

.slick-dotted.slick-slider {
  margin-bottom: 40px;
}

.slick-prev {
  left: 2%;
}

.slick-next {
  right: 2%;
}

.slick-arrow {
  z-index: 10;
  width: 40px;
  height: 40px;
}

.slick-arrow:before {
  font-size: 40px;
}

.dept-section .slick-dots {
  bottom: -40px;
}

.slick-dots li {
  width: 10px;
  height: 10px;
}

.slick-dots li button:before {
  font-size: 10px;
  width: 10px;
  height: 10px;
  opacity: 1;
  color: black;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #c4dd88;
}

.slick-slide {
  max-width: 100%;
  position: relative;
}

.slick-image {
  width: 100%;
  height: 456px;
  padding: 0 !important;
  object-fit: cover;
}

.slick-caption {
  position: relative;
  width: 100%;
  padding: 16px 4px 16px 18px;
  color: white;
  background-color: #424242;
  font-style: italic;
  height: 75px;
  overflow: hidden;
}

.slick-caption p {
  color: #ccc;
  width: 80%;
  float: left;
}

.slick-caption p a {
  color: #ccc;
  text-decoration: underline;
}
.slick-caption p a:hover {
  text-decoration: none;
}

.caption-controls {
  width: 115px;
  float: right;
  text-align: right;
  margin-top: -9px;
}

.slick-slide:only-child .caption-controls {
  display: none;
}

.caption-prev, .caption-next {
  border-radius: 4px;
  color: #fff;
  margin: 8px 5px;
  width: 44px;
  height: 44px;
  transition: all .3s ease;
  text-align: center;
  display: inline-block !important;
  cursor: pointer;
}

.caption-prev:hover, .caption-next:hover {
  background-color: #333;
}

.caption-controls span {
  background: url(https://ws.dartmouth.edu/sites/all/themes/dartmouth_base/images/sprite.png) no-repeat;
  display: inline-block;
  height: 18px;
  margin-top: 14px;
  width: 18px;
  text-indent: -9999px;
}

.caption-controls .caption-prev span {
  background-position: -275px -50px;
}

.caption-controls .caption-next span {
  background-position: -300px -50px;
}

@media only screen and (max-width: 700px) {
  .slick-caption {
    height: auto;
  }

  .slick-caption p {
    float: none;
  }

  .caption-controls {
    float: none;
    width: 100%;
  }
}

/* 2/3 Slideshow with 1/3 Quicklinks */
.quicklinks.darker {
  background-color: #424242;
  margin-bottom: 0;
  padding-top: 1.5em;
  min-height: 531px;
}

.quicklinks.darker h2 {
  color: #fff;
  font-size: 1.5em;
  font-weight: normal;
  margin-bottom: 16px;
}

.quicklinks.darker li {
  background: none;
  border-bottom: 0;
  border-top: 1px solid #aaa;
  padding-right: 0;
}

.quicklinks.darker li a {
  color: #fff;
  line-height: 1.5;
  text-transform: none;
}

/* Full-Width Slideshow */
@media all and (min-width: 768px) {
  .slideshow-full .slick-image {
    float: left;
    width: 66.67%;
    min-height: 456px;
    object-fit: cover;
  }

  .slideshow-full .slick-caption {
    float: right;
    width: 33.33%;
    min-height: 456px;
  }
}

.slideshow-full {
  margin: 2rem 0;
}

.slideshow-full .slick-caption {
  padding: 50px 25px 0;
  background-color: #333;
  height: auto;
}

.slideshow-full .slick-caption p {
  width: 100%;
  float: none;
  font-style: normal;
}

.slick-caption h2 {
  display: none;
}

.slideshow-full .slick-caption h2 {
  display: block;
  font-style: normal;
  color: #fff;
  font-size: 1.5em;
  line-height: 1.15em;
  margin-bottom: 14px;
  text-transform: none;
}

.slideshow-full .slick-caption h2 a {
  color: #fff;
  text-decoration: none;
}

.slideshow-full .slick-caption h2 a:hover {
  text-decoration: underline;
}

.slideshow-full .caption-controls {
  position: absolute;
  right: 0;
  bottom: 0;
}

/* Compact Slideshow */
.slideshow-compact {
  margin: 1em 0;
}

.slideshow-compact img {
  padding: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.slideshow-compact .slick-caption .caption-controls {
  width: auto;
}

.slideshow-compact .slick-caption p {
  width: 100%;
  margin: 0;
  line-height: 1.2;
}

.slideshow-compact .slick-caption {
  height: auto;
  padding: 16px;
}

@media all and (min-width: 768px) {
  .slideshow-compact .slick-caption {
    height: 85px;
  }

  .slideshow-compact .slick-caption p {
    width: 80%;
  }

  .slideshow-compact .single-slide .slick-caption p {
    width: 100%;
  }
}

/* Events Calendar */
section.events h3.module-title {
  width: fit-content;
  margin: 0.8em 0;
  float: left;
}

section.events {
  margin: 2rem 0;
}

section.events a {
  text-decoration: none;
}

section.events a:hover {
  text-decoration: underline;
}

section.events h4 a {
  color: #007a4f;
  font-weight: bold;
}

section.events .event-desc a {
  color: #333;
}

section.events .venue, section.events .time {
  color: #666;
}

/* Infographics */
.ig-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto 2rem;
}

.ig-container ul, .ig-container li {
  list-style: none;
}

.process-step__card {
  box-shadow: 0 5px 30px -5px rgba(0, 105, 62, 0.15);
  border-radius: 0.5rem;
  flex: 0 1 345px;
  margin: 0.75rem;
  margin-top: 0.75rem !important;
  position: relative;
}

.process-step__step-number {
  color: #C5DD88;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.process-step__heading {
  background-color: #00693e;
  position: relative;
  z-index: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 1rem;
}

.process-step__card:nth-of-type(4n+1) .process-step__heading {
  background-color: #006741;
}

.process-step__card:nth-of-type(4n+2) .process-step__heading {
  background-color: #01595D;
}

.process-step__card:nth-of-type(4n+3) .process-step__heading {
  background-color: #044444;
}

.process-step__card:nth-of-type(4n+4) .process-step__heading {
  background-color: #06323b;
}

h2.process-step__label {
  font-family: National2Web, Arial, sans-serif;
  text-transform: none;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: normal;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 0;
}

ul.process-step__link-list {
  padding: 1rem;
  font-size: 0.9rem;
}

.process-step__list-item {
  margin: 0.75em 0;
}

.process-step__list-item:first-of-type {
  margin-top: 0;
}

.process-step__link {
  color: #242424;
  position: relative;
  line-height: 1.3;
}

.process-step__link:hover {
  text-decoration: none;
  color: #00693e;
}

/* Call-to-Action Banners */
.cta-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border-left: 4px solid #ffa00f;
  background-color: #f7f7f7;
}

.cta-container .cta-alert {
  flex: 2;
}

.cta-container .cta-image {
  flex: 1;
}

.cta-container .cta-heading {
  margin-top: 0;
  margin-bottom: 1rem;
}

.cta-container .cta-message {
  padding-right: 1.5rem;
}

.cta-container .cta-message p {
  padding-left: 0 !important;
  margin-bottom: 1.4em !important;
}

.cta-container .cta-image img {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

.cta-container .btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  color: #fff !important;
  background-color: #00949a;
  font-size: 1rem;
  line-height: 1;
  font-family: National2WebMedium, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  zoom: 1;
}

.cta-container .btn:hover {
  color: #fff !important;
  background-color: #333 !important;
  text-decoration: none;
}

@media (max-width: 47.9375em) {
  .cta-container .cta-image {
    display: none;
  }
}

/* Gridpage Tiles */
.gridcontent {
  align-items: stretch;
  display: flex;
  position: relative;
  flex-wrap: wrap;
  margin: 1em 0;
}

.gridpage-tile .jump-grid-text {
  padding: 36px 30px;
  position: relative;
}

.gridpage-tile .jump-grid-text h2 {
  font-size: 1.25em;
  line-height:  1.15em;
  text-align: center;
  margin-bottom: 16px;
  min-height: 50px;
}

.gridpage-tile .jump-grid-text .marker {
  background: #c4dd88;
  display: block;
  height: 3px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 20px;
}

.gridpage-tile .jump-grid-text p {
  margin-bottom: 0;
}

.gridpage-tile img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

h2.all-caps,
h2.all-caps a {
  color: #333;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

h2.all-caps a:hover {
  text-decoration: underline;
}

@media all and (max-width: 767px) {
  .gridpage-tile {
    border-top: 1px solid #e1e1e1;
    padding: 1em 0;
    width: 100%;
  }
}

@media all and (min-width: 768px) {
  .gridpage-tile {
    width: 49%;
  }

  .gridpage-tile:nth-child(n+3) {
    border-bottom: 1px solid #e1e1e1;
  }

  .gridpage-tile:nth-child(odd) {
    border-right: 2px solid #e1e1e1;
    border-bottom: 2px solid #e1e1e1;
  }

  .gridpage-tile:nth-child(even) {
    border-bottom: 2px solid #e1e1e1;
  }

  .gridpage-tile:nth-child(odd):nth-last-child(2) {
    border-bottom: none;
  }

  .gridpage-tile:last-child {
    border-bottom: none;
  }

  .gridpage-tile .jump-grid-image {
    max-width: 500px;
    max-height: 380px;
  }
}

/* People Lists */
.peoplelist {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.peoplelist h2 {
  color: #00693e;
  font-size: 30px;
  font-weight:  bold;
  letter-spacing: 0.5px;
  line-height: 30px;
  margin: 40px 0 10px;
  padding: 0;
  text-transform: uppercase;
  width: 100%;
}

.peoplelist h2:first-child {
  margin-top: 0;
}

.peoplelist .people-list-profile {
  padding: 0 5px;
}

.peoplelist .people-list-profile .photo {
  margin-bottom: 12px;
}

.peoplelist .people-list-profile .photo img {
  width: 100%;
  height: 241px;
  object-fit: cover;
}

.peoplelist .people-list-profile h3 {
  font-family: National2Web,Arial,sans-serif;
  margin-bottom: 20px;
  color: #424242;
  font-weight: normal;
}

.peoplelist .people-list-profile h3 a {
  color: #00693e;
}

.peoplelist .people-list-profile .titles,
.peoplelist .people-list-profile .titles p {
  color: #666;
  font-size: 14px;
}

.peoplelist .people-list-profile .btn {
  margin-top: 20px;
  background-color: #00693e;
}

.peoplelist .people-list-profile footer {
  border-bottom: solid 1px #c9c9c9;
  margin-bottom: 28px;
  padding-bottom: 14px;
}

@media all and (max-width: 767px) {
  .peoplelist .people-list-profile {
    flex: 50%;
    max-width: 50%;
  }

  .peoplelist .people-list-profile .btn {
    font-size: 0.8rem;
  }
}

@media all and (min-width: 768px) {
  .peoplelist .people-list-profile {
    flex: 25%;
    max-width: 25%;
  }
}

/* News and Announcements */
.news-item {
  padding-top: 40px;
  margin-bottom: 40px;
  border-top: 1px solid #aaa;
  clear: both;
}

.news-item h3 {
  font-family: National2WebBold,"Arial Black",sans-serif;
  font-size: 1.25em;
  line-height: 1.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-item h3 a {
  text-decoration: none;
}

.news-item h3 a:hover {
  text-decoration: underline;
}

.news-item .posted-date {
  font-style: normal;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: normal;
  color: #666;
  margin-bottom: 1em;
}

.news-item .photo {
  float: left;
  max-width: 25%;
  padding-right: 15px;
  margin-top: 5px;
  margin-bottom: 0;
}

.news-item .content,
.news-item .content p {
  color: #666;
  line-height: 1.6;
}

.news-item footer .more-link {
  float: right;
  margin: 1em 0 0 0;
  color: #007a4f;
}

.news-item .clearfix {
  clear: both;
}

@media all and (max-width: 767px) {
  .news-item .photo {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1em;
  }
}

/* Pagers */
.pagination-centered {
  text-align: center;
  margin-bottom: 1em;
}

.pagination,
.pager {
  list-style: none;
  display: block;
  border-top: 1px solid #aaa;
  margin-top: 40px;
  padding-top: 20px;
  font-family: National2Web,Arial,sans-serif;
}

.pagination > li,
.pager > li {
  display: inline-block !important;
  margin-top: -1px;
  position: relative;
}

.pagination li.current,
.pager li.current {
  color: #333 !important;
  text-decoration: underline;
}

.pagination a,
.pagination li.current,
.pager a,
.pager li.current {
  color: #00693e;
  display: block;
  padding: 12px 10px;
}

.pagination a,
.pager a {
  text-decoration: none;
}

.pagination a:hover,
.pager a:hover {
  text-decoration: underline;
}
