body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.cover {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.cover video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  -ms-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  filter: brightness(85%);
  z-index: -1;
}

.cover h1 {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 40%;
  margin: 0;
  font-size: 4em;
  line-height: 1.2em;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  -ms-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.cover .hint {
  position: absolute;
  bottom: 2.5em;
  /* right: 3em; */
  left: 50%;
  font-size: 1.0em;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  -ms-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.cover div:after {
  content: '';
  position: absolute;
  left: 2.1em;
  top: 1.2em;
  border: 1px solid #fff;
  border-style: none solid solid none;
  width: 1em;
  height: 1em;
  -ms-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.figure {
  text-align: center;
}

.figure > * {
  margin: auto;
}

.figure > video {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
}

/* Video optimization styles */
.video-container {
  position: relative;
  width: 100%;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
}

.video-placeholder {
  position: relative;
  width: 100%;
  min-height: 200px;
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
              linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
              linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.video-placeholder:hover {
  background-color: #e8e8e8;
}

.video-placeholder::before {
  content: "▶";
  font-size: 48px;
  color: #666;
  transition: color 0.3s ease;
}

.video-placeholder:hover::before {
  color: #333;
}

.video-loading {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.video-loaded {
  opacity: 1;
}

/* Responsive video sizing */
@media (max-width: 768px) {
  .figure > video {
    max-width: 100%;
  }
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

figcaption {
  padding: 0.5em;
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.5em;
  text-align: left;
}

dt-article figcaption a {
  color: rgba(0, 0, 0, 0.6);
}

dt-article figcaption b {
  font-weight: 600;
  color: rgba(0, 0, 0, 1.0);
}

.transparent {
  opacity: 0;
}

.unselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.svgunselectable {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
    background: none;
}

/* Remove bullet points from highlights list */
.highlights-list {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    font-size: 0.9em !important;
    font-family: HoeflerText-Regular, Cochin, Georgia, serif !important;
}

.highlights-list li {
    margin-bottom: 0.3em !important;
    list-style: none !important;
    list-style-type: none !important;
}

.highlights-list div {
    margin-bottom: 0.3em !important;
    font-family: HoeflerText-Regular, Cochin, Georgia, serif !important;
    padding-left: 0 !important;
}

/* Add indentation for content after br tags */
.highlights-list div br + * {
    margin-left: 2em !important;
    display: inline-block !important;
}

/* Add colored styling for links - more specific selectors */
.highlights-list a {
    color: #0066cc !important;
    text-decoration: none !important;
}

.highlights-list a:hover {
    text-decoration: underline !important;
}

/* General link styling */
a {
    color: #0066cc !important;
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline !important;
}

.project-link {
    color: #0066cc !important;
    text-decoration: none !important;
}

.project-link:hover {
    text-decoration: underline !important;
}

/* Table-based highlights styling */
.highlights-table {
    width: 100%;
    border-collapse: collapse;
    font-family: HoeflerText-Regular, Cochin, Georgia, serif !important;
    font-size: inherit !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.highlights-table td {
    border: none !important;
    outline: none !important;
    vertical-align: top !important;
    padding: 0.3em 0 !important;
}

.highlights-table tr {
    border: none !important;
    outline: none !important;
}

.highlights-table tr {
    margin-bottom: 0.3em !important;
}

.highlights-table .highlight-date {
    vertical-align: top !important;
    padding-right: 1em !important;
    padding-bottom: 0.3em !important;
    white-space: nowrap !important;
    font-weight: bold !important;
    padding-top: 0 !important;
    border: none !important;
    width: 120px !important;
    min-width: 120px !important;
}

.highlights-table .highlight-content {
    vertical-align: top !important;
    padding-bottom: 0.3em !important;
    padding-top: 0 !important;
    border: none !important;
    line-height: 1.2em !important;
}

/* Apply link styling to table content */
.highlights-table a {
    color: #0066cc !important;
    text-decoration: none !important;
}

.highlights-table a:hover {
    text-decoration: underline !important;
}

/* Override Distill template table styles for highlights */
dt-article .highlights-table {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

dt-article .highlights-table td {
    border: none !important;
    outline: none !important;
    vertical-align: top !important;
    padding: 0.3em 0 !important;
    font-size: inherit !important;
}

dt-article .highlights-table tr {
    border: none !important;
    outline: none !important;
}

dt-article .highlights-table .highlight-date {
    vertical-align: top !important;
    padding-right: 1em !important;
    white-space: nowrap !important;
    font-weight: bold !important;
    width: 120px !important;
    min-width: 120px !important;
}

dt-article .highlights-table .highlight-content {
    vertical-align: top !important;
    line-height: 1.2em !important;
}
