/*
Theme Name: Militaarmuuseum

Description: Custom theme

Version: 1.10

Author: Sulev M&otilde;niste

Author URI: http://sulevmoniste.com/

Tags:
*/
/* CSS Document */
/* FONTS */
@font-face {
  font-family: 'icons';
  src: url("fonts/icons.eot");
  src: url("fonts/icons.eot?#iefix") format("embedded-opentype"), url("fonts/icons.woff") format("woff"), url("fonts/icons.ttf") format("truetype"), url("fonts/icons.svg#icons") format("svg");
  font-weight: normal;
  font-style: normal;
}

/* SCSS VARIABLES */
/* WP */
@media screen and (max-width: 600px) {
  #wpadminbar {
    top: -46px;
    position: fixed;
  }
}

/* TEXT */
ul {
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: #68743d;
}

h1,
h2,
h3,
h4 {
  color: #5f5f4f;
}

h1 {
  font-size: 28px;
  font-size: 280%;
  font-weight: 600;
  margin-bottom: 20px;
}

h2 {
  font-size: 20px;
  font-size: 200%;
  line-height: 130%;
  font-weight: 600;
}

h3 {
  font-size: 16px;
  font-size: 160%;
  font-weight: 500;
}

a:focus,
a:hover {
  color: #68743d;
}

br {
  line-height: 160%;
}

small br {
  line-height: 200%;
}

.no-break {
  white-space: nowrap;
}

.caret {
  transition: 0.3s;
}

.open .menu-toggle .caret,
.open > a > .caret {
  transform: rotate(180deg);
}

.copyright-container {
  position: absolute;
  width: 100%;
  bottom: 0;
}

.copyright {
  margin-top: 50px;
}

.table {
  font-size: 13px;
  font-size: 130%;
  max-width: 900px;
  margin: auto;
  margin-bottom: 20px;
}

th {
  white-space: nowrap;
}

.edit {
  margin-left: 5px;
}

.single-panel .last-edit p {
  position: relative;
  clear: both;
  font-size: 100%;
  font-size: 10px;
  margin-bottom: 0px;
}

.last-edit .gallery-width {
  max-width: 900px;
}

.last-edit small {
  position: absolute;
  right: 0;
}

.icons a {
  font-family: 'icons';
  color: #3b5998;
  font-size: 180%;
}

.icons a:hover {
  text-decoration: none;
}

#top-navigation,
#bottom-navigation {
  user-select: none;
}

.header-info {
  user-select: text;
}

.last-edit small,
figcaption {
  color: #888;
  font-size: 11px;
  font-size: 110%;
}

.error-404-text {
  font-weight: 600;
  font-size: 33px;
  font-size: 330%;
  text-shadow: -0.2px 0.2px 0px #aaa, -0.4px 0.4px 0px #aaa, -0.6px 0.6px 0px #aaa, -0.8px 0.8px 0px #aaa, -1px 1px 0px #aaa, -2px 1px 3px rgba(0, 0, 0, 0.3);
}

.creation-date {
  font-size: 60%;
  color: #888;
}

/* TABLE */
.th-right th {
  text-align: right;
}

/* BODY */
body {
  min-width: 320px;
  min-height: 100vh;
  max-width: 1920px;
  overflow-y: scroll;
  font-size: 10px;
  font-size: 100%;
  position: relative;
  font-family: 'Roboto', sans-serif;
  margin: auto;
}

.logged-in {
  margin-top: -34px;
  padding-top: 34px;
}

@media screen and (max-width: 782px) {
  .logged-in {
    margin-top: -46px;
    padding-top: 46px;
  }
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    top: 0;
  }
}

/* TOP NAVIGATION */
.fixed-nav {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 66.66666667%;
  margin-right: 16.66666667%;
}

.fixed-nav .header-info,
.fixed-nav .site-title h1 {
  margin-top: 5px;
  margin-bottom: 5px;
  transition: .4s;
}

.fixed-nav .site-title h1 {
  font-size: 24px;
  font-size: 240%;
  line-height: 32px;
}

.fixed-nav .header-info > p {
  font-size: 12px !important;
  font-size: 120% !important;
}

.fixed-nav .link-bar-row {
  margin-top: 91px;
}

.header-container {
  background-color: #78854a;
}

.menu-toggle {
  display: none;
}

.dropdown-container {
  position: relative;
  background-color: #78854a;
}

.open .container-dropdown-menu {
  display: block;
}

.dropdown-container .menu-toggle:hover,
.dropdown-container .menu-toggle .nav > li:hover {
  background-color: #707d44;
}

#top-navigation .open .menu-toggle .nav > li:hover {
  border-top: 1px solid #707d44;
}

#top-navigation .open .menu-toggle .nav > li {
  border-top: 1px solid #78854a;
}

#top-navigation {
  margin-bottom: 20px;
}

#bottom-navigation,
#top-navigation,
#top-navigation > div {
  padding-left: 0;
  padding-right: 0;
}

header {
  background: #5f5f4f;
}

#top-navigation p,
#top-navigation a {
  color: #fff;
  font-family: 'Roboto', sans-serif;
}

#top-navigation #menu-top-link-bar a {
  color: #5f5f4f;
}

#top-navigation #menu-top-link-bar a:hover {
  background-color: initial;
  text-decoration: underline;
}

#top-navigation #menu-top-link-bar a:focus {
  background-color: initial;
}

#top-navigation #menu-top-link-bar img {
  border: 1px solid #dcdcdc;
}

#top-navigation .breadcrumb {
  background-color: initial;
  border-radius: 0;
  border-bottom: 1px solid #dcdcdc;
  border-top: 1px solid #68743d;
  margin-bottom: 0;
  text-align: center;
  color: #000;
  background-color: #fff;
}

#top-navigation .breadcrumb p,
#top-navigation .breadcrumb a {
  color: #000;
}

#top-navigation header p,
#top-navigation .breadcrumb {
  font-size: 12px;
  font-size: 120%;
  transition: .4s;
}

#top-navigation header {
  overflow: hidden;
  padding-right: 23px;
  padding-left: 23px;
  min-width: 320px;
}

header .site-title {
  display: inline-block;
}

header .site-title a:focus,
header .site-title a:hover {
  text-decoration: none;
}

header .header-info,
header .site-title h1 {
  margin-top: 15px;
  margin-bottom: 15px;
}

header .site-title h1 {
  font-weight: 600;
  font-size: 33px;
  font-size: 330%;
  text-shadow: -0.2px 0.2px 0px #aaa, -0.4px 0.4px 0px #aaa, -0.6px 0.6px 0px #aaa, -0.8px 0.8px 0px #aaa, -1px 1px 0px #aaa, -2px 1px 3px rgba(0, 0, 0, 0.3);
}

header .header-info {
  text-align: right;
  display: inline-block;
  float: right;
}

header .header-info p {
  margin: 0 0 2px;
}

.menu-top-navigation-container {
  background-color: #78854a;
  text-shadow: -1px 1px 0px #5f5f4f, -2px 1px 3px rgba(0, 0, 0, 0.3);
}

.menu-top-link-bar-container .nav > li,
.menu-top-navigation-container .nav > li {
  border-top: 1px solid #68743d;
}

.menu-top-link-bar-container .nav > li > a,
.menu-top-navigation-container .nav > li > a {
  font-weight: 600;
  white-space: nowrap;
  padding: 13px 11px;
  border-radius: 0;
  font-size: 15px;
  font-size: 150%;
}

.menu-top-link-bar-container .nav > li:first-child > a,
.menu-top-navigation-container .nav > li:first-child > a {
  padding-left: 21px;
}

.menu-top-link-bar-container .nav > li:last-child > a,
.menu-top-navigation-container .nav > li:last-child > a {
  padding-right: 21px;
}

.menu-top-link-bar-container .nav > li.active > a:focus,
.menu-top-link-bar-container .nav > li.active > a,
.menu-top-navigation-container .nav > li.active > a:focus,
.menu-top-navigation-container .nav > li.active > a {
  background-color: #68743d;
}

.menu-top-link-bar-container .nav > li.active > a:hover,
.menu-top-navigation-container .nav > li.active > a:hover {
  background-color: #68743d;
}

.menu-top-link-bar-container .nav .open > a,
.menu-top-link-bar-container .nav > li > a:focus,
.menu-top-link-bar-container .nav > li > a:hover,
.menu-top-navigation-container .nav .open > a,
.menu-top-navigation-container .nav > li > a:focus,
.menu-top-navigation-container .nav > li > a:hover {
  background-color: #707d44;
}

.menu-top-link-bar-container .nav > li.active,
.menu-top-navigation-container .nav > li.active {
  border-top: 1px solid #68743d;
}

.menu-top-link-bar-container .nav > li + li,
.menu-top-navigation-container .nav > li + li {
  margin-left: 0;
}

.menu-top-link-bar-container .dropdown-menu,
.menu-top-navigation-container .dropdown-menu {
  min-width: 240px;
  background-color: #707d44;
  border-radius: 0;
  border-width: 0;
  border-top: 1px solid #707d44;
  border-bottom: 1px solid #68743d;
  border-left: 1px solid #68743d;
  font-size: 10px;
  font-size: 100%;
}

.menu-top-link-bar-container .dropdown-menu ul > li > a,
.menu-top-navigation-container .dropdown-menu ul > li > a {
  display: block;
  padding: 3px 30px;
  text-decoration: none;
}

.menu-top-link-bar-container .dropdown-menu > li a,
.menu-top-navigation-container .dropdown-menu > li a {
  font-size: 14px;
  font-size: 140%;
}

.menu-top-link-bar-container .dropdown-menu > li a:focus,
.menu-top-link-bar-container .dropdown-menu > li a:hover,
.menu-top-navigation-container .dropdown-menu > li a:focus,
.menu-top-navigation-container .dropdown-menu > li a:hover {
  background-color: #78854a;
}

.menu-top-link-bar-container .dropdown-menu > .active > a:hover,
.menu-top-link-bar-container .dropdown-menu > .active > a,
.menu-top-navigation-container .dropdown-menu > .active > a:hover,
.menu-top-navigation-container .dropdown-menu > .active > a {
  background-color: #68743d;
}

.menu-top-link-bar-container .dropdown-menu ul > .active > a,
.menu-top-navigation-container .dropdown-menu ul > .active > a {
  background-color: #68743d;
}

.link-bar-row {
  margin-left: 0;
  margin-right: 0;
  border-bottom: 1px solid #8a8a6a;
}

.link-bar-row > div {
  padding-left: 0;
  padding-right: 0;
}

.menu-top-link-bar-container .nav > li:first-child > a {
  padding-left: 11px;
}

.menu-top-link-bar-container .nav > li:last-child > a {
  padding-right: 11px;
}

.menu-top-link-bar-container .nav > li {
  border-top: 0;
}

.menu-top-link-bar-container .nav li > a {
  font-size: 12px;
  font-size: 120%;
}

.menu-top-link-bar-container .nav > li > a {
  padding: 4px 11px;
  text-align: center;
}

.menu-top-link-bar-container .nav > li {
  text-align: center;
}

.menu-top-link-bar-container ul {
  list-style: none;
  float: right;
  margin: 0 10px;
}

.nav-justified > li > a {
  text-align: left;
}

.dropdown-menu {
  margin-top: 0;
}

/* PANELS */
.title-panel {
  margin-top: 0px;
}

.single-panel h2,
.single-panel h3,
.single-panel p {
  max-width: 900px;
  margin: auto;
  margin-bottom: 10px;
}

.single-panel h2,
.single-panel h3 {
  margin-top: 20px;
  margin-bottom: 10px;
}

.single-panel > img {
  margin: auto;
}

.single-panel h1,
.single-panel h2,
.single-panel h3,
.single-panel h4 {
  text-align: center;
}

.single-panel .text-left {
  text-align: left;
}

.single-panel p,
.dual-panel p,
.quad-panel p {
  word-wrap: break-word;
  line-height: 135%;
  font-size: 12px;
  font-size: 120%;
}

.single-panel img,
.dual-panel img,
.quad-panel img {
  display: block;
  max-width: 100%;
  margin-bottom: 10px;
  margin-top: 20px;
  border: 1px solid #dcdcdc;
}

.single-panel .pswp img,
.dual-panel .pswp img,
.quad-panel .pswp img {
  margin: 0;
  border: 0;
}

.single-panel > figure {
  max-width: 900px;
  margin: auto;
  margin-bottom: 10px;
}

.shaded-panel {
  padding-bottom: 10px;
  background-color: #f7f7f7;
  border-bottom: 1px solid #dcdcdc;
  border-top: 1px solid #dcdcdc;
}

#map {
  position: relative;
  padding-bottom: 70%;
  margin: 10px 0px;
  border: 1px solid #dcdcdc;
}

#map iframe {
  position: absolute;
}

.text-two-column {
  column-count: 2;
  column-gap: 20px;
  margin-bottom: 17px;
}

.margin-right {
  margin-right: 10px;
}

.max900 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* LANGUAGE SWITCHER */
.lang-item img {
  height: 17px;
}

/* PAGINATION */
#pagination {
  line-height: 135%;
  font-size: 12px;
  font-size: 130%;
  text-align: center;
  margin-bottom: 10px;
}

/* FOOTER */
.footer {
  margin-top: 30px;
}

.footer .quad-panel p {
  margin-bottom: 5px;
}

.footer h3 {
  font-weight: 600;
}

.menu-bottom-navigation-container a {
  color: #333;
}

.menu-bottom-navigation-container .nav > li {
  border-top: 1px solid #dcdcdc;
}

.menu-bottom-navigation-container .nav > li > a {
  white-space: nowrap;
  padding: 8px 9px;
  border-radius: 0;
  font-size: 13px;
  font-size: 130%;
  margin-bottom: 0;
}

.menu-bottom-navigation-container .nav > li:first-child > a {
  padding-left: 21px;
}

.menu-bottom-navigation-container .nav > li:last-child > a {
  padding-right: 21px;
}

.menu-bottom-navigation-container .nav .open > a,
.menu-bottom-navigation-container .nav > li > a:focus {
  background-color: #fff;
}

.menu-bottom-navigation-container .nav > li a:hover {
  background-color: #f5f5f5;
}

.menu-bottom-navigation-container .nav > li > a:hover {
  background-color: #fff;
}

.menu-bottom-navigation-container .nav > li.active {
  border-top: 1px solid #dcdcdd;
}

.menu-bottom-navigation-container .nav > li.active > a:focus,
.menu-bottom-navigation-container .nav > li.active > a {
  background-color: #fff;
  color: #333;
}

.menu-bottom-navigation-container .nav > li.active > a:hover {
  background-color: #fff;
}

.menu-bottom-navigation-container .nav > li + li {
  margin-left: 0;
}

.menu-bottom-navigation-container .dropdown-menu {
  min-width: 240px;
  border-radius: 0;
  border-width: 0;
  border-bottom: 1px solid #fff;
  border-left: 1px solid #dcdcdc;
  font-size: 10px;
  font-size: 100%;
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.menu-bottom-navigation-container .dropdown-menu ul > li > a {
  display: block;
  padding: 3px 30px;
  text-decoration: none;
}

.menu-bottom-navigation-container .dropdown-menu > .active > a {
  color: #333;
  background-color: #fff;
}

.menu-bottom-navigation-container .dropdown-menu > .active > a:hover {
  background-color: #f5f5f5;
}

.menu-bottom-navigation-container .dropdown-menu > li a {
  font-size: 13px;
  font-size: 130%;
}

/* GALLERY */
.logged-in .pswp__top-bar {
  margin-top: 32px;
}

#gallery {
  clear: both;
  max-width: 900px;
  margin: auto;
  margin-top: 21px;
  margin-bottom: -9px;
  text-align: initial;
}

#gallery img {
  position: absolute;
  float: left;
  display: inline-block;
  border: 1px solid #dcdcdc;
  box-sizing: border-box;
  margin: 0;
}

#gallery a {
  transition: 0s;
  position: relative;
  height: 0px;
  float: left;
  overflow: hidden;
  width: 100%;
  /* fallback for no calc support */
  padding-bottom: 64.92%;
  /* fallback for no calc support */
  margin-bottom: 21px;
  background-color: #FFF;
}

.horiz-center-image {
  height: 100%;
  transform: translate(-50%);
  margin-left: -webkit-calc(50%) !important;
  margin-left: -moz-calc(50%) !important;
  margin-left: calc(50%) !important;
}

.vert-center-image {
  top: 0;
  bottom: 0;
  margin: auto;
}

.gallery-images figure {
  display: inline;
  margin-before: 0em;
  margin-after: 0em;
  margin-start: 0px;
  margin-end: 0px;
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0em;
  -webkit-margin-start: 0px;
  -webkit-margin-end: 0px;
  margin: 0px;
}

.gallery-images figcaption {
  display: none;
}

.gallery-end-spacer {
  clear: both;
}

.pswp__share-tooltip,
.pswp__share-tooltip a,
.pswp__counter {
  font-family: 'Roboto', sans-serif;
  border-radius: 0px !important;
}

a.pswp__share--facebook:before,
a.pswp__share--facebook:hover:before {
  transition: .4s;
}

.pswp__bg {
  background: #151515 !important;
}

.pswp__button--share {
  display: none !important;
  /* Hide share button */
}

.container-fluid .pswp__ui--fit .pswp__caption {
  background-color: rgba(0, 0, 0, 0.8);
}

.gallery-list {
  max-width: 900px;
  margin: auto;
  overflow: hidden;
}

.gallery-list figure {
  transition: 0s;
  position: relative;
  height: 0px;
  float: left;
  overflow: hidden;
  width: 100%;
  /* fallback for no calc support */
  padding-bottom: 64.92%;
  /* fallback for no calc support */
  margin-bottom: 21px;
  background-color: #FFF;
  width: -webkit-calc(33.3333% - 9px);
  width: -moz-calc(33.3333% - 9px);
  width: calc(33.3333% - 9px);
  margin: 0px 7px;
  padding-bottom: 22%;
}

.gallery-list figure:first-child {
  margin-left: 0;
  width: -webkit-calc(33.3333% - 9px);
  width: -moz-calc(33.3333% - 9px);
  width: calc(33.3333% - 9px);
}

.gallery-list figure:last-child {
  margin-right: 0px;
  width: -webkit-calc(33.3333% - 10px);
  width: -moz-calc(33.3333% - 10px);
  width: calc(33.3333% - 10px);
}

.gallery-list img {
  position: absolute;
  float: left;
  display: inline-block;
  border: 1px solid #dcdcdc;
  box-sizing: border-box;
  margin: 0;
}

.gallery-list a {
  color: #5f5f4f;
}

/* GALLERY MEDIA QUERIES */
@media screen and (min-width: 993px) {
  #gallery .gallery-images {
    margin: 0px -7px 0px -7px;
  }
}

@media screen and (min-width: 801px) {
  .gallery-images {
    margin: 0px -8px 0px -8px;
  }
  #gallery a {
    width: -webkit-calc(33.3333% - 14px);
    width: -moz-calc(33.3333% - 14px);
    width: calc(33.3333% - 14px);
    margin: 0px 7px 21px 7px;
    padding-bottom: -webkit-calc(22% - 6px);
    padding-bottom: -moz-calc(22% - 6px);
    padding-bottom: calc(22% - 6px);
  }
}

@media screen and (max-width: 800px) {
  .remove-third figure:last-child {
    display: none;
  }
  #gallery {
    margin-bottom: 0px;
  }
  .gallery-images {
    margin: 0px -7px 0px -7px;
  }
  #gallery a {
    width: -webkit-calc(50% - 12px);
    width: -moz-calc(50% - 12px);
    width: calc(50% - 12px);
    margin: 0px 6px 12px 6px;
    padding-bottom: -webkit-calc(33.18% - 6px);
    padding-bottom: -moz-calc(33.18% - 6px);
    padding-bottom: calc(33.18% - 6px);
  }
  .gallery-list figure {
    width: -webkit-calc(33.3333% - 8px);
    width: -moz-calc(33.3333% - 8px);
    width: calc(33.3333% - 8px);
    margin: 0px 6px;
  }
  .gallery-list figure:first-child {
    width: -webkit-calc(33.3333% - 8px);
    width: -moz-calc(33.3333% - 8px);
    width: calc(33.3333% - 8px);
  }
  .gallery-list figure:last-child {
    width: -webkit-calc(33.3333% - 9px);
    width: -moz-calc(33.3333% - 9px);
    width: calc(33.3333% - 9px);
  }
}

@media screen and (max-width: 1199px) {
  /* TOP NAVIGATION */
  .fixed-nav {
    margin-right: 0;
    width: 100%;
  }
}

/* PANORAMA */
.panorama-container {
  max-width: 900px;
  margin: auto;
}

@media screen and (max-width: 767px) {
  /* TEXT */
  .menu-bottom-navigation-container .caret {
    transform: rotate(180deg);
  }
  .menu-bottom-navigation-container .open .menu-toggle .caret,
  .menu-bottom-navigation-container .open > a > .caret {
    transform: rotate(360deg);
  }
  /* TOP NAVIGATION */
  .fixed-nav {
    width: 100%;
  }
  .container-dropdown-menu {
    display: none;
  }
  .menu-top-link-bar-container {
    display: initial;
  }
  .link-bar-row .nav > li {
    border: 0;
  }
  .link-bar-row .nav-pills > li > a {
    margin-bottom: 0px;
  }
  .menu-toggle {
    display: initial;
  }
  header .site-title {
    display: block;
    text-align: center;
  }
  header .header-info {
    text-align: center;
    display: block;
    float: none;
  }
  .menu-top-navigation-container .dropdown-menu {
    position: relative;
    float: none;
    box-shadow: initial;
    border: 0;
  }
  .menu-top-navigation-container .nav > li:first-child > a,
  .menu-top-navigation-container .nav > li:last-child > a,
  .menu-top-navigation-container .nav > li > a {
    padding: 13px 15px;
  }
  .menu-top-navigation-container .dropdown-menu ul > li > a {
    padding: 3px 35px;
  }
  .menu-top-navigation-container .dropdown-menu > li > a {
    padding: 3px 24px;
  }
  .menu-top-navigation-container .nav > .menu-item-has-children > a:focus,
  .menu-top-navigation-container .nav > .menu-item-has-children > a:hover {
    background-color: #86925b;
  }
  .menu-top-navigation-container .nav > li.active > a:focus,
  .menu-top-navigation-container .nav > li.active > a:hover {
    background-color: #68743d;
  }
  .menu-top-navigation-container .nav > li:first-child {
    border-top: 1px solid #707d44;
    cursor: pointer;
  }
  .menu-top-navigation-container .nav > li.active:first-child {
    border-top: 1px solid #68743d;
  }
  .menu-top-navigation-container .nav > li,
  .menu-top-navigation-container .nav > li.active {
    border-width: 0;
  }
  .menu-top-navigation-container .nav > li > a {
    margin-top: 0;
    margin-bottom: 0;
  }
  /* FOOTER */
  .menu-bottom-navigation-container .nav > li:first-child > a {
    padding-left: 10px;
    border-top: 1px solid #dcdcdc;
  }
  .menu-bottom-navigation-container .nav > li:first-child > a {
    padding-left: 15px;
    padding-top: 15px;
  }
  .menu-bottom-navigation-container .nav > li > a {
    padding: 8px 15px;
    border-radius: 0;
  }
  .menu-bottom-navigation-container .nav > li,
  .menu-bottom-navigation-container .nav > li.active {
    border-top: 0;
  }
  .menu-bottom-navigation-container .dropdown-menu {
    position: relative;
    float: none;
    box-shadow: initial;
    border-bottom: 0;
  }
  /* GALLERY */
  .logged-in .pswp__top-bar {
    margin-top: 46px;
  }
}

@media screen and (max-width: 479px) {
  /* PANELS */
  .text-two-column {
    column-count: 1;
  }
}

/* FRONT PAGE PHOTO DISPLAY */
.photoDisplay {
  position: relative;
  height: 0;
  padding-bottom: 70%;
  background-color: #f7f7f7;
  border: 1px solid #dcdcdc;
  margin: 10px 0px;
}

.photoDisplay img {
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 0;
}

/* PHOTOSWIPE PLUGIN WP GALLERY STYLE */
/* WP GALLERY */
/* .fix IMPORTANT for centering wp galley */
.fix {
  width: 100%;
  text-align: center;
}

.fix > * {
  text-align: initial;
}

.pswp {
  z-index: 1500;
}

.logged-in .pswp__top-bar {
  margin-top: 32px;
}

.logged-in .pswp--fs .pswp__top-bar {
  margin-top: 0;
}

@media screen and (max-width: 767px) {
  .logged-in .pswp__top-bar {
    margin-top: 46px;
  }
  .logged-in .pswp--fs .pswp__top-bar {
    margin-top: 0;
  }
}

.page-sub-navigation-container .gallery-date {
  font-family: inherit;
}

.gallery-panel {
  margin-bottom: 0;
}

.gallery-panel .page-sub-navigation-container,
.gallery-panel p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-details {
  text-align: center;
}

.galleries {
  padding-left: 0;
  margin-bottom: 0;
}

.galleries li {
  margin-top: .5rem;
  border-bottom: 1px solid #78854a;
  text-align: left;
}

.galleries li:last-child {
  border-bottom: 0;
}

.galleries li a {
  color: #78854a;
}

.gallery {
  display: inline-block;
  width: 100%;
  width: calc(100% + 14px);
  margin-left: -9px !important;
  margin-right: -7px !important;
  clear: both;
  max-width: 914px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.gallery img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.gallery img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 1px solid #dcdcdc !important;
  box-sizing: content-box;
}

.gallery-item {
  padding-right: 7px;
  padding-left: 7px;
  margin-top: 0 !important;
  margin-bottom: 21px !important;
}

.gallery dd {
  padding-top: .5rem;
  margin: 0;
  font-size: 80%;
  font-weight: 600;
  line-height: 1rem;
  text-align: left;
}

.gallery-columns-5 dd,
.gallery-columns-6 dd,
.gallery-columns-7 dd,
.gallery-columns-8 dd,
.gallery-columns-9 dd {
  font-size: 60%;
}

.gallery-columns-3 .gallery-item {
  width: 33.33333% !important;
}

.gallery-columns-6 .gallery-item {
  width: 16.66667% !important;
}

.gallery-columns-7 .gallery-item {
  width: 14.28571% !important;
}

.gallery-columns-8 .gallery-item {
  width: 12.5% !important;
}

.gallery-columns-9 .gallery-item {
  width: 11.11111 !important;
}

.gallery-icon {
  position: relative;
  height: 100%;
  width: 100%;
  padding-right: 1rem;
  padding-bottom: 66.6666666%;
}

.gallery-icon a {
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;
  background-color: #fff;
}

@media screen and (max-width: 800px) {
  /* WP GALLERY */
  .gallery {
    width: calc(100% + 12px);
    margin-left: -8px !important;
    margin-right: -6px !important;
  }
  .gallery-item {
    padding-right: 6px;
    padding-left: 6px;
    margin-bottom: 12px !important;
  }
  .gallery br {
    clear: initial !important;
  }
  .gallery br:last-child {
    clear: both !important;
  }
  .gallery-columns-3 .gallery-item,
  .gallery-columns-4 .gallery-item {
    width: 50% !important;
  }
  .gallery-columns-3 dl:nth-of-type(2n-1),
  .gallery-columns-4 dl:nth-of-type(2n-1) {
    clear: left;
  }
  .gallery-columns-3 dl:nth-of-type(2n+2),
  .gallery-columns-4 dl:nth-of-type(2n+2) {
    clear: right;
  }
  .gallery-columns-5 .gallery-item,
  .gallery-columns-6 .gallery-item {
    width: 33.33333% !important;
  }
  .gallery-columns-5 dl:nth-of-type(3n-2),
  .gallery-columns-6 dl:nth-of-type(3n-2) {
    clear: left;
  }
  .gallery-columns-5 dl:nth-of-type(3n+3),
  .gallery-columns-6 dl:nth-of-type(3n+3) {
    clear: right;
  }
  .gallery-columns-7 .gallery-item,
  .gallery-columns-8 .gallery-item {
    width: 25% !important;
  }
  .gallery-columns-7 dl:nth-of-type(4n-3),
  .gallery-columns-8 dl:nth-of-type(4n-3) {
    clear: left;
  }
  .gallery-columns-7 dl:nth-of-type(4n+4),
  .gallery-columns-8 dl:nth-of-type(4n+4) {
    clear: right;
  }
  .gallery-columns-9 .gallery-item {
    width: 20% !important;
  }
  .gallery-columns-9 dl:nth-of-type(5n-4) {
    clear: left;
  }
  .gallery-columns-9 dl:nth-of-type(5n+5) {
    clear: right;
  }
}
