/**
 * File: single.css
 * Usage: single.php(投稿の個別ページ)のスタイルを定義します。
*/

.ly_post {
  padding-inline: 20px;
  min-height: 100svh;
}

.wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
  padding-inline: 0;
  padding-top: 20px;
}

.ly_postHeader {
  aspect-ratio: 375 / 225;
  position: relative;
  border-block: 12px solid var(--color, #fbc723);
}

.ly_postHeader > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bl_postHeader {
  position: absolute;
  padding: 16px 10px 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 624 / 312;
  width: 98vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.bl_postHeader > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bl_postHeader > svg path {
  stroke: var(--color, #fbc723);
}

.bl_postHeader h1 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.5rem, 1.05rem + 2.25vw, 3.75rem);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.bl_postHeader h1 span {
  width: clamp(1.5625rem, 1.25rem + 1.5625vw, 3.125rem);
  height: auto;
}

.bl_postHeader p {
  font-size: clamp(1rem, 0.85rem + 0.75vw, 1.75rem);
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 600px) {
  .ly_postHeader {
    min-height: 415px;
  }

  .bl_postHeader > svg {
    width: 50vw;
    max-width: 624px;
    height: auto;
    max-height: 312px;
  }
}

@media screen and (min-width: 768px) {
  .ly_post {
    margin-block: 80px;
    max-width: 1200px;
    margin-inline: auto;
  }

  .wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__content {
    padding-inline: 20px;
    padding-top: 0;
  }
}

@media screen and (min-width: 1060px) {
  .ly_postHeader {
    aspect-ratio: 1920 / 500;
    min-height: unset;
  }

  .ly_postHeader > img {
    object-position: center 75%;
  }

  .bl_postHeader {
    aspect-ratio: unset;
  }

  .bl_postHeader > svg {
    width: 40vw;
  }
}

@media screen and (min-width: 1600px) {
  .ly_post {
    max-width: 1500px;
  }
}
