@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Preserve the original Fronk history timeline within the shared site shell. */
.history-original{background:#fff;color:#444;font:400 14px/1.6 Roboto,Inter,Arial,sans-serif}
.history-original [hidden]{display:none!important}
.history-original-heading,.history-original #history-archive-title,.history-original #history-gallery-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.history-container{width:100%;margin-right:auto;margin-left:auto;padding-right:15px;padding-left:15px}
.history-chronology,.history-archive{padding:30px 0;background:#fff}
.history-chronology .history-container{position:relative}
.history-timeline{position:relative;list-style:none;padding:0;margin:0}
.history-chronology .history-container:before{content:"";position:absolute;top:0;bottom:0;width:1px;background:#eee;display:none}
.history-milestone{position:relative;padding:25px 10px}
.history-dot{display:none}
.history-row{display:grid;grid-template-columns:5fr 7fr;align-items:center}
.history-meta{position:relative;display:flex;align-items:flex-start;min-width:0;flex-wrap:nowrap}
.history-meta:before{content:"";display:none;position:absolute;top:85px;left:calc(43.2% - 6.4px);width:16px;height:16px;transform:translate(-50%,-50%);border:5px solid #eee;border-radius:50%;background:#fff;z-index:3}
.history-time-line{position:relative;flex:1 1 auto;width:100%;min-width:0;margin-top:85px;transform:translateY(-50%)}
.history-time-line:before{content:"";position:absolute;top:50%;right:0;left:0;border-top:1px solid #ccc}
.history-date{position:relative;display:block;width:110px;margin:0;padding:5px 10px;text-align:center;background:#111;color:#fff;font:700 14px/1.6 Roboto,Inter,Arial,sans-serif;transition:background-color .2s ease-in}
.history-photo{display:flex;flex-direction:column;align-items:center;flex:0 0 170px;width:170px;margin:0 30px 0 auto}
.history-photo-container{position:relative;flex:0 0 auto;width:170px;height:170px;margin:0;border-radius:50%;overflow:hidden}
.history-photo-container:after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(0,0,0,.3);pointer-events:none;transition:background-color .2s ease-in}
.history-photo-container img{display:block;width:100%;height:100%;min-width:100%;object-fit:cover;border-radius:inherit}
.history-photo-caption{width:100%;margin:8px 0 0;color:#444;font:400 12px/1.5 Roboto,Inter,Arial,sans-serif;text-align:center}
.history-milestone:hover .history-date{background:#ff0000}
.history-milestone:hover .history-photo-container:after{background:rgba(255,255,255,0)}
.history-copy{min-width:0;text-align:left}
.history-copy .history-kicker{margin:0 0 5px;color:#ff0000;font:700 14px/1.4 Roboto,Inter,Arial,sans-serif;text-transform:uppercase;letter-spacing:normal}
.history-copy h2{margin:0 0 10px;color:#2c2c2c;font:700 24.5px/1.4 Roboto,Inter,Arial,sans-serif;letter-spacing:normal;text-transform:capitalize}
.history-copy .history-text{margin:0 0 14px;font:400 14px/1.6 Roboto,Inter,Arial,sans-serif;color:#444}
.history-copy .history-text:last-child{margin-bottom:0}
.history-full-text p{margin:0 0 22px}
.history-full-text p:last-child{margin-bottom:0}
.history-full-text a{text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}

/* The original archive is a compact, two-row photo carousel. */
.history-archive-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;margin:0;padding-bottom:40px}
.history-archive-grid.is-paged{grid-template-rows:repeat(2,auto);grid-auto-flow:column}
.history-archive-photo{display:block;padding:15px;min-width:0;line-height:0;color:inherit}
.history-archive-photo figure{margin:0}
.history-archive-photo img{display:block;width:100%;height:auto;border:1px solid #f7f7f7;filter:grayscale(100%);transition:filter .2s ease-in,transform .2s ease-in}
.history-archive-caption{margin:8px 0 0;color:#444;font:400 12px/1.5 Roboto,Inter,Arial,sans-serif;text-align:center}
.history-archive-photo:hover img,.history-archive-photo:focus-visible img{filter:grayscale(0);transform:scale(.85)}
.history-pagination{display:flex;justify-content:center;align-items:center;gap:9px;margin-top:-24px;min-height:24px}
.history-pagination .history-page-dot{display:block;flex:0 0 10px;width:10px;height:10px;min-width:0;padding:0;border:0;border-radius:50%;background:#ccc;cursor:pointer;transition:background-color .2s ease-in}
.history-pagination .history-page-dot.is-current,.history-pagination .history-page-dot[aria-current="page"],.history-pagination .history-page-dot:hover{background:#ff0000}
.history-pagination .history-page-dot:focus-visible{outline:2px solid #0072b5;outline-offset:4px}
.history-source{margin:20px 0 0;text-align:center;color:#666;font-size:12px}
.history-source a{text-decoration:underline;text-underline-offset:3px}

/* Accessible enlargement of Fronk's own archive photographs. */
.history-lightbox{width:min(1000px,calc(100vw - 32px));max-width:none;max-height:92vh;max-height:92dvh;margin:auto;padding:20px;border:0;background:#fff;color:#444;font:400 14px/1.6 Roboto,Inter,Arial,sans-serif;overflow:auto}
.history-lightbox::backdrop{background:rgba(0,0,0,.8)}
.history-lightbox-header{position:static;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:14px;margin-bottom:18px;border:0;border-bottom:1px solid #eee;background:#fff}
.history-lightbox-header h2{margin:0;color:#2c2c2c;font:700 21px/1.4 Roboto,Inter,Arial,sans-serif;letter-spacing:normal}
.history-lightbox-header button,.history-lightbox-controls button,.history-lightbox-controls a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;background:#fff;color:#444!important;border:1px solid #ccc;border-radius:0;font:700 14px/1.6 Roboto,Inter,Arial,sans-serif;cursor:pointer;text-align:center}
.history-lightbox-header button:hover,.history-lightbox-controls button:hover,.history-lightbox-controls a:hover{color:#ff0000!important;border-color:#ff0000}
.history-lightbox figure{margin:0;text-align:center}
.history-lightbox figure img{display:block;max-width:100%;width:auto;height:auto;max-height:66vh;max-height:66dvh;margin:auto;object-fit:contain}
.history-lightbox figcaption{margin-top:12px;line-height:1.6;color:#444}
.history-lightbox-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}
.history-lightbox-controls button:disabled{opacity:.45;cursor:default}

@media(min-width:576px){.history-container{max-width:540px}}
@media(min-width:768px){.history-container{max-width:720px}}
@media(min-width:992px){.history-container{max-width:960px}.history-chronology .history-container:before{display:block;left:calc(18% + 9px)}.history-meta:before{display:block}}
@media(min-width:1200px){.history-container{max-width:1140px}}
@media(min-width:768px) and (max-width:991px){
 .history-meta{flex-direction:column;align-items:center}
 .history-photo{order:1;flex:0 0 auto;margin:0 auto}
 .history-time-line{order:2;width:calc(100% - 20px);margin:20px 10px 0;transform:none}
 .history-date{margin:auto}
 .history-archive-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media(max-width:767px){
 .history-row{display:flex;flex-direction:column}
 .history-copy{order:1;width:100%;margin-bottom:15px;text-align:center}
 .history-meta{order:2;width:100%;flex-direction:column}
 .history-photo{order:1;flex:0 0 auto;width:170px;max-width:100%;margin:0 auto 20px}
 .history-photo-container{width:120px;height:120px}
 .history-time-line{order:2;width:100%;margin:0;transform:none}
 .history-date{margin:auto}
 .history-archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:575px){
 .history-archive-grid{grid-template-columns:1fr}
 .history-archive-photo{padding:0 15px 15px}
 .history-lightbox{padding:15px;width:calc(100vw - 20px)}
 .history-lightbox-header h2{font-size:18px}
 .history-lightbox-controls{flex-wrap:wrap;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.history-original *, .history-original *:before, .history-original *:after{transition:none!important}}
