/*
Theme Name: ksgr1
Description: JSTORK child theme managed by project_sc.
Template: jstork
Version: 1.1.0
Text Domain: ksgr1
*/

/*
 * Add project-specific CSS below this comment.
 * Keep the parent JSTORK theme unchanged so its updates remain available.
 */
.sc-product-card {
  margin-block: 1.5rem;
}

.sc-product-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.sc-product-info-box {
  margin-block: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  background: #fafafa;
}

.sc-product-info-box .sc-product-details {
  margin-block: 0;
}

.sc-product-details {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 0.5rem 1rem;
  margin-block: 1.5rem;
}

.sc-product-details dt {
  font-weight: 700;
}

.sc-product-details dd {
  margin: 0;
}

.sc-affiliate-cta a {
  display: block;
  padding: 0.9rem 1.2rem;
  border-radius: 0.4rem;
  color: #fff;
  background: #d63b32;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.sc-affiliate-cta a:hover,
.sc-affiliate-cta a:focus {
  color: #fff;
  filter: brightness(0.9);
}

.sc-sample-movie-section {
  margin-block: 2rem;
}

.sc-sample-movie-player {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
}

.sc-sample-movie-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.sc-product-description,
.sc-sample-gallery-section {
  margin-block: 2rem;
}

.sc-product-description h2,
.sc-sample-gallery-section h2 {
  margin-bottom: 1rem;
}

.sc-product-description-text {
  line-height: 1.9;
  white-space: normal;
}

.sc-sample-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sc-sample-image-item {
  margin: 0;
}

.sc-sample-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
}

@media (max-width: 480px) {
  .sc-sample-gallery {
    grid-template-columns: 1fr;
  }

  .sc-product-details {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .sc-product-details dd {
    margin-bottom: 0.7rem;
  }
}

/* Product promotion card rendered by [project_sc_product_info]. */
.article_area .article_contents .article_pr_video,
.article_pr_video {
  position: relative;
  box-sizing: border-box;
  width: 90%;
  margin: 30px auto 40px;
  padding: 0 0 20px;
  border: 1px solid #f1f1f1;
  box-shadow: 0 0 12px #f1f1f1;
  border-radius: 12px;
}

.article_area .article_contents .article_pr_video .article_pr_video_photo,
.article_pr_video .article_pr_video_photo {
  position: relative;
  margin-bottom: 10px;
  text-align: center;
}

.article_area .article_contents .article_pr_video .article_pr_video_detail,
.article_pr_video .article_pr_video_detail {
  width: 84%;
  margin: 0 auto;
  text-align: center;
}

.article_area .article_contents .article_pr_video .article_pr_video_detail p.article_pr_video_detail_title,
.article_pr_video .article_pr_video_detail p.article_pr_video_detail_title {
  margin-bottom: 6px;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
}

.article_area .article_contents .article_pr_video .article_pr_video_detail p,
.article_pr_video .article_pr_video_detail p {
  margin: 0;
  font-size: 12px;
}

.article_area .article_contents .article_pr_video .article_pr_video_detail p a,
.article_pr_video .article_pr_video_detail p a {
  text-decoration: underline;
}

.article_area .article_contents .article_pr_video .article_pr_video_detail p.article_pr_video_date,
.article_pr_video .article_pr_video_detail p.article_pr_video_date {
  margin-bottom: 20px;
}
/* Full-width random feature selected from posts tagged "special". */
.post-list-magazine > article.ksgr1-special-feature,
.magazine-wrap > article.ksgr1-special-feature {
  position: relative;
  box-sizing: border-box;
  float: none !important;
  clear: both;
  width: 100% !important;
  margin: 0 0 32px !important;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-list-magazine > article.ksgr1-special-feature::before,
.magazine-wrap > article.ksgr1-special-feature::before {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: #d63b32;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  content: "SPECIAL";
}

.post-list-magazine > article.ksgr1-special-feature > a,
.magazine-wrap > article.ksgr1-special-feature > a {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr);
  align-items: stretch;
  color: inherit;
  text-decoration: none;
}

.post-list-magazine > article.ksgr1-special-feature > a > img,
.magazine-wrap > article.ksgr1-special-feature > a > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 430px;
  margin: 0;
  object-fit: cover;
}

.post-list-magazine > article.ksgr1-special-feature .entry-content,
.magazine-wrap > article.ksgr1-special-feature .entry-content {
  box-sizing: border-box;
  align-self: center;
  padding: 32px;
}

.post-list-magazine > article.ksgr1-special-feature .description,
.magazine-wrap > article.ksgr1-special-feature .description {
  display: block !important;
}

.post-list-magazine > article.ksgr1-special-feature .description p,
.magazine-wrap > article.ksgr1-special-feature .description p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

@media (max-width: 767px) {
  .post-list-magazine > article.ksgr1-special-feature > a,
  .magazine-wrap > article.ksgr1-special-feature > a {
    grid-template-columns: 1fr;
  }

  .post-list-magazine > article.ksgr1-special-feature > a > img,
  .magazine-wrap > article.ksgr1-special-feature > a > img {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

  .post-list-magazine > article.ksgr1-special-feature .entry-content,
  .magazine-wrap > article.ksgr1-special-feature .entry-content {
    padding: 22px;
  }
}
