/* On small groups 1, if no background image is provided, this will center the remaining column of list items */
#ministry1 .m1-monklet .m1-monklet-row {
  justify-content: center;
}

#ministry1 #select-nav-dropdown, #ministry1 #select-nav-dropdown-button {
  display: block;
  margin: 2em auto 2em;
  position: relative;
}
#ministry1 #select-nav-dropdown:before , #ministry1 #select-nav-dropdown-button:before {
  position: absolute;
  top: calc( -2em + -2px);
  width: 100vw;
  bottom: -2em;
  left: calc( ((100vw - 200px)/2 * -1) + -2px);
  content: "";
  z-index: -1;
}


@media (min-width: 768px) {
  #ministry1 #select-nav-dropdown, #ministry1 #select-nav-dropdown-button {
    display: none;
  }
}

#stickysub {
  position: relative;
  width: 100%;
  left: 0;
  z-index: 999;
  transition: .3;
  padding: 1rem 0;
  box-shadow: none;
  display: none;
}

@media (min-width: 768px) {
  #stickysub {
    display: block;
    padding: 0;
    box-shadow: 0 1px 1px rgba(229, 229, 229, 0.9);
  }
}

#stickysub #stickysub-nav {
  display: none;
  text-align: center;
  margin: 0;
  padding: 0 2em;
  position: relative;
}

@media (min-width: 768px) {
  #stickysub #stickysub-nav {
    display: block;
  }
}

#stickysub #stickysub-nav li {
  display: inline-block;
  margin: 0;
}

#stickysub #stickysub-nav li a {
  display: block;
  padding: 1em;
  box-sizing: border-box;
  font-size: .875rem;
  background: transparent;
  transition: all .25s ease-in-out;
  -moz-transition: all .25s ease-in-out;
  -webkit-transition: all .25s ease-in-out;
}

@media (min-width: 768px) {
  #stickysub #stickysub-nav li a {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  #stickysub #stickysub-nav li a {
    padding: 1em 2em;
  }
}

#stickysub #stickysub-nav li.toplink {
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

@media (min-width: 992px) {
  #stickysub #stickysub-nav li.toplink {
    right: 2rem;
  }
}

@media (min-width: 1200px) {
  #stickysub #stickysub-nav li.toplink {
    right: 3rem;
  }
}

#stickysub #stickysub-nav li.toplink > a {
  position: relative;
  padding: 1em 2em !important;
}

#stickysub #stickysub-nav li.toplink > a > i {
  position: absolute;
  left: 0.5em;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

#stickysub #stickysub-nav li.toplink > a > .txt {
  display: none;
}

@media (min-width: 1400px) {
  #stickysub #stickysub-nav li.toplink > a > .txt {
    display: inline-block;
  }
}

#stickysub.is-sticky {
  position: fixed;
  top: 0;
}

@media (min-width: 768px) {
  #tabs {
    -webkit-box-pack: center;
    justify-content: center;
  }
  .ui-tabs-nav {
    -webkit-box-pack: center;
    justify-content: center;
  }
  .module-tabs {
    -webkit-box-pack: center;
    justify-content: center;
  }
}

.m1-monklet-staff article .info li a,
.m1-monklet-section-staff article .info li a {
  display: block;
  background-color: transparent;
}

.m1-monklet-section-resources .category span:after,
.m1-monklet-section-volunteer .category span:after {
  content: ",\00a0\00a0";
}

.m1-monklet-section-resources .category span:last-child:after,
.m1-monklet-section-volunteer .category span:last-child:after {
  display: none;
}

/*used to hide parent categories...may need to play with this some*/
.m1-monklet-section-resources .category .resources,
.m1-monklet-section-resources .category .stories,
.m1-monklet-section-resources .category .volunteer,
.m1-monklet-section-resources .category .volunteer-1,
.m1-monklet-section-resources .category .volunteer-2 {
  display: none;
}

.m1-monklet-section-volunteer .category .resources,
.m1-monklet-section-volunteer .category .stories,
.m1-monklet-section-volunteer .category .volunteer,
.m1-monklet-section-volunteer .category .volunteer-1,
.m1-monklet-section-volunteer .category .volunteer-2 {
  display: none;
}

/* Small Groups Monklets */

.m1-monklet-section-groups {
  /* display: block;
  width: 100%;
  justify-content: center; */
}

.m1-monklet-section-groups[data-type='groups2'] {
  justify-content: space-between;
}

@media (min-width:992px) {
  .m1-monklet-section-groups[data-type='groups2'] > .m1-monklet-row.row {
    flex-direction: row-reverse;
  }
}

/* Small Groups 2 Map - adjust padding-top as needed for mobile display */


.m1-monklet-section-groups .smallgroups2-map-container {
  padding-top: 140%;
}

@media (min-width:768px) {
  .m1-monklet-section-groups .smallgroups2-map-container {
    padding-top: calc(100% - 30px);
  }
}

@media (min-width:992px) {
  .m1-monklet-section-groups .smallgroups2-map-container {
    padding-top: 0;
  }
}

.m1-monklet-section-groups #smallgroups2-map {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  right: 15px;
}

.m1-monklet-section-groups .items {
  position: relative;
  padding-bottom: 4em;
}

.m1-monklet-section-groups .bg-image-container {
  position: relative;
  padding-top: calc(100% - 30px);
}

.m1-monklet-section-groups .bg-image-container.blank {
  display: none !important;
}

@media (min-width:992px) {
  .m1-monklet-section-groups .bg-image-container {
    position: relative;
    padding-top: 0;
  }
}

.m1-monklet-section-groups .bg-image-container #small-groups-image {
  position: absolute;
  top: 0;
  left: 15px;
  right: 15px;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.m1-monklet-section-groups article {
  padding: 1.25em;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background-color: #f9f9f9;
  min-height: 5.75em; /* This number helps size the small group image as a nice, tidy (close enough) square box */
  width: 100%;
  display: block;
}

.m1-monklet-section-groups article header {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 2em);
  overflow: hidden;
}

.m1-monklet-section-groups .items #pagination {
  margin: 0;
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  width: auto;
  padding: .75em 0;
  height: 4em;
}

.m1-monklet-section-groups .list-view article header h3 {
  margin-bottom: 0;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 100%;
}

.m1-monklet-section-groups article .wrap {
  overflow: hidden;
  width: 100%;
  display: block;
}

.m1-monklet-section-groups article .meta:empty {
  display: none;
}

.m1-monklet-section-groups article .meta {
  margin: 3px 0 0 0;
}

.m1-monklet-section-groups article .details {
  display: none;
  border-top: 1px solid #ffffff;
  padding-top: 2.5%;
  margin-top: 2.5%;
  text-align: center;
}

.m1-monklet-section-groups article .details p {
  text-align: left;
  margin-bottom: 1em;
}

.m1-monklet-section-groups .list-view .meta div {
  float: none;
  line-height: 1;
}

.m1-monklet-section-groups .list-view .time,
.m1-monklet-section-groups .list-view .location {
  margin: 0;
}

.m1-monklet-section-groups .list-view .time {
  width: 100%;
}

.m1-monklet-section-groups .list-view .location {
  width: 100%;
}

.m1-monklet-section-groups .list-view .group {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m1-monklet-section-groups .list-view .meta div {
  width: 100%;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  line-height: 1.3;
  font-size: .85em;
}

.m1-monklet-section-groups .list-view .meta div .fa {
  width: 1.5em;
  display: inline-block;
  text-align: center;
  margin-right: 0;
  font-size: 1.2em;
}

.m1-monklet-section-groups .list-view .meta div:last-of-type {
  margin-top: 2px;
}

.m1-monklet-section-groups .items.loading:after {
  top: 0;
  right: 15px;
  bottom: 15px;
  left: 15px;
  width: auto;
}

.m1-monklet-section-groups .items.list-view:before {
  position: absolute;
  top: 0;
  right: 15px;
  left: 15px;
  bottom: 0;
  background-color: #f7f7f7;
  content: " ";
  z-index: 0;
}

/* InfoBox styles for small group map (should match GF2 styles) */

.infoBox {
  position: relative;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: white;
}

.infoBox:after {
  content: "";
  position: absolute;
  top: 5px;
  left: 100%;
  border: solid transparent;
  height: 0;
  width: 0;
  pointer-events: none;
  border-width: 12px;
}

.infoBox .wrap,
.infoBox .title {
  padding: 10px;
}

.infoBox > img {
  z-index: 1;
}

.infoBox .title {
  min-height: 63px;
}

.infoBox .title > h5 {
  line-height: 1.3;
}

.infoBox .title.grouped {
  min-height: inherit;
  margin-bottom: 20px;
  padding: 15px 10px;
}

.infoBox .title {
  position: relative;
}

.infoBox .title img {
  float: left;
  margin-right: 10px;
}

.infoBox p {
  margin-bottom: 5px;
}

.infoBox ol {
  padding: 4px 16px 16px 32px;
  margin: 0;
  height: auto;
  max-height: 200px;
  overflow-y: scroll;
}

.infoBox ol li {
  padding: 0;
  font-size: 16px;
  line-height: 1.3;
}

.infoBox ol li:last-child {
  border-bottom: none;
}

.infoBox ol .group a {
  font-size: 16px;
  display: block;
}

.infoBox ol .time {
  display: block;
  font-size: 14px;
}

.infoBox .time,
.infoBox .location,
.infoBox .group {
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
}

.infoBox .buttons {
  text-align: center;
}

.infoBox .buttons {
  text-align: left;
}

.infoBox .buttons.grouped {
  margin: 0 16px;
}

.infoBox .buttons .btn {
  display: block;
  margin: 5px auto;
}

.infoBox .buttons .btn .fa {
  padding-right: .25em;
}

.infoBox .buttons .btn:last-of-type {
  margin-bottom: 0;
}