/* Kingstin media blocks — additive; matches existing Bootstrap / primary theme */

.kstn-media-section-title {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.kstn-media-video-wrap {
  position: relative;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f8f9fa;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.kstn-media-video-wrap::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.kstn-media-video-wrap video,
.kstn-media-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kstn-media-video-wrap video {
  object-fit: contain;
  background: #111;
}

.kstn-media-caption {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.kstn-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .kstn-media-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .kstn-media-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kstn-media-grid-item {
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.kstn-media-grid-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.kstn-media-grid-item .kstn-media-video-wrap::before {
  padding-top: 75%;
}

.kstn-media-grid-item .kstn-media-video-wrap {
  border-radius: 0;
  box-shadow: none;
}

.kstn-media-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.65rem 0;
  margin: 0;
  color: #212529;
}

.kstn-media-home-featured-stack {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.kstn-media-home-featured-item {
  width: 100%;
}

.kstn-media-home-featured .kstn-media-video-wrap {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.kstn-media-home-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #f8f9fa;
}

.kstn-product-video-block {
  margin-bottom: 1.25rem;
}

.kstn-product-video-block .kstn-media-video-wrap {
  max-width: 100%;
}

.kstn-about-media-block {
  margin-bottom: 2rem;
}
