/* University Template over-ride
   Launched: 2017-01-17
   Author: Erik Runyon
   ----------------------------------------------------*/

@media screen,projection {
  .hidden {display:none;}
  .columns > h2 {margin-top:0;}

  .embed-inner {position:relative; padding:0;}
  .embed-inner iframe,
  .embed-inner object,
  .embed-inner embed {position:absolute; top:0; left:0; width:100%; height:100%;}

  .section-header {padding-bottom:0.3rem; border-bottom:2px solid #dcb439;}

  .vevent {overflow:hidden;}
  .events-date-header { color: #444; font-weight: 300; font-size: 1.4rem; }
  .meta .muted {color:#999;}

  .entry-event { display:flex; flex-flow:column; }
  .entry-image img { width:100%; }
  .events .vevent { margin:1rem 0 3rem; }
  .events .date-string { display:inline-block; }
  
  /* Images */
  p.right {float:right; max-width:46%; margin:0 0 1em 1em; font-family:"Helvetica Neue", Helvetica, Arial, Verdana, sans-serif; font-style:italic; font-size:0.9rem; color:#777;}
    p.right img {border:1px solid #222; box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);}

  /* Calendar List */
  .calendars {margin:2rem 0; padding:1rem; background:#e3e3e3;}
  .calendar-list {margin:0; padding:0; list-style:none;}
    .calendar-list ul {margin:0 0 1rem; padding:0; list-style:none;}
    .calendar-list li {position:relative; text-indent:-1rem; margin-left:1rem;}
    .calendar-list a {display:block; padding-right:15px; text-decoration:none;}
      .calendar-list a:hover {text-decoration:underline;}
    .calendar-list .icon {position:absolute; top:3px; right:0; cursor:pointer;}

  /* 30-box calendar */
  .calendar {clear:both; overflow:hidden; max-width:300px; font-size:0.8rem; line-height:1rem;}
  .c-grid {line-height:1.8rem;}
  .c-grid-title {float:left; font-weight:bold; background-color:#0c2340; color:#fff;}
    .c-grid-title a {text-decoration:none; color:#fff;}
    .c-grid-title a:hover {text-decoration:underline;}
    .c-grid-title .icon {padding-top:4px;}
  .c-day {float:left; width:14.28%; background-color:#fff; text-align:center; }
  .c-day-previous-month,
  .c-day-next-month {float:left; width:14.28%; background-color:#fff; text-align:center; color:#777; }
  .c-week-day {float:left; width:14.28%; padding:0; line-height:1.9rem; background-color:#dcb439; color:#0c2340; text-align:center; font-weight:bold; }
    .calendar-narrow .c-week-day span {display:none;}
  .c-next {width:12.5%; padding:0 4% 0 0; text-align:right; cursor:pointer; }
  .c-previous {width:12.5%; padding:0 0 0 4%; text-align:left; cursor:pointer; }
    .c-next:hover,
    .c-previous:hover {background-color:rgb(0,132,61,0.2) !important; font-weight:bold; }
  .c-month {width:75%; text-align:center; }
  .c-today {background-color:rgba(12,35,64,0.05); }
  .c-event {background-color:rgb(210, 210, 210); color:white; font-weight:bold;}
    .c-event a {display:block;}

  /* Homepage Featured Events */
  .featured-image {display:none;}
    .featured-image img {max-width:99%;}
  .home-content {margin-bottom:2rem;}
    .home-content h2 {margin-top:0;}
    .featured-events .image-right {float:none; margin:0 0 1rem;}
    .featured-events .featured-image {display:block;}
    .featured-title,
    .featured-events .description,
    .ongoing-events .description {display:none;}

    .upcoming-events > h2 {margin-top:0;}

  /* Theme */
  .brandbar.theme-bb-gold-flat {border-bottom: none; background: #ae9142; }
  .theme-bb-gold-flat a {background-size:auto 50px;}
  .theme-bb-gold-flat .dept-nd a {background-image:url('https://static.nd.edu/images/brandbar/dept-nd-white@2x.png');}
  .theme-bb-gold-flat .dept-opac a {background-image:url('https://static.nd.edu/images/brandbar/dept-opac-white@2x.png');}

  .titlebar.theme-tb-news { border-bottom: none; background: #0c2340 url(images/hdr-700.jpg) 50% 50% / cover no-repeat; box-shadow: 0 1px rgba(255,255,255,0.25) inset; }
    .titlebar.theme-tb-news a { color: white; }
    .titlebar.theme-tb-news .site-title a { text-shadow: none; }

  .search-form {box-shadow:none; border-radius:0;}
    .search-button {border:none; background:none;}

}

/* 580px
----------------------------------------------------*/
@media only screen and (min-width:36.250em) {
  p.right {max-width:40%;}
  .entry-event { flex-flow:row; }
  .entry-event:not(.stacked) .entry-image { width:25%; }
  .entry-event:not(.stacked) .entry-image + .entry-body { width:75%; padding-left:1rem; }
  .entry-event.stacked { flex-flow:column; }
}

/* 700px
----------------------------------------------------*/
@media only screen and (min-width:43.75em) {
  .list-series {-webkit-column-count:2;column-count:2;}
}

/* 960px
----------------------------------------------------*/
@media only screen and (min-width:60em) {
  .titlebar {padding:1.3rem 0;}
  .titlebar.theme-tb-news { border-bottom: none; background: #0c2340 url(images/hdr-1200.jpg) 50% 50% / cover no-repeat; }

  .featured-events {display:flex; justify-content:space-between;}
    .featured-events .vevent {flex:1 0 0; max-width:32%;}
    .list-series {-webkit-column-count:3;column-count:3;}
}

/* 1024px
----------------------------------------------------*/
@media only screen and (min-width:64em) {
  .list-series {-webkit-column-count:4;column-count:4;}
}

/* 1200px
----------------------------------------------------*/
@media only screen and (min-width: 75em) {
   /* Title Bar
  ----------------------------------------------------*/
  .titlebar.theme-tb-news { border-bottom: none; background: #0c2340 url(images/hdr-1600.jpg) 50% 50% / cover no-repeat; }
}

/* Hi-res
----------------------------------------------------*/
@media
  only screen and (-webkit-min-device-pixel-ratio:1.5),
  only screen and (min-device-pixel-ratio: 1.5),
  only screen and (min-resolution:144dpi),
  only screen and (min-resolution:1.5dppx){}

@media print {
  p.right img {float:right; margin:0 0 1em 2em;}
}
