/* Cache-busted social mockup correction and Instagram-style post layout. */

.service-visual--social.service-visual--portfolio { min-height: 700px; }
.service-visual--social .phone {
  width: 245px;
  height: 490px;
  aspect-ratio: auto;
  margin-top: 0;
  overflow: hidden;
  transform: rotate(1deg);
}
.service-visual--social .social-profile {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.service-visual--social .social-top {
  height: 34px;
  flex: 0 0 34px;
  padding: 4px 15px 0;
  font-size: .48rem;
}
.social-status-icons { display: flex; align-items: center; gap: 4px; }
.social-status-icons i:first-child { width: 9px; height: 7px; border-left: 2px solid #25231f; border-bottom: 2px solid #25231f; transform: skew(-10deg); }
.social-status-icons i:nth-child(2) { width: 9px; height: 7px; border: 1.5px solid #25231f; border-radius: 50% 50% 0 0; border-bottom: 0; }
.social-status-icons b { width: 12px; height: 7px; position: relative; border: 1px solid #25231f; border-radius: 2px; }
.social-status-icons b::after { content: ""; position: absolute; inset: 1px; width: 7px; background: #25231f; border-radius: 1px; }

.instagram-post-header {
  height: 50px;
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-top: 1px solid #f0ede8;
  border-bottom: 1px solid #eeeae4;
}
.instagram-post-header > img { width: 32px; height: 32px; padding: 2px; border: 1.5px solid #c9a253; border-radius: 50%; object-fit: cover; }
.instagram-post-header > div { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.instagram-post-header strong { overflow: hidden; color: #24211e; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.instagram-post-header small { color: #8e867d; font-size: .4rem; }
.instagram-post-header button { padding: 0; border: 0; background: transparent; color: #2c2925; font-size: .7rem; letter-spacing: .08em; }

.instagram-carousel { position: relative; height: 224px; flex: 0 0 224px; overflow: hidden; color: white; background: #596257; }
.instagram-carousel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,28,24,.04), rgba(25,28,24,.76)); }
.instagram-carousel > img { width: 100%; height: 100%; object-fit: cover; }
.instagram-carousel__count { position: absolute; z-index: 3; right: 9px; top: 9px; padding: 3px 7px; border-radius: 999px; background: rgba(20,19,17,.7); color: white; font-size: .42rem; font-weight: 700; }
.instagram-carousel__copy { position: absolute; z-index: 2; left: 15px; right: 15px; bottom: 15px; display: flex; flex-direction: column; align-items: flex-start; }
.instagram-carousel__copy small { margin-bottom: 5px; color: #f0d89d; font-size: .39rem; font-weight: 700; letter-spacing: .16em; }
.instagram-carousel__copy strong { max-width: 185px; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: .93; text-shadow: 0 3px 15px rgba(0,0,0,.26); }
.instagram-carousel__copy span { margin-top: 8px; font-size: .4rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.instagram-actions { height: 38px; flex: 0 0 38px; display: flex; align-items: center; justify-content: space-between; padding: 5px 10px 2px; color: #24211e; }
.instagram-actions > div { display: flex; align-items: center; gap: 11px; }
.instagram-actions span { width: 18px; height: 18px; display: block; }
.instagram-actions svg, .instagram-bottom-nav svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.instagram-dots { height: 8px; flex: 0 0 8px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.instagram-dots i { width: 4px; height: 4px; border-radius: 50%; background: #d7d2cb; }
.instagram-dots i:first-child { background: #4e88bd; }
.instagram-caption { flex: 1 1 auto; min-height: 74px; padding: 3px 11px 5px; overflow: hidden; color: #292622; font-size: .44rem; line-height: 1.4; }
.instagram-caption > strong { display: block; margin-bottom: 2px; font-size: .45rem; }
.instagram-caption p { margin: 0; color: #3a3631; font-size: .43rem; line-height: 1.45; }
.instagram-caption p b { font-weight: 700; }
.instagram-caption p span, .instagram-caption small { color: #918980; }
.instagram-caption small { display: block; margin-top: 2px; font-size: .4rem; }
.instagram-bottom-nav { height: 38px; flex: 0 0 38px; display: flex; align-items: center; justify-content: space-around; padding: 6px 10px; border-top: 1px solid #eeeae4; color: #282521; }
.instagram-bottom-nav svg { width: 18px; height: 18px; }
.instagram-bottom-nav span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #bd9a55, #6c786d); color: white; font-family: var(--serif); font-size: .62rem; }

@media (max-width: 560px) {
  .service-visual--social.service-visual--portfolio { min-height: 625px; }
  .service-visual--social .phone { width: min(218px, 74vw); height: min(436px, 148vw); }
  .instagram-carousel { height: 197px; flex-basis: 197px; }
  .instagram-carousel__copy strong { font-size: 1.38rem; }
  .instagram-post-header { height: 46px; flex-basis: 46px; }
  .instagram-caption { min-height: 66px; }
  .instagram-bottom-nav { height: 34px; flex-basis: 34px; }
}

