/* Gallery Styles */
.single-gallery-container {
  padding: 10px;
  /* margin-bottom: 20px; */
  display: inline-block;
  float: left;
  height: 300px;
  display: flex!important;
}

.container-border {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.container-border:hover {
  /* transform: translateY(-3px); */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

/* Fix main page layout */
.site-content {
  padding-top: 30px;
}

.row.margin-b-md {
  margin-bottom: 0;
}

/* Button styles to match original */
.btn-primary {
  background-color: #337ab7;
  border-color: #2e6da4;
  color: white;
  font-weight: normal;
  padding: 6px 12px;
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: #286090;
  border-color: #204d74;
}

.icon-gallery:before {
  content: "\f03e";
  font-family: FontAwesome;
  margin-right: 5px;
}

/* Modal carousel styles */
.modal-dialog {
  max-width: 80%;
  margin: 30px auto;
  height: calc( 100vh - 60px );
}

.modal-dialog .modal-header {
  display: none;
}

.modal-content {
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.modal-body {
  padding: 0;
}

.close-modal-carousel {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1050;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
}

.close-modal-carousel span {
  font-size: 24px;
  color: #333;
}

#modal-image {
  max-height: 80vh;
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.carousel-control {
  background: none;
  width: 10%;
}

.carousel-control i {
  font-size: 36px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.left.carousel-control i {
  left: 20px;
}

.right.carousel-control i {
  right: 20px;
}

/* Gallery grid layout */
.container-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 -10px;
}

.btn-pos {
  margin-top: 20px;
}

.card {
  display: block;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.card-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 15px;
  background-color: #fff;
}

.card-content h3 {
  margin: 0;
  color: #333;
}

/* Ensure Bootstrap modal works properly */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -25%);
}

.modal.in .modal-dialog {
  transform: translate(0, 0);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.in {
  opacity: 0.5;
}

/* Bootstrap 3 carousel compatibility */
.carousel {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-inner > .item {
  position: relative;
  display: none;
  transition: 0.6s ease-in-out left;
}

.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
  display: block;
}

.carousel-inner > .active {
  left: 0;
}

.carousel-inner > .next,
.carousel-inner > .prev {
  position: absolute;
  top: 0;
  width: 100%;
}

.carousel-inner > .next {
  left: 100%;
}

.carousel-inner > .prev {
  left: -100%;
}

.carousel-inner > .next.left,
.carousel-inner > .prev.right {
  left: 0;
}

.carousel-inner > .active.left {
  left: -100%;
}

.carousel-inner > .active.right {
  left: 100%;
}

.carousel-control {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 15%;
  font-size: 20px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  background-color: transparent;
  filter: alpha(opacity=50);
  opacity: 0.5;
  z-index: 10;
}

.carousel-control.right {
  right: 0;
  left: auto;
}

/* Media queries for responsive gallery */
@media (max-width: 991px) {
  .gallery-image {
    height: auto;
  }
  
  .modal-dialog {
    max-width: 95%;
  }
}

@media (max-width: 767px) {
  .single-gallery-container {
    padding: 5px;
  }
}

/* Fix for Bootstrap 3 in Astro context */
.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Ensure images are displayed properly */
.container img {
  max-width: 100%;
  height: auto;
}

/* Custom carousel image container */
.carousel-img {
  transition: opacity 0.3s ease;
}

.carousel-img:hover {
  opacity: 0.9;
}

/* Fix for Bootstrap 3 specific layout */
.col-xs-12 {
  width: 100%;
}

.col-sm-6 {
  width: 50%;
}

.col-md-4 {
  width: 33.33333333%;
}

.col-lg-4 {
  width: 33.33333333%;
}

@media (max-width: 767px) {
  .col-sm-6 {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .col-md-4 {
    width: 50%;
  }
}

/* Fix to make sure images fill the container properly */
.show-medium {
  display: block;
}

/* Custom image styling to match original site */
.single-gallery-container img {
  display: block;
  width: 100%;
  max-width: 100%;
  transition: transform 0.3s;
  min-height: 300px;
}

.single-gallery-container:hover img {
  transform: scale(1.03);
}

/* Fix gallery layout without row divs */
.gallery-container {
  display: block;
  width: 100%;
  clear: both;
  margin-bottom: 20px;
  overflow: hidden;
}

.gallery-container:after {
  content: '';
  display: table;
  clear: both;
} 


.carousel-content {
  position: absolute;
  width: 90vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: drop-shadow(0px 8px 8px #222);
  z-index: 10;
}

.carousel-content h1,.carousel-content h3 {
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px #222
}

.carousel-logo {
  display: block;
  margin: 0 auto;
  max-height: 350px;
  max-width: 300px;
  z-index: 99999;
}

.carousel-control-testimonial {
  background-image: none !important;
  color: #777
}

.carousel-control-testimonial:hover,.carousel-control-testimonial:focus {
  color: #555
}

.carousel-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5)
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 15;
  width: 60%;
  margin-left: -30%;
  padding-left: 0;
  list-style: none;
  text-align: center
}

.carousel-indicators li {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 1px;
  /* text-indent:-999px; */
  border: 1px solid #fff;
  border-radius: 10px;
  cursor: pointer;
  background-color: #000 \9;
  background-color: rgba(0, 0, 0, 0)
}

.carousel-indicators .active {
  margin: 0;
  width: 12px;
  height: 12px;
  background-color: #fff
}

.carousel-caption {
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 20px;
  z-index: 10;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6)
}

.carousel-caption .btn {
  text-shadow: none
}



.field-label, .footnotes {color:#fff!important;font-family:'EB Garamond', serif;font-size: 18px!important;}
.button-submit {background:#237fcf!important;color:#fff;border-radius:4px!important;transition:all .3s;}
.button-submit:hover {background:#1c64a3!important;cursor:pointer;}
.required-mark {color:#237fcf;} /*same as button-submit background*/
.chosen-container, .ui-multiselect.btMultiSelect {width:100% !important;}
.field-value .ui-multiselect.btMultiSelect {max-width:100% !important;}

input[type=text], textarea, select {background:#fafafa!important;padding:8px!important;border:1px solid #ccc!important;border-radius:2px!important;font-size:14px!Important;}
.required-mark {float: right; margin-left: 5px!important;}
.footnotes .required-mark {float:none!important;margin:0px!important;}
.field-label label:after, .field-label>span:after {content: " "!important;}

.field-generalnotes {height: 100px!important;}

.contactFormWrapper {background-color: #333;}

.container-center:has(#\32 51654115924052) {overflow:hidden;}
#\32 51654115924052 {
  margin-bottom: -56px;
}