.sf-pg-gallery { display: flex; gap: 16px; max-width: 100%; margin: 0 auto; background: #fff; padding: 20px; box-sizing: border-box; overflow: hidden; }
.sf-pg-thumbs { display: flex; flex-direction: column; gap: 10px; width: 90px; max-height: 640px; overflow-y: auto; overflow-x: hidden; flex-shrink: 0; scrollbar-width: none; }
.sf-pg-thumbs::-webkit-scrollbar { width: 6px; }
.sf-pg-thumbs::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.sf-pg-thumbs:hover { scrollbar-width: thin; }
.sf-pg-thumbs:hover::-webkit-scrollbar-thumb { background: #ddd; }
.sf-pg-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color .15s ease; background: #f5f5f5; display: block; }
.sf-pg-thumb:hover { border-color: #bbb; }
.sf-pg-thumb.sf-pg-active { border-color: #1a1a1a; }
.sf-pg-main { flex: 1; display: flex; align-items: center; justify-content: center; background: #fafafa; border-radius: 8px; min-height: 400px; position: relative; min-width: 0; overflow: hidden; padding: 10px; box-sizing: border-box; }
.sf-pg-main-images { display: flex; flex-direction: row; gap: 12px; align-items: center; justify-content: center; width: 100%; height: 100%; }
.sf-pg-main-img { flex: 1 1 0; min-width: 0; max-width: 100%; max-height: 640px; width: auto; height: auto; object-fit: contain; border-radius: 8px; opacity: 1; transition: opacity .25s ease; }
.sf-pg-main-img.sf-pg-fading { opacity: 0; }
.sf-pg-main-img.sf-pg-empty { display: none; }
.sf-pg-main-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: #000; display: block; cursor: pointer; }
@media (max-width: 600px) {
  .sf-pg-main-images { flex-direction: column; }
}
.sf-pg-thumb-video-wrap { position: relative; width: 90px; height: 90px; flex-shrink: 0; }
.sf-pg-thumb-video-wrap .sf-pg-thumb { width: 100%; height: 100%; margin: 0; }
.sf-pg-thumb-video-wrap .sf-pg-play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; background: rgba(0,0,0,.55); border-radius: 50%; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.sf-pg-thumb-video-wrap .sf-pg-play-icon::after { content: ''; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
.sf-pg-video-play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; background: rgba(255,255,255,.92); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,0,0,.25); transition: transform .2s ease, background .2s ease; z-index: 2; pointer-events: none; }
.sf-pg-video-play-btn::after { content: ''; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #1a1a1a; margin-left: 4px; }
.sf-pg-main-video:hover ~ .sf-pg-video-play-btn { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.sf-pg-video-play-btn.sf-pg-hidden { display: none; }
@media (max-width: 768px) {
  .sf-pg-gallery { flex-direction: column-reverse; }
  .sf-pg-thumbs { flex-direction: row; width: 100%; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .sf-pg-thumb, .sf-pg-thumb-video-wrap { flex-shrink: 0; }
}
