/* The release card uses the studio's existing wordmark, type and colors. */
.bs-app-grid:has(.nn-gallery) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "screens details";
}
.bs-app-grid:has(.nn-gallery) .bs-app-art {
    grid-area: screens;
    gap: 18px;
    padding: clamp(22px, 3.1vw, 42px);
    background: linear-gradient(155deg, #eff4ec, #d9e8df);
}
.bs-app-grid:has(.nn-gallery) .bs-app-info { grid-area: details; align-self: center; }
.bs-app-grid:has(.nn-gallery) .bs-app-wordmark img { width: 150px; max-width: 100%; }
.bs-app-info .bs-status-live { background: var(--bs-green); border-color: var(--bs-green); color: #fff; }
.bs-app-info .bs-button-quiet .wp-block-button__link {
    color: var(--bs-green); background: transparent; border-color: #aebfb1;
}
.bs-app-info .bs-button-quiet .wp-block-button__link:hover { background: #e4eee6; }
.bs-home .nn-store-actions { align-items: center; gap: 16px 20px; }
.bs-home .nn-store-actions .nn-store-badge,
.bs-home .nn-store-actions .nn-store-secondary { margin: 0; }
.bs-home .nn-store-badge a { display: block; border-radius: 5px; }
.bs-home .nn-store-badge img { display: block; width: 162px; max-width: 100%; height: auto; }
.bs-home .nn-store-actions .nn-store-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: 100%; }
.bs-home .bs-app-info .nn-price-note { color: var(--bs-muted); margin: 20px 0 16px; font-size: .94rem; line-height: 1.5; }
.bs-home .nn-price-note strong { color: var(--bs-ink); }
.bs-home .bs-app-info .nn-store-actions { margin-top: 0; gap: 16px 20px; }

.nn-gallery { width: 100%; max-width: 430px; min-width: 0; color: var(--bs-ink); }
.nn-gallery [hidden] { display: none !important; }
.nn-gallery-stage {
    display: grid; grid-template-columns: 44px minmax(0, 252px) 44px;
    justify-content: center; align-items: center; gap: clamp(6px, 1vw, 16px);
}
.nn-gallery-frame {
    border: 4px solid #284137; border-radius: 17px; overflow: hidden;
    aspect-ratio: 9 / 16; box-sizing: content-box; background: #f4f8f5;
    box-shadow: 0 13px 26px -15px #133d32a8; touch-action: pan-y pinch-zoom;
}
.bs-home .nn-gallery-current { display: block; width: 100%; height: 100%; object-fit: contain; }
.nn-gallery-arrow {
    display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0;
    border: 1px solid #a1b6a9; border-radius: 50%; background: #f8fcf7; color: #124a36;
    font: 600 21px/1 "Trebuchet MS", sans-serif; cursor: pointer;
}
.bs-home .nn-gallery-arrow:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.bs-home .nn-gallery-arrow:focus-visible { outline: 3px solid var(--bs-green); outline-offset: 4px; }
.nn-gallery-arrow:active { background: #d1e3d7; border-color: var(--bs-green); }
.nn-gallery-caption { margin: 20px auto 14px; }
.nn-gallery-caption-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bs-home .nn-gallery-name { margin: 0; color: #173c2e; font: 700 1.45rem/1.14 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.nn-gallery-count { color: #456153; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs-home .nn-gallery-note { margin: 4px 0 0; min-height: 2.8em; color: #314a3e; font-size: .91rem; line-height: 1.4; }
.bs-home .nn-gallery-full { color: #0c5137 !important; font-size: .8rem; text-underline-offset: 3px; }
.nn-gallery-picks {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px;
    list-style: none; margin: 0; padding: 0;
}
.nn-gallery-picks li { margin: 0; padding: 0; }
.bs-home .nn-gallery-picks a {
    display: flex; align-items: center; gap: 7px; height: 100%; min-height: 44px;
    padding: 5px 6px; border: 1px solid #b3c5b7; border-radius: 8px; background: #f7faf5;
    color: #284536; font: 700 .77rem/1.2 "Trebuchet MS", Verdana, sans-serif; text-decoration: none;
}
.bs-home .nn-gallery-picks a:hover { background: #e7f1e8; border-color: #648875; }
.bs-home .nn-gallery-picks a[aria-current="true"] { color: white; background: #174d38; border-color: #174d38; }
.bs-home .nn-gallery-thumb {
    display: block; flex: 0 0 23px; width: 23px; height: 32px;
    object-fit: cover; object-position: center 27%; border: 1px solid #b4c1b7; border-radius: 3px;
}
.nn-gallery:not([aria-roledescription]) .nn-gallery-picks a {
    flex-direction: column; justify-content: center; text-align: center;
}
.bs-home .nn-gallery:not([aria-roledescription]) .nn-gallery-thumb {
    flex: none; width: 45px; height: 80px; object-fit: contain;
}
@media (min-width: 782px) and (max-width: 1050px), (max-width: 410px) {
    .nn-gallery-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
    .bs-app-grid:has(.nn-gallery) { grid-template-columns: 1fr; grid-template-areas: "details" "screens"; }
    .bs-app-grid:has(.nn-gallery) .bs-app-art { padding: 24px clamp(12px, 4vw, 30px); }
    .bs-app-grid:has(.nn-gallery) .bs-app-info { align-self: stretch; }
}
@media (max-width: 599px) {
    .nn-gallery-view {
        display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center; gap: 8px; margin-bottom: 16px;
    }
    .nn-gallery-stage, .nn-gallery-caption { display: contents; }
    .nn-gallery-frame {
        grid-area: 1 / 1 / 2 / -1; justify-self: center;
        width: min(calc(100% - 8px), 252px); margin-bottom: 6px;
    }
    .nn-gallery-arrow[data-step="-1"] { grid-area: 2 / 1; }
    .nn-gallery-arrow[data-step="1"] { grid-area: 2 / 3; }
    .nn-gallery-caption-head { grid-area: 2 / 2; flex-direction: column; align-items: center; gap: 0; text-align: center; }
    .bs-home .nn-gallery-note { grid-area: 3 / 1 / 4 / -1; margin: 0; min-height: 0; }
    .nn-gallery-full { grid-area: 4 / 1 / 5 / -1; justify-self: start; }
}
@media (max-width: 380px) {
    .nn-gallery-stage { gap: 4px; }
    .bs-app-info .bs-actions { gap: 8px; }
}
