/**
 * Göding Media — site-owned homepage hero polish
 * Scope: godingmedia.cz · body.ecs-sk-side_rail only
 * Fixes split hero: side image was inheriting full-bleed absolute positioning from .gm-hero__media
 */

body.ecs-sk-side_rail .gm-hero.gm-hero--split {
  min-height: min(78vh, 720px);
  display: block;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef4ff 52%, #e8f0ff 100%);
  color: #050a18;
}

body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-hero__inner {
  position: relative;
  z-index: 2;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  align-items: center;
  padding: clamp(2.75rem, 5.5vw, 4.75rem) 0 clamp(2.25rem, 4.5vw, 3.75rem);
}

body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-hero__copy {
  position: relative;
  z-index: 3;
}

body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-brand-mark {
  background: rgba(26, 107, 255, 0.12);
  color: #0a3dcc;
}

body.ecs-sk-side_rail .gm-hero.gm-hero--split h1 {
  max-width: 15ch;
  color: #050a18;
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-hero__text {
  max-width: 40ch;
  color: #3d4f63;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.65;
}

body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-actions {
  gap: 0.85rem;
}

body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-hero__media.gm-hero__media--side {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 24px 48px rgba(5, 10, 24, 0.1),
    0 0 0 1px rgba(26, 107, 255, 0.08);
}

body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-hero__media--side img {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 260px;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  display: block;
}

@media (max-width: 1099px) {
  body.ecs-sk-side_rail .gm-hero.gm-hero--split {
    min-height: auto;
  }

  body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 2.25rem;
  }

  body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-hero__media.gm-hero__media--side {
    order: 2;
    max-height: 220px;
  }

  body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-hero__media--side img {
    min-height: 200px;
    max-height: 220px;
  }

  body.ecs-sk-side_rail .gm-hero.gm-hero--split h1 {
    max-width: none;
  }
}

@media (max-width: 480px) {
  body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-actions .gm-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ecs-sk-side_rail .gm-hero.gm-hero--split .gm-btn:hover {
    transform: none;
  }
}
