/* ===== Images Styles — Tennis Ergebnisse Pillar ===== */

/* -- Article figures -- */
article figure,
section figure,
[data-content] figure {
  margin: 2rem 0;
  padding: 0;
  max-width: 100%;
}

[data-content] figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius, 6px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04));
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-content] figure img:hover {
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04));
}

[data-content] figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-secondary, #616161);
  font-style: italic;
}

/* -- Hero image overrides -- */
[data-content="hero"] figure {
  margin: 2rem auto 0;
  max-width: var(--content-width, 740px);
}

[data-content="hero"] figure img {
  width: 1200px;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius, 6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

[data-content="hero"] figure img:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

[data-content="hero"] figcaption {
  color: rgba(255,255,255,0.6);
  font-style: italic;
  text-align: center;
}

/* -- Responsive adjustments -- */
@media (max-width: 768px) {
  [data-content] figure {
    margin: 1.5rem 0;
  }

  [data-content] figure img {
    border-radius: calc(var(--radius, 6px) / 2);
  }

  [data-content] figcaption {
    font-size: 0.75rem;
    padding: 0 0.25rem;
  }
}

/* -- Dark mode adjustments -- */
@media (prefers-color-scheme: dark) {
  [data-content] figure img {
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.15);
  }

  [data-content] figure img:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2);
  }

  [data-content="hero"] figure img {
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  }

  [data-content="hero"] figure img:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  }
}
