/* =========================================================
   lyb.css
   Load Ya Boat case study (Dreamweaver-safe)
   ========================================================= */

.lyb-intro{
  margin-top: 6px;
  margin-bottom: 18px;
}

.lyb-intro-top{
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lyb-client-logo{
  width: 180px;
  height: auto;
  display: block;
}

.lyb-client-meta{
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0.88;
}

.lyb-meta-line{ margin-bottom: 2px; }

.lyb-lead{
  margin: 0 0 10px;
  max-width: 880px;
}

.lyb-block{ padding-top: 4px; padding-bottom: 6px; }

.lyb-kicker{
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.65;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.lyb-copy{
  margin: 10px 0 12px;
  max-width: 900px;
}

/* Feature boxes (video + packaging) */
.lyb-feature{ margin: 0; }
.lyb-feature-box{
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #101114;
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}
.lyb-feature-box:before{
  content:"";
  display: block;
  padding-top: 56.25%;
}
.lyb-feature-img{
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lyb-play{
  position: absolute;
  left: 16px;
  top: 16px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
}
.lyb-play:before{
  content:"";
  position: absolute;
  left: 21px;
  top: 17px;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgba(255,255,255,0.88);
}

.lyb-note{
  margin: 10px 0 0;
  opacity: 0.78;
  font-size: 0.95em;
  max-width: 920px;
}

/* Four-column outputs */
.lyb-four{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}

.lyb-card{
  width: calc(25% - 14px);
}

.lyb-thumb{
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #101114;
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}
.lyb-thumb:before{
  content:"";
  display: block;
  padding-top: 72%;
}
.lyb-thumb-img{
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lyb-h4{
  margin: 10px 0 6px;
  font-size: 14px;
  font-weight: 900;
}

.lyb-small{
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 980px){
  .lyb-card{ width: calc(50% - 9px); }
}
@media (max-width: 700px){
  .lyb-card{ width: 100%; }
}

/* ---------------------------------------------------------
   MODAL CSS (copied from your working pages)
--------------------------------------------------------- */

.img-modal{
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: none;
}
.img-modal.is-open{ display: block; }

.img-modal__backdrop{
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.82);
}

.img-modal__panel{
  position: absolute;
  left: 50%; top: 50%;
  width: 92%;
  max-width: 980px;
  transform: translate(-50%, -50%);
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
}

.img-modal__close{
  position: absolute;
  right: 10px; top: 8px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: red;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
  z-index: 50;
}

.img-modal__figure{ margin: 0; }

.img-modal__img{
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
}

.img-modal__caption{
  margin-top: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.4;
}

.vid-modal{
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  display: none;
}
.vid-modal.is-open{ display: block; }

.vid-modal__backdrop{
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.82);
}

.vid-modal__panel{
  position: absolute;
  left: 50%; top: 50%;
  width: 92%;
  max-width: 980px;
  transform: translate(-50%, -50%);
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.65);
}

.vid-modal__close{
  position: absolute;
  right: 10px; top: 8px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
  z-index: 50;
}

.vid-modal__wrap{
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(0,0,0,0.25);
}
.vid-modal__wrap iframe{
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
}

.vid-modal__caption{
  margin-top: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.4;
}

.modal-lock{ overflow: hidden; }

/* =========================================================
   Packaging mock-up: natural height (no fixed ratio box)
   ========================================================= */

.lyb-pack{ margin: 0; }

.lyb-pack-box{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  padding: 18px;              /* stops it feeling stuck to edges */
}

.lyb-pack-img{
  display: block;
  width: 100%;
  height: auto;               /* KEY: let the image define height */
}

/* =========================================================
   Intro 2-column layout
   ========================================================= */

.lyb-intro2{
  display: flex;
  gap: 26px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 6px;
  margin-bottom: 18px;
}

.lyb-intro-left{
  width: 320px;              /* fixed-ish column */
  max-width: 100%;
}

.lyb-intro-right{
  flex: 1;
  min-width: 280px;
}

.lyb-client-logo{
  width: 220px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.lyb-client-meta{
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0.88;
}

.lyb-lead{ margin: 0 0 10px; }

/* =========================================================
   Feature blocks: reduce dominance
   - centers and constrains width
   ========================================================= */

.lyb-feature,
.lyb-pack{
  max-width: 860px;          /* << main control */
  margin-left: auto;
  margin-right: auto;
}

/* If you're using the fixed-ratio feature box */
.lyb-feature-box{
  border-radius: 14px;
}

/* If you're using the natural-height packaging box */
.lyb-pack-box{
  padding: 14px;             /* slightly tighter */
}

/* Optional: slightly smaller section spacing */
.lyb-block{ padding-top: 2px; padding-bottom: 4px; }

/* =========================================================
   Video sizing + breathing room
   ========================================================= */

.lyb-feature{
  max-width: 740px;          /* slightly smaller than before */
  margin: 18px auto 22px;    /* top / sides / bottom spacing */
}

/* Optional: if you want the play card itself a touch softer */
.lyb-feature-box{
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.lyb-feature-img{
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

