/* Boat page: Videos tab poster wall, the shared player, and the photo slider frame. Scoped to this page's classes. */
.yv-tab-count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: #005775; color: #fff; font: 700 12px/18px "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: normal; text-align: center; vertical-align: 1px; }
.yv-tabs .tab-link.w--current .yv-tab-count { background: #fff; color: #005775; }

/* Photo slider: every photo fills the same frame; one photo needs no arrows or dots. */
.yv-slider .w-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yv-single .w-slider-arrow-left, .yv-single .w-slider-arrow-right, .yv-single .w-slider-nav { display: none; }
.yv-chip { position: absolute; top: 14px; right: 14px; z-index: 101; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px; border: 0; border-radius: 18px; background: rgba(0, 87, 117, .92); color: #fff; font: 700 14px/20px "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.yv-chip:hover, .yv-chip:focus { background: #005775; }
.yv-chip svg { width: 18px; height: 18px; }

/* Poster wall */
.yv-wall { background: #f7f3e4; padding: 16px; }
.yv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 2px 12px; font: 14px/20px "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #6f6f6e; }
.yv-head strong { font: italic 700 17px Georgia, Times, "Times New Roman", serif; color: #005775; }
.yv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.yv-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 2px; background: #1b2a31; overflow: hidden; cursor: pointer; }
.yv-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .3s ease; }
.yv-card:hover img { transform: scale(1.03); }
.yv-card::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .65)); pointer-events: none; }
.yv-card:focus-visible, .yv-chip:focus-visible, .yv-player button:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #38c3e3; }
.yv-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 58px; height: 58px; margin: -29px 0 0 -29px; border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(0, 87, 117, .88); display: flex; align-items: center; justify-content: center; transition: transform .2s ease; }
.yv-play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.yv-card:hover .yv-play { transform: scale(1.08); }
.yv-dur { position: absolute; right: 8px; top: 8px; z-index: 2; padding: 1px 7px; border-radius: 3px; background: rgba(0, 0, 0, .72); color: #fff; font: 600 13px/18px "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.yv-cap { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 2; color: #fff; font: 600 13px/17px "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }

/* Shared player */
html.yv-open, html.yv-open body { overflow: hidden; }
.yv-player { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; display: flex; flex-direction: column; background: rgba(4, 22, 30, .97); color: #fff; font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.yv-player[hidden] { display: none !important; }
.yv-bar { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); }
.yv-count { font: 600 14px "Source Sans Pro", sans-serif; color: #9fc6d4; white-space: nowrap; }
.yv-title { flex: 1; min-width: 0; font: italic 700 17px/22px Georgia, Times, "Times New Roman", serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yv-close { flex: 0 0 auto; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 48px; cursor: pointer; }
.yv-close:hover { background: rgba(255, 255, 255, .22); }
.yv-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 84px 40px; touch-action: pan-y; }
.yv-frame { position: relative; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.yv-frame video { display: block; width: 100%; height: 100%; background: #000; }
.yv-nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 52px; cursor: pointer; }
.yv-nav:hover { background: rgba(255, 255, 255, .26); }
.yv-nav:disabled { opacity: .25; cursor: default; }
.yv-prev { left: 16px; }
.yv-next { right: 16px; }
.yv-hint { position: absolute; left: 84px; right: 84px; bottom: 10px; text-align: center; font-size: 13px; line-height: 20px; color: #86a9b6; }
.yv-hint-touch { display: none; }

@media (max-width: 767px) {
    .yv-tabs > .tab-menu > .tab-link.style2 { flex: 1 1 0; width: auto; min-width: 0; padding-left: 4px; padding-right: 4px; text-align: center; }
    .yv-tab-count { margin-left: 3px; padding: 0 5px; min-width: 18px; }
    .yv-wall { padding: 10px; }
    .yv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .yv-card { aspect-ratio: 1 / 1; }
    .yv-play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
    .yv-play::before { margin-left: 4px; border-width: 9px 0 9px 15px; }
    /* Full screen on a phone: big close target, prev/next in a bottom bar. */
    .yv-player { background: #000; }
    .yv-bar { padding-left: 16px; padding-right: 8px; }
    .yv-close { width: 56px; height: 56px; line-height: 56px; font-size: 34px; }
    .yv-stage { position: static; padding: 0 0 84px; }
    .yv-frame { box-shadow: none; }
    .yv-nav { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); width: 60px; height: 56px; margin: 0; border-radius: 28px; }
    .yv-hint { left: 84px; right: 84px; bottom: max(14px, env(safe-area-inset-bottom)); line-height: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .yv-hint-keys { display: none; }
    .yv-hint-touch { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
    .yv-card img, .yv-play { transition: none; }
}
