/* Garten-Lexikon — Houzz-style uniform square photo grid. */

.ogp-lex-breadcrumb {
    font-size: 0.875rem;
    color: #6b6b60;
    margin-bottom: 1.5rem;
}
.ogp-lex-breadcrumb a {
    color: inherit;
    text-decoration: underline;
}
.ogp-lex-breadcrumb [aria-current="page"] {
    font-weight: 600;
}

.ogp-lex-h1 {
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem);
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    margin: 0 0 0.3rem;
}

.ogp-lex-subline {
    color: #8a8a7f;
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
}

.ogp-lex-hero {
    margin: 0 0 1.25rem;
}
.ogp-lex-hero img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

.ogp-lex-intro {
    max-width: 65ch;
    color: #4a4a42;
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

.ogp-lex-overview-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.ogp-lex-products {
    margin-top: 2.5rem;
}
.ogp-lex-products h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.ogp-lex-faq {
    max-width: 65ch;
    margin-top: 2.5rem;
}
.ogp-lex-faq h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 1rem;
}
.ogp-lex-faq-item {
    border-bottom: 1px solid #e5e0d5;
    padding: 0.85rem 0;
}
.ogp-lex-faq-item summary {
    cursor: pointer;
    font-weight: 600;
}
.ogp-lex-faq-item p {
    margin: 0.6rem 0 0;
    color: #4a4a42;
    line-height: 1.6;
}

/* ==========================================================================
   Hero proposals (?hero=1|2|3) for Hauptbereich pages.
   ========================================================================== */
.ogp-hero { margin: 0 0 1.75rem; }
.ogp-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    opacity: 0.85;
}
.ogp-hero-h1 {
    font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
    line-height: 1.05;
    font-weight: 600;
    margin: 0 0 0.75rem;
    text-transform: none;
    letter-spacing: -0.01em;
}
.ogp-hero-lead {
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
    line-height: 1.55;
    max-width: 52ch;
    margin: 0 0 1.25rem;
}
.ogp-hero-search {
    display: flex;
    max-width: 520px;
    background: #fff;
    border-radius: 999px;
    padding: 0.3rem;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
    margin: 0 0 1rem;
}
.ogp-hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    color: #2b2b24;
    outline: none;
}
.ogp-hero-search button {
    border: none;
    border-radius: 999px;
    background: var(--wp--preset--color--contrast, #1f2d1f);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.3rem;
    cursor: pointer;
}
.ogp-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ogp-hero-btn {
    display: inline-block;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background: var(--wp--preset--color--contrast, #1f2d1f);
    color: #fff !important;
}
.ogp-hero-btn-ghost { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.ogp-hero-btn:hover { opacity: 0.88; }
.ogp-hero-stats {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #6b6b60;
}
.ogp-hero-stats strong { color: #2b2b24; font-size: 1.15rem; margin-right: 0.15rem; }
.ogp-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}
.ogp-hero-chips a {
    font-size: 0.85rem;
    padding: 0.45rem 0.95rem;
    border: 1px solid #d8d4c6;
    border-radius: 999px;
    color: #2b2b24;
    text-decoration: none;
    background: #fff;
}
.ogp-hero-chips a:hover { background: #f2efe6; border-color: #2b2b24; }
.ogp-hero-rest { margin-bottom: 2rem; }

/* 1 — full-bleed photo with overlay */
.ogp-hero-1 {
    margin-left: calc(-1 * clamp(16px, 4vw, 48px));
    margin-right: calc(-1 * clamp(16px, 4vw, 48px));
    margin-top: 0;
    min-height: min(62vh, 620px);
    display: flex;
    align-items: flex-end;
    background-color: #4a5a44;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}
.ogp-hero-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 24, 18, 0.72) 0%, rgba(20, 24, 18, 0.35) 55%, rgba(20, 24, 18, 0.05) 100%),
                linear-gradient(0deg, rgba(20, 24, 18, 0.45) 0%, transparent 45%);
}
/* Image hero sits flush under the header/search bar — drop the page's top margin. */
main:has(> .ogp-lex-wide > .ogp-hero-1:first-child) { margin-top: 0 !important; padding-top: 0 !important; }
.ogp-hero-1.is-nophoto { background: linear-gradient(135deg, #3f5139, #6f8564); }
.ogp-hero-1-inner {
    position: relative;
    padding: clamp(2rem, 5vw, 4rem) clamp(16px, 4vw, 48px);
    max-width: 720px;
}
.ogp-hero-1 .ogp-hero-h1 { color: #fff; }
.ogp-hero-1 .ogp-hero-btn:not(.ogp-hero-btn-ghost) { background: #fff; color: #1f2d1f !important; }
.ogp-hero-1 .ogp-hero-lead { color: rgba(255, 255, 255, 0.92); }
.ogp-hero-1 + .ogp-hero-chips { margin-top: 1.5rem; }

/* 2 — split */
.ogp-hero-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    background: #f1ede3;
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}
.ogp-hero-2 .ogp-hero-eyebrow { color: #6b7d5f; }
.ogp-hero-2-media { margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.ogp-hero-2-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ogp-hero-2-media.is-nophoto { background: linear-gradient(135deg, #c9d3bd, #8fa27f); }
.ogp-hero-2 .ogp-hero-search { box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); }
.ogp-hero-2 .ogp-hero-btn-ghost { color: #2b2b24 !important; }
@media (max-width: 900px) {
    .ogp-hero-2 { grid-template-columns: 1fr; }
    .ogp-hero-2-media { order: -1; }
}

/* 3 — collage */
.ogp-hero-3-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1rem 3rem;
    align-items: end;
    margin-bottom: 1.25rem;
}
.ogp-hero-3 .ogp-hero-eyebrow { color: #6b7d5f; }
.ogp-hero-3 .ogp-hero-lead { margin-bottom: 0; }
.ogp-hero-3-side .ogp-hero-search { margin: 0; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08); border: 1px solid #e5e0d5; }
.ogp-hero-3-side .ogp-hero-stats { margin-bottom: 0.9rem; }
.ogp-hero-3-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(150px, 22vh));
    gap: 0.6rem;
}
.ogp-hero-3-tile {
    position: relative;
    display: block;
    border-radius: 10px;
    background: #e5e0d5 center / cover no-repeat;
    overflow: hidden;
    text-decoration: none;
}
.ogp-hero-3-tile.is-big { grid-row: span 2; }
.ogp-hero-3-tile span {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem 0.8rem 0.6rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.ogp-hero-3-tile:hover { filter: brightness(1.05); }
.ogp-hero-3-grid.count-1 { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 44vh); }
.ogp-hero-3-grid.count-2 { grid-template-columns: 2fr 1fr; grid-template-rows: minmax(300px, 44vh); }
.ogp-hero-3-grid.count-2 .is-big, .ogp-hero-3-grid.count-1 .is-big { grid-row: auto; }
.ogp-hero-3-grid.count-3 { grid-template-columns: 2fr 1fr; }
.ogp-hero-3-grid.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.ogp-hero-3-grid.count-4 .ogp-hero-3-tile:last-child { grid-column: span 2; }
@media (max-width: 900px) {
    .ogp-hero-3-head { grid-template-columns: 1fr; }
    .ogp-hero-3-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 140px; }
    .ogp-hero-3-tile.is-big { grid-column: span 2; grid-row: auto; height: 220px; }
}

/* True full-bleed (Houzz-style): break out of the constrained content
   column entirely instead of relying on theme.json's alignwide/wideSize,
   which isn't wide enough — the grid needs to run near-edge-to-edge for
   large photos. */
.ogp-lex-wide {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-left: clamp(16px, 4vw, 48px);
    padding-right: clamp(16px, 4vw, 48px);
    box-sizing: border-box;
}

.ogp-lex-cat {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7d5f;
    margin: 2.25rem 0 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e0d5;
}
.ogp-lex-cat:first-of-type { margin-top: 0.5rem; padding-top: 0; border-top: none; }
.ogp-lex-grid + .ogp-lex-cat { margin-top: 2.5rem; }
.ogp-lex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem 1.5rem;
}
@media (max-width: 1100px) {
    .ogp-lex-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .ogp-lex-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .ogp-lex-grid { grid-template-columns: 1fr; }
}

.ogp-lex-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.ogp-lex-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #e5e0d5;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.ogp-lex-save {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #6b6b60;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.1s ease;
}
.ogp-lex-save:hover { transform: scale(1.08); }
.ogp-lex-save.is-saved { color: #c23b4e; }

.ogp-lex-card-body {
    display: block;
    margin-top: 0.6rem;
}
.ogp-lex-card-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}
.ogp-lex-card-sub {
    display: block;
    font-size: 0.8rem;
    color: #8a8a7f;
    margin-top: 0.15rem;
}

.ogp-lex-empty-hint {
    color: #8a8a7f;
    font-style: italic;
}

.ogp-lex-gallery-wrap {
    position: relative;
}

.ogp-lex-close {
    position: absolute;
    top: -0.25rem;
    right: 0;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e0d5;
    color: #2b2b24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    text-decoration: none;
}
.ogp-lex-close:hover { background: #f2efe6; }

.ogp-lex-single-columns {
    gap: 2rem;
    align-items: flex-start;
}
.ogp-lex-single-col-image {
    align-self: stretch;
}
.ogp-lex-single-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 78vh;
    max-height: 86vh;
    border-radius: 10px;
    overflow: hidden;
}
.ogp-lex-single-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 78vh;
    max-height: 86vh;
    object-fit: cover;
}
.ogp-lex-single-save {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
}
.ogp-lex-single-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #2b2b24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    line-height: 1;
}
.ogp-lex-single-nav:hover { background: #fff; }
.ogp-lex-single-nav-prev { left: 1rem; }
.ogp-lex-single-nav-next { right: 1rem; }

/* Compact sidebar strip ("Weitere Fotos im Projekt") — visible without
   scrolling, paged with arrow buttons instead of a raw scrollbar. */
.ogp-lex-related {
    margin-top: 2rem;
}
.ogp-lex-related h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}
.ogp-lex-related-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ogp-lex-related-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.ogp-lex-related-strip::-webkit-scrollbar { display: none; }
.ogp-lex-related-item {
    flex: 0 0 72px;
    text-decoration: none;
    color: inherit;
}
.ogp-lex-related-image {
    display: block;
    width: 72px;
    height: 72px;
    background-color: #e5e0d5;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}
.ogp-lex-related-title {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ogp-lex-related-arrow {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: 1px solid #d8d4c6;
    background: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.ogp-lex-related-arrow:hover { background: #f2efe6; }

@media (max-width: 782px) {
    .ogp-lex-single-columns { flex-wrap: wrap; }
    .ogp-lex-single-col-image, .ogp-lex-single-col-text { flex-basis: 100% !important; }
    .ogp-lex-single-image-wrap, .ogp-lex-single-image { min-height: 280px; max-height: none; }
}

/* ==========================================================================
   Houzz-style photo view ([ogp_lexikon_gallery]).
   Stage = one viewport high (minus site header): photo panel + 375px
   sidebar. Content (all photos of the group, more from the Hauptbereich)
   and the normal footer follow when scrolling down.
   ========================================================================== */
.wp-site-blocks > .ogp-gal-main,
.ogp-gal-main > *,
.ogp-gal > * { margin-block-start: 0 !important; }
/* wpautop on the shortcode block leaves empty <p>s around the output —
   their margins would push the 100vh stage down. */
.ogp-gal-main p:empty { display: none; }
.ogp-gal {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
}
.ogp-gal-stage {
    display: flex;
    height: 100vh;
    height: 100svh;
    min-height: 480px;
}
.ogp-gal-panel {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    background: #f3f0e8;
    overflow: hidden;
}
.ogp-gal-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.18s ease;
}
.ogp-gal-img.is-loading { opacity: 0.35; }

.ogp-gal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 5rem;
    color: #2b2b24;
    text-decoration: none;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.9));
    transition: transform 0.12s ease;
}
.ogp-gal-arrow:hover { transform: translateY(-50%) scale(1.1); }
.ogp-gal-prev { left: 0.75rem; }
.ogp-gal-next { right: 0.75rem; }

.ogp-gal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #2b2b24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.ogp-gal-close:hover { background: #fff; transform: scale(1.05); }

.ogp-gal-counter {
    position: absolute;
    top: 1.35rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}

.ogp-gal-actions {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.75rem;
}
.ogp-gal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    color: #2b2b24;
    border: none;
    border-radius: 4px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.ogp-gal-btn:hover { background: #f7f5ef; }
.ogp-gal-heart { color: #8a8a7f; }
.ogp-gal-save.is-saved .ogp-gal-heart { color: #c23b4e; }

.ogp-gal-side {
    flex: 0 0 375px;
    box-sizing: border-box;
    padding: 1.75rem 1.5rem;
    overflow-y: auto;
    background: #fff;
    font-size: 0.9rem;
}
.ogp-gal-crumbs {
    font-size: 0.78rem;
    color: #8a8a7f;
    margin-bottom: 1rem;
}
.ogp-gal-crumbs a { color: inherit; text-decoration: none; }
.ogp-gal-crumbs a:hover { text-decoration: underline; }
.ogp-gal-title {
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 0.6rem;
}
.ogp-gal-text {
    color: #4a4a42;
    line-height: 1.55;
}
.ogp-gal-text p { margin: 0 0 0.6rem; }
.ogp-gal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.9rem 0 1.75rem;
}
.ogp-gal-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #f2efe6;
    border: 1px solid #d8d4c6;
    color: #2b2b24;
    text-decoration: none;
}
a.ogp-gal-tag:hover { background: #e9e5d9; }
.ogp-gal-side-h {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 0.6rem;
}
.ogp-gal-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.ogp-gal-thumb {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    background-color: #e5e0d5;
    background-size: cover;
    background-position: center;
}
.ogp-gal-thumb:hover { opacity: 0.85; }
.ogp-gal-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.ogp-gal-chip {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #d8d4c6;
    color: #2b2b24;
    text-decoration: none;
}
.ogp-gal-chip:hover { background: #f2efe6; }

.ogp-gal-section {
    border-top: 1px solid #ebe7dc;
    padding: 1.75rem clamp(16px, 2.5vw, 32px);
}
.ogp-gal-section h2 {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    margin: 0 0 1rem;
}
.ogp-gal-section h2 span { color: #8a8a7f; font-weight: 400; }
.ogp-gal-all {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}
.ogp-gal-all-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.ogp-gal-all-img {
    display: block;
    aspect-ratio: 4 / 3;
    background-color: #e5e0d5;
    background-size: cover;
    background-position: center;
    transition: transform 0.25s ease;
}
.ogp-gal-all-item:hover .ogp-gal-all-img { transform: scale(1.04); }
.ogp-gal-all-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 0.7rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.ogp-gal-all-item.is-active { outline: 3px solid #2b2b24; outline-offset: -3px; }
.ogp-gal-more { grid-template-columns: repeat(6, 1fr); gap: 1.25rem 1rem; }
@media (max-width: 1300px) { .ogp-gal-more { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .ogp-gal-more { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 900px) {
    .ogp-gal-stage { flex-direction: column; height: auto; min-height: 0; }
    .ogp-gal-panel { height: 65vh; height: 65svh; flex: 0 0 auto; }
    .ogp-gal-side { flex: 0 0 auto; width: 100%; overflow: visible; }
    .ogp-gal-arrow { width: 2.75rem; }
    .ogp-gal-btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
}

/* "Will ich" button reused on single lexikon entries (bigger, inline). */
.ogp-lex-save-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #c23b4e;
    color: #c23b4e;
    background: transparent;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    cursor: pointer;
}
.ogp-lex-save-inline.is-saved {
    background: #c23b4e;
    color: #fff;
}

/* ---- Screenshots: grid in the gallery panel + lightbox ------------------ */
.ogp-shots { margin: 1.5rem 0 0.5rem; }
.ogp-shots-h { font-size: 0.95rem; margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.ogp-shots-h span { font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 999px; background: rgba(0, 0, 0, 0.07); }
.ogp-shots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ogp-shot { position: relative; display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10; background: #111; cursor: zoom-in; }
.ogp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease, opacity 0.2s; }
.ogp-shot:hover img { transform: scale(1.06); }
.ogp-shot:focus-visible { outline: 3px solid var(--p1-violet, #1f2d1f); outline-offset: 2px; }
.ogp-shot.has-more img { opacity: 0.35; }
.ogp-shot.has-more span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; font-weight: 700; background: rgba(0, 0, 0, 0.35); }
.ogp-shots-all { margin-top: 0.6rem; font: inherit; font-size: 0.85rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.ogp-shots-all:hover { background: var(--p1-ink, #1f2d1f); border-color: var(--p1-ink, #1f2d1f); color: #fff; }

html.ogp-lb-lock { overflow: hidden; }
.ogp-lb { position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; background: rgba(8, 10, 16, 0.96); color: #fff; }
.ogp-lb.is-open { display: flex; }
.ogp-lb button { font: inherit; color: inherit; cursor: pointer; }
.ogp-lb-top { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; flex: 0 0 auto; }
.ogp-lb-count { font-size: 0.9rem; opacity: 0.8; margin-right: auto; font-variant-numeric: tabular-nums; }
.ogp-lb-gridbtn { font-size: 0.85rem !important; padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; }
.ogp-lb-gridbtn:hover { background: rgba(255, 255, 255, 0.12); }
.ogp-lb-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); font-size: 1.1rem; }
.ogp-lb-close:hover { background: rgba(255, 255, 255, 0.24); }
.ogp-lb-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 4.5rem; }
.ogp-lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; min-height: 0; }
.ogp-lb-img { max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); user-select: none; }
.ogp-lb-cap { font-size: 0.85rem; opacity: 0.7; margin-top: 0.6rem; text-align: center; }
.ogp-lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); font-size: 2rem !important; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ogp-lb-arrow:hover { background: rgba(255, 255, 255, 0.26); }
.ogp-lb-prev { left: 1rem; }
.ogp-lb-next { right: 1rem; }
.ogp-lb-strip { flex: 0 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 0.75rem 1rem 1rem; scrollbar-width: thin; justify-content: safe center; }
.ogp-lb-strip button, .ogp-lb-all button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #000; flex: 0 0 auto; }
.ogp-lb-strip button { width: 88px; height: 56px; opacity: 0.55; transition: opacity 0.15s; }
.ogp-lb-strip button:hover { opacity: 0.9; }
.ogp-lb-strip button.is-active { opacity: 1; border-color: #fff; }
.ogp-lb-strip img, .ogp-lb-all img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Overview: all screenshots on one page */
.ogp-lb-all { display: none; flex: 1 1 auto; overflow-y: auto; padding: 0.5rem clamp(1rem, 4vw, 3rem) 2rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-content: start; }
.ogp-lb-all button { aspect-ratio: 16 / 10; width: 100%; cursor: zoom-in; }
.ogp-lb-all button:hover { border-color: #fff; }
.ogp-lb.is-grid .ogp-lb-all { display: grid; }
.ogp-lb.is-grid .ogp-lb-stage, .ogp-lb.is-grid .ogp-lb-strip, .ogp-lb.is-grid .ogp-lb-gridbtn { display: none; }
@media (max-width: 700px) {
    .ogp-lb-stage { padding: 0 0.5rem; }
    .ogp-lb-arrow { width: 40px; height: 40px; background: rgba(0, 0, 0, 0.45); }
    .ogp-lb-prev { left: 0.4rem; }
    .ogp-lb-next { right: 0.4rem; }
    .ogp-lb-img { max-height: calc(100vh - 190px); }
    .ogp-lb-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Gallery masonry: main image + screenshots (entries with screenshots) ---- */
.ogp-gal-masonry[hidden] { display: none; }
.ogp-gal-panel.has-masonry .ogp-gal-img { display: none; }
.ogp-gal-masonry { padding: 4.5rem 4.75rem 6rem; }
.ogp-msn-cols { display: flex; gap: 14px; align-items: flex-start; }
.ogp-msn-col { flex: 1 1 0; min-width: 0; }
.ogp-msn-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: rgba(0, 0, 0, 0.06); border-radius: 12px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.ogp-msn-item img { display: block; width: 100%; height: auto; transition: transform 0.35s ease; }
.ogp-msn-item:hover img { transform: scale(1.025); }
.ogp-msn-item:focus-visible { outline: 3px solid var(--p1-violet, #1f2d1f); outline-offset: 3px; }
.ogp-msn-item.is-main { margin-bottom: 14px; }
.ogp-msn-item.is-main img { max-height: 82vh; object-fit: cover; }

/* The page scrolls instead of the panel; side column stays put. */
/* Full-bleed without transform: a transformed ancestor would turn the fixed controls into absolute ones. */
.ogp-gal.has-masonry { left: auto; transform: none; margin-left: calc(50% - 50vw); }
.ogp-gal.has-masonry .ogp-gal-stage { height: auto; min-height: 100vh; align-items: flex-start; }
.ogp-gal.has-masonry .ogp-gal-panel { overflow: visible; align-self: stretch; }
@media (min-width: 901px) {
    .ogp-gal.has-masonry .ogp-gal-side { position: sticky; top: 0; height: 100vh; height: 100svh; align-self: flex-start; }
    .ogp-gal.has-masonry .ogp-gal-close { position: fixed; }
    .ogp-gal.has-masonry .ogp-gal-arrow { position: fixed; top: 50vh; }
    .ogp-gal.has-masonry .ogp-gal-next { right: calc(375px + 0.75rem); }
    .ogp-gal.has-masonry .ogp-gal-counter,
    .ogp-gal.has-masonry .ogp-gal-actions { position: fixed; left: calc((100vw - 375px) / 2); }
    .ogp-gal.has-masonry .ogp-gal-close,
    .ogp-gal.has-masonry .ogp-gal-arrow,
    .ogp-gal.has-masonry .ogp-gal-counter,
    .ogp-gal.has-masonry .ogp-gal-actions { transition: opacity 0.2s ease, visibility 0.2s; }
    .ogp-gal.has-masonry.is-past .ogp-gal-close,
    .ogp-gal.has-masonry.is-past .ogp-gal-arrow,
    .ogp-gal.has-masonry.is-past .ogp-gal-counter,
    .ogp-gal.has-masonry.is-past .ogp-gal-actions { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (max-width: 900px) {
    .ogp-gal.has-masonry .ogp-gal-panel { height: auto; }
    .ogp-gal-masonry { padding: 4rem 0.75rem 5rem; }
    .ogp-msn-cols { gap: 8px; }
    .ogp-msn-item { margin-bottom: 8px; border-radius: 8px; }
    .ogp-msn-item.is-main { margin-bottom: 8px; }
}
@media (min-width: 901px) {
    /* Logged-in: keep the floating controls below the WP admin bar. */
    .admin-bar .ogp-gal.has-masonry .ogp-gal-close { top: calc(1rem + 32px); }
    .admin-bar .ogp-gal.has-masonry .ogp-gal-counter { top: calc(1.35rem + 32px); }
    .admin-bar .ogp-gal.has-masonry .ogp-gal-side { top: 32px; height: calc(100vh - 32px); }
}

/* ---- Phones ------------------------------------------------------------- */
@media (max-width: 480px) {
    .ogp-lex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
    .ogp-lex-grid .ogp-lex-card-title, .ogp-lex-grid h3 { font-size: 0.95rem; }
}
@media (max-width: 900px) {
    /* Masonry entries: the long panel would park the game arrows mid-list. */
    .ogp-gal.has-masonry .ogp-gal-arrow { display: none; }
}

/* Angebote on entry pages (OGP_Angebote) */
.ogp-offers { margin: 1.5rem 0; border: 1px solid var(--p1-line, #e3e3e3); border-radius: 14px; overflow: hidden; background: #fff; }
.ogp-offers-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.8rem 1rem; background: var(--p1-soft, #f6f6f6); }
.ogp-offers-head h3 { margin: 0; font-size: 1.05rem; }
.ogp-offers-head span { font-size: 0.85rem; font-weight: 600; color: var(--p1-violet, var(--ogp-green, #5a8f3c)); }
.ogp-offers ul { list-style: none; margin: 0; padding: 0; }
.ogp-offer { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border-top: 1px solid var(--p1-line, #ececec); }
.ogp-offer img, .ogp-offer-ph { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: var(--p1-soft, #f3f3f3); display: block; }
.ogp-offer-main { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.ogp-offer-title { font-size: 0.88rem; line-height: 1.3; color: inherit !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ogp-offer-title:hover { text-decoration: underline !important; }
.ogp-offer-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.75rem; color: var(--p1-muted, #666); }
.ogp-offer-meta b { font-weight: 600; padding: 0 0.4rem; border-radius: 5px; background: var(--p1-soft, #f1f1f1); color: var(--p1-ink, #222); }
.ogp-offer-price { text-align: right; font-weight: 700; font-size: 1rem; white-space: nowrap; display: flex; flex-direction: column; }
.ogp-offer-price s { font-weight: 400; font-size: 0.75rem; color: var(--p1-muted, #888); }
.ogp-offer-btn { padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--p1-violet, var(--ogp-green, #5a8f3c)); color: #fff !important; font-size: 0.85rem; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.ogp-offer-btn:hover { filter: brightness(1.1); }
.ogp-offers-foot { padding: 0.7rem 1rem; border-top: 1px solid var(--p1-line, #ececec); display: flex; flex-direction: column; gap: 0.4rem; }
.ogp-offers-foot a { font-weight: 600; font-size: 0.9rem; color: var(--p1-violet, var(--ogp-green, #5a8f3c)) !important; }
.ogp-offers-foot small { font-size: 0.72rem; line-height: 1.4; color: var(--p1-muted, #777); }
@media (max-width: 480px) {
    .ogp-offer { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 0.6rem; padding: 0.65rem 0.8rem; }
    .ogp-offer img, .ogp-offer-ph { width: 40px; height: 40px; }
    .ogp-offer-btn { grid-column: 2 / -1; text-align: center; }
}
