.content::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/kolimvitirio.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 0;
}

.content {
  position: relative;
  color: #0f084b;
  padding: 60px 20px;
  overflow: hidden;
}

.content > * {
  position: relative;
  z-index: 1;
}

#kolimvitirio-gallery-slider {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

#kolimvitirio-gallery-slider img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 12px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.8;
}

.swiper-pagination-bullet-active {
  background: #ff6600;
  opacity: 1;
}

.swiper-pagination-bullet {
  color: #fff !important;
}

@media (max-width: 768px) {
  #kolimvitirio-gallery-slider img {
    height: 350px;
  }
}

.swiper-button-next,
.swiper-button-prev {
  color: #ffffff !important;
}

/* Grid gallery */
#kolimvitirio-gallery.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 15px;
  padding: 20px;
}

#kolimvitirio-gallery .gallery-item {
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

#kolimvitirio-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#kolimvitirio-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox styling */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  /* width: 50%; */
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox .close {
  position: fixed;
  top: 16%;
  right: 0%;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.lightbox .close:hover {
  color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 80vh;
  }
}

.bg-image {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: auto;
  object-fit: cover;
  z-index: -1;
}

.wp-block-image img,
.wp-block-media-text__media img {
  box-sizing: border-box;
  height: auto;
  height: 100%;
  max-height: 400px;
  max-width: 370px;
  object-fit: contain;
  vertical-align: bottom;
}

footer {
  margin-top: 0rem !important;
}

.post-link {
  color: #2b2b29;
  text-decoration: none;
  border-bottom: 1px solid #ddd;
  display: inline-block;
  width: 100%;
}

.menu-item-wrapper:hover .post-link {
  cursor: pointer;
  color: #580405;
  background: #eaeaea;
}

.menu-item-wrapper:hover .toggle-submenu i {
  color: #580405 !important;
}

.menu-item-wrapper:hover {
  background: #eaeaea;
  color: #580405;
}

.post-link.active {
  font-weight: bold;
  background: #eaeaea;
  color: #580405;
}

.menu-item-wrapper {
  position: relative;
}

.menu-item-wrapper a {
  font-size: 16px;
}

.toggle-submenu {
  background: none;
  border: none;
  color: #2b2b29;
  font-weight: bold;
  position: absolute;
  right: -5px;
  top: 10px;
  cursor: pointer;
}

.submenu {
  margin-left: 1rem;
  border-left: 2px solid #580405;
}

.submenu.hidden {
  display: none;
}

.kolimvitirio-wrapper {
  margin-top: -50px;
}

@media (max-width: 991px) {
  .submenu,
  .toggle-submenu {
    display: none;
  }
}
