.gallery-lightbox-open { overflow: hidden; }
.home-gallery-showcase { background: #f2f4f9; padding: 52px 0 74px; }
.home-gallery-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.home-gallery-heading h2 { margin: 0; color: #12213a; font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.45rem, 2.2vw, 1.85rem); font-weight: 800; letter-spacing: -.045em; }
.home-gallery-heading span { display: block; width: 43px; height: 3px; margin-top: 9px; border-radius: 4px; background: #f4ad16; }
.home-gallery-heading a { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: #15376a; font-size: .76rem; font-weight: 800; text-decoration: none; }
.home-gallery-heading a:hover { color: #f09f00; }
.home-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, 1fr); gap: 5px; overflow: hidden; }
.home-gallery-tile { position: relative; min-width: 0; height: 244px; padding: 0; overflow: hidden; border: 0; background: #dfe4ee; cursor: pointer; }
.home-gallery-tile img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .55s ease, filter .45s ease; }
.home-gallery-tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 31, 56, 0) 55%, rgba(16, 31, 56, .2) 100%); pointer-events: none; transition: background .35s ease; }
.home-gallery-tile:hover img, .home-gallery-tile:focus-visible img { transform: scale(1.045); filter: saturate(1.06); }
.home-gallery-tile:hover .home-gallery-tile-shade, .home-gallery-tile:focus-visible .home-gallery-tile-shade { background: linear-gradient(180deg, rgba(16, 31, 56, .02), rgba(16, 31, 56, .34)); }
.home-gallery-tile:focus-visible { outline: 3px solid #f4ad16; outline-offset: -3px; }
.home-gallery-more { position: relative; z-index: 2; display: flex; width: max-content; align-items: center; gap: 10px; margin: -22px auto 0; padding: 12px 27px; border-radius: 999px; color: #241b0b; background: #f5ad12; box-shadow: 0 11px 22px rgba(183, 125, 0, .22); font-size: .76rem; font-weight: 800; text-decoration: none; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.home-gallery-more:hover { color: #241b0b; background: #ffc33c; box-shadow: 0 14px 26px rgba(183, 125, 0, .28); transform: translateY(-3px); }
.home-gallery-more i, .home-gallery-heading a i { font-size: .8rem; }
.gallery-lightbox { position: fixed; z-index: 1090; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(31,20,46,.82); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.gallery-lightbox.is-open { opacity: 1; visibility: visible; }
.gallery-lightbox-frame { position: relative; max-width: min(92vw,1080px); max-height: 90vh; }
.gallery-lightbox-image { display: block; max-width: 92vw; max-height: 86vh; border: 5px solid #fff; border-radius: 12px; object-fit: contain; box-shadow: 0 25px 70px rgba(0,0,0,.3); transform: scale(.96); transition: transform .25s ease; }
.gallery-lightbox.is-open .gallery-lightbox-image { transform: scale(1); }
.gallery-lightbox-close { position: absolute; z-index: 1; top: -17px; right: -17px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; color: #49336f; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); cursor: pointer; font-size: 1rem; }
@media (max-width: 767px) {
  .home-gallery-showcase { padding: 38px 0 58px; }
  .home-gallery-heading { align-items: flex-start; }
  .home-gallery-heading a { font-size: .68rem; white-space: nowrap; }
  .home-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .home-gallery-tile { height: 166px; }
  .home-gallery-more { margin-top: -18px; padding: 10px 21px; font-size: .7rem; }
  .gallery-lightbox { padding: 16px; }
  .gallery-lightbox-close { top: -14px; right: -8px; }
}
