/*
 Theme Name:   UCLA WordPress Child
 Theme URI:    http://ucla-sc.com/ucla-wp-child/
 Description:  UCLA Strategic Communications Child Theme
 Author:       Strategic Communications
 Author URI:   http://stratcomm.ucla.edu
 Template:     ucla-wp
 Version:      1.0.6.S253
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         ucla, child
 Text Domain:  ucla-wp-child
*/

.site-logo a,
.custom-logo {
  display: block;
}
#main a:visited:hover {
  color:white !important;
}
.float-right {
  float:right;
}
.home .col:first-child {
  margin-top: 0;
}
.home ul.wp-block-latest-posts__list {
  padding-left: 0px;
}
hr.wp-block-separator {
  display: block;
  height: 1px;
  border: 0;
  border-top-color: currentcolor;
  border-top-style: none;
  border-top-width: 0px;
  border-top: 1px solid #e5e5e5;
  margin: 1em 0;
  padding: 0;
}
.header-titles .site-logo .site-logo {
  margin: 0;
}
.home .covid-19 .wp-block-columns {
 max-width: 84% !important;
}
.home .covid-19 p {
 padding-left:40px;;
}

.custom-logo {
  max-height: 3rem;
  margin: 0 auto;
  width: auto;
}

body:not(.enable-search-modal) .custom-logo {
  margin: 0;
}
#header {
  min-height: 140px !important;
}

@media (min-width: 1024px) {
  #menu {
    top: 0 !important;
  }
  #header {
    min-height: 150px !important;
  }
  #menu div[class^="menu"] ul li {
    min-height: 52px !important;
  }
  #menu div[class^="menu"] ul li:hover ul {
    top: 52px !important;
  }
  #menu div[class^="menu"] ul li ul li a {
    padding: 16px 24px 15px 24px !important;
  }
}

@media (max-width: 390px) {
  .custom-logo {
    max-height: 2rem;
  }
}
#header .site-name {
    padding: 12px 12px 0;
}

.hamburger {
  top: -45px;
}
.search-desktop {
  top: -30px !important;
}
.link-color-white a {
  color: #ffffff !important;
}
.link-hover-color-white a:hover {
  color:#ffffff !important;
}
.link-color-black a {
  color: #000000 !important;
}
.yellow-line:before {
  margin-right: 18px;
  border-left: 8px solid #FFD100;
  content: "";
}
.padding-20 p {
  padding-left:20px;
  padding-right:20px;
}
@media (min-width: 768px) {
  #header .site-name {
    padding: 12px 12px 0;
    min-height: 64px;
  }
}

@media (min-width: 1024px) {
  #menu .menu-main-menu-container ul li {
    min-height: 44px;
    height: auto;
  }
}

h2 {
  margin: 0.5rem !important;
}
h2.yellow-line {
  line-height:40px !important;
}
.breadcrumb {
  padding-top: 40px;
}
.header {
  margin-bottom: 0px !important;
}
.header h1 {
  padding: 20px 0 20px 0 !important;
}
.home-hero h1 {
  font-size: 2em;
  line-height: 1.4em;
}
.home-hero h1.has-background {
  padding: 1.25em 1em;
}
.home-hero.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content,
.home-hero.wp-block-media-text.is-style-card.has-media-on-the-right .wp-block-uwai-button {
  padding:0 1em;
 }
.home-hero.wp-block-media-text.has-media-on-the-right {
  grid-template-columns: 1fr 70%;
}
@media (max-width: 992px) {
 .home-hero.wp-block-media-text {
   grid-template-columns: 100% 1fr;
 }
 .home-hero.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
   grid-column:1;
   grid-row:1;
 }
 .home-hero.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content,
 .home-hero.wp-block-media-text .wp-block-media-text__content {
   grid-column:1;
   grid-row:2;
 }
 .home-hero img {
  width:100%;
  height: auto;
 }
 .home-hero.wp-block-media-text.is-style-card.has-media-on-the-right .wp-block-media-text__content,
 .home-hero.wp-block-media-text.is-style-card .wp-block-media-text__content {
  padding:0;
  margin:0;
 }
}
.home-hero .button-padding {
  padding: 0 2em !important;
}
.skip-nav {
  z-index: 999999999;
}
/* list */
.wp-block-latest-posts.wp-block-latest-posts__list {
  list-style: none;
}
.aligncenter .wp-block-latest-posts__featured-image,
.wp-block-latest-posts__featured-image.aligncenter {
  background-color:#005587;
  margin-bottom:10px;
  position:relative;
}
.aligncenter .wp-block-latest-posts__featured-image img,
.wp-block-latest-posts__featured-image.aligncenter img {
  margin:auto;
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
}
@media (min-width: 1024px) {
 .aligncenter .wp-block-latest-posts__featured-image,
 .wp-block-latest-posts__featured-image.aligncenter {
   height:200px;
 }
 .wp-block-latest-posts__featured-image.aligncenter img {
   max-height:200px;
 }
}
@media (max-width: 1023px) {
 .aligncenter .wp-block-latest-posts__featured-image,
 .wp-block-latest-posts__featured-image.aligncenter {
   height:150px;
 }
 .wp-block-latest-posts__featured-image.aligncenter img {
   max-height:150px;
 }
}
@media (max-width: 600px) {
 .aligncenter .wp-block-latest-posts__featured-image,
 .wp-block-latest-posts__featured-image.aligncenter {
   height:200px;
 }
 .wp-block-latest-posts__featured-image.aligncenter img {
   max-height:200px;
 }
}
ul.wp-block-latest-posts li::before {
  content:none;
}
ul.img-height150 img {
  height:150px;
  max-height:150px;
}

.home-news img {
  max-height:100%;
  max-width:100% !important;
}
.wp-block-latest-posts.is-grid.home-news{
  padding-left:28px;
}
/* ul li::before {
  display: none;
}*/

.center-button {
  text-align: center;
  width: 100%;
}

/* footer */
h2#block-socialmedia-menu {
  padding:0px;
}
.foot-lower-copyright,
.foot-lower-toc,
.foot-lower-social {
  width: auto !important;
}
.foot-upper_address {
  padding: 0px !important;
}
.foot-upper_address img {
  margin-bottom: 0px !important;
}
p.has-large-font-size {
  line-height:1.5em;
}

.full-width {
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.full-width-notice {
  position: relative; /* for the child pseudo-elements */
}

.full-width-notice:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -9999px;
    right: 0;
    border-left: 9999px solid #2774ae;
    box-shadow: 9999px 0 0 #2774ae;
}

.featured-image > img {
    height: 50vh;
    width: auto;
    margin: auto;
    display: block
}
.featured_image_caption {
  text-align:center;
  font-style: italic;
  padding-top: 20px;
}
.post-time {
    margin-top: 10px;
    margin-bottom: 40px;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 920px) {
  .title-left {
    max-width: 80%;
  }
  .ucla.campus p {
    margin-bottom: 0px;
  }
}
.alignfull img {
  width: 100vw;
}
.title-left {
  max-width: 35%;
}
@media (min-width: 1024px) {
    .post-header {
        margin-bottom: 30px !important;
    }
}
@media (min-width: 958px) {
  .wp-block-latest-posts.columns-3 li {
    width: 25%;
  }
}
.wp-block-latest-posts.columns-3 li:nth-child(3n) {
  margin-right: 1.25em;
}
body,html {
    overflow-x: hidden;
}

h2.fancy::before {
  margin-right: 18px;
  border-left: 8px solid #FFD100;
  content: "";

}

h2.fancy {
  color: white !important;
  font-size: 2.25rem !important;
  font-weight: bold !important;
}
.em-calendar {
  margin-top: 20px;
}
.wp-block-latest-posts.columns-3.event-list li {
  width 100% !important;
}
@media (min-width: 600px) {
 .wp-block-latest-posts.columns-3.event-list li {
  width:100% !important;
 }
}
@media (min-width: 958px) {
 .wp-block-latest-posts.columns-3.event-list li {
  width:23% !important;
 }
}
@media (max-width: 600px) {
 .event-columns {
  display:flex !important;
  flex-direction:column-reverse;
 }
}
table.custom_events_manager_list {
  width:100%;
}
.custom_events_manager_list td {
  padding: 20px 10px;
  line-height:1.2em;
}
.custom_events_manager_list tr:not(:last-child) td {
  border-bottom: solid 1px #cccccc;
}

.custom_events_manager_list th {
  font-weight: bold;
  font-size: 1.1rem;
  text-align:left;
  padding: 15px 10px;
  border-bottom: solid 1px #666666;
}

.custom_events_manager_list thead tr:first-child {
  background-color: #003B5C;
  color: #ffffff;
}
.custom_events_manager_list th.event-time {
  width:auto;
  min-width:0;
}
@media (min-width: 920px) {
  .custom_events_manager_list thead tr:first-child th {
    width:auto !important;
    min-width:150px;
  }
}
.custom_events_manager_list {
  margin-top: 30px;
  margin-bottom: 30px;
}

.screenreader-only {
  display: block;
  overflow: hidden;
  height: 0;
  position: absolute;
}

a:hover, a:hover:visited {
  background-color: #0079BF;
  color: #FFFFFF;
  text-decoration: none;
}
.wp-block-latest-posts.is-grid li {
  padding:20px 30px;
  border: solid 1px #cccccc;
}
.wp-block-latest-posts.is-grid li:after {
  content: "";
  display: inline-block;
  width: 100%;	
}
/*
.wp-block-image img {
  max-width: 100% !important;
  height: auto !important;
}*/
/* fullwidth */
.alignwide,
.alignfull {
  margin: 0px calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}
@media (min-width: 960px) {
/*  .alignwide {
    width: calc(100% + 20vw);
    margin: 2rem -10vw;
  }*/
}
@media (max-width: 920px) {
  .title-left {
    max-width: 80%;
  }
  .ucla.campus p {
    margin-bottom: 0px;
  }
}
.alignfull img {
  width: 100vw;
}
.img-cover img {
  object-fit: cover;
}
.img-fill img {
  object-fit: fill;
}
.img-contain img {
  object-fit: contain;
}
p.padding-medium {
  padding: 1em;
}
.alignfull.img-cover .wp-block-media-text__content {
  padding: 0;
}
.img-height500 img {
  height:500px !important;
}
p.linear-samueli {
  background-image: linear-gradient(90deg,rgba(0,165,228,0.95) 0%,rgba(0,83,154,0.95) 100%);
}
/* TODO */
.img-auto-width img {
  width: auto;
}
@media (max-width: 478px) {
  .img-auto-width img {
    width: 100%;
    height: 100%;
  }
  section#hero .copy__wrapper {
   margin-top:350px;
  }
}
/*
section#hero .copy__headline {
  font-size:2.5em;
}*/
section#hero .copy__headline-ribbon {
  padding:20px 30px;
}
.margin-bottom-none .wp-block-columns {
  margin-bottom: 0px;
}
.hero-align-left h1 {
  font-size: 2.5em;
}
@media (min-width: 920px) {
  .hero-align-left {
    width:40%;
    margin-top:-550px;
    margin-left: 0px;
  }
  .hero-align-left .wp-block-coblocks-hero__inner {
    background-color:rgba(30, 75, 135, 0.8) !important;
    padding:50px;
  }
}
@media (max-width: 920px) {
  .hero-align-left {
    width:100%;
    margin: -30px 0 0 0;
    padding: 0px;
  }
  .hero-allign-left .wp-block-coblocks-hero__content {
    padding: 50px;
  }
}
/* pagination */
.em-pagination .page-numbers {
 padding: 12px 16px;
}
.em-pagination .page-numbers,
.pagination .page-numbers:not(.dots) {
  border: 1px solid #ccc;
  text-decoration: none;
  margin-right:3px;
  background-color:#f7f7f7;
}
.em-pagination .page-numbers.current,
.pagination .page-numbers.current, a.page-numbers:hover {
  background: #0079BF;
  color:white !important;
}
@media screen and (max-width: 600px) {
  .em-pagination .page-numbers:not(.current):not(.prev):not(.next),
  .pagination .page-numbers:not(.current):not(.prev):not(.next) {
    display:none;
  }
}
.margin-top-zero .mt-32,
.margin-top-zero {
  margin-top: 0 !important;
}
.seas-table,
.seas-table th,
.seas-table td {
 border: solid 1px;
}
.seas-table thead {
 border-bottom: 3px solid;
 font-weight:bold;
}
.seas-table th,
.seas-table td,
.seas-table tr {
 padding: .5em;
}
