/* Shared review arrows sit inside the gallery image edges. */
.figma-design .rk-gallery-frame { position: relative; min-width: 0; isolation: isolate; flex: none; }
.figma-design .rk-gallery-frame > .rk-gallery-arrow { opacity: 0; pointer-events: none; transition: opacity .2s; padding: 0; border: 0; }
.figma-design .rk-gallery-frame:hover > .rk-gallery-arrow,
.figma-design .rk-gallery-frame:focus-within > .rk-gallery-arrow { opacity: 1; pointer-events: auto; }
.figma-design .rk-gallery-arrow.rk-review-prev { left: var(--inset); right: auto; }
.figma-design .rk-gallery-arrow.rk-review-next { right: var(--inset); left: auto; }
.figma-design .rk-gallery-arrow .rk-arrow-mark { position: absolute; width: 19px; height: 15px; left: 12px; top: 14px; aspect-ratio: auto; object-fit: fill; border-radius: 0; }
.figma-design .rk-gallery-frame[data-rk-gallery-kind$="modal"] > img { width: 100%; height: 74svh; object-fit: contain; }
.figma-design .rk-gallery-frame[data-rk-gallery-kind$="modal"] > img:not([hidden]) { display: block; }
.figma-design .tour-dialog .rk-gallery-frame > img { height: calc(94svh - 180px); }
.figma-design .rk-gallery-frame > .rk-sr-only { position: absolute; }
@media (hover: none) { .figma-design .rk-gallery-frame > .rk-gallery-arrow { opacity: 1; pointer-events: auto; } }
@media (prefers-reduced-motion: reduce) { .figma-design .rk-gallery-frame > .rk-gallery-arrow { transition: none; } }

.figma-design[data-rk-gallery-controls] .rk-gallery-announcement { margin: 0; padding: 0; }

/* Selected thumbnails keep the brand colour; no dark selection outline. */
.figma-design[data-rk-gallery-controls] :is(.pdp-thumbnail, .lodge-thumbs button)[aria-pressed="true"] { border-color: var(--yellow); outline: none; }
.figma-design[data-rk-gallery-controls] :is(.pdp-thumbnail, .lodge-thumbs button, [data-photo], [data-gallery-open], [data-tour-photo]):focus:not(:focus-visible) { outline: none; }
.figma-design[data-rk-gallery-controls] :is(.pdp-thumbnail, .lodge-thumbs button):focus-visible { outline: 2px solid var(--yellow); outline-offset: var(--s1); }

/* Compact scrolling rail; selection follows the photograph itself, without an inner gutter. */
.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnails, .lodge-thumbs) { flex-wrap: nowrap; overflow-x: auto; min-width: 0; max-width: 100%; align-items: center; padding: 0; border-radius: 12px; clip-path: inset(0 round 12px); scrollbar-width: none; }
.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnail, .lodge-thumbs button) { position: relative; padding: 0; border: 0; border-radius: 12px; background: transparent; overflow: hidden; line-height: 0; flex-shrink: 0; outline: none; }
.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnail, .lodge-thumbs button) > img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: inherit; }
.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnail, .lodge-thumbs button)::after { content: ''; position: absolute; inset: 0; box-sizing: border-box; border: 1px solid var(--yellow); border-radius: inherit; pointer-events: none; }
.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnail, .lodge-thumbs button)[aria-pressed="true"]::after { border-width: var(--s1); }
.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnail, .lodge-thumbs button):focus-visible { outline: 2px solid var(--yellow); outline-offset: var(--s1); }
.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnail, .lodge-thumbs button) { width: calc(var(--photo-thumb) * 2 / 3 * var(--rk-thumb-ratio, 1.5)); height: calc(var(--photo-thumb) * 2 / 3); flex: 0 0 auto; }
.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnail, .lodge-thumbs button) > img { width: 100%; height: 100%; max-width: none; }

.figma-design[data-rk-gallery-controls] #design-page :is(.pdp-thumbnails, .lodge-thumbs)::-webkit-scrollbar { display: none; width: 0; height: 0; }
