/* Australia Awards Africa — brand image viewer ("Navy + mount") */

html.aal-lock { overflow: hidden; }

/* Content images made clickable by the script (no anchor of their own). */
img.aal-zoomable { cursor: zoom-in; }
img.aal-zoomable:focus-visible { outline: 3px solid #FFA100; outline-offset: 2px; }

.aal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: linear-gradient(180deg, #003150 0%, #00253d 100%);
  color: #fff;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  box-sizing: border-box;
}
.aal--open { display: grid; }
.aal *, .aal *::before, .aal *::after { box-sizing: border-box; }

.aal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}
.aal__eyebrow {
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C1E2E5;
}
.aal__actions { display: flex; align-items: center; gap: 8px; }

.aal__btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .18s, color .18s, border-color .18s;
}
.aal__btn:hover, .aal__btn:focus-visible { background: #fff; color: #003150; border-color: #fff; }
.aal__btn--icon { width: 40px; padding: 0; justify-content: center; font-size: 15px; letter-spacing: 0; }
.aal__icon { width: 10px; height: 12px; fill: currentColor; }

.aal__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 76px;
}
.aal__img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .55);
}

.aal__nav {
  all: unset;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  font: 300 26px/1 "Times New Roman", Times, serif;
  transition: background .18s, color .18s, border-color .18s;
}
.aal__nav--prev { left: 14px; }
.aal__nav--next { right: 14px; }
.aal__nav:hover, .aal__nav:focus-visible { background: #fff; color: #003150; border-color: #fff; }

.aal__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px 0;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.aal__cap {
  margin: 0;
  font: 400 21px/1.3 "Times New Roman", Times, serif;
  color: #fff;
}
.aal__count {
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .18em;
  color: #3CB6CE;
  white-space: nowrap;
}

.aal__thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 18px 24px 22px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.aal__thumbs button {
  all: unset;
  cursor: pointer;
  flex: 0 0 auto;
  width: 74px;
  height: 54px;
  opacity: .5;
  transition: opacity .18s;
}
.aal__thumbs button:hover { opacity: .85; }
.aal__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px #3CB6CE; }
.aal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.aal :focus-visible { outline: 3px solid #FFA100; outline-offset: 2px; }

@media (max-width: 700px) {
  .aal__nav { display: none; }
  .aal__stage { padding: 0 14px; }
  .aal__cap { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .aal, .aal * { transition: none !important; animation: none !important; }
}
