/* Homepage photo protection: click once to dim and overlay the brand. */
.image-protection-frame {
  position: relative !important;
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.card-media > .image-protection-frame {
  height: 100%;
}

.image-protection-frame > img {
  display: block;
  width: 100%;
  user-select: none;
  -webkit-user-drag: none;
  transition: filter .28s ease, transform .5s ease;
}

main img.image-drag-protected {
  user-select: none;
  -webkit-user-drag: none;
}

main img.protected-certificate {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.image-protection-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.image-protection-trigger:focus-visible {
  outline: 3px solid #ef6c1f;
  outline-offset: -4px;
}

.image-protection-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  padding: 24px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
  pointer-events: none;
}

.image-protection-mark b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  font: 800 20px/1 var(--cond, sans-serif);
  letter-spacing: .04em;
  background: rgba(4, 17, 30, .34);
  backdrop-filter: blur(4px);
}

.image-protection-mark strong {
  display: block;
  font: 800 13px/1.2 var(--font, sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.image-protection-mark span {
  display: block;
  color: rgba(255, 255, 255, .82);
  font: 600 12px/1.35 var(--font, sans-serif);
  letter-spacing: .04em;
}

.image-protection-frame.is-dimmed > img {
  filter: brightness(.42) saturate(.72);
  transform: none !important;
}

.image-protection-frame.is-dimmed .image-protection-trigger {
  background: linear-gradient(180deg, rgba(4, 17, 30, .22), rgba(4, 17, 30, .52));
  cursor: default;
}

.image-protection-frame.is-dimmed .image-protection-mark {
  opacity: 1;
  visibility: visible;
}

.card-media .tag,
.gallery-4 figcaption {
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .image-protection-frame > img,
  .image-protection-mark {
    transition: none;
  }
}
