/* add admin-only to any items you want to show only to logged-in admins.
   An is-admin class is added to the HTML element by pyHTMLTag when an admin is logged in. */
.admin-only {
  display: none !important;
}
html.is-admin .admin-only {
  display: block !important;
}

#feature-container .button {
  background       : rgba(0, 0, 0, 0.65);
}
.caption {
  background       : #EEE;
  border-top       : 2px solid #C4BFC0;
  line-height      : 18px;
  margin-top       : 0px;
  padding          : 10px;
  padding-bottom   : 20px;
}
.image {
  padding-bottom    : 30px;
  padding-top       : 30px;
}

.homepage #news-container .story .cc-video-with-link {
  display          : block;
  color            : #333;
  height           : 100%;
  background-color : #EEE;
  text-decoration  : none;
}
.homepage #news-container .story .cc-video-with-link:hover {
  background-color : #C28E0E !important;
}
.homepage #news-container .story .cc-video-with-link:hover a {
  color            : #FFF !important;
}
.cc-video-with-link a {
  background-color : transparent !important;
}
.cc-embed {
  position       : absolute;
  top            : 0;
  left           : 0;
  height         : 100%;
  width          : 100%;
}
.cc-embed-wrapper {
  height         : 0;
  max-width      : 100%;
  overflow       : hidden;
  padding-bottom : 56.25%; /* 16:9 */
  position       : relative;
  width          : 100%;
}

/*** 

  css_utility_styles.css
  
  Useful styles gleaned from multiple locations.
  
***/


/*
  Hiding elements offscreen while keeping them available to screen readers. Source:
  https://www.paciellogroup.com/blog/2012/05/html5-accessibility-chops-hidden-and-aria-hidden 
  
  .offscreen was a home-grown solution, and is included so as to not break older pages.
  .sr-only is the newer Bootstrap utility, and should be used going forward. 
*/

.offscreen {
  clip: rect(1px 1px 1px 1px) !important; /* IE 6/7 */
  clip: rect(1px, 1px, 1px, 1px) !important;
  height: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important; /* added line */
  width: 1px !important;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
 }

/* Added to make focusable elements visible when focused. */

.offscreen:focus,
.sr-only:focus {
  position:relative !important;
  clip:auto !important;
  width:auto !important;
  height:auto !important;
  overflow:auto !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
}


/* 
  Allows long, visible URLs to wrap so that they won't break out of
  their containers on mobile devices. Source:
  https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/
*/

.wrap-urls {

  /* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;

}


.nowrap {
  white-space: nowrap;
}