/* Public site, desktop and mobile layouts: gallery viewer and dialogs (moved from site.css) */

/* Gallery viewer (js/gallery.js, replaces Shadowbox 2026-11-07): same look */
#lb-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  background: url(../img/bg-white-transp.png);
}
#lb-box {
  position: absolute;
  visibility: hidden;
}
#lb-top {
  position: relative;
  height: 18px;
}
#lb-credits {
  display: block;
  margin-right: 70px;
  padding-top: 2px;
  font: 200 12px/14px "HelveticaNeue-Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#lb-img {
  display: block;
  background: #060606;
  cursor: pointer;
}
#lb-bottom {
  position: relative;
  height: 27px;
}
#lb-close, #lb-prev, #lb-next {
  position: absolute;
  border: 0;
  padding: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}
#lb-close {
  top: 0;
  right: -2px;
  width: 16px;
  height: 16px;
  background-image: url(../img/black_close.png);
}
/* Arrows: the two halves of the xing logo (img/xing.jpg), shown at 14 x 14 px, in 26 x 26 px buttons */
#lb-prev, #lb-next {
  top: 1px;
  width: 26px;
  height: 26px;
  background-size: 14px 14px;
}
#lb-prev {
  right: 24px;
  background-image: url(../img/gallery_prev.png);
}
#lb-next {
  right: -6px;
  background-image: url(../img/gallery_next.png);
}

/* Dialogs (newsletter): native <dialog>, same look as the former jQuery UI dialog */
dialog.site-dialog {
  width: 400px;
  box-sizing: border-box;
  padding: 0.2em;
  border: 1px solid #aaaaaa;
  background: #ffffff;
  color: #222222;
  font-family: Verdana, Arial, sans-serif;
  font-size: 13px;
}
dialog.site-dialog::backdrop {
  background: rgba(170, 170, 170, 0.3);
}
.site-dialog-title {
  position: relative;
  padding: 0.5em 2em 0.3em 1em;
  font-weight: bold;
}
.site-dialog-close {
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  border: 0;
  background: none;
  padding: 0 2px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  color: #222222;
}
.site-dialog-body {
  padding: 0.5em 1em;
}
/* Newsletter: narrower than the other dialogs, height from the content */
#win_newsletter {
  width: 300px;
}
#win_newsletter .site-dialog-body {
  padding-bottom: 1.2em;
}
#win_newsletter .site-dialog-close {
  height: 13px;
}
/* reset.css sets margin 0 and display block on every element: centre again, hide when closed */
dialog.site-dialog {
  margin: auto;
}
dialog.site-dialog:not([open]) {
  display: none;
}
/* Narrow screens: the dialog stays inside the window */
dialog.site-dialog {
  max-width: calc(100vw - 16px);
}

/* Text fields as large as the menus below them (.longsel: 200 x 25, border-box by default in
   browsers). reset.css gives .longinpt width 100% + padding + border (202px) and height 21 + 4 + 2
   (27px); same in the legacy site. */
.longinpt {
  box-sizing: border-box;
  height: 25px;
  line-height: 19px;
}

/* Search menus and submit buttons with explicit colors: without them Safari on iOS draws the
   native controls with its blue accent color (blue text and arrow in the menus, blue filled
   button). Same look as Chrome on the desktop: black text, white menu, light grey button. */
select.longsel {
  -webkit-appearance: none;
  appearance: none;
  color: #000;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 6px center;
  border-radius: 0;
  padding: 0 22px 0 4px;
  font: inherit;
  font-size: 13px;
}
.rgt input[type=submit],
.site-dialog button[type=submit] {
  -webkit-appearance: none;
  appearance: none;
  color: #000;
  background: #efefef;
  border: 1px solid #767676;
  border-radius: 2px;
  padding: 1px 6px;
  font: inherit;
  font-size: 13px;
  line-height: normal;
  cursor: pointer;
}
/* Newsletter button: fixed width and padding from element/newsletter_head.php */
.site-dialog button[type=submit] { padding: 1px 0; }
.rgt input[type=submit]:hover,
.site-dialog button[type=submit]:hover:not(:disabled) { background: #e5e5e5; }
