.elementor-230 .elementor-element.elementor-element-95f64df{--display:flex;}.elementor-widget-image-gallery .gallery-item .gallery-caption{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );}.elementor-230 .elementor-element.elementor-element-5a3517a .gallery-item{padding:0 15px 15px 0;}.elementor-230 .elementor-element.elementor-element-5a3517a .gallery{margin:0 -15px -15px 0;}.elementor-230 .elementor-element.elementor-element-5a3517a .gallery-item .gallery-caption{text-align:center;}/* Start custom CSS for image-gallery, class: .elementor-element-5a3517a *//* HGU Gallery Clean Equal Grid - Refined */
:root {
  --hgu-orange: #ff9046;
  --hgu-maroon: #7b0d48;
  --hgu-navy: #111e3e;
  --hgu-light: #f7f7fb;
  --hgu-border: #e7e8ef;
}

/* Main gallery wrapper */
#gallery-1 {
  width: min(1180px, 92%);
  margin: 55px auto 90px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px !important;
}

/* Reset WordPress default gallery layout */
#gallery-1 .gallery-item {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Equal image card */
#gallery-1 .gallery-icon {
  width: 100%;
  height: 245px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(17, 30, 62, 0.08);
  box-shadow: 0 8px 24px rgba(17, 30, 62, 0.08);
  position: relative;
  transition: all 0.28s ease;
}

/* Link should fill card */
#gallery-1 .gallery-icon a {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}

/* Same size images */
#gallery-1 .gallery-icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* Remove View button */
#gallery-1 .gallery-icon a::after {
  content: none !important;
  display: none !important;
}

/* Very light hover overlay */
#gallery-1 .gallery-icon a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 30, 62, 0) 0%,
    rgba(17, 30, 62, 0.18) 100%
  );
  opacity: 0;
  z-index: 2;
  transition: opacity 0.28s ease;
}

/* Hover effect */
#gallery-1 .gallery-icon:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 144, 70, 0.35);
  box-shadow: 0 16px 38px rgba(17, 30, 62, 0.14);
}

#gallery-1 .gallery-icon:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

#gallery-1 .gallery-icon:hover a::before {
  opacity: 1;
}

/* Remove any old masonry span rules */
#gallery-1 .gallery-item:nth-child(8n + 1),
#gallery-1 .gallery-item:nth-child(8n + 6),
#gallery-1 .gallery-item:nth-child(10n + 3) {
  grid-column: auto !important;
  grid-row: auto !important;
}

/* Elementor lightbox */
.elementor-lightbox .elementor-lightbox-image {
  border-radius: 10px;
}

/* Tablet */
@media (max-width: 1024px) {
  #gallery-1 {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px !important;
  }

  #gallery-1 .gallery-icon {
    height: 230px;
    border-radius: 10px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  #gallery-1 {
    width: min(100% - 28px, 560px);
    grid-template-columns: repeat(2, 1fr);
    gap: 14px !important;
    margin: 40px auto 65px !important;
  }

  #gallery-1 .gallery-icon {
    height: 200px;
    border-radius: 10px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  #gallery-1 {
    grid-template-columns: 1fr;
  }

  #gallery-1 .gallery-icon {
    height: 245px;
    border-radius: 10px;
  }
}/* End custom CSS */