html, body {
  margin: 0;
  padding: 0;
  height: auto;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden !important;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* Headings */
h1 {
  color: #2c3e50;
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  margin-top: 0;
  line-height: 150%;    
}

h2 {
  font-size: 20px;
  margin: 35px auto 10px;
  line-height: 150%;
}

hr.separator {
  height: 1px;
  color: #ccc;
  background: #ccc;
  margin: 30px 0 20px;
  padding: 0;
  font-size: 0;
  border: 0;
  width: 100%;
}

hr.separator-pag-top {
  height: 1px;
  color: #ccc;
  background: #ccc;
  margin: 40px 0 0;
  padding: 0;
  font-size: 0;
  border: 0;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 10px;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  max-width: 500px;
  max-height: 280px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 635px) {
  .gallery-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }
}

.caption {
  padding: 10px 8px 8px;
  font-size: 14px;
  text-align: center;
  color: #333;
  vertical-align: baseline;
}

@media screen and (max-width: 640px) {
  .caption {
    padding: 16px 8px 8px;
  }
}

:root {
   --vh: 1vh;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: #000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.lightbox-controls {
  position: absolute;
  background: rgba(0,0,0,.5);
  z-index: 100000;
  top: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 3px 10px 0;
}

.lightbox-controls .counter, .lightbox-controls .close {
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  border: none;
}

.lightbox-controls .close {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 0;
  font-size: 40px;
  border: none;
}

.lightbox-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-height: 100%;
  max-width: 100%;
}

.lightbox img {
  max-height: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  box-shadow: 0 0 20px #000;
}

.lightbox .caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.4);
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  max-width: 90%;
}

.lightbox .arrow {
  position: fixed;
  top: 48%;
  transform: translateY(-48%);
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  padding: 30px 14px;
  border-radius: 50%;
  z-index: 10000;
}

.lightbox .arrow:hover {
  background: rgba(255,255,255,.3);
}

.lightbox .prev {
  left: 30px;
}

.lightbox .next {
  right: 30px;
}

.touch-indicator {
  display: none;
}

@media (pointer: fine) {
  .touch-indicator {
    display: none;
  }
}

@media (pointer: coarse) and (hover: none) {
  .nd {
    display: none;
  }
}

/*  */


        /* published-page specific overrides */
        .page-content { margin-top: 40px }
        .page-content .text-block h1 { text-align:center; }
        .page-content .text-block h2 { text-align:left; }
        .container { width:90%; max-width:1200px; margin:20px auto; }
        .section-wrapper { width:100%; max-width:1100px; margin:18px auto 30px; background:#fff; border-radius:6px; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,.06); padding:16px; }
        .section-photo img { width:100%; height:auto; display:block; object-fit:contain; margin:0 auto; border-radius:6px; }
        .section-caption { padding:10px 12px 0; font-size:15px; color:#333; text-align:center; background:transparent; }
        .section-h2 { margin:0 0 8px; font-size:20px; text-align:left; color:#222; font-weight: 600}
        .section-text { font-size: 18px; line-height: 125%; margin: 0; padding: 15px 0; color: #333; text-align: left }

        /* Lightbox (full-screen) */
        .lightbox { display:none; position:fixed; z-index:9999; inset:0; background:#000; justify-content:center; align-items:center; padding-bottom:env(safe-area-inset-bottom,8px); touch-action:none; }
        .lightbox.active { display:flex; }
        .lightbox-content { position:relative; width:100%; height:100%; display:flex; justify-content:center; align-items:center; }
        .lightbox-content img { max-width:100%; max-height:100%; object-fit:contain; display:block; margin:auto; }
        .lightbox .caption { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,0.45); padding:8px 12px; border-radius:6px; color:#fff; font-size:16px; max-width:90%; text-align:center; box-sizing:border-box; }
        .lightbox-controls { position:absolute; top:18px; right:18px; display:flex; align-items:center; gap:8px; z-index:10001; background:rgba(0,0,0,0.35); padding:6px; border-radius:6px; }
        .lightbox-counter { color:#fff; font-size:16px; user-select:none; padding:0 4px; }
        .lightbox-controls .close { color:#fff; font-size:30px; cursor:pointer; padding:2px 6px; background:transparent; border:0; }
        .lightbox .arrow { position:absolute; top:50%; transform:translateY(-50%); font-size:22px; color:#fff; cursor:pointer; z-index:10000; padding:8px 14px 6px; border-radius:50%; background:rgba(0,0,0,0.25); }
        .lightbox .arrow.prev { left:18px; }
        .lightbox .arrow.next { right:18px; }
        @media (pointer: coarse), (hover: none) {
            .lightbox .arrow { display:none !important; }
        }

        .pagination { text-align:center; margin:20px 0; }
        .pagination a { display:inline-block; margin:0 5px; padding:6px 12px; background:#eee; border-radius:4px; color:#333; text-decoration:none; }
        .pagination a.active { background:#06c; color:#fff; }


/*.section-photo img {
    display: block;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 600px;
    border-radius: 5px;

}

.section-photo{
    background: #eee;
    border-radius: 5px;
    padding: 5px
}*/


.section-photo {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 8px;
    overflow: hidden;
}
.section-photo img {
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
.small-break {
    display: block;
    margin-top: 0.7em; /* adjust spacing */
}
nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

nav a {
    margin-right: 15px;
    font-weight: bold;
}

.logo {
    display: block;
    width: 250px;
    margin: 0;
}

::selection {
    background: #1e252e;
    color: #fff;
}

::-moz-selection {
    background: #1e252e;
    color: #fff;
}

body.sidebar-open {
    overflow-y: hidden;
}

.navbar {
    background-color: #1e252e;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 1rem;
    position: relative;
    z-index: 3;
}

ul.nav li {
    margin-bottom: 0;
}

.logo {
    flex: 1;
    font-size: 1.5rem;
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    user-select: none;
}

/* Hamburger Icon */
.menu-toggle {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    outline: none;
    border: none;
    background: transparent;

    /* Remove flashes */
    -webkit-tap-highlight-color: transparent;
    -webkit-focus-ring-color: transparent;
    user-select: none;
}

.menu-toggle:focus, .menu-toggle:active, .menu-toggle:focus-visible {
    outline: none;
    background: transparent;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: .4s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Side Menu */
.side-menu {
    position: fixed;
    left: -275px;
    width: 275px;
    /*height: 100%;*/
    overflow-y: scroll;
    top: 10px;
    bottom: 0;
    background-color: #262e39;
    color: rgba(255,255,255,1);
    padding-top: 150px;
    transition: left .3s ease;
    z-index: 2;
    /*cursor: all-scroll;*/
}

/* Hide scrollbar for Chrome, Safari and Opera */
.side-menu::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.side-menu {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    padding: 1rem;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

.side-menu.open {
    left: 0;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 1;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #ccc;
}

/*  */




.footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding: 20px;
  border-top: 1px solid #ccc;
  background: #fff;
}

.footer-left, .footer-right {
  display: flex;
  gap: 20px;
}

@media (max-width: 820px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-left, .footer-right {
    display: block;
    text-align: center;
  }

  .footer-left a, .footer-right a {
    display: block;
    margin: 5px 0;
  }
}

.footer-right {
  margin-top: 2px;
}

.footer-links a {
  color: #000;
  background-image: linear-gradient(#28a745, #28a745);
  background-size: 0 2px;
  background-position-y: 100%;
  background-position-x: 0;
  background-repeat: no-repeat;
  transition: background-size .4s ease-in-out;
  text-decoration: none;
  padding-bottom: 5px;
}

.footer-links a:hover, .footer-links a:focus {
  color: #28a745;
  background-size: 100% 1px;
  text-decoration: none;
}

.page-content {
  background: #fff;
  margin: 130px 0 0;
  padding: 0;
}

.text-block {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 120%;
  color: #333;
  text-align: left;
  font-weight: 400;
}

.content-block {
  margin-bottom: 0;
  background: #fff;
  padding: 15px 0;
  border-radius: 6px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.pagination {
  text-align: center;
  margin: 32px 0 20px;
  font-size: 15px;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  background: #eee;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
}

.pagination a.active {
  background: #06c;
  color: #fff;
}
