.gallery-match {
  background: #f8fbff;
  padding: 58px 0;
  overflow: hidden;
}

.gallery-match .container {
  width: min(1180px, calc(100% - 44px));
  max-width: 1180px;
}

.gallery-heading {
  text-align: center;
  margin-bottom: 24px;
}

.gallery-heading .eyebrow {
  color: #eba812;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.gallery-heading h2 {
  font-family: var(--serif);
  font-size: 48px;
  color: #062f68;
  line-height: 1.12;
  margin: 0 0 14px;
}

.gallery-heading h2:after {
  content: "";
  display: block;
  width: 78px;
  border-bottom: 4px solid #eba812;
  margin: 16px auto 0;
}

.gallery-heading p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: #536178;
  font-size: 18px;
  line-height: 1.65;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}

.gallery-tabs button {
  min-height: 44px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #fff;
  color: #062f68;
  font: 800 14px var(--sans);
  padding: 0 24px;
  box-shadow: 0 8px 18px rgba(6, 47, 104, .06);
}

.gallery-tabs button:first-child {
  background: #062f68;
  border-color: #062f68;
  color: #fff;
}

.gallery-showcase {
  display: grid;
  grid-template-columns: 1.22fr .78fr .78fr;
  grid-template-rows: 210px 210px;
  gap: 16px;
}

.gallery-tile {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe8f3;
  box-shadow: 0 12px 30px rgba(6, 47, 104, .12);
}

.gallery-large {
  grid-row: span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .45s ease;
}

.gallery-tile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 25, 62, .78) 100%);
}

.gallery-tile span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 2px;
  color: #fff;
  text-align: left;
}

.gallery-tile b {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
}

.gallery-large b {
  font-size: 28px;
}

.gallery-tile small {
  font-size: 13px;
  color: #dbe7f7;
}

.gallery-tile:hover img {
  transform: scale(1.08);
}

.gallery-footer {
  margin-top: 24px;
  border: 1px solid rgba(235, 168, 18, .32);
  border-radius: 10px;
  background: linear-gradient(135deg, #fff8e7 0%, #fff 100%);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gallery-footer > div {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #25324a;
}

.gallery-footer i {
  color: #eba812;
}

.gallery-footer > div > i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #062f68;
  color: #eba812;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: 0 0 auto;
}

.gallery-footer span {
  display: grid;
  line-height: 1.45;
  font-size: 14px;
}

.gallery-footer b {
  color: #062f68;
  font-family: var(--serif);
  font-size: 20px;
}

.gallery-footer .btn {
  min-width: 190px;
  min-height: 46px;
  border-radius: 8px;
  background: #062f68;
  color: #fff;
  font-weight: 900;
}

@media (max-width: 900px) {
  .gallery-showcase {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 200px 200px;
  }

  .gallery-large {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .gallery-match {
    padding: 42px 0;
  }

  .gallery-heading h2 {
    font-size: 34px;
  }

  .gallery-showcase {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery-large {
    grid-column: auto;
  }

  .gallery-tile {
    height: 220px;
  }

  .gallery-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.gallery-archive {
  background: #f8fbff;
}

.gallery-archive-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 62px;
  background:
    linear-gradient(90deg, rgba(0, 31, 74, .9), rgba(6, 47, 104, .72)),
    url('../../../../../uploads/hero-image.webp') center/cover no-repeat;
  color: #fff;
}

.gallery-archive-hero .container,
.gallery-archive-section .container {
  width: min(1250px, calc(100% - 36px)) !important;
  max-width: 1250px !important;
}

.gallery-archive-hero .eyebrow {
  color: #eba812;
  margin: 0 0 10px;
}

.gallery-archive-hero h1 {
  max-width: 780px;
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.12;
}

.gallery-archive-hero p:last-child {
  max-width: 720px;
  margin: 0;
  color: #e9f2ff;
  font-size: 18px;
  line-height: 1.65;
}

.gallery-archive-section {
  padding: 42px 0 72px;
}

.gallery-archive-tabs {
  margin-bottom: 30px;
}

.gallery-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 18px;
}

.gallery-archive-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe8f3;
  box-shadow: 0 12px 30px rgba(6, 47, 104, .12);
}

.gallery-archive-featured {
  grid-row: span 2;
}

.gallery-archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .45s ease;
}

.gallery-archive-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 32%, rgba(0, 25, 62, .82) 100%);
}

.gallery-archive-card span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #fff;
  text-align: left;
}

.gallery-archive-card em {
  color: #eba812;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-archive-card b {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
}

.gallery-archive-featured b {
  font-size: 32px;
}

.gallery-archive-card small {
  color: #dbe7f7;
  font-size: 14px;
  line-height: 1.35;
}

.gallery-archive-card:hover img {
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .gallery-archive-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-archive-featured {
    grid-column: span 2;
    grid-row: auto;
  }

}

@media (max-width: 640px) {
  .gallery-archive-hero {
    padding: 46px 0;
  }

  .gallery-archive-hero h1 {
    font-size: 34px;
  }

  .gallery-archive-section {
    padding: 32px 0 52px;
  }

  .gallery-archive-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-archive-featured {
    grid-column: auto;
  }

}
