/* Gallery Styles */
body {
	padding-right: 0!important;
}
.gallery-item {
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.caption {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  padding-bottom: 15px;
}
html.dark .caption {
	color: var(--light);
}

/* Modal Styles */
.modal-content {
  background-color: #000;
  border: none;
  border-radius: 8px;
}

.modal-header {
  border-bottom: none;
  padding: 0.5rem 1rem;
  position: absolute;
  right: 0;
  z-index: 1050;
}

.modal-body {
  position: relative;
  padding: 0;
}

.modal-footer {
  border-top: none;
  background-color: #000;
  color: #fff;
  padding: 1rem;
}

.btn-gallery-close {
  color: #fff;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat;
  opacity: 0.8;
}

.btn-gallery-close:hover {
  opacity: 1;
}

.navigation-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px;
}

.btn-prev,
.btn-next {
  opacity: 0.7;
  transition: opacity 0.3s;
}

.btn-prev:hover,
.btn-next:hover {
  opacity: 1;
}

#modalImage {
  max-height: 80vh;
}

#modalCaption {
    color: var(--light);
}

ol.numberList { text-align:justify; } ol.numberList li, ul:not(.nav):not(.dropdown-menu):not(.breadcrumb) li {margin: 10px 0;} ol.numberList li::marker { font-size: 1.4rem; font-weight: bold; color: #4CAF50; }
.m2 { margin-bottom: 5px; }  
@media (max-width: 768px) {
  .navigation-buttons {
    padding: 0 5px;
  }

  .btn-prev,
  .btn-next {
    padding: 0.25rem 0.5rem;
  }

  #modalImage {
    max-height: 70vh;
  }

  #modalCaption {
    font-size: 0.9rem;
	text-align: center;
  }

}

