/* Social Remote Gallery V124 frame fix: remove dark outer frame so only tiles/photos remain visible. */
.nr-story-body .gtv-remote-gallery-wrap {
    max-width: 100%;
    width: 100%;
    margin: 25px 0;
    container-type: inline-size;
}

.nr-story-body .gtv-remote-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: 0;
    background: transparent;
    color: #fff;
}

.nr-story-body .gtv-remote-tile {
    box-sizing: border-box;
    display: block;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;
    background: transparent;
    border: 0;
    border-radius: 2px;
    text-decoration: none;
    color: #fff;
}

.nr-story-body .gtv-remote-tile .gtv-remote-photo {
    box-sizing: border-box;
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity .18s ease, transform .2s ease;
}

.nr-story-body .gtv-remote-tile.is-ready .gtv-remote-photo { opacity: 1; }
.nr-story-body .gtv-remote-tile:hover.is-ready .gtv-remote-photo { transform: scale(1.025); }

.nr-story-body .gtv-remote-tile .gtv-remote-photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: #ddd3f3;
    background: linear-gradient(135deg, #302340, #23232c);
    padding: 18px;
    font: 600 15px/1.4 system-ui, sans-serif;
}

.nr-story-body .gtv-remote-tile .gtv-remote-photo-fallback small {
    font: 400 12px/1.5 system-ui, sans-serif;
    color: #c4b8d5;
}

.nr-story-body .gtv-remote-tile.is-ready .gtv-remote-photo-fallback { display: none; }
.nr-story-body .gtv-remote-tile.is-unavailable .gtv-remote-photo-fallback small { font-size: 13px; }

.nr-story-body .gtv-remote-icon {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 1px 4px #000c);
    z-index: 2;
    color: white;
}

.nr-story-body .gtv-remote-icon svg { width: 27px; height: 27px; }
.nr-story-body .gtv-remote-icon b { font: bold 29px/1 system-ui, sans-serif; color: #fff; }

.nr-story-body .gtv-remote-caption {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    padding: 7px 9px;
    max-width: calc(100% - 20px);
    border-radius: 6px;
    background: #17161acc;
    color: white;
    overflow-wrap: anywhere;
    text-align: right;
    font: 500 13px/1.35 system-ui, sans-serif;
}

.nr-story-body .gtv-remote-tile:focus-visible { outline: 3px solid #9657ff; outline-offset: 3px; }

@container (max-width: 650px) {
    .nr-story-body .gtv-remote-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 400px) {
    .nr-story-body .gtv-remote-gallery { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 480px) {
    .nr-story-body .gtv-remote-gallery { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .nr-story-body .gtv-remote-tile .gtv-remote-photo { transition: none; }
}
