[data-client-hidden-role="true"],
[data-client-original-emblem="true"],
[data-client-hero-emblem="true"] {
  display: none !important;
}

.client-header-emblem {
  position: fixed;
  z-index: 60;
  top: 6px;
  left: 50%;
  display: flex;
  height: 56px;
  align-items: center;
  gap: 0.55rem;
  transform: translateX(-50%);
  pointer-events: none;
  color: #f8fafc;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.client-header-emblem img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.client-header-emblem span {
  display: grid;
  gap: 0.22rem;
  white-space: nowrap;
}

.client-header-emblem i {
  display: block;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, #ff9933 0 33%, #f8fafc 33% 66%, #138808 66%);
}

.client-header-emblem b {
  color: #ff9933;
  font: 700 0.82rem/1.1 "Noto Sans Devanagari", Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.client-header-emblem[data-header-tone="light"] {
  color: #0f172a;
  filter: none;
}

.client-header-emblem[data-header-tone="light"] i {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

section[aria-label="Latest social feeds"] .snap-start::before {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  border: 1px solid rgba(83, 176, 255, 0.16);
  border-radius: 0.2rem;
  background-color: #102a50;
  background-position: center;
  background-size: cover;
  content: "";
}

section[aria-label="Latest social feeds"] .snap-start:nth-child(1)::before { background-image: url("/assets/gallery/pbd-2025-01.jpg"); }
section[aria-label="Latest social feeds"] .snap-start:nth-child(2)::before { background-image: url("/assets/gallery/honours-01.jpg"); }
section[aria-label="Latest social feeds"] .snap-start:nth-child(3)::before { background-image: url("/assets/gallery/pbd-2025-03.jpg"); }
section[aria-label="Latest social feeds"] .snap-start:nth-child(4)::before { background-image: url("/assets/gallery/honours-02.jpg"); }
section[aria-label="Latest social feeds"] .snap-start:nth-child(5)::before { background-image: url("/assets/gallery/pbd-2025-05.jpg"); }
section[aria-label="Latest social feeds"] .snap-start:nth-child(6)::before { background-image: url("/assets/gallery/honours-03.jpg"); }

.client-blog-image,
[data-client-blog-image="true"] {
  background: #e8eef6;
}

[data-client-blog-image="true"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

a[href^="/blog/"] div:has(> [data-client-blog-image="true"]) {
  width: clamp(12rem, 22vw, 14rem) !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex: 0 0 auto;
}

.react-photo-album--masonry {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem !important;
  align-items: stretch !important;
}

.react-photo-album--track {
  display: contents !important;
}

main button[data-album-caption],
button.react-photo-album--button[data-album-caption] {
  position: relative;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.2rem;
  background: #e8eef6;
}

main button[data-album-caption] img,
button.react-photo-album--button[data-album-caption] img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  image-rendering: auto;
}

main button[data-album-caption]::after,
button.react-photo-album--button[data-album-caption]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(transparent, rgba(6, 19, 38, 0.92));
  color: #fff;
  content: attr(data-album-caption);
  font: 600 0.72rem/1.35 Inter, system-ui, sans-serif;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.client-site-credit {
  position: absolute;
  z-index: 3;
  right: max(1rem, calc((100vw - 80rem) / 2));
  bottom: 2.5rem;
  color: rgba(197, 211, 230, 0.82);
  font: 500 0.72rem/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 162, 39, 0.45);
}

.client-site-credit:hover,
.client-site-credit:focus-visible {
  color: #e8c766;
  border-color: #e8c766;
}

@media (max-width: 767px) {
  .react-photo-album--masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-header-emblem {
    top: 7px;
    gap: 0.2rem;
  }

  .client-header-emblem img {
    width: 38px;
    height: 38px;
  }

  .client-header-emblem span {
    display: none;
  }

  .client-site-credit {
    right: 1rem;
    bottom: 1.3rem;
  }
}

@media (max-width: 359px) {
  header a[aria-label="Home"] span:first-child {
    font-size: 0.72rem !important;
  }

  header a[aria-label="Home"] span:last-child {
    font-size: 0.48rem !important;
  }

  .client-header-emblem img {
    width: 28px;
    height: 28px;
  }
}
