/*  */
body {
  font-family: "Georgia", serif;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.header {
  top: 0;
}

figure {
  margin: 0;
}

nav.footer h1 {
  box-sizing: content-box;
}

figure img {
  max-width: 100%;
}

h1, .h1 {
  font: 30px/120% "alternate-gothic-no-2-d",sans-serif;
}
h2, .h2 {
  font: 30px/120% "alternate-gothic-no-2-d",sans-serif;
}
h3, .h3 {
  font-size: 16px;
}
.subtitle {
  font-size: 20px;
}

a, a:link {
  color: #646464;
  text-decoration: none;
}
a:hover, a:active {
  color: #242424;
  text-decoration: underline;
}

@media screen and (min-width: 801px) {
  .contentWrapper .container,
  .contentWrapper .container,
  .mainNav .container,
  nav.header .container {
    margin: 0 auto;
    position: relative;
    max-width: 992px;
  }
}
@media screen and (min-width: 801px) and (max-width: 1022px) {
  .contentWrapper .container,
  .contentWrapper .container,
  .mainNav .container {
    padding-left: 15px;
    padding-right: 15px; 
  }
}
@media screen and (max-width: 800px) {
  .contentWrapper .container,
  .contentWrapper .container,
  .mainNav .container {
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px; 
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 1022px) {
  nav.header .container,
  nav.footer .container,
  nav.bottom .container  {
    width: 100% !important;
    box-sizing: border-box;
  }
  nav.footer .container,
  nav.bottom .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media screen and (max-width: 900px) {
  nav.header .page-5.open,
  nav.header.social-media {
    display: none;
  }
}

.mainNav + .contentWrapper.contentWrapper-main .container {
  padding-top: 50px;
}
nav.header .social-media {
  display: none !important;
}
nav.header ul {
 background: url("http://www.calgarystampede.com/images/layout/header-nav.gif") no-repeat scroll right top transparent;
}

.pull-right { float: right; }
.pull-left { float: left; }

/*=======================================================================*/
/*                             NAVIGTION                                 */
/*=======================================================================*/
.mainNav {
  position: relative;
  z-index: 40;
}
.mainNav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: right;
}
.mainNav a {
  display: block;
  text-decoration: none;
  color: #e8ded4;
  font: 20px/1 "alternate-gothic-no-2-d",sans-serif;
  line-height: 35px;
}


@media screen and (min-width: 845px) {
  .mainNav {
    margin-top: 66px;
  }
  .mainNav li {
    display: inline-block;
    border-right: 1px #313131 solid;
    padding: 0 17px;
  }
  .mainNav li:first-child {
    padding-left: 0;
  }
  .mainNav li:last-child {
    border-right-width: 0;
    padding-right: 0;
  }
  .nav-link {
    display: none;
  }
}
@media screen and (max-width: 844px) {
  .mobile-menu-toggle a {
    position: absolute;
    background: url("http://cs.calgarystampede.com/images/mobile/mobile-menu-toggle.jpg") no-repeat 0 0;
    height: 27px;
    right: 34px;
    top: 52px;
    width: 29px;
  }
  .mainNav {
    margin-top: 0;
    background: #000;
    display: none;
    box-shadow: 0 20px 13px 0 rgba(0,0,0,0.5);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
  }
  .mainNav li {
    text-align: left;
  }
  .nav-link {
    float: right;
    margin: 52px 19px 20px 20px;
    color: #fff;
    height: 27px;
    width: 29px;
    background: url("http://cs.calgarystampede.com/images/mobile/mobile-menu-toggle.jpg") no-repeat 0 0;
  }
}

/*=======================================================================*/
/*                              SLIDER                                   */
/*=======================================================================*/
.sliderWrapper {
  background: #58585a url("http://corporate.calgarystampede.com/images/layout/body.jpg") repeat-x fixed 0 0;
  padding: 18px 0;
}

.carousel-sel-item,
.carousel-thmbs-item {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.carousel-sel-item.control-background-top {
  background-position: 50% 0;
}
.carousel-sel-item.control-background-bottom {
  background-position: 50% 100%;
}

.carousel-sel-item {
  display: none;
  position: relative;
  font-family: Georgia;
}
.carousel-sel-item.carousel-sel-item-active {
  display: block;
}
.carousel-sel-item-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px 20px;
  background: rgba(50,50,50,0.5);
  color: #fff;
}
.carousel-sel-item-text h2, 
.carousel-sel-item-text p {
  margin: 0;
}
.carousel-sel-item-text a {
  color: #fff;
  text-decoration: none;
}



.carousel-thmbs-item {
  height: 132px;
  border-bottom: 15px rgba(0,0,0,0) solid;
  cursor: pointer;
  position: relative;
}

.carousel-thmbs-item-active:before {
  border-left: 5px #c00 solid;
  content: "";
  position: absolute;
  left: 0;
  height: 100%;
}

.carousel-sel-control-prev,
.carousel-sel-control-next {
  position: absolute;
  top: 138px;
  background: #fdfdfd;
  width: 42px;
  height: 42px;
  border-radius: 21px;
  text-indent: -9999px;
  cursor: pointer;
}
.carousel-sel-control-prev:hover,
.carousel-sel-control-next:hover {
  background: #fff;
}

.carousel-sel-control-prev:before,
.carousel-sel-control-next:before {
  font-family: "FontAwesome";
  font-size: 27px; font-size: 1.986rem;
  float: left;
  width: 100%;
  height: 100%;
  line-height: 42px;
  text-align: center;
  text-indent: 0;
  color: #bdbec0;
}
.carousel-sel-control-prev:hover:before,
.carousel-sel-control-next:hover:before {
  color: #aaa;
}
.carousel-sel-control-next {
  right: 6px;
}
.carousel-sel-control-next:before {
  content: "\f105";
  margin-right: -2px;
}
.carousel-sel-control-prev {
  left: 6px;
}
.carousel-sel-control-prev:before {
  content: "\f104";
  margin-left: -2px;
}

.carousel-sel-item-text h2 {
  font-family: "Georgia", serif;
  font-size: 27px;
}

@media screen and (min-width: 801px) {
  .carousel {
    overflow: hidden;
    height: 410px;
  }
  .carousel-sel {
    float: left;
    width: 74.8%;
    position: relative;
  }
  .carousel-sel-item {
    height: 410px;
  }
  .carousel-thmbs {
    float: right;
    width: 23.6%;
  } 
  .carousel-thmbs .bx-wrapper,
  .carousel-thmbs .bx-viewport {
    height: 410px !important;
  }
}

@media screen and (max-width: 800px) {
  .carousel {
    overflow: hidden;
    height: 497px;
  }
  .carousel-sel {
    width: 100%;
    height: 350px;
    position: relative;
    padding-bottom: 15px;
  }
  .carousel-sel-item {
    height: 350px;
  }
  .carousel-thmbs {
    width: 100%;
  }
  .carousel .bx-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  .carousel .carousel-thmbs-item {
    width: 33.33%;
  }
  .carousel-thmbs .carousel-thmbs-item {
    float: left !important;
    /* border-right: 15px solid rgba(0, 0, 0, 0); */ 
    /* box-sizing: border-box; */
  }
}

/*=======================================================================*/
/*                             CONTENT                                   */
/*=======================================================================*/
.contentWrapper {
  overflow: hidden;
  clear: both;
}

@media screen and (min-width: 801px) {
  .content {
    float: left;
    width: 60%;
    border-right: 2px #f9f9f9 solid;
    padding-right: 20px;
    box-sizing: border-box;
  }
  .aside {
    float: right;
    width: 40%;
    padding-left: 25px;
    box-sizing: border-box;
  }
}

@media screen and (max-width: 800px) {
  .content {
    box-sizing: border-box;
    clear: both;
    margin-bottom: 30px;
  }
  .aside {
    border-top: 2px #f9f9f9 solid;
    padding-top: 1px;
    clear: both;
    box-sizing: border-box;
  }
}
@media screen and (max-width: 845px) {
  .contentWrapper {
    margin-top: 80px;
  }
}


/* Alerts */

.emailAlerts dt {
  float: left;
  clear: left;
  font-size: 16px;
  margin-right: 15px;
  padding: 9px 0;
  width: 100px;
}
.emailAlerts #cats dt {
  font-size: 150%;
  width: 100%;
}
.emailAlerts dd {
  margin: 10px 0;
}
.emailAlerts .menu-list {
  clear: both;
  list-style-type: none;
  margin: 10px 0 20px;
  padding: 0;
}
.emailAlerts dl input[type=text] {
  border: 1px #ccc solid;
  height: 33px;
  padding-left: 5px;
  padding-right: 5px;
}
#recaptcha_widget_div {
  margin: 20px 0;
}

ul.errors {
  list-style-type: none;
  margin: 15px 0;
  padding: 0;
  color: red;
}


/* RSS */

.rssList.menu-list {
  list-style-type: none;
  padding-left: 0;
}
.rssList.menu-list li {
  overflow: hidden;
  padding: 0 0 5px;
}
.rssList.menu-list .rss_icon {
  float: right;
}

/*=======================================================================*/
/*                             INDEXES                                   */
/*=======================================================================*/
.news-all {
  font: 15px/120% "alternate-gothic-no-2-d",sans-serif;
  float: left;
  margin: 38px 0 0 20px;
}

.news-item {
  border-bottom: 2px #f9f9f9 solid;
  padding-bottom: 22px;
  margin-bottom: 22px;
  clear: both;
}
.aside .news .news-item:last-child {
  border-bottom-width: 0;
}

.news-item-image {
  margin: 0 12px 0 0;
  width: 80px;
}
.news-item-date {
  font-size: 10px;
  color: #939393;
  display: block;
}
.news-item-title {
  margin: 0;
}
.news-item-title a {
  color: #070707;
}
.news-item-text {
  color: #575757;
}

.news-item-date,
.news-item-title,
.news-item-text {
  margin-left: 92px;
}


.news-item-dateFigure {
  background: url("../images/date.png");
  color: #fff;
  width: 46px;
  height: 71px;
  text-align: center;
  text-transform: uppercase;
  font-family: "alternate-gothic-no-2-d",sans-serif;
  padding: 5px 0;
  box-sizing: border-box;
  line-height: 27px;
}
.news-item-dateFigure-month {
  font-size: 20px;
  display: block;
}
.news-item-dateFigure-day {
  font-size: 30px;
  display: block;
}

.dateFlag .news-item-date,
.dateFlag .news-item-title,
.dateFlag .news-item-text {
  margin-left: 60px;
}


.media-item {
  clear: left;
}
.media-item-text-description,
.media-item-text-title {
  margin-left: 265px;
}
.media-item-image {
  margin: 0 12px 0 0;
  width: 250px;
  float: left;
}


.prPaging {
  margin-bottom: 20px;
  overflow: hidden;
}
.prPaging .right {
  float: right;
  color: #999;
}
.prPaging .right a {
  font-size: 14px;
}
.prPaging .right .active {
  font-size: 18px;
}
.prPaging .right a,
.prPaging .right .active {
  margin-left: 2px;
  margin-right: 2px;
}

/* Search */

.releasesFilter {
  border: 1px solid #CCCCCC;
  padding: 10px;
  margin-bottom: 30px;
}
.releasesFilter legend {
  padding: 0 10px;
}

.form-group {
  float: left;
  box-sizing: border-box;
}
.form-group.form-query {
  padding-bottom: 15px;
  padding-right: 15px;
  width: 75%;
}
.form-group.form-sort {
  width: 25%;
}
.form-group.form-contype {
  padding-right: 15px;
  width: 75%;
}
.form-group.form-submit {
  width: 25%;
}
.form-group.form-submit .btn {
  width: 100%;
  height: 33px;
  line-height: 33px;
}

.form-group label {
  padding: 0 0 5px;
  display: block;
}
.form-group select {
  width: 100%;
  border: 1px solid #CCCCCC;
  padding: 3px;
}
.form-group input[type=text] {
  border: 1px #ccc solid;
  width: 100%;
  padding: 3px;
}

.form-contype .checkbox {
  display: inline-block;
  padding: 5px 10px 5px 0;
}


/*=======================================================================*/
/*                            ARTICLE                                    */
/*=======================================================================*/

.article-date {
  color: #939393;
  font-size: 10px;
}
.article-text {
  color: #585858;
  padding-bottom: 40px;
  border-bottom: 2px solid #f9f9f9;
  margin-bottom: 20px;
}
.article-text-image {
  float: left;
  margin: 4px 15px 10px 0;
}

.article-aside {
  border-bottom: 2px solid #f9f9f9;
  margin-bottom: 20px;
  padding-bottom: 30px;
}

.attachments-tab-item {
  display: none;
}
.attachments-tab-item.active {
  display: block;
}
.nav-tabs {
  list-style-type: none;
  padding: 15px 0 0;
  margin: 0 -5px;
  letter-spacing: -0.3em;
}
.nav-tabs li {
  display: inline-block;
  vertical-align: top;
  letter-spacing: 0;
  padding: 0 5px;
}
.nav-tabs li a {
  border: 3px solid #939393;
  display: block;
}
.nav-tabs li.active a {
  display: block;
}
.nav-tabs li.active a {
  border: 3px solid #b9462b;
}

.nav-tabs li img {
  max-width: 100%;
  display: block;
}
.attachments-tab-item-text-title,
.attachments-tab-item-text-actions {
  padding-top: 10px;
}


.article-aside .kiosk-list {
  list-style-type: none;
  margin: -10px 0 0;
  padding: 0;
}
.article-aside .kiosk-list li {
  padding: 5px 0;
}

/*=======================================================================*/
/*                            GALLERY                                    */
/*=======================================================================*/

.photo {
  letter-spacing: -0.3em;
}
.photo-item {
  letter-spacing: 0;
  vertical-align: top;
  padding-bottom: 15px;
  overflow: hidden;
}
.photo-item figure {
  float: left;
  width: 50%;
}
.photo-item-body {
  margin-left: 53%;
}
.photo-item-body h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.photo-item-body-date {
  color: #939393;
  font-size: 10px;
}



.photo-item-body-text {
  overflow: hidden;
  position: relative;
}
.photo-item-body-text.photo-item-body-text-opened {
  padding-bottom: 25px;
}
.photo-item-body-text-hidden.photo-item-body-text:after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #fff;
  box-shadow: 0 0 10px 10px #fff;
}
.photo-item-body-text-opened.photo-item-body-text:after{
  display: none;
}

.photo-item-body-text-show {
  display: none;
}
.photo-item-body-text-hidden  .photo-item-body-text-show {
  display: block;
  background: #ccc;
  border-radius: 20px 20px 0 0;
  bottom: 0;
  height: 20px;
  left: 50%;
  line-height: 20px;
  margin-left: -20px;
  position: absolute;
  right: 0;
  text-align: center;
  width: 40px;
  z-index: 1;
  box-shadow: 0 5px 10px 10px #fff;
  cursor: pointer;
}
.photo-item-body-text-show:before {
  content: "\f078";
  font-family: "FontAwesome";
  color: #000;
}
.photo-item-body-text-opened .photo-item-body-text-show:before {
  content: "\f077";
}
.photo-item-figure-duration {
  color: #fff;
  float: right;
  font-size: 16px;
  line-height: 20px;
  margin-right: 12px;
  margin-top: -30px;
  position: relative;
  text-align: right;
  text-shadow: 0 0 2px #000;
}



.video-item  {
  padding-bottom: 20px;
}
.video-item  h3 {
  margin: 0;
}

@media screen and (max-width: 469px) {
  .photo-item-body-text {
    display: none;
  }
}


.video-fancybox  .fancybox-skin {
  padding: 0 !important;
  border-radius: 0 !important;
}

/*=======================================================================*/
/*                             ASIDE                                     */
/*=======================================================================*/

/* Search */

.search label {
  display: block;
  border: 1px #cacaca solid;
  background: #fff url("../images/search.png") no-repeat 12px 50%;
  height: 33px;
  width: 100%;
  box-sizing: border-box;
  /* box-shadow: -1px 1px 0 0 #efefef, 0 1px 0 0 #efefee inset;  */
}
.search label input {
  background: none;
  border-width: 0;
  height: 33px;
  padding-left: 55px;
  font-family: "Georgia", serif;
  font-size: 12px;
}
.search [type="submit"] {
  float: right;
  width: 64px;
  height: 32px;
  margin: -32px 1px 0 0;
  background: #fff;
  border-radius: 0;
  border-left: 1px #cacaca solid;
  border-bottom: 2px #bdbdbf solid;
  color: #bdbdbd;
  font-size: 11px;
 /* box-shadow: -1px 1px 0 0 #efefef, 0 1px 0 0 #efefee inset; */
}


/* Annual Report */

.annual {
  padding-bottom: 30px;
}
.annual-text {
  clear: both;
  color: #575757;
}
.annual-text img {
  display: block;
  margin-bottom: 10px;
  max-width: 100%;
}
.annual-text a {
  color: #000;
}

.btn.alerts {
  width: 100%;
  margin: 10px 0 40px;
}


/* Social links */

.socialLink {
  padding: 0 0 30px;
}
.socialLink-text {
  clear: both;
  list-style-type: none;
  /* margin: 0 0 25px; */ 
  margin: 0;
  padding: 0;
  font-size: 16px;
}
.socialLink-text li {
  padding: 10px 0;
  overflow: hidden;
}
.socialLink-text a {
  float: left;
  clear: left;
  color: #4d4d4d;
}
.socialLink-item {
  height: 32px;
  padding-left: 60px;
  position: relative;
  box-sizing: border-box;
  padding-top: 4px;
}
.socialLink-item i {
  position: absolute;
  left: 0;
  top: 0;
}
.socialLink-more {
  margin-top: 20px;
}

/* Lightbox */
.fancybox-next,
.fancybox-prev {
  height: 50% !important; 
}
.fancybox-next span,
.fancybox-prev span {
  top: auto !important;
  bottom: 0 !important;
}
.fancybox-outer, .fancybox-inner {
}