/* Modal copy styling */
.modal-copy {
  font-size: 1.3em;
  color: #222;
  max-width: 500px;
}
.modal-copy p {
  margin: 10px 0;
}
.modal-copy a {
  color: #063863;
}
.modal-copy a {
  text-decoration: underline;
}
/* Basic modal styles for gallery images */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(180,180,190,0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s;
}
.modal-content {
  background: #fff;
  padding: 20px 20px 14px 20px;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image-wrap {
  position: relative;
  display: inline-block;
}

  .modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  color: #333;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
  .modal-arrow-left {
    left: -5px;
  }
  .modal-arrow-right {
    right: -5px;
  }
  .modal-arrow:active {
    background: #eee;
  align-items: center;
}
.modal-close {
  position: absolute;
  top: 9px;
  right: 16px;
  background: none;
  color: #333;
  border: none;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  width: auto;
  height: auto;
  z-index: 2;
  box-shadow: none;
  padding: 0;
  line-height: 1;
}
.modal-content img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 4px;
  margin-top: 32px;
}
.modal-title {
  margin-top: 10px;
  font-size: 18px;
  color: #063863;
}
@media (max-width: 600px) {
  .modal-content img {
    max-width: 95vw;
    max-height: 50vh;
    width: 100%;
    box-sizing: border-box;
  }
  .modal-content {
    padding: 8px;
  }
  .modal-close {
    top: 3px;
    right: 6px;
  }
}
