/* Luxury Yachts by Liz — shared styles. Page layout lives inline in each page. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0C2236; color: #F4EFE6; }
a { color: #D2AC67; } a:hover { color: #E6C88E; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #D2AC67; outline-offset: 3px; }
select option { background: #0C2236; color: #F4EFE6; }

/* Fleet gallery */
@keyframes ybl-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
.ybl-gallery { display: flex; flex-direction: column; gap: 14px; }
.ybl-stage { position: relative; height: 580px; overflow: hidden; background: #091B2C; border: 1px solid #1F4260; }
.ybl-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; opacity: 0; transition: opacity 1.4s ease; animation: ybl-drift 16s ease-in-out infinite alternate; }
.ybl-slide.is-on { opacity: 1; }
.ybl-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,34,54,0) 55%, rgba(12,34,54,0.85) 100%); pointer-events: none; }
.ybl-hit { position: absolute; inset: 0; background: none; border: 0; padding: 0; cursor: zoom-in; }
.ybl-round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(210,172,103,0.7); background: rgba(12,34,54,0.55); color: #D2AC67; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ybl-round:hover { background: rgba(12,34,54,0.85); }
.ybl-prev, .ybl-next { position: absolute; top: 50%; transform: translateY(-50%); }
.ybl-prev { left: 20px; } .ybl-next { right: 20px; }
.ybl-count { position: absolute; left: 28px; bottom: 22px; display: flex; align-items: baseline; gap: 10px; pointer-events: none; }
.ybl-n { font-family: 'Cormorant Garamond', serif; font-size: 44px; color: #D2AC67; line-height: 1; }
.ybl-t { font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 0.2em; color: #B8C4CE; }
.ybl-full { position: absolute; right: 24px; bottom: 22px; background: rgba(12,34,54,0.55); border: 1px solid rgba(210,172,103,0.7); color: #F4EFE6; padding: 10px 16px; font: 11px 'Jost', sans-serif; letter-spacing: 0.2em; cursor: pointer; min-height: 40px; }
.ybl-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-color: #2E5576 transparent; }
.ybl-thumb { flex: 0 0 auto; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: 0.5; transition: opacity 0.3s ease; }
.ybl-thumb.is-on, .ybl-thumb:hover { opacity: 1; }
.ybl-thumb.is-on { border-color: #D2AC67; }
.ybl-thumb img { width: 104px; height: 68px; object-fit: cover; display: block; }
.ybl-empty { border: 1px dashed #2E5576; color: #7C8FA1; font: 11px 'Jost', sans-serif; letter-spacing: 0.2em; padding: 140px 16px; text-align: center; }

/* Full-screen viewer */
.ybl-lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,25,42,0.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 80px 16px 24px; }
.ybl-lb[hidden] { display: none; }
.ybl-lb-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ybl-lb-title { font: 12px 'Jost', sans-serif; letter-spacing: 0.3em; color: #D2AC67; }
.ybl-lb-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #2E5576; background: none; color: #F4EFE6; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ybl-lb-img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; display: block; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.ybl-lb-nav { display: flex; gap: 14px; }

.ybl-note { margin: 0; padding: 14px 20px; background: #12304A; border-top: 1px solid #D2AC67; color: #F4EFE6; font: 14px/1.6 'Jost', sans-serif; flex-basis: 100%; }

@media (prefers-reduced-motion: reduce) { .ybl-slide { animation: none; transition: none; } .ybl-thumb { transition: none; } }

/* Phones */
@media (max-width: 720px) {
  h1 { font-size: 46px !important; line-height: 1.06 !important; }
  h2 { font-size: 36px !important; }
  section > div, header nav, footer > div { padding-left: 16px !important; padding-right: 16px !important; }
  section > div { padding-top: 64px !important; padding-bottom: 64px !important; }
  .ybl-stage { height: 340px; }
  .ybl-n { font-size: 32px; }
  .ybl-prev { left: 10px; } .ybl-next { right: 10px; }
  .ybl-round { width: 44px; height: 44px; }
  [style*="grid-column: span 2"] { grid-column: auto !important; }
  [style*="grid-column: span 3"] { grid-column: 1 / -1 !important; }
  [style*="border-left: 1px solid #1F4260; padding-left: 40px"] { border-left: 0 !important; padding-left: 0 !important; }
}

/* Ocean & Sand: softer shapes */
body { background: #0C2236; color: #F4EFE6; }
.ybl-stage { border-radius: 22px; border: none; background: #091B2C; }
.ybl-full { border-radius: 999px; font-size: 13px; letter-spacing: 0; }
.ybl-thumb { border-radius: 12px; overflow: hidden; }
.ybl-thumb img { border-radius: 10px; }
.ybl-lb-title { letter-spacing: 0.08em; }
.ybl-note { border-radius: 14px; background: #12304A; border-top: 2px solid #D2AC67; }
select option { background: #0C2236; color: #F4EFE6; }
@media (max-width: 720px) { h1 { font-size: 44px !important; } }

/* Photo headers on phones: let them grow, and keep text readable over bright photos */
@media (max-width: 720px) {
  section[style*="position: relative; height:"] { height: auto !important; }
  section[style*="position: relative; height:"] > div[style*="position: relative; height: 100%"] { height: auto !important; padding-top: 240px !important; padding-bottom: 80px !important; }
  section[style*="position: relative; height:"] > div[style*="linear-gradient"] { background: linear-gradient(180deg, rgba(12,34,54,0.05) 0%, rgba(12,34,54,0.7) 32%, rgba(12,34,54,0.96) 100%) !important; }
}

/* Photo headers: a soft shadow keeps headlines crisp over busy photos */
section[style*="position: relative; height:"] h1,
section[style*="position: relative; height:"] p { text-shadow: 0 2px 18px rgba(8, 25, 42, 0.6); }
