@font-face {
  font-family: 'OpenSans';
  src: url("/assets/OpenSans-Light-70a93806.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'OpenSans';
  src: url("/assets/OpenSans-LightItalic-fd9e1fc6.ttf") format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'OpenSans';
  src: url("/assets/OpenSans-Semibold-b6be87b3.ttf") format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'OpenSans';
  src: url("/assets/OpenSans-SemiboldItalic-98884762.ttf") format('truetype');
  font-weight: bold;
  font-style: italic;
}

html {
  height: 100%;
}

body {
  background-color: #eee;
  background-image: url("/images/css/sella_ronda.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-attachment: fixed;

  display: grid;
  grid-template-columns: [left-gutter] 1fr [content] 3fr [sidebar] 1fr;
}

.content {
  grid-column: content;
}

.sidebar {
  grid-column: sidebar;
}

body,
p,
ol,
ul,
td {
  font-family: 'OpenSans', Helvetica, Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.15em;
}

h1 {
  text-shadow: 2px 2px 2px white;
}

pre {
  padding: 10px;
  font-size: 11px;
}

a {
  color: #f54700;
  text-decoration: none;
}

a:visited,
a:hover {
  color: #328187;
}

span.fas {
  color: #f54700;
  vertical-align: top;
}

.button {
  font-size: 1em;
  font-weight: bold;
  color: white;
  padding: 0.3em;
  background-color: lightskyblue;
  border: 2px solid dodgerblue;
  border-radius: 3px
}

a.button {
  color: white;
}

.primary {
  padding: 0.5em;
  background-color: #e8627d;
  border: 2px solid crimson;
}

.flash {
  border-radius: 10px;
  padding: 5px;
  width: 50%;
  margin: 5px auto;
  text-align: center;
}

.notice {
  border: 1px solid green;
  background-color: #d9ecd0;
}

.alert {
  border: 1px solid red;
  background-color: #f7cac9;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 2s, opacity 2s linear;
}

.fieldWithErrors {
  padding: 2px;
  background-color: red;
  display: table;
}

img {
  border: none;
}

nav.icons {
  font-size: 1.25em;
  text-align: right;
}

nav.pagy {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  width: 100%;
  text-align: center;
}

nav.pagy a {
  font-weight: bold;
  padding: 0px 10px 0px 10px;
}

article {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 25px;
}

article img {
  display: block;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

article img.wide {
  width: 100%;
}

article blockquote {
  font-style: italic;
}

.post_title {
  font-size: 18px;
  font-weight: bold;
  text-transform: capitalize;
}

.post_body {
  text-align: justify;
}

.metadata {
  font-size: 0.75em;
}

.post blockquote {
  background: #bbb;
  border: 1px solid #aaa;
  padding: 3px;
  font-size: 0.9em;
}

.post blockquote p {
  font-size: 0.9em;
}

.post img.shadow {
  -moz-box-shadow: 2px 2px 4px 4px #ddd;
  -webkit-box-shadow: 2px 2px 4px 4px #ddd;
  box-shadow: 2px 2px 4px 4px #ddd;
}

/* general form layout */
div#form {
  text-align: left;
}

div.row {
  background: white;
  padding: .25em;
}

div.row label {
  float: left;
  width: 120px;
  text-align: right;
  font-weight: bold;
  margin-right: 10px;
}

div.row form {
  float: right;
  width: 335px;
  text-align: left;
}

div.row input[type=text] {
  width: 60%;
  font-size: 0.9em;
  border-radius: 0.25em;
  border: 1px solid lightgray;
  padding: .25em;
}

div.row textarea {
  width: 60%;
  font-size: 0.9em;
  border-radius: 0.25em;
  border: 1px solid lightgray;
  padding: .25em;
}

table {
  border: 1px solid #ccc;
  margin: 0 auto 0 auto;
}

td {
  padding: 0 5px 0 5px;
}

th {
  padding: 0 5px 0 5px;
}

thead tr {
  background-color: #ccc;
}

tbody tr {
  background-color: #eee;
}

tfoot tr {
  background-color: #ccc;
  font-weight: bold;
}

/* Galleries */
div.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 5px;
  align-items: center
}

div.image-cell {
  text-align: center;
}

div.image-cell:hover {
  opacity: 0.75;
}

.gallery-title {
  font-size: 1.4em;
  font-weight: bold;
}

.gallery-body {
  margin: 10px 0px 10px 0px;
}

a.delete-image {
  color: #333;
}

a.favourite {
  color: red;
}

a.set-favourite {
  color: #333;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

.main-image {
  padding-top: 60px;
}

.main-image img {
  display: block;
  margin: auto;
}

.main-image img.landscape {
  max-width: 100%;
  height: auto;
}

.main-image img.portrait {
  max-height: 100%;
  width: auto;
}

span.close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #f54700;
  font-size: 32px;
}

span.prev-img,
span.next-img {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  color: #f54700;
  opacity: 0.5;
  font-size: 50px;
  user-select: none;
  -webkit-user-select: none;
}

span.next-img {
  padding-left: 10px
}

span.next-img {
  right: 0;
  padding-right: 10px
}

span.prev-img:hover,
span.next-img:hover {
  opacity: 1.0;
}
/* Location map (map/place) */
.map {
  height: 400px;
  margin: 1em 0;
  z-index: 0; /* keep Leaflet panes below the sidebar and modal */
}

/* Undo the post-photo styling from `article img` for map tiles and markers */
.map img {
  box-shadow: none;
  max-width: none;
}
