/* EBDAA gallery only. Shared layout and product styles are untouched. */
.ebdaa-gallery { --gallery-accent:#e8444e; min-width:0; }
.ebdaa-gallery .gallery-intro { padding-bottom:24px; }
.ebdaa-gallery .gallery-intro h1 { margin:8px 0 14px; }
.ebdaa-gallery .gallery-intro p { max-width:820px; }
.ebdaa-gallery .gallery-tools { padding-top:0; padding-bottom:28px; }
.ebdaa-gallery .gallery-filters { display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:0; }
.ebdaa-gallery .gallery-filters button { font:inherit; font-size:14px; line-height:1.5; padding:10px 16px; min-height:44px; max-width:100%; white-space:normal; text-align:center; color:#eee; background:#303030; border:1px solid #ffffff30; border-radius:24px; cursor:pointer; }
.ebdaa-gallery .gallery-filters button[aria-pressed="true"] { background:#a52d36; border-color:#e8444e; color:#fff; }
.ebdaa-gallery button:focus-visible,.ebdaa-viewer button:focus-visible { outline:3px solid #ff9ca4; outline-offset:4px; }
.ebdaa-gallery .gallery-status { font-size:14px; color:#c9c9c9; margin:16px 0 0; }
.ebdaa-gallery .gallery-category { padding-top:16px; padding-bottom:36px; scroll-margin-top:110px; }
.ebdaa-gallery .gallery-category-header { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.ebdaa-gallery .gallery-category h2 { margin:0; font-size:24px; line-height:1.5; }
.ebdaa-gallery .gallery-category-header span { font-size:14px; color:#c9c9c9; }
.ebdaa-gallery .gallery-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.ebdaa-gallery .gallery-card { min-width:0; margin:0; }
.ebdaa-gallery .gallery-card button { display:block; width:100%; padding:0; overflow:hidden; border:1px solid #ffffff26; border-radius:12px; background:#1c1c1c; color:inherit; cursor:zoom-in; text-align:start; }
.ebdaa-gallery .gallery-card img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; background:#282828; user-select:none; -webkit-user-drag:none; -webkit-touch-callout:none; }
.ebdaa-gallery .gallery-card button:hover { border-color:#e8444e; }
.ebdaa-gallery .gallery-card figcaption { margin-top:9px; color:#dedede; font-size:13px; line-height:1.65; overflow-wrap:anywhere; }
.ebdaa-gallery .gallery-more { display:block; margin:24px auto 0; min-height:44px; font:inherit; padding:10px 24px; border:1px solid #ffffff55; background:#303030; color:#fff; border-radius:8px; cursor:pointer; }
.ebdaa-gallery [hidden] { display:none!important; }
.ebdaa-gallery .gallery-anchor { display:block; scroll-margin-top:120px; }
.ebdaa-viewer { width:min(1080px,96vw); max-width:96vw; height:fit-content; max-height:94dvh; padding:54px 18px 16px; border:1px solid #555; border-radius:14px; background:#171717; color:#fff; overflow:auto; }
.ebdaa-viewer::backdrop { background:#000d; }
.ebdaa-viewer figure { margin:0; height:auto; padding:0; display:flex; align-items:center; justify-content:center; }
.ebdaa-viewer figure img { display:block; width:auto; height:auto; max-width:100%; max-height:calc(90dvh - 190px); object-fit:contain; user-select:none; -webkit-touch-callout:none; }
.ebdaa-viewer .gallery-viewer-caption { text-align:center; font:inherit; font-size:14px; line-height:1.6; margin:12px auto; max-width:800px; }
.ebdaa-viewer .viewer-close { position:absolute; top:8px; inset-inline-end:10px; width:44px; height:44px; font-size:30px; line-height:1; border:0; background:#333; color:#fff; border-radius:50%; cursor:pointer; }
.ebdaa-viewer footer { display:flex; align-items:center; justify-content:center; gap:20px; padding:0; background:none; }
.ebdaa-viewer footer button { width:48px; height:44px; background:#333; color:#fff; border:1px solid #555; border-radius:8px; font-size:22px; cursor:pointer; }
.ebdaa-viewer footer button:disabled { opacity:.4; cursor:default; }
@media(max-width:1100px) { .ebdaa-gallery .gallery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .ebdaa-gallery .content-section { padding-inline:18px; } .ebdaa-gallery .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .ebdaa-gallery .gallery-intro h1 { font-size:28px; } .ebdaa-gallery .gallery-category h2 { font-size:21px; } .ebdaa-gallery .gallery-filters button { font-size:13px; padding:9px 12px; } .ebdaa-gallery .gallery-card figcaption { font-size:12px; } .ebdaa-viewer { padding-inline:10px; } }
@media(prefers-reduced-motion:reduce) { .ebdaa-gallery *, .ebdaa-viewer * { scroll-behavior:auto!important; transition:none!important; } }

/* Compact category chooser: all categories remain available, including the active one. */
.gallery-filter-toggle{display:none}
@media(max-width:979px){
 .gallery-filters:not(.gallery-filters-expanded)>button[data-filter]:nth-child(n+5):not([aria-pressed="true"]){display:none}
 .gallery-filters{gap:6px;margin-bottom:8px}
 .gallery-filters button{min-height:40px;padding:8px 10px;font-size:12px;max-width:100%;overflow-wrap:anywhere}
 .gallery-filter-toggle{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;margin-bottom:12px;background:transparent;color:#eee;border:1px solid #ffffff40;border-radius:8px;font:inherit;font-size:12px;cursor:pointer;max-width:100%;white-space:normal}
 .gallery-filter-toggle:hover,.gallery-filter-toggle:focus-visible{border-color:#bc303b}
}
