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;
}

h2 {
  font-size: 20px;
  margin: 0 auto -30px;
}

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: 10px 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;
  }
}

.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: 18px;
  padding: 15px 0;
  line-height: 125%;
  color: #333;
  text-align: left;
  font-weight: 400;
}

.text-line-break {
  display: block;
  margin-top: .7em;
}

.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;
}
