#bgr {
  overflow: hidden;
  transition: none;
}
#bgr img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1000ms ease;
  pointer-events: none;
}
#bgr img.is-active {
  opacity: 1;
}

.visually-hidden {
  position: absolute !important;
  display: block !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section.ff:not(.top) > .wrapper {
  margin-top: 0;
  overflow: visible;
}
section.ff:not(.top) > .wrapper::after,
.main::after {
  content: "";
  display: table;
  clear: both;
}

.w100 {
  width: 100%;
}
.img-container.w100,
.slide.w100 {
  float: none;
  display: block;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}
.main iframe {
  max-width: 100%;
}

@media only screen and (max-width: 1279px) {
  .main {
    display: flow-root;
    overflow: visible;
  }
}

a.addArticle svg {
  display: block;
  width: 1em;
  height: 1em;
}

.nav2 > div:has(> a.addArticle) {
  width: auto;
  height: auto;
  margin: 0;
}

.nav2 a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.4em;
  vertical-align: 0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media only screen and (max-width: 850px) {
  nav.top {
    height: 30px;
  }
  nav.top li a {
    padding: 3px 1.5vw;
    font-size: 110%;
    margin: 0;
    height: 30px;
  }
  nav.top img {
    margin: 0 0 0 23px;
  }
  section.ff:not(.top) > .wrapper {
    position: relative;
    margin-top: -49px;
    padding-top: 49px;
  }
  section.ff:not(.top) .nav2 {
    top: 49px;
    padding-top: 0;
  }
  .nav2 > ul.open {
    display: block;
    overflow: hidden;
  }
  .nav2 li.open > ul {
    display: block;
    overflow: hidden;
  }
}

@media only screen and (max-width: 640px) {
  nav.start,
  nav.top {
    height: auto;
    min-height: 30px;
    overflow: visible;
  }
}

.subpages {
  margin: 1.5em 0;
  padding: 0;
  list-style: none;
}
.subpages a {
  color: #e2b461;
  text-decoration: none;
  display: block;
  padding: 0.25em 0;
}
.subpages a:hover {
  color: #000;
}

[data-slideshow] {
  touch-action: pan-y;
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 48px 72px 32px;
}
#lightbox.open {
  display: flex;
  flex-direction: column;
  touch-action: none;
  overscroll-behavior: none;
}
html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
  overscroll-behavior: none;
}
body.lightbox-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
#lightbox .lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 85vh;
}
#lightbox img {
  max-width: 100%;
  max-height: 85vh;
  height: auto;
  width: auto;
  border: 1px solid #000;
  cursor: pointer;
}
#lightbox .lb-caption,
#lightbox .lb-count {
  color: #fff;
  text-align: center;
  padding: 8px 8px 0;
  font-size: 90%;
}
#lightbox .lb-count {
  color: #e2b461;
  font-size: 80%;
}
#lightbox .lb-close,
#lightbox .lb-prev,
#lightbox .lb-next {
  position: absolute;
  background: none;
  border: 0;
  color: #e2b461;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
#lightbox .lb-close {
  top: 8px;
  right: 16px;
  font-size: 36px;
}
#lightbox .lb-prev,
#lightbox .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  padding: 16px 12px;
}
#lightbox .lb-prev { left: 4px; }
#lightbox .lb-next { right: 4px; }
#lightbox.single .lb-prev,
#lightbox.single .lb-next,
#lightbox.single .lb-count {
  display: none;
}
@media (max-width: 640px) {
  #lightbox {
    padding: 48px 8px 24px;
  }
  #lightbox .lb-prev,
  #lightbox .lb-next {
    font-size: 36px;
    padding: 12px 4px;
  }
}

.admin-wrap {
  min-height: 100vh;
  background: #111;
  color: #eee;
  padding: 40px 20px 80px;
  font-family: Raleway, sans-serif;
}
.admin-wrap a {
  color: #e2b461;
  text-decoration: none;
}
.admin-wrap .box {
  max-width: 960px;
  margin: 0 auto;
  background: #1c1c1c;
  padding: 24px;
  border: 1px solid #333;
}
.admin-wrap h1,
.admin-wrap h2 {
  display: block;
  color: #eee;
  text-shadow: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 1.4rem;
}
.admin-wrap h2 {
  font-size: 1.15rem;
  margin-top: 24px;
}
.admin-wrap.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.admin-wrap .login-box {
  max-width: 360px;
  padding: 36px 28px 28px;
  text-align: center;
}
.admin-wrap .login-logo {
  display: block;
  margin: 0 auto 28px;
}
.admin-wrap .login-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}
.admin-wrap .login-box form,
.admin-wrap .login-box .row,
.admin-wrap .login-box label {
  text-align: left;
}
.admin-wrap .login-box .submit {
  text-align: center;
}
.admin-wrap .login-box form {
  width: 100%;
  overflow: visible;
}
.admin-wrap .login-box form p {
  float: none;
  width: 100%;
  padding-right: 0;
}
.admin-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.admin-wrap th,
.admin-wrap td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #333;
}
.admin-wrap input,
.admin-wrap textarea,
.admin-wrap select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font: inherit;
}
.admin-wrap button,
.admin-wrap .btn {
  display: inline-block;
  padding: 8px 16px;
  background: #e2b461;
  color: #000;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.admin-wrap .row {
  margin-bottom: 12px;
}
.admin-wrap .muted {
  color: #999;
  font-size: 13px;
}
.admin-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-thumbs label {
  display: block;
  width: 120px;
  font-size: 12px;
}
.admin-thumbs img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  display: block;
  background: #000;
}

#edit-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 80px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.82);
}
#edit-modal.open {
  display: flex;
}
#edit-modal .edit-modal-panel {
  position: relative;
  width: 680px;
  max-width: 100%;
  margin: auto;
  background: #fff;
  color: #222;
  padding: 28px 24px 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
#edit-modal .edit-modal-close {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 3001;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  color: #e2b461;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 12px 10px;
}
#edit-modal .edit-modal-close:hover {
  color: #fff;
}
#edit-modal form.ff {
  width: 100%;
  max-width: none;
  overflow: auto;
  color: #222;
  box-sizing: border-box;
}
#edit-modal form.ff fieldset {
  background: #f3f3f3;
  border-color: #ddd;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
#edit-modal form.ff p {
  box-sizing: border-box;
  max-width: 100%;
}
#edit-modal form.ff legend {
  color: #e2b461;
  background: #fff;
  border-color: #ddd;
}
#edit-modal form.ff label {
  color: #444;
}
#edit-modal form.ff input,
#edit-modal form.ff textarea,
#edit-modal form.ff select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background-color: #fff;
  color: #111;
  border: 1px solid #ccc;
}
form.ff p.js-nav-order {
  clear: both;
  width: 100%;
}
form.ff input[type="checkbox"],
form.ff input[type="radio"],
#edit-modal form.ff input[type="checkbox"],
#edit-modal form.ff input[type="radio"] {
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
}
form.ff #images .js-chosen-cell,
#edit-modal form.ff #images .js-chosen-cell {
  text-align: center;
  width: 4.5em;
  vertical-align: middle;
}
form.ff #images th.img-delete-col,
#edit-modal form.ff #images th.img-delete-col {
  color: #900;
  width: 20px;
  vertical-align: bottom;
}
form.ff tr input.image_bgr,
#edit-modal form.ff tr input.image_bgr {
  background: right center no-repeat white;
  background-size: auto 100%;
  color: black;
  text-shadow: 1px 1px 4px white;
}
form.ff tr input.image_bgr.upload-wait,
#edit-modal form.ff tr input.image_bgr.upload-wait {
  background-color: #ffc !important;
  background-image: linear-gradient(90deg, #ffc 0%, #ffe9a8 50%, #ffc 100%) !important;
  background-size: 200% 100% !important;
  animation: ff-upload-pulse 1.2s linear infinite;
}
@keyframes ff-upload-pulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
form.ff tr input.image_bgr.upload-ok,
#edit-modal form.ff tr input.image_bgr.upload-ok {
  background-color: #cfc !important;
}
form.ff tr input.image_bgr.upload-err,
#edit-modal form.ff tr input.image_bgr.upload-err {
  background-color: #fcc !important;
  color: #900;
  text-decoration: line-through;
}
form.ff #images tr.js-img-row td:first-child,
#edit-modal form.ff #images tr.js-img-row td:first-child {
  cursor: grab;
}
form.ff #images tr.js-img-row input.image_bgr,
#edit-modal form.ff #images tr.js-img-row input.image_bgr {
  cursor: grab;
  user-select: none;
}
form.ff #images tr.img-dragging,
#edit-modal form.ff #images tr.img-dragging {
  opacity: 0.45;
}
form.ff #images tr.img-dragging td:first-child,
#edit-modal form.ff #images tr.img-dragging td:first-child,
form.ff #images tr.img-dragging input.image_bgr,
#edit-modal form.ff #images tr.img-dragging input.image_bgr {
  cursor: grabbing;
}
body.img-sorting {
  cursor: grabbing;
  user-select: none;
}
form.ff tr.marked td input,
#edit-modal form.ff tr.marked td input {
  background-color: #fcc;
  text-decoration: line-through;
  color: #900;
}
#edit-modal form.ff textarea[name="meta_description"] {
  min-height: 4.5em;
  resize: vertical;
  overflow-wrap: break-word;
}
form.ff textarea[name="meta_description"]::placeholder,
#edit-modal form.ff textarea[name="meta_description"]::placeholder {
  color: #999;
  opacity: 1;
}
#edit-modal form.ff input[type="file"] {
  background: none;
  border: 0;
  color: #444;
}
.login-box .js-password-error {
  color: #e88;
  text-align: left;
}
.login-box .login-cancel {
  background: none;
  border: 0;
  color: #999;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.login-box .login-cancel:hover {
  color: #e2b461;
}
#edit-modal:has(.login-box) {
  align-items: center;
  padding: 24px 16px;
}
#edit-modal:has(.login-box) .edit-modal-panel {
  width: 360px;
  background: #1c1c1c;
  color: #eee;
  padding: 36px 28px 28px;
  text-align: center;
  border: 1px solid #333;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
#edit-modal:has(.login-box) .login-box {
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
}
#edit-modal:has(.login-box) .login-logo {
  display: block;
  margin: 0 auto 28px;
}
#edit-modal:has(.login-box) .login-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}
#edit-modal:has(.login-box) form,
#edit-modal:has(.login-box) .row,
#edit-modal:has(.login-box) label {
  text-align: left;
}
#edit-modal:has(.login-box) form {
  width: 100%;
}
#edit-modal:has(.login-box) form p {
  float: none;
  width: 100%;
  padding-right: 0;
}
#edit-modal:has(.login-box) .submit {
  text-align: center;
}
#edit-modal:has(.login-box) input[type="text"],
#edit-modal:has(.login-box) input[type="password"],
#edit-modal:has(.login-box) input:not([type]) {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  font: inherit;
  background: #fff;
  color: #111;
  border: 1px solid #ccc;
}
#edit-modal:has(.login-box) button[type="submit"] {
  display: inline-block;
  padding: 8px 16px;
  background: #e2b461;
  color: #000;
  border: 0;
  cursor: pointer;
  font: inherit;
}
#edit-modal:has(.login-box) .muted {
  color: #999;
  font-size: 13px;
}
#edit-modal form.ff .muted {
  display: block;
  font-size: 12px;
  color: #777;
  padding-top: 4px;
}
#edit-modal form.ff button {
  background: #eee;
  color: #b8872e;
  border: 1px solid #ccc;
}
#edit-modal form.ff button:hover {
  background: #ffc;
  border-color: #000;
  color: #000;
}
#edit-modal form.ff button.middle:hover {
  background: #fcc;
}
#edit-modal form.ff button.right {
  background: #e2b461;
  color: #111;
  border-color: #c9a04e;
}
#edit-modal form.ff button.right:hover {
  background: #cfc;
  border-color: #000;
  color: #000;
}
#edit-modal form.ff img {
  background: #fff;
  border-color: #ddd;
}
body.edit-modal-open {
  overflow: hidden;
}

#edit-modal .rx-container,
form.ff .rx-container {
  max-width: 100%;
  box-sizing: border-box;
}
#edit-modal .rx-popup,
.rx-popup {
  z-index: 3200 !important;
}
.rx-popup.has-form,
.rx-popup-link {
  width: 360px !important;
  max-width: calc(100vw - 32px) !important;
  box-sizing: border-box;
  overflow-x: hidden;
}
.rx-popup-stack,
.rx-popup-body,
.rx-popup-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.rx-popup-form .rx-form-item,
.rx-popup-form .rx-form-input,
.rx-popup-form input:not([type="checkbox"]):not([type="radio"]),
.rx-popup-form textarea,
form.ff .rx-popup-form input:not([type="checkbox"]):not([type="radio"]),
#edit-modal form.ff .rx-popup-form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
.rx-popup-form .rx-form-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
}
.rx-popup-form .rx-form-checkbox,
.rx-popup-form input[type="checkbox"],
form.ff .rx-popup-form input[type="checkbox"],
#edit-modal form.ff .rx-popup-form input[type="checkbox"] {
  width: auto !important;
  min-width: 1em !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  flex: none;
  display: inline-block;
  position: static;
}
#edit-modal .rx-tooltip,
.rx-tooltip {
  z-index: 3210 !important;
}
form.ff .rx-button,
#edit-modal form.ff .rx-button {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0;
  margin: 0;
  position: static;
  border-radius: 0;
  background: transparent;
  color: inherit;
  border: 0;
  font: inherit;
}
form.ff .rx-button-toolbar,
#edit-modal form.ff .rx-button-toolbar {
  width: 40px;
  min-width: 40px;
  height: 41px;
}
form.ff .rx-button:hover,
#edit-modal form.ff .rx-button:hover {
  background: #e4e8ed;
  border: 0;
  color: inherit;
}
#edit-modal .rx-editor,
form.ff .rx-editor {
  min-height: 10em;
  max-height: 45vh;
  overflow: auto;
}

@media (max-width: 700px) {
  #edit-modal {
    padding: 16px 8px 40px;
  }
  #edit-modal .edit-modal-panel {
    padding: 16px 12px 8px;
  }
}
