[data-gallery-collection] .gallery-filters {display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0;}
[data-gallery-collection] .gallery-filters button {font:inherit;cursor:pointer;border:1px solid currentColor;border-radius:3px;padding:.65rem 1rem;background:transparent;color:inherit;}
[data-gallery-collection] .gallery-filters button[aria-pressed="true"] {background:#70283c;color:#fff;border-color:#70283c;}
[data-gallery-collection] .gallery-filters button:focus-visible,
[data-gallery-collection] img:focus-visible {outline:3px solid #a46c39;outline-offset:3px;}
[data-gallery-collection] .month-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;}
[data-gallery-collection] [data-gallery-category] {margin:0;min-width:0;}
[data-gallery-collection] [hidden] {display:none!important;}
[data-gallery-collection] .month-grid img {display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;background:#171717;cursor:zoom-in;}
@media(max-width:900px){[data-gallery-collection] .month-grid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){[data-gallery-collection] .month-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;}}
@media(max-width:320px){[data-gallery-collection] .month-grid {grid-template-columns:1fr;}}


.course-archive > summary:focus-visible {outline:2px solid #70283c;outline-offset:4px;}
.course-archive .course-albums {margin-top:1rem;}

.gallery-page .course-albums {display:block;}
.gallery-page .course-card {margin:0 0 1rem;}
.gallery-page .course-card > summary {display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:0;padding:1.25rem 1.5rem;border:1px solid #b9a99b;border-radius:3px;cursor:pointer;}
.gallery-page .course-card-copy {display:grid;gap:.35rem;font-size:1rem;line-height:1.4;}
.gallery-page .course-card-copy strong {font-size:1.5rem;line-height:1.2;}
.gallery-page .course-card-copy small {font-size:.85rem;}
.gallery-page .course-card > summary::after {content:'+';font-size:1.4rem;flex:none;}
.gallery-page .course-card[open] > summary::after {content:'−';}

.gallery-page .course-card > summary {display:grid;grid-template-columns:minmax(100px,180px) minmax(0,1fr) auto;align-items:center;gap:1.25rem;}
.gallery-page .course-card > summary .course-cover {display:block;width:100%;height:200px;object-fit:contain;background:#e8e2d9;}
@media(max-width:600px){.gallery-page .course-card > summary {grid-template-columns:90px minmax(0,1fr) auto;gap:.65rem;padding:.75rem;}.gallery-page .course-card > summary .course-cover {height:120px;}.gallery-page .course-card-copy strong {font-size:1.2rem;}}

.gallery-highlights .highlight-category {margin:0 0 .8rem;border:1px solid #b9a99b;border-radius:3px;}
.gallery-highlights .highlight-category > summary {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;cursor:pointer;font-weight:600;list-style:none;}
.gallery-highlights .highlight-category > summary::-webkit-details-marker {display:none;}
.gallery-highlights .highlight-category > summary::after {content:'+';flex:none;font-size:1.4rem;}
.gallery-highlights .highlight-category[open] > summary::after {content:'−';}
.gallery-highlights .highlight-category > summary:focus-visible {outline:2px solid #70283c;outline-offset:3px;}
.gallery-highlights .highlight-category > .month-grid {padding:0 1rem 1rem;}
.gallery-highlights .highlight-category:not([open]) > .month-grid {display:none;}

.gallery-page .gallery-highlights #gallery-highlights-title {color:#70283c;}

/* Decorative separation between course albums and highlights. */
.gallery-page .gallery-highlights {position:relative;margin-top:2rem;padding-top:2rem;}
.gallery-page .gallery-highlights::before {content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(to right,#70283c 0%,#70283c 46%,transparent 46%,transparent 54%,#70283c 54%,#70283c 100%);}
.gallery-page .gallery-highlights::after {content:'';position:absolute;top:0;left:50%;width:9px;height:9px;background:#70283c;transform:translate(-50%,-50%) rotate(45deg);pointer-events:none;}
@media(max-width:600px){.gallery-page .gallery-highlights {margin-top:1.5rem;padding-top:1.5rem;}}



/* Consistent editorial typography for the four gallery headings. */
.gallery-page .gallery-intro h2,
.gallery-page .gallery-person #gallery-francisco-title,
.gallery-page .gallery-editorial .course-archive > summary .month-label,
.gallery-page .gallery-highlights #gallery-highlights-title {
  font-family:var(--serif);font-size:clamp(2rem,4vw,4rem);font-weight:700;line-height:1;letter-spacing:-.03em;color:#70283c;
}
