/* Existing motion rules in top.css are intentionally unchanged. */
.gbb-js #loader-bg,
.gbb-js #loader { display: block; }
html:not(.gbb-js) .wrap { display: block; }
html:not(.gbb-js) .mainImg,
html:not(.gbb-js) .sellArea,
html:not(.gbb-js) .buyArea { transform: none; opacity: 1; }

/* Keep the original intrinsic layout while srcset changes the downloaded size. */
.mainImg { width: 1640px; max-width: 100%; }
.gbb-sized-image { aspect-ratio: var(--gbb-image-ratio); object-fit: contain; }
@media screen and (max-width: 768px) {
    .mainImg { width: 709px; }
    .gbb-sized-image { aspect-ratio: var(--gbb-mobile-ratio); }
}

.gbb-video-preview {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    background: #000;
    border-radius: inherit;
}
.gbb-video-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gbb-video-preview picture { display: contents; }
.p-top-honne__article__video .gbb-video-preview { border-radius: var(--border-radius-s); }
.gbb-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border-radius: 14px;
    background: #f00;
}
.gbb-video-play::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 28px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid #fff;
}
.gbb-video-preview:focus-visible { outline: 3px solid #007bc5; outline-offset: 4px; }
