/* Requested refinements, 05.11.2026. The country label is original copy; the
   flag is decorative and its gentle motion never moves or fades the text. */
.original-copy-hero .country-badge {
    display: inline-flex; align-items: center; gap: 13px;
    padding: 10px 17px 10px 11px; background: #fff;
    border: 1px solid #a7c8d6; border-radius: 12px;
    font-size: 16px; line-height: 1.4; color: #17485d;
    box-shadow: 0 5px 18px #17485d0b;
}
.country-flag { position: relative; display: block; width: 54px; height: 36px; flex: 0 0 54px; }
.country-flag img {
    display: block; width: 54px; height: 36px; border-radius: 3px;
    border: 1px solid #d6e0e6; box-shadow: 1px 2px 4px #17374618;
    transform-origin: left center; animation: korea-flag-wave 5s ease-in-out infinite;
}
@keyframes korea-flag-wave {
    0%,100% { transform: perspective(240px) rotateY(-8deg) rotateZ(-.6deg); }
    50% { transform: perspective(240px) rotateY(8deg) rotateZ(.8deg); }
}

/* The old flex track took the tallest off-screen slide's height, and mobile
   padding reserved 80px for overlaid arrows. Retain percentage translations
   and all seven videos, but let only the current slide contribute height.
   JS sets .is-current from the ORIGINAL active dot; no second slider index. */
.video-slider { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 0; box-shadow: none; background: transparent; border-radius: 0; }
.video-wrapper { grid-column: 1 / -1; display: block; min-height: 0; background: #edf4f7; border: 1px solid #dce8ee; border-radius: 12px; overflow: hidden; }
/* Variable-height videos switch immediately: an old translate animation would
   slide across zero-height inactive frames and briefly expose an empty stage. */
.video-track { align-items: flex-start; transition: none !important; }
.video-slide { padding: 0; align-items: flex-start; }
.video-player { width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 0; box-shadow: none; }
body.video-gallery-ready .video-slide:not(.is-current) { height: 0; overflow: hidden; }
body.video-gallery-ready .video-slide.is-current { height: auto; }
.video-slider .video-dots { grid-column: 1; grid-row: 2; align-self: center; justify-content: flex-start; margin: 0; }
body .video-slider .video-nav { position: static; transform: none; width: 46px; height: 46px; margin: 0; align-self: center; }
.video-slider .video-prev { grid-column: 2; grid-row: 2; }
.video-slider .video-next { grid-column: 3; grid-row: 2; }
body .video-slider .video-nav:active { transform: none; }
/* The upper controls are outside the moving track. Reuse the existing arrow
   palette but reset absolute positioning inherited from the original slider. */
.video-top-controls { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; }
.video-position { flex: 1; font-size: 15px; font-weight: 650; color: #43505a; }
body .video-top-controls .video-nav { position: static; transform: none; width: 46px; height: 46px; margin: 0; }
body .video-top-controls .video-nav:active { transform: none; }

/* Wide desktop footage gets a bounded stage. Mobile uses the whole content
   width and native aspect ratio, with no cropped picture or covered controls. */
@media(min-width:768px) {
    .video-player { max-height: 640px; }
    .video-slider { max-width: 920px; margin: 0 auto; }
    .video-slide { background: #132b38; }
}
@media(max-width:767px) {
    .video-section { margin-left: -8px; margin-right: -8px; }
    .video-section h2 { margin-left: 8px; margin-right: 8px; }
    .video-slider { gap: 10px; }
    .video-player { max-height: none; }
    .video-wrapper { border-radius: 10px; }
    .video-slider .video-dots { gap: 0; }
}
/* Honor the visitor's explicit OS motion preference. This animation is an
   enhancement; the original label and complete flag remain when disabled. */
@media(prefers-reduced-motion:reduce) { .country-flag img { animation: none !important; transform: none; } }
