/*
 * COMMUNITIES LANDING PAGE
 */

/* Community landing row base styles */

.community-landing-row .devsite-landing-row-description {
  font-size: 20px;
  line-height: 28px;
  padding: 0 25%;
}

.community-landing-row .devsite-landing-row-header {
  margin-bottom: 40px;
}

@media screen and (max-width: 720px) {
  .community-landing-row .devsite-landing-row-description {
    padding: 0;
  }
}

/* Padding modifiers */

.community-landing-row-no-pad {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.community-landing-row-pad-bottom {
  padding-bottom: 100px !important;
}

.community-landing-row-pad-top {
  padding-top: 100px !important;
}

@media screen and (max-width: 720px) {
  .community-landing-row-pad-bottom {
    padding-bottom: 60px !important;
  }

  .community-landing-row-pad-top {
    padding-top: 60px !important;
  }
}

/* Centered row */

.community-landing-row-centered .devsite-landing-row-header-text {
  text-align: center;
}

.community-landing-row-centered .devsite-landing-row-header-text h2 {
  padding-right: 0 !important;
}

.community-landing-row-centered.devsite-landing-row-100 .devsite-landing-row-item-image {
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

@media screen and (max-width: 720px) {
  .community-landing-row-centered.devsite-landing-row-100 .devsite-landing-row-item-image {
    width: 100%;
  }
}

/* Reversed row */

.community-landing-row-reversed.devsite-landing-row .devsite-landing-row-item-description {
  margin: 0 0 0 40px;
  -webkit-box-ordinal-group: 4;
  -ms-flex-order: 3;
  order: 3;
}

@media screen and (max-width: 720px) {
  .community-landing-row-reversed.devsite-landing-row .devsite-landing-row-item-description {
    margin: 0;
  }
}

/* Video row */

.community-landing-row-video .devsite-landing-row-group {
  background: #000;
  color: #fff;
  left: 50%;
  position: relative;
  -webkit-transform: translate(-50%);
  transform: translate(-50%);
  width: 100vw;
}

.community-landing-row-video-background {
  height: 100%;
  object-fit: cover;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.community-landing-row-video-screen {
  background: linear-gradient(45deg, rgba(0, 0, 0, .6), transparent);
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.community-landing-row-video-content {
  padding: 320px 44px 80px;
  position: relative;
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
}

.community-landing-row-video-title,
.community-landing-row-video-title h1 {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 0;
}

.community-landing-row-video-subtitle {
  margin: 0 0 24px !important;
}

@media screen and (max-width: 720px) {
  .community-landing-row-video-title,
  .community-landing-row-video-title h1 {
    font-size: 36px;
    line-height: 1.12;
  }
}

/* Icons row */

.community-landing-row-icons .devsite-landing-row-group {
  margin: 0 auto;
  max-width: 1024px;
}

.community-landing-row-icons .devsite-landing-row-item-icon-container {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}

.community-landing-row-icons .devsite-landing-row-item-icon-container {
  height: 100px;
  width: 100px;
}

.community-landing-row-icons .devsite-landing-row-item-icon {
  height: 100px;
  font-size: 100px;
  width: 100px;
}

.community-landing-row-icons .devsite-landing-row-item-description-content {
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

/* Cards row */

.community-landing-row-cards .devsite-landing-row-item {
  border: 1px solid #dadce0;
  border-radius: 4px;
  box-shadow: none;
}

.community-landing-row-cards .devsite-landing-row-item-description h3 {
  color: #212121;
  font-size: 28px;
  position: relative;
  z-index: 1;
}

.community-landing-row-cards .devsite-landing-row-item-list,
.community-landing-row-cards .devsite-landing-row-item-list-item {
  margin: 0;
}

.community-landing-row-cards .devsite-landing-row-item-list-item:not(:first-of-type) {
  margin-top: 24px;
}

.community-landing-row-cards .community-landing-row-card-item,
.community-landing-row-cards .community-landing-row-card-item .devsite-landing-row-item-media{
  overflow: visible;
}

.community-landing-row-card-item .devsite-landing-row-item-list-item-description h4 {
  font: 400 18px/26px Google Sans, sans-serif;
}

.community-landing-row-card-item .devsite-landing-row-item-image {
  position: relative;
}

.community-landing-row-card-item .devsite-landing-row-item-image::before {
  background: center / contain no-repeat;
  content: '';
  display: block;
  height: 220px;
  position: absolute;
  right: 20px;
  width: 220px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.community-landing-row-card-item-professionals .devsite-landing-row-item-image::before {
  background-image: url('/National_Library/20160930123623oe_/https://developers.google.cn/community/images/card_illo_professionals.png');
}

.community-landing-row-card-item-entrepreneurs .devsite-landing-row-item-image::before {
  background-image: url('/National_Library/20160930123623oe_/https://developers.google.cn/community/images/card_illo_entrepreneurs.png');
}

.community-landing-row-card-item-wit .devsite-landing-row-item-image::before {
  background-image: url('/National_Library/20160930123623oe_/https://developers.google.cn/community/images/card_illo_wit.png');
}

.community-landing-row-card-item-students .devsite-landing-row-item-image::before {
  background-image: url('/National_Library/20160930123623oe_/https://developers.google.cn/community/images/card_illo_students.png');
}

@media screen and (max-width: 1024px) {
  .community-landing-row-cards .devsite-landing-row-item-description h3 {
    font-size: 24px;
  }
  .community-landing-row-card-item .devsite-landing-row-item-image::before {
    height: 160px;
    right: 8px;
    width: 160px;
  }
}

/* Dialog row */

.community-landing-dialog {
  left: 50%;
  margin: 0 !important;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 960px;
}

.community-landing-dialog-video-wrapper {
  padding-bottom: 56.25%; /* 16/9 aspect ratio */
  position: relative;
  width: 100%;
}

.community-landing-dialog-video-wrapper > iframe {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

@media screen and (max-width: 720px) {
  .devsite-dialog.community-landing-dialog {
    left: 50%;
    top: 50%;
  }
}

/*
 * COMMUNITY DIRECTORY STYLES
 */

.community-directory__item {
  text-align: center;
}

.community-directory__item__name {
  margin-top: 0;
}

/*
 * COMMUNITY PROGRAM LANDING PAGE
 */

/* Header row */

.community-header-landing-row {
  position: relative;
}

.community-header-landing-row-image {
  left: 50%;
  max-width: 100vw;
  position: relative;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100vw;
}

/* Lockup */

.community-landing-page-lockup {
  display: block;
  max-height: 48px;
}
