html, body, #wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

ul, ol, li {
  margin: 0;
}

body {
  background: #FFF url(/img/bg3.jpg) repeat-x top;
  font-size: 90%;
  color: #222;
  font-family: Helvetica;
}

h1, h2, h3, h4, h5 {
  color: #111;
  font-weight: normal;
  margin: 20px 0 14px;
}

hr {
  border: none;
  color: #a0a09f;
  background-color: #a0a09f;
  height: 1px;
  margin: 1px 0;
}

table {
  border-collapse: collapse;
}

table.noborder td {
  border: none;
}

td {
  padding: 2px 8px;
  border: 1px #4f6257 solid;
}

a {
  color: #063;
  text-decoration: underline;
}

#content {
  padding: 40px 25px 0;
  background: white;
  background: hsla(0, 0%, 100%, .5);
  display: block;
  width: 1000px;
  margin: 0 auto;
}

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

#footer {
  margin-top: 14px;
  height: 57px;
}

#footer .copywrite {
  padding: 17px 0 0 0;
  text-align: center;
}

.breadcrumbs {
  margin-top: 40px;
  font-size: 1.2em;
  font-weight: bold;
}

.breadcrumbs a {
  text-decoration: none;
}

.page-content {
  margin-top: 42px;
  padding: 0 91px 0 235px;
  line-height: 1.5;
  min-height: 400px;
}

.page-content .news-date {
  border-top: 1px dashed #ccc;
  padding: 5px;
  font-style: italic;
}

.page-content .news-bottom {
  margin-bottom: 10px;
  border-bottom: 1px dashed #8E9FA5;
}

#sidebar {
  position: absolute;
  width: 190px;
  margin-top: 85px;
}

.clear {
  clear: both;
}

.break {
  margin: 40px 0;
}

/* MENU */
#menu-main-menu {
  font-size: 18px;
  padding: 0 0 0 0;
  list-style: none;
}

#menu-main-menu li {
  background: white;
  background: hsla(0, 0%, 100%, .4);
  padding-left: 1em;
  margin-top: .3em;
}

#menu-main-menu li.current-menu-item {
  background: hsla(0, 0%, 100%, .2);
}

#menu-main-menu li a {
  display: block;
  text-decoration: none;
  padding: 2px 0;
}

#sidebar .news-list {
  margin-top: 40px;
  line-height: 1.5;
}

#sidebar .news-list .news-item {
  padding: 5px;
}

#sidebar .news-list .news-item-header {
  font-weight: bold;
  font-size: 1.2em;
}

#sidebar .news-list .news-item-header a {
  text-decoration: none;
}

#sidebar .news-list .news-item-content {
  padding: 5px;
}

#sidebar .news-list .news-item-postdate {
  font-style: italic;
  border-top: 1px dashed #ccc;
  padding: 5px;
}

#sidebar .news-list .news-item-hr-bottom {
  margin-bottom: 10px;
  border-bottom: 1px dashed #8E9FA5;
}

.page-content .news-item {
  padding: 5px;
}

.page-content .news-item-header {
  font-weight: bold;
  font-size: 1.2em;
}

.page-content .news-item-header a {
  text-decoration: none;
}

.page-content .news-item-content {
  padding: 5px;
}

.page-content .news-item-postdate {
  font-style: italic;
  border-top: 1px dashed #ccc;
  padding: 5px;
}

.page-content .news-item-hr-bottom {
  margin-bottom: 10px;
  border-bottom: 1px dashed #8E9FA5;
}

/* Image alignment */
.entry-content img {
  margin: 0 0 0.8em 0;
}

.alignleft, img.alignleft {
  margin-right: 0.8em;
  display: inline;
  float: left;
}

.alignright, img.alignright {
  margin-left: 0.8em;
  display: inline;
  float: right;
}

.aligncenter, img.aligncenter {
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
  display: block;
  clear: both;
}

.wp-caption {
  margin-bottom: 0.8em;
  text-align: center;
  padding-top: 5px;
}

.wp-caption img {
  border: 0 none;
  padding: 0;
  margin: 0;
}

.wp-caption p.wp-caption-text {
  line-height: 0.8;
  font-size: 10px;
  margin: 0;
}

/* Photo grid & cards */
.photo-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 1em 0;
}

.photo-card {
  flex: 1 1 0;
  max-width: 210px;
  text-align: center;
}

.photo-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 6px;
}

.photo-card .photo-caption {
  margin-top: 0.4em;
  font-weight: bold;
  font-size: 0.9em;
}

.photo-single {
  max-width: 300px;
  margin: 1em auto;
  text-align: center;
}

.photo-single .photo-caption {
  margin-top: 0.4em;
  font-weight: bold;
  font-size: 0.9em;
}

.photo-single img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .photo-card {
    max-width: 240px;
  }
  .photo-card img {
    height: 300px;
  }
}

/* Slider */
.slider {
  position: relative;
  max-width: 640px;
  margin: 0 auto 20px;
  overflow: hidden;
}

.slider .slides {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  aspect-ratio: 640 / 480;
}

.slider .slides li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity .8s ease;
}

.slider .slides li.active {
  opacity: 1;
}

.slider .slides li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-nav {
  text-align: center;
  margin-top: 8px;
}

.slider-nav button {
  background: #ccc;
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
  padding: 0;
}

.slider-nav button.active {
  background: #063;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsla(0, 0%, 0%, .3);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-thumb {
  display: block;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: opacity .2s;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: hsla(0, 0%, 0%, .3);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 8px 14px;
  z-index: 10;
}

.lightbox-close {
  top: 15px;
  right: 15px;
  font-size: 32px;
}

.lightbox-prev {
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* ── Responsive ── */

@media (max-width: 1050px) {
  #content {
    width: auto;
    max-width: 1000px;
  }

  .page-content {
    padding-right: 25px;
  }
}

@media (max-width: 768px) {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  body {
    overflow-x: hidden;
  }

  #content {
    width: auto;
    padding: 20px 10px 0;
  }

  #sidebar {
    position: static;
    width: auto;
    margin-top: 10px;
  }

  #menu-main-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 14px;
    padding: 0;
  }

  #menu-main-menu li {
    margin-top: 0;
    padding: 4px 8px;
  }

  .page-content {
    padding: 0 10px;
    margin-top: 15px;
    min-height: auto;
  }

  .slider {
    max-width: 100%;
  }

  .alignleft, img.alignleft,
  .alignright, img.alignright {
    float: none;
    display: block;
    margin: 0.8em auto;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .breadcrumbs {
    margin-top: 20px;
    font-size: 1em;
  }

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

  .photo-single img {
    height: auto;
    max-height: 400px;
  }

  .photo-card img {
    height: 200px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Hover effects — only on devices with a real pointer (mouse/trackpad).
   Prevents iOS Safari double-tap issue on links. */
@media (hover: hover) {
  a:hover {
    color: #000;
    text-decoration: none;
  }

  #menu-main-menu li:hover {
    background: #FFFFFF;
  }

  .slider-prev:hover,
  .slider-next:hover {
    background: hsla(0, 0%, 0%, .5);
  }

  .gallery-thumb:hover img {
    opacity: .8;
  }

  .lightbox-close:hover,
  .lightbox-prev:hover,
  .lightbox-next:hover {
    background: hsla(0, 0%, 0%, .5);
  }
}
