.pictures-main { padding-block: 55px 75px; }
.pictures-heading { max-width: 690px; margin-bottom: 35px; }
.pictures-heading .eyebrow, .picture-library .eyebrow { color: var(--green); margin-bottom: 16px; }
.pictures-heading h1 { font-size: clamp(42px, 5vw, 66px); }
.pictures-heading > p:last-child, .library-heading > p { font-size: 14px; color: rgba(233,191,143,.75); }
.picture-slideshow { display: grid; grid-template-columns: 1.45fr 1fr; border: 1px solid var(--line); }
.featured-image { display: flex; align-items: center; justify-content: center; background: rgba(233,191,143,.04); min-width: 0; }
.featured-image img { display: block; width: 100%; height: 440px; object-fit: contain; }
.featured-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 35px; min-width: 0; }
.featured-copy .eyebrow { color: var(--green); }
.featured-copy h2 { font-size: 37px; overflow-wrap: anywhere; }
#featured-description { color: rgba(233,191,143,.75); font-size: 14px; line-height: 1.85; margin-block: 22px; white-space: pre-line; overflow-wrap: anywhere; max-height: 150px; overflow-y: auto; }
.slideshow-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
[hidden] { display: none !important; }
.slideshow-controls button { border: 1px solid var(--line); background: transparent; color: var(--tan); padding: 10px 6px; font: 14px/20px Arial, sans-serif; cursor: pointer; min-height: 44px; }
.slideshow-controls button:hover { background: var(--tan); color: var(--black); }
#slide-prev, #slide-next { width: 44px; padding-inline: 0; font-size: 18px; }
#slide-prev, #slide-next { width: 44px; padding-inline: 0; font-size: 18px; }
.slideshow-controls button:focus-visible, .dialog-close:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
#slide-position { font-size: 11px; font-variant-numeric: tabular-nums; }
.picture-library { margin-top: 65px; }
.library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.library-heading h2 { font-size: 38px; }
.picture-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.picture-thumbnail { min-width: 0; border: 1px solid var(--line); transition: background .2s; }
.picture-thumbnail:hover { background: rgba(233,191,143,.06); }
.picture-thumbnail img { display: block; width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.picture-thumbnail > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px; font: normal 21px/1.3 Georgia, serif; overflow-wrap: anywhere; }
.picture-thumbnail > span > span { color: var(--green); flex-shrink: 0; }
#picture-dialog { width: min(1050px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); background: var(--black); color: var(--tan); }
#picture-dialog::backdrop { background: rgba(0,0,0,.85); }
.picture-dialog-content { position: relative; }
.dialog-close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 1; width: 44px; height: 44px; background: var(--black); color: var(--tan); border: 1px solid var(--tan); font: 30px/1 Arial, sans-serif; cursor: pointer; }
#dialog-image { display: block; width: 100%; max-height: 65dvh; object-fit: contain; background: rgba(233,191,143,.04); }
.dialog-copy { padding: 30px; }
.dialog-copy .eyebrow { margin-bottom: 12px; color: var(--green); }
.dialog-copy h2 { font-size: 36px; overflow-wrap: anywhere; }
#dialog-description { margin: 18px 0 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
html.picture-dialog-open { overflow: hidden; }
.selected-item, .pictures-empty { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; padding-block: 35px; }
.selected-item { border-top: 1px solid var(--line); margin-top: 45px; }
.selected-item img, .pictures-empty img { display: block; width: 100%; max-height: 550px; object-fit: contain; }
.selected-item p, .pictures-empty p { font-size: 14px; line-height: 1.85; margin-block: 22px; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
    .picture-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .featured-copy { padding: 25px; }
    .featured-image img { height: 400px; }
}
@media (max-width: 700px) {
    .pictures-main { padding-block: 35px 45px; }
    .picture-slideshow, .selected-item, .pictures-empty { grid-template-columns: 1fr; }
    .featured-image img { height: 300px; }
    .featured-copy { padding: 25px; }
    .featured-copy h2 { font-size: 32px; }
    .picture-library { margin-top: 45px; }
    .library-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .picture-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .picture-thumbnail > span { font-size: 18px; padding: 12px; }
    .dialog-copy { padding: 22px; }
    .dialog-copy h2 { font-size: 29px; }
}
