/**
 * Style sheet for the cards
 */

/*********** ATLAS CARDS STYLING ***********/

.wrapper-cards > * {
  vertical-align: top;
  align-content: center;
  margin-bottom: 30px;
}

.wrapper-cards {
  width: 100%;
  margin: auto;
  align-items: center;
}

.wrapper-cards hr {
  display: block;
  margin-top: 5px;
  margin-bottom: 1px;
  margin-left: auto;
  margin-right: auto;
  border-style: solid;
  border-width: 1px;
  border-color: #999999;
}

.wrapper-data-cards h3, .wrapper-data-cards h3 > p, .wrapper-data-cards h3 > a {
  color: #626262 !important;
  font-size: 16px;
  margin: 0;
}

.wrapper-postscript-cards p, .wrapper-postscript-cards a {
  color: #828282 !important;
  font-size: 12px;
  text-decoration: none !important;
  margin: 5px 0 0 0;
}
  
.wrapper-postscript-cards a:hover, .wrapper-data-cards > h3 > a:hover, .wrapper-data-cards > a > h3:hover {
  color: #626262 !important;
  text-decoration: none !important;
}

/*********** ATLAS HIGHLIGHTS CARDS STYLING ***********/

/* For small screen, same as listing cards */

.news-cards {
  float: left;
  display: block;
  width: 100%;
  height: 100%;
  margin: 20px 10px;
}

.news-cards .wrapper-img-cards {
  display: inline-block;
  width: 120px;
  height: 90px;
}

.news-cards .wrapper-img-cards img {
  object-fit: cover;
  width: 120px;
  height: 90px;
}

.news-cards .wrapper-data-cards {
  display: inline-block;
  vertical-align: top;
  width: calc(100% - 150px);
  margin: 0;
}

.news-cards .wrapper-body-cards {
  display: none;
}

.news-cards .wrapper-postscript-cards > p > a {
  margin-top: 10px;
}

.news-cards .wrapper-postscript-cards > span {
  display: inline-block;
}

/* Small screen for Contacts */

.view-contacts .wrapper-cards {
  align-items: center;
}

.view-contacts .wrapper-cards hr {
  display: none;
}

.view-contacts .news-cards {
  width: calc(50% - 20px);
}

.view-contacts .news-cards .wrapper-img-cards {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.view-contacts .news-cards .wrapper-img-cards img {
  display: block;
  object-fit: cover;
  width: 100%;
  /* height: max-content; */
  height: auto;
}

@media screen and (min-width: 768px) {

  .wrapper-cards {
    align-items: center;
  }

  .wrapper-cards hr {
    display: none;
  }

  .news-cards {
    width: calc(33% - 20px);
  }
  .view-contacts .news-cards {
    width: calc(33% - 20px);
  }  

  .view-authors .news-cards {
    min-height: 250px;
  }

  .view-management .news-cards {
    min-height: 280px;
  }

  .view-outreach-resources .news-cards {
    min-height: 300px;
  }

  .news-cards .wrapper-img-cards {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .news-cards .wrapper-img-cards img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 205px;
  }

  .view-contacts .news-cards .wrapper-img-cards img {
    /* height: max-content; */
    height: auto;
  }
  
  .news-cards .wrapper-data-cards {
    display: block;
    width: 100%;
    margin-top: 10px;
  }

  .view-outreach-resources .news-cards .wrapper-data-cards {
    margin-bottom: 0;
  }

  .news-cards .wrapper-postscript-cards > span  {
    display: block;
  }  
 
}

@media screen and (min-width: 1024px) {

  .wrapper-cards hr {
    display: none;
  }
  
  .view-authors .news-cards {
    min-height: 260px;
  }

  .view-outreach-resources .news-cards {
    min-height: 300px;
  }

  .news-cards .wrapper-img-cards {
    display: block;
    overflow: hidden;
    float: left;
    width: 100%;
    height: 100%;
    margin: 0px;
  }
  
  .news-cards .wrapper-img-cards img {
    display: block;
    object-fit: cover;
    width: 100%;
  }
   
  .news-cards .wrapper-data-cards {
    display: block;
    float: left;
    width: 100%;
  }

  .wrapper-data-cards h3, .wrapper-data-cards h3 > p, .wrapper-data-cards h3 > a {
    color: #626262!important;
    font-size: 18px;
    line-height: 1;
  }

  .news-cards .wrapper-body-cards p {
    margin-top: 10px;
    color: #626262 !important;
  }
  
  .wrapper-postscript-cards p, .wrapper-postscript-cards a {
    color: #828282 !important;
    text-decoration: none !important;
  }
    
  .wrapper-postscript-cards a:hover, .wrapper-data-cards > h3 > a:hover, .wrapper-data-cards > a > h3:hover {
    color: #626262 !important;
    text-decoration: none !important;
  }

}

/*********** END ATLAS HIGHLIGHTS CARDS STYLING ***********/

/*********** ATLAS RELATED CARDS STYLING ***********/

.view-related-updates h1 {
  font-size: 24px;
  text-align: left;
  margin: 10px 0 !important;
}

.view-related-updates ul.pagination {
  margin: 10px 0;
}

.wrapper-data-cards.related {
  margin-left: 5px;
}

.wrapper-data-cards.related h3 > a {
  font-size: 14px;
}

.wrapper-postscript-cards.related p {
  font-size: 12px;
  color: #828282 !important;
}

.wrapper-postscript-cards.related p > a {
  font-size: 12px;
  color: #828282 !important;
}

@media screen and (min-width: 768px) {
  .view-related-updates h1 {
    text-align: center;
  }
  .news-cards.related {
    width: 30%;
    margin: 5px;
  }
  .wrapper-img-cards.related img{
    height: 140px;
    margin: 5px;
  }
  .wrapper-data-cards.related {
    display: block;
    width: 100%;
    margin: 5px;
  }
  .wrapper-data-cards.related h3 > a {
    font-size: 12px !important;
  }
}

@media screen and (min-width: 1024px) {
  .news-cards.related {
    width: 31%;
    margin: 5px;
  }
  .wrapper-img-cards.related img{
    height: 150px;
  }
  .wrapper-data-cards.related h3 > a {
    font-size: 14px !important;
  }
}

@media screen and (min-width: 1280px) {
  .news-cards.related {
    width: 31%;
  }
  .wrapper-img-cards.related img {
    height: 180px;
  }
  .wrapper-data-cards.related h3 > a {
    font-size: 14px !important;
  }
}

/*********** END ATLAS RELATED CARDS STYLING ***********/

/*** About the Author ***/

.view-about-author h1 {
  font-size: 24px;
  text-align: center;
  margin: 10px 0 !important;
}

.view-about-author .view-footer {
  margin: 0 10px !important;
  font-size: smaller;
}

.block-views-blockabout-author-about-author {
  margin: 30px !important;
  border: 1px solid #626262;
}

.news-cards.author {
  float: left;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
.news-cards.author .wrapper-img-cards {
  display: block;
  width: unset;
  height: unset;
  margin: 10px;
}
.news-cards.author .wrapper-img-cards img {
  object-fit: cover;
  width: 100%;
  height: unset;
}
.news-cards.author .wrapper-data-cards {
  display: block;
  width: 100%;
  margin: 10px;
  color: #626262 !important;
}
.news-cards.author .wrapper-body-cards {
  display: block;
}
.news-cards.author .wrapper-body-cards p {
  color: #626262 !important;
  margin-top: 10px;
}
@media screen and (min-width: 768px) {
  .news-cards.author {
    max-width: 700px;
  }
  .news-cards.author .wrapper-img-cards {
    display: inline-block;
    vertical-align: top;
    width: 200px;
    height: 150px;
  }
  .news-cards.author .wrapper-img-cards img {
    width: 200px;
    height: 150px;
  }
  .news-cards.author .wrapper-data-cards {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 250px);
  }
  .news-cards.author .wrapper-body-cards {
    display: block;
    margin-top: 10px;
  }
}
@media screen and (min-width: 1024px) {
  .news-cards.author {
    max-width: 900px;
  }
  .news-cards.author .wrapper-img-cards {
    width: 240px;
    height: 180px;
  }
  .news-cards.author .wrapper-img-cards img {
    width: 240px;
    height: 180px;
  }
  .news-cards.author .wrapper-data-cards {
    width: calc(100% - 290px);
  }
  .news-cards.author .wrapper-body-cards {
    display: block;
    margin-top: 10px;
  }
}

@media screen and (min-width: 1200px) {
  .news-cards.author {
    max-width: 1000px;
  }
}


/*********** ATLAS LISTING CARDS STYLING ***********/

.wrapper-cards > * {
  vertical-align: top;
  align-content: center;
}

.wrapper-cards {
  width: 100%;
  margin: auto;
  align-items: center;
}

.news-cards.listing {
  float: left;
  display: block;
  width: 100%;
  height: 100%;
  margin-top: 10px 0;
}

.news-cards.listing .wrapper-img-cards {
  display: inline-block;
  width: 120px;
  height: 90px;
}

.news-cards.listing .wrapper-img-cards img {
  object-fit: cover;
  width: 120px;
  height: 90px;
}

.news-cards.listing .wrapper-data-cards {
  display: inline-block;
  vertical-align: top;
  width: calc(100% - 150px);
  margin: 0;
  margin-left: 20px;
}

.news-cards.listing .wrapper-body-cards {
  display: none;
}

.news-cards.listing .wrapper-postscript-cards > span {
  display: inline-block;
}

@media screen and (min-width: 1024px) {
  .news-cards.listing {
    max-width: 900px;
  }

  .news-cards.listing .wrapper-img-cards {
    width: 240px;
    height: 180px;
  }

  .news-cards.listing .wrapper-img-cards img {
    width: 240px;
    height: 180px;
  }

  .news-cards.listing .wrapper-data-cards {
    width: calc(100% - 260px);
  }

  .news-cards.listing .wrapper-body-cards {
    display: block;
    margin-top: 10px;
  }

  .news-cards.listing .wrapper-postscript-cards > p > a {
    margin-top: 10px;
  }  
  
}

@media screen and (min-width: 1200px) {
  .news-cards.listing {
    max-width: 1000px;
  }
}

/*********** END ATLAS LISTING CARDS STYLING ***********/

/*********** CERN CARDS STYLING ***********/

/* Allow to have a blue background for each card and more spaces informations */
.preview-card__title > h3 > a > span {
  background-color: #0b80c3;
  padding-left: 3%;
  padding-right: 3%;
  padding-top: 1%;
  box-decoration-break: clone;
}

/* Positioning of the title on the different portrait cards */

.component-preview-cards {
  padding: 30px 20px;
}

.component-preview-cards.box-pattern.portrait > .component-preview-cards__box_wrapper > .component-preview-cards__box {
  top: 85%
}

.preview-cards__subtext p {
  margin-bottom: 0;
}

/* Positioning of the text on the cards */
.component-preview-cards__box {
  position: absolute;
  top: 75%;
}

/* Removing the shadow */
.preview-cards__subtext > .preview-card__category {
  text-shadow: none;
  font-size: 1.5rem;
}

.component-preview-cards__box > .preview-card__title > h3 > a {
  text-shadow: none;
}

/* Remove the opacity by defaults for the cards */
.component-preview-cards__veil{
  opacity: 0;
}

/*********** END CERN CARDS STYLING ***********/