/* Static replacements for what the Squarespace runtime did with JS. */

/* ---- homepage full-bleed fade slideshow ---- */
.collection-type-index #pageWrapper { opacity: 1; }
:root { --cp-header: 97px; }
@media (max-width: 640px) { :root { --cp-header: 45px; } }
body.collection-type-index #fullscreenBrowser { position: fixed; left: 0; right: 0; top: 0; bottom: var(--cp-header, 0px); overflow: hidden; background: #fff; }
body.collection-type-index #fullscreenBrowser .galleryWrapper,
body.collection-type-index #fullscreenBrowser .slideshowWrapper,
body.collection-type-index #fullscreenBrowser .slideshow { position: absolute; inset: 0; width: auto; height: auto; }
body.collection-type-index .slideshow .slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; display: block !important; }
body.collection-type-index .slideshow .slide.sqs-active-slide { opacity: 1; visibility: visible; transition: opacity 1s ease; z-index: 1; }
body.collection-type-index .slideshow .slide .imageWrapper { position: absolute; inset: 0; }
body.collection-type-index .slideshow .slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
body.collection-type-index .nav-projects { list-style: none; margin: 0; padding: 0; }
body.collection-type-index .nav-projects .arrow-wrapper { position: fixed; top: 0 !important; bottom: var(--cp-header, 0px) !important; width: 15%; height: auto !important; margin: 0 !important; z-index: 5; display: flex; align-items: center; opacity: 1; }
body.collection-type-index .nav-projects .arrow-wrapper.left { left: 0; justify-content: flex-start; }
body.collection-type-index .nav-projects .arrow-wrapper.right { right: 0; justify-content: flex-end; }
body.collection-type-index .nav-projects .nav-button { display: block; width: 60px; height: 60px; cursor: pointer; position: relative; text-decoration: none; opacity: .75; transition: opacity .2s; }
body.collection-type-index .nav-projects .nav-button:hover { opacity: 1; }
body.collection-type-index .nav-projects .nav-button:before { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; border-top: 2px solid #fff; border-left: 2px solid #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5)); }
body.collection-type-index .nav-projects .prev-slide:before { transform: translate(-30%, -50%) rotate(-45deg); }
body.collection-type-index .nav-projects .next-slide:before { transform: translate(-70%, -50%) rotate(135deg); }
body.collection-type-index .ctrl-button.info { display: none !important; }

/* index (grid) view */
#indexProjects.hidden { display: none !important; }
body.index-view #indexProjects { display: block; position: fixed; left: 0; right: 0; top: 0; bottom: var(--cp-header, 0px); overflow-y: auto; background: #fff; z-index: 10; padding: 30px 20px; box-sizing: border-box; }
body.index-view .nav-projects { display: none; }
#indexProjects .gallery-description { text-align: center; }
#indexProjects .gallery-description p { color: #888; margin: .3em 0 0; }
#indexProjects .thumb-grid { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1200px; margin: 25px auto !important; }
#indexProjects .thumb-grid .thumb { width: 25%; aspect-ratio: 1 / 1; padding: 4px; box-sizing: border-box; cursor: pointer; overflow: hidden; position: relative; }
#indexProjects .thumb-grid .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
#indexProjects .thumb-grid .thumb:hover img { opacity: .8; }
@media (max-width: 640px) { #indexProjects .thumb-grid .thumb { width: 50%; } }

/* header controls: grid / close toggle */
#header .controls .ctrl-button.close { display: none; }
body.index-view #header .controls .ctrl-button.close { display: inline-block; }
body.index-view #header .controls .ctrl-button.all { display: none; }
body:not(.collection-type-index) #header .controls { display: none; }

/* ---- menu page ---- */
.cp-menu { max-width: 860px; margin: 0 auto; }
.cp-menu-section { margin: 0 0 3.5em; }
.cp-menu-section h2 { text-align: center; margin: 0 0 .1em; letter-spacing: .08em; text-transform: uppercase; }
.cp-menu-section h3 { text-align: center; margin: 1.6em 0 .4em; font-style: italic; }
.cp-menu-sub { text-align: center; color: #888; margin: 0 0 1.2em; }
.cp-menu-list { margin: 0; }
.cp-menu-item { display: grid; grid-template-columns: 34% 1fr; gap: 0 1.5em; padding: .8em 0; border-bottom: 1px solid #e6e6e6; }
.cp-menu-item dt { font-weight: bold; }
.cp-menu-item dd { margin: 0; }
.cp-menu-row { display: flex; justify-content: space-between; gap: 1em; }
.cp-menu-row + .cp-menu-row { margin-top: .5em; }
.cp-menu-price { white-space: nowrap; font-weight: bold; }
.cp-menu-note { text-align: center; font-size: .9em; color: #888; margin: 1.2em 0; }
.cp-menu-footnote { text-align: center; color: #666; }
.cp-menu-photo { margin: 1em 0 0; }
.cp-menu-photo img { width: 100%; height: auto; display: block; aspect-ratio: 1280 / 500; object-fit: cover; }
@media (max-width: 640px) {
  .cp-menu-item { grid-template-columns: 1fr; }
  .cp-menu-item dt { margin-bottom: .3em; }
}

/* ---- inner pages: images in image blocks ---- */
.sqs-block-image .sqs-image-shape-container-element { position: relative; overflow: hidden; }
.sqs-block-image .sqs-image-shape-container-element img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sqs-block-image-button { border: 0; padding: 0; background: none; width: 100%; display: block; cursor: default; }
.v6-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
