/* Cinematic ffoto links: unchanged links/content, no decoration at rest. */
body.cna-photo-effects a.cna-ffoto-link {
  --cna-ffoto-inset: clamp(16px, 1.5vw, 26px);
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--cna-radius, 7px);
  transform: none !important;
  line-height: 0;
}
body.cna-photo-effects a.cna-ffoto-link img {
  display: block;
  width: 100%;
  height: auto !important;
  border-radius: inherit;
  transform: scale(1) !important;
  transform-origin: center;
  translate: none !important;
  scale: none !important;
  transition: transform 300ms ease !important;
}
/* Preserve the original columns' 10px gap outside the clipped photograph. */
body.cna-photo-effects .wp-block-column a.cna-ffoto-link { margin-bottom: 10px !important; }
body.cna-photo-effects .wp-block-column a.cna-ffoto-link img { margin-bottom: 0 !important; }
body.cna-photo-effects a.cna-ffoto-link::before {
  content: '' !important;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: inherit;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 30%, rgba(10, 15, 12, .75) 100%) !important;
  opacity: 0;
  transition: opacity 300ms ease !important;
  -webkit-mask: none !important;
  mask: none !important;
  z-index: 1;
}
body.cna-photo-effects a.cna-ffoto-link::after { content: none !important; }
body.cna-photo-effects a.cna-ffoto-link .cna-ffoto-caption {
  position: absolute;
  inset: auto var(--cna-ffoto-inset) var(--cna-ffoto-inset);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms ease;
  text-align: left;
}
body.cna-photo-effects a.cna-ffoto-link .cna-ffoto-caption span {
  display: block;
  color: #FFFFFF !important;
  font-family: var(--cna-sans, 'CNA Jost', Jost, Arial, sans-serif) !important;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .317), 0 0 6px rgba(0, 0, 0, .3), 0 2px 12px rgba(0, 0, 0, .233);
  overflow-wrap: anywhere;
}
body.cna-photo-effects a.cna-ffoto-link .cna-ffoto-name {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .1em;
}
body.cna-photo-effects a.cna-ffoto-link .cna-ffoto-cta {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
}
body.cna-photo-effects a.cna-ffoto-link.cna-touch-active::before { opacity: 1; transition: none !important; }
body.cna-photo-effects a.cna-ffoto-link.cna-touch-active .cna-ffoto-caption { opacity: 1; transform: translateY(0); transition: none !important; }
body.cna-photo-effects a.cna-ffoto-link.cna-touch-active img { transform: scale(1.03) !important; transition: none !important; }
body.cna-photo-effects a.cna-ffoto-link:focus-visible::before { opacity: 1; }
body.cna-photo-effects a.cna-ffoto-link:focus-visible .cna-ffoto-caption { opacity: 1; transform: translateY(0); }
body.cna-photo-effects a.cna-ffoto-link:focus-visible img { transform: scale(1.03) !important; }
body.cna-photo-effects a.cna-ffoto-link:focus-visible { outline: 3px solid #D58B2F !important; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  body.cna-photo-effects a.cna-ffoto-link:hover::before { opacity: 1; }
  body.cna-photo-effects a.cna-ffoto-link:hover .cna-ffoto-caption { opacity: 1; transform: translateY(0); }
  body.cna-photo-effects a.cna-ffoto-link:hover img { transform: scale(1.03) !important; }
}
/* Suppress old ffoto decorations without touching stored Gutenberg markup. */
body.cna-photo-effects .cna-ffoto-legacy::before,
body.cna-photo-effects .cna-ffoto-legacy::after,
body.cna-photo-effects a.cna-ffoto-link .ffoto-container::before,
body.cna-photo-effects a.cna-ffoto-link .ffoto-container::after { content: none !important; }
@media (prefers-reduced-motion: reduce) {
  body.cna-photo-effects a.cna-ffoto-link.cna-touch-active img { transform: none !important; }
  body.cna-photo-effects a.cna-ffoto-link img,
  body.cna-photo-effects a.cna-ffoto-link::before,
  body.cna-photo-effects a.cna-ffoto-link .cna-ffoto-caption {
    transition: none !important;
    transform: none !important;
  }
}
