/* Ported from the original Drupal "btn_zen" theme, trimmed to what the homepage uses. */

body {
  margin: 0;
  padding: 0;
  background: #101010;
  font: 13px/1.5 Arial, Helvetica, FreeSans, sans-serif;
}

a, a:link, a:visited {
  color: #5473AB;
  text-decoration: none;
}

/* Header: logo centred on a repeating strip */
#header {
  padding: 10px 0;
}
#logo-title {
  background: url("/images/strip.png") repeat-x 0 0;
  text-align: center;
  line-height: 0;
}
#logo {
  max-width: 100%;
  height: auto;
}

/* White rounded panel (the original used corner images; border-radius does the same job) */
#main,
#footer {
  box-sizing: border-box;
  background: #fff;
  width: 90%;
  margin: 0 auto;
}
#main {
  border-radius: 15px 15px 0 0;
  padding: 30px 15px;
  font-size: 1.1em;
}
#footer {
  border-radius: 0 0 15px 15px;
  margin-bottom: 20px;
  padding: 20px 0 10px;
  font-style: italic;
  text-align: center;
}

/* Slider */
#slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 8 / 5;
}
#slider ul {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.8s ease;
}
#slider li {
  flex: 0 0 100%;
  height: 100%;
}
#slider img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#btn_prev,
#btn_next {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 54px;
  margin-top: -27px;
  padding: 0;
  border: 0;
  cursor: pointer;
  opacity: 0.8;
  background: url("/images/controls.png") no-repeat 0 0;
}
#btn_prev { left: 20px; }
#btn_next { right: 20px; background-position: -52px 0; }
#btn_prev:hover,
#btn_next:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  #slider ul { transition: none; }
}
