/* ==========================================================
   Home — Our Gallery (scoped under .gx)
   Photo mosaic instead of a carousel: the first album is a
   2x2 feature tile, the rest fill a 4-column grid. Caption
   pill on every tile; "View Album" button appears on hover.
   Logo palette: royal blue + orange.
   ========================================================== */
.gx {
  --gx-blue: #0d4f9c;
  --gx-blue-deep: #083a75;
  --gx-orange: #f08a1c;
  --gx-orange-deep: #d9740a;
  --gx-ink: #142033;
  position: relative;
  padding: 60px 0 68px;
  background: #fff;
}
.gx-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- heading row ---------- */
.gx-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.gx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gx-orange-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gx-title {
  margin: 10px 0 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gx-blue-deep);
}
.gx-title span { color: var(--gx-orange); }
.gx-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: var(--gx-blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s ease, gap .2s ease;
}
.gx-more:hover { background: var(--gx-orange); color: #fff; gap: 14px; }

/* ---------- mosaic ---------- */
.gx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 16px;
}
.gx-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #e8eef6;
  text-decoration: none;
  isolation: isolate;
}
.gx-tile:first-child { grid-column: span 2; grid-row: span 2; }
.gx-tile:nth-child(7n) { grid-column: span 2; }

.gx-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.gx-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 58, 117, 0) 50%, rgba(8, 58, 117, .55) 100%);
  transition: background .35s ease;
  z-index: 0;
}
.gx-tile:hover img { transform: scale(1.08); }
.gx-tile:hover::after { background: rgba(8, 58, 117, .55); }

/* caption pill */
.gx-cap {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--gx-blue-deep);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}
.gx-cap .fa {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3e6;
  color: var(--gx-orange-deep);
  font-size: 14px;
}
.gx-cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-tile:first-child .gx-cap { left: 20px; right: auto; bottom: 20px; max-width: calc(100% - 40px); padding: 12px 18px; font-size: 17px; }

/* hover action */
.gx-view {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--gx-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -30%);
  transition: opacity .3s ease, transform .3s ease;
}
.gx-tile:hover .gx-view { opacity: 1; transform: translate(-50%, -50%); }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .gx { padding: 48px 0 56px; }
  .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px; }
  .gx-tile:nth-child(7n) { grid-column: span 1; }
}
@media (hover: none) {
  .gx-view { display: none; }
}
@media (max-width: 640px) {
  .gx { padding: 40px 0 48px; }
  .gx-wrap { padding: 0 16px; }
  .gx-title { font-size: 32px; }
  .gx-more { width: 100%; justify-content: center; }
  .gx-grid { grid-auto-rows: 150px; gap: 10px; }
  .gx-tile { border-radius: 14px; }
  .gx-cap { left: 8px; right: 8px; bottom: 8px; padding: 7px 9px; font-size: 12.5px; gap: 6px; }
  .gx-cap .fa { display: none; }
  .gx-tile:first-child .gx-cap { left: 12px; bottom: 12px; font-size: 14.5px; padding: 9px 12px; }
}
