/* The Gallery index, the prints page's text flow, search and the 404 page (lifeops-photography
   #13). The builder's own CSS, written from measurements of the live store (Nov 25 2026) at 1440
   and 390 wide, with the Gallery index also checked at 1920, 1200, 1024, 800, 768 and 600. */

/* ---- Gallery index (/collections). Three tiles a row from 1150px, two from 700px, one below.
   Each tile is its picture at its own shape, a 30% shade, and the name at the lower left. */
.gallery-index { display: flex; flex-wrap: wrap; gap: 30px; }
.gallery-tile { display: grid; align-content: start; width: calc((100% - 60px) / 3); color: inherit; cursor: pointer; }
.gallery-tile__media {
  position: relative; display: grid; overflow: hidden; align-items: center;
  grid-template-columns: [full-start] 0 [content-start] minmax(0, 1fr) [content-end] 0 [full-end];
  grid-template-rows: [full-start] 0 [content-start] minmax(0, 1fr) [content-end] 0 [full-end];
  gap: 34.8px 48px;
}
.gallery-tile__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, 0.3); pointer-events: none; }
.gallery-tile__media > img {
  grid-area: full-start / full-start / full-end / full-end; width: 100%; height: auto;
  object-fit: cover; object-position: 50% 50%; transition: scale 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-tile:hover .gallery-tile__media > img { scale: 1.2; }
.gallery-tile__name { grid-area: content-start / content-start / content-end / content-end; place-self: end start; position: relative; z-index: 1; max-width: 768px; color: #fff; }
@media (max-width: 1149px) {
  .gallery-index { gap: 24px; }
  .gallery-tile { width: calc((100% - 24px) / 2); }
}
@media (max-width: 999px) {
  .gallery-tile__media { gap: 18.8px 32px; }
}
@media (max-width: 699px) {
  .gallery-tile { width: 100%; }
  .gallery-tile__media { gap: 6.8px 20px; }
}

/* ---- Rich-text flow (the prints page). Inside it every element after another gets the
   paragraph gap (20px, 16px on phones), as on the live store; bare h2/h3 set in spaced caps. */
.rich-text-flow * + * { margin-top: 20px; }
.rich-text-flow h1, .rich-text-flow h2, .rich-text-flow h3, .rich-text-flow h4 {
  font-family: "Instrument Sans", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.2em;
}
.text-start { text-align: start; }
@media (max-width: 999px) { .rich-text-flow * + * { margin-top: 16px; } }

/* ---- Empty states: the 404 page and the search page before a query. */
.blank-state { display: grid; grid-template-columns: fit-content(100%); justify-content: center; padding-block: 250px; text-align: center; }
.blank-state__text > * + * { margin-top: 20px; }
.blank-state__text > .button { margin-top: 32px; text-decoration: none; }
/* Live's empty-state padding steps: 100px to 999 wide, 200px to 1399, 250px from 1400. */
@media (max-width: 1399px) { .blank-state { padding-block: 200px; } }
@media (max-width: 999px) {
  .blank-state { padding-block: 100px; }
  .blank-state__text > * + * { margin-top: 16px; }
  .blank-state__text > .button { margin-top: 24px; }
  .blank-state .button { font-size: 11px; }
}

/* ---- Search (/search). The box: as wide as the line above it, never under 300px. */
.search-empty__stack { display: grid; gap: 16px; min-width: min(300px, calc(100vw - 40px)); }
.search-empty__stack > * { min-width: 0; }
.search-form { position: relative; }
.search-form__input {
  display: block; width: 100%; padding: 10.4px 12.8px; border: 1px solid rgb(207, 207, 207); background: transparent;
  color: #1c1c1c; font: inherit; line-height: 1.65; text-align: start; outline: none; border-radius: 0;
}
.search-form__input::placeholder { color: rgba(28, 28, 28, 0.65); opacity: 1; }
.search-form__submit { position: absolute; top: 10.4px; right: 12.8px; width: 24px; height: 24px; color: rgba(28, 28, 28, 0.65); }
.search-form__submit svg { display: block; }

/* Results: count, tabs, then the sort and filter bar, filters at the left and the cards. */
.search-page .section-spacing { padding-block: 64px; }
.search-head { display: grid; gap: 16px; }
.search-tabs { display: flex; column-gap: 70px; width: max-content; margin-inline: auto; box-shadow: 0 1px rgb(207, 207, 207); }
.search-tabs__tab { padding: 0 0 10px; opacity: 0.6; }
.search-tabs__tab[aria-selected="true"] { opacity: 1; box-shadow: 0 1px #1c1c1c; }
.search-panel { margin-top: 33px; }
.search-panel[data-panel="products"] { display: grid; gap: 48px; }
.search-main--single .search-panel { margin-top: 0; }
.search-panel[hidden] { display: none; }
.search-toolbar {
  position: sticky; top: var(--search-sticky-top, 0); z-index: 2; display: flex; flex-direction: row-reverse; justify-content: space-between;
  margin-inline: -48px; background: #efefef; box-shadow: 0 1px rgb(207, 207, 207), 0 -1px rgb(207, 207, 207);
}
.search-toolbar__item { position: relative; display: flex; border-left: 1px solid rgb(207, 207, 207); }
.search-toolbar__item--filter { display: none; }
.search-toolbar__button {
  display: block; width: 100%; padding: 18px 46px; opacity: 0.5;
  font-family: "Instrument Sans", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 11px; line-height: 1.65; letter-spacing: 0.2em;
}
.search-toolbar__label { display: flex; align-items: center; justify-content: center; gap: 10px; }
.search-chevron { display: block; flex: none; transition: rotate 0.2s ease-in-out; }
[aria-expanded="true"] .search-chevron, .search-facet[data-open="true"] .search-chevron { rotate: 180deg; }
.search-sort {
  position: absolute; top: 100%; right: -1px; z-index: 999; display: grid; gap: 12px; padding: 20px 40px 20px 20px;
  background: #efefef; border: 1px solid rgb(207, 207, 207); white-space: nowrap;
}
.search-sort[hidden] { display: none; }
.search-sort__option { display: block; text-align: start; color: rgba(28, 28, 28, 0.65); }
.search-sort__option[aria-selected="true"], .search-sort__option:hover { color: #1c1c1c; }
.search-collection { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 50px; margin-bottom: 64px; align-items: start; }
.search-facets { position: sticky; top: 160px; }
.search-facet + .search-facet { border-top: 1px solid rgb(207, 207, 207); }
.search-facet__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 20px 0; text-align: start; }
.search-facet:first-child .search-facet__toggle { padding-top: 0; }
.search-facet__body { display: none; margin-top: -4px; padding: 0 20px 20px 0; }
.search-facet[data-open="true"] .search-facet__body { display: block; }
.search-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.search-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.search-switch__track { position: relative; flex: none; width: 36px; height: 16px; margin-top: 5px; border-radius: 9999px; background: rgba(28, 28, 28, 0.2); transition: background 0.2s; }
.search-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: translate 0.2s; }
.search-switch input:checked + .search-switch__track { background: #1c1c1c; }
.search-switch input:checked + .search-switch__track::after { translate: 20px 0; }
.search-range { position: relative; height: 2px; margin: 4px 0 18px; border-radius: 2px;
  background: linear-gradient(to right, rgba(28, 28, 28, 0.12) var(--range-from, 0%), #1c1c1c var(--range-from, 0%), #1c1c1c var(--range-to, 100%), rgba(28, 28, 28, 0.12) var(--range-to, 100%)); }
.search-range input { position: absolute; inset: -7px 0 auto; width: 100%; height: 16px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.search-range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #1c1c1c; cursor: pointer; }
.search-range input::-moz-range-thumb { pointer-events: auto; width: 10px; height: 10px; border: 0; border-radius: 50%; background: #1c1c1c; cursor: pointer; }
.search-price-inputs { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.65; }
.search-price { display: flex; align-items: center; justify-content: space-between; padding: 7px; border: 1px solid rgba(28, 28, 28, 0.12); }
.search-price input { width: 100%; min-width: 0; margin-left: 10px; border: 0; background: none; font: inherit; text-align: end; outline: none; -moz-appearance: textfield; }
.search-price input::-webkit-inner-spin-button { -webkit-appearance: none; }
.search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 64px 60px; }
.search-grid__none { grid-column: 1 / -1; }
.search-card { display: grid; gap: 20px; align-content: start; }
.search-card__figure img { display: block; width: 100%; height: auto; }
.search-card__info { display: grid; gap: 4px; justify-items: center; text-align: center; }
.search-card__title { display: block; }
.search-card__price { display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.search-pages { display: grid; gap: 12px; width: 400px; max-width: 100%; margin-inline: auto; text-align: center; }
.search-pages__link {
  background: linear-gradient(to right, #1c1c1c, #1c1c1c) 0 min(100%, 1.98em) / 0 1px no-repeat;
  transition: background-size 0.3s ease-in-out;
}
.search-pages__link:hover { background-size: 100% 1px; }
.search-drawer { position: fixed; inset: 0; z-index: 1000; }
.search-drawer[hidden] { display: none; }
.search-drawer__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.search-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(359px, calc(100% - 31px)); background: #efefef; }
.search-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid rgb(207, 207, 207); }
.search-drawer__close { width: 16px; height: 16px; }
.search-drawer__body { flex: 1; overflow: auto; padding: 20px; }
.search-drawer__foot { padding: 16px 20px 16px; border-top: 1px solid rgb(207, 207, 207); }
.search-drawer .button { text-decoration: none; }
/* Results at in-between widths (live): 3 across up to 1399 wide (4 from 1400); below 1000 the
   filters move into the Filter drawer and the toolbar shows the Filter button. */
@media (min-width: 1000px) and (max-width: 1399px) {
  .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 48px; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .search-collection { gap: 32px; }
}
@media (max-width: 999px) {
  .search-page .section-spacing { padding-block: 40px; }
  .search-toolbar__item--filter { display: flex; }
  .search-collection { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 40px; }
  .search-collection > .search-facets { display: none; }
  .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
}
@media (min-width: 700px) and (max-width: 999px) {
  /* Sort and Filter sit together at the right. */
  .search-toolbar { margin-inline: -32px; justify-content: flex-start; }
  .search-tabs { column-gap: 40px; }
  .search-panel { margin-top: 25px; }
  .search-main--single .search-panel { margin-top: 0; }
}
@media (max-width: 699px) {
  .search-page .section-spacing { padding-block: 40px; }
  .search-tabs { column-gap: 40px; }
  .search-panel { margin-top: 24.9px; }
  .search-main--single .search-panel { margin-top: 0; }
  .search-panel[data-panel="products"] { gap: 24px; }
  .search-toolbar { flex-direction: row; margin-inline: -20px; }
  .search-toolbar__item, .search-toolbar__item--filter { display: flex; flex: 1 1 0; height: 48px; align-items: flex-start; }
  .search-toolbar__button { padding: 12px 0; }
  .search-collection { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 40px; }
  .search-collection > .search-facets { display: none; }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 10px; margin-inline: -10px; }
}
