/* Gallery Hero Section */
.gallery-hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
  }
  
  .gallery-hero-slider {
    position: relative;
    height: 100%;
    overflow: hidden;
  }
  .gallery-hero-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 22, 66, 0.4); /* Dark blue overlay with transparency */
    z-index: 1;
  }
  
  .gallery-slide {
    display: none;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s 0.5s;
  }
  
  .gallery-slide.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out, visibility 0s 0s;
  }
  
  .gallery-slide-content {
    position: absolute;
    top: 50%;
    left: 20%;
    z-index: 2;
    font-size: 20px;
    transform: translate(-50%, -50%);
    color: white;
    text-align: left;
    /* background-color: rgba(0, 0, 0, 0.6); */
    padding: 30px 40px;
    border-radius: 10px;
  }
  .gallery-slide-content a {
    color: white;
    font-weight: 400;
    text-decoration: none;
  }
  .gallery-slide-content p {
    color: white;
    font-weight: 600;
    text-decoration: none;
  }
  @media (max-width: 768px) {
    .gallery-hero-section {
      height: 30vh;
    }
  
    .gallery-slide-content {
      top: 50%;
      left: 50%;
      width: 90%;
      transform: translate(-50%, -50%);
      font-size: 14px;
      padding: 15px 20px;
    }
  }
  
  .gallery-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  
  .gallery-navigation span {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
  }
  
  .gallery-navigation span.active {
    background-color: #0B2D4F;
  }
  
  /* Navigation Arrows */
  .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    border-radius: 5px;
  }
  
  .gallery-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .gallery-left-arrow {
    left: 20px;
  }
  
  .gallery-right-arrow {
    right: 20px;
  }
  
  .gallery-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffc107;
    color: black;
    border-radius: 0px;
    text-decoration: none;
    border: none;
  }
  
  /* Gallery Tabs Section */
  .gallery-content-section {
    background-color: #f9f9f9;
    padding: 20px 15px;
    margin-top: 0;
  }
  
  /* Desktop tab styles */
  .gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .gallery-tab-item {
    margin: 5px;
  }
  
  .gallery-tab-link {
    display: inline-block;
    color: #0B2D4F;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
  }
  
  .gallery-tab-link:hover {
    background-color: #0B2D4F;
    color: #ffffff;
  }
  
  .gallery-tab-item.active .gallery-tab-link {
    background-color: #0B2D4F;
    color: #ffffff;
    border-color: #0B2D4F;
  }
  
  /* Mobile Selector */
  .gallery-tabs-mobile {
    display: none;
  }
  
  @media screen and (max-width: 768px) {
    .gallery-tabs {
      display: none;
    }
  
    .gallery-tabs-mobile {
      display: block;
      width: 100%;
      padding: 10px;
      background-color: #ffffff;
      border: 1px solid #e0e0e0;
      color: #0B2D4F;
      font-size: 16px;
      margin: 10px 0;
      border-radius: 5px;
    }
  
    .gallery-tabs-mobile option {
      background-color: #ffffff;
      color: #0B2D4F;
      padding: 10px;
    }
  }
  
  /* Gallery Section */
  .gallery-section {
    background-color: #f9f9f9;
    padding: 30px 0;
  }
  
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 12px;
    padding: 0 15px;
  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover {
    transform: scale(1.02);
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  /* Item variations */
  .gallery-item.wide {
    grid-column: span 2;
  }
  
  .gallery-item.tall {
    grid-row: span 2;
  }
  
  /* Responsive */
  @media (max-width: 992px) {
    .gallery-grid {
      grid-template-columns: repeat(3, 1fr);
      grid-auto-rows: 220px;
    }
  }
  
  @media (max-width: 768px) {
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: 200px;
    }
  }
  
  @media (max-width: 576px) {
    .gallery-grid {
      grid-template-columns: 1fr;
      grid-auto-rows: auto; /* Changed to auto to adjust height based on content */
      gap: 15px; /* Increased gap for better spacing on mobile */
    }
  
    .gallery-item.wide,
    .gallery-item.tall {
      grid-column: auto;
      grid-row: auto;
    }
  
    .gallery-item img {
      height: auto; /* Allow images to maintain their aspect ratio */
    }
  }
  
  /* Modal Styles */
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  /* Footer Section */
  .gallery-footer {
    background-color: #0B2D4F;
    color: white;
    font-size: 0.9rem;
    margin-top: 40px;
  }
  
  .gallery-footer p {
    margin: 0;
  }

/* Professional gallery collection */
.public-site .gallery-showcase {
  position: relative;
  padding: 78px 0 88px;
  background:
    radial-gradient(circle at 8% 5%, rgba(198, 161, 91, 0.09), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.public-site .gallery-showcase-header {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.public-site .gallery-showcase-eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: #b2873f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-site .gallery-showcase-header h2 {
  margin-bottom: 12px;
  color: #082b4b;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.15;
}

.public-site .gallery-showcase-header p {
  margin: 0;
  color: #607086;
  font-size: 17px;
  line-height: 1.65;
}

.public-site .gallery-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.public-site .gallery-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(8, 43, 75, 0.09);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.public-site .gallery-card:hover {
  border-color: rgba(198, 161, 91, 0.72);
  box-shadow: 0 20px 42px rgba(8, 43, 75, 0.16);
  transform: translateY(-6px);
}

.public-site .gallery-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.public-site .gallery-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #dfe7ee;
}

.public-site .gallery-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.public-site .gallery-card:hover .gallery-card-media img,
.public-site .gallery-card-link:focus-visible .gallery-card-media img {
  transform: scale(1.055);
}

.public-site .gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(4, 28, 50, 0.02) 35%,
    rgba(4, 28, 50, 0.82) 100%
  );
}

.public-site .gallery-card-title {
  overflow: hidden;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
}

.public-site .gallery-card-action {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  color: #082b4b;
  background: #d4aa54;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.public-site .gallery-card:hover .gallery-card-action,
.public-site .gallery-card-link:focus-visible .gallery-card-action {
  color: #fff;
  background: #0b355b;
  transform: scale(1.06);
}

.public-site .gallery-empty-state {
  padding: 60px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(8, 43, 75, 0.07);
}

.public-site .gallery-empty-state i {
  margin-bottom: 18px;
  color: #c69f52;
  font-size: 44px;
}

.public-site .gallery-empty-state h3 {
  color: #082b4b;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
}

.public-site .gallery-empty-state p {
  margin: 0;
  color: #607086;
}

@media (max-width: 991.98px) {
  .public-site .gallery-showcase {
    padding: 60px 0 70px;
  }

  .public-site .gallery-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 575.98px) {
  .public-site .gallery-showcase {
    padding: 44px 0 54px;
  }

  .public-site .gallery-showcase-header {
    margin-bottom: 26px;
    padding: 0 10px;
  }

  .public-site .gallery-showcase-header p {
    font-size: 15px;
  }

  .public-site .gallery-showcase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .public-site .gallery-card {
    border-radius: 12px;
  }

  .public-site .gallery-card-overlay {
    padding: 16px;
  }

  .public-site .gallery-card-title {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-site .gallery-card,
  .public-site .gallery-card-media img,
  .public-site .gallery-card-action {
    transition: none;
  }
}
  
