
/* OlyLife Home Refresh v3.2 — styling only; Home content is rendered by PHP source. */

.olylife-guidance-entry {
  padding-top: 42px;
  padding-bottom: 42px;
}
.olylife-guidance-entry-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid var(--line, #e7e2da);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 38, 31, 0.05);
}
.olylife-guidance-entry-copy {
  max-width: 760px;
}
.olylife-guidance-entry-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
}
.olylife-guidance-entry-copy p {
  margin: 0;
  color: var(--muted, #66645f);
  line-height: 1.65;
}

.olylife-guidance-page-v27 {
  padding: 18px 0 30px;
}
.olylife-guidance-heading {
  max-width: 820px;
  margin-bottom: 34px;
}
.olylife-guidance-heading h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.06;
  margin: 10px 0 16px;
}
.olylife-guidance-heading p {
  color: var(--muted, #66645f);
  font-size: 17px;
  line-height: 1.7;
}
.olylife-scheme-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.olylife-scheme-item {
  border: 1px solid var(--line, #e7e2da);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 38, 31, 0.06);
}
.olylife-scheme-link {
  display: block;
  padding: 18px;
  background: linear-gradient(180deg, #fbf9f5 0%, #f3efe8 100%);
}
.olylife-scheme-link img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
}
.olylife-scheme-meta {
  padding: 20px 22px 24px;
}
.olylife-scheme-meta h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.olylife-scheme-meta p {
  margin: 0 0 14px;
  color: var(--muted, #66645f);
  line-height: 1.6;
}
.olylife-scheme-open {
  font-weight: 700;
  text-decoration: none;
}
.olylife-guidance-disclaimer {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid var(--line, #e7e2da);
  border-radius: 16px;
  background: #f8f5ef;
  line-height: 1.65;
}
.olylife-guidance-back {
  margin-top: 26px;
}


.olylife-lightbox-open {
  overflow: hidden;
}
.olylife-scheme-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(10, 18, 14, 0.94);
  padding: 0;
}
.olylife-lightbox-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(20, 31, 25, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.olylife-lightbox-toolbar button {
  min-width: 42px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 9px;
  background: #fff;
  color: #173d2d;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.olylife-lightbox-toolbar button:hover {
  background: #f2efe9;
}
.olylife-lightbox-toolbar .olylife-lightbox-close {
  margin-left: 8px;
  font-size: 29px;
  line-height: 1;
}
.olylife-lightbox-zoom {
  min-width: 58px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.olylife-lightbox-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px;
  touch-action: none;
  cursor: default;
}
.olylife-lightbox-stage.is-zoomed {
  cursor: grab;
}
.olylife-lightbox-stage.is-dragging {
  cursor: grabbing;
}
.olylife-lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 94px);
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  background: #fff;
  will-change: transform;
}
@media (max-width: 900px) {
  .olylife-guidance-entry-inner {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .olylife-guidance-entry-action {
    justify-self: start;
  }
  .olylife-scheme-gallery {
    grid-template-columns: 1fr;
  }
  .olylife-scheme-link img {
    height: auto;
    max-height: 72vh;
  }
}


/* v3.5 product local names + responsive YouTube video blocks */
.product-local-name {
  margin: -2px 0 10px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--muted, #66645f);
}
.olylife-video-section {
  padding-top: 22px;
  padding-bottom: 54px;
}
.olylife-video-heading {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
}
.olylife-video-heading h2,
.olylife-video-heading h3 {
  margin: 7px 0 0;
}
.olylife-video-frame {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  box-shadow: 0 18px 48px rgba(24, 38, 31, 0.12);
}
.olylife-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.olylife-gallery-video {
  margin: 34px 0 8px;
}
@media (max-width: 700px) {
  .olylife-video-section { padding-top: 10px; padding-bottom: 38px; }
  .olylife-video-frame { border-radius: 14px; }
}
