:root {
  --cream:#faf6ef;
  --blue:#556b8d;
  --ink:#394a60;
  --muted:#687a8c;
  --teal:#247d7a;
  --line:#dce2e5;
  --space:32px;
  --radius:4px;
  font-family:"Avenir Next",Avenir,"Segoe UI",sans-serif;
  color:var(--blue);
  background:#f1f0ec;
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,textarea,select {
  font:inherit;
}

button,a,select {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
  color:inherit;
}

button:disabled {
  cursor:default;
  opacity:.55;
}

button {
  border:0;
  background:none;
}

a {
  color:inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid var(--teal);
  outline-offset:5px;
}

.site-shell {
  max-width:1320px;
  margin:36px auto;
  background:#fff;
  min-height:calc(100vh - 72px);
}

.topbar {
  min-height:104px;
  padding:24px 56px;
  background-color:#faf6ef;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.topbar nav {
  display:flex;
  gap:28px;
}

.nav-link {
  padding:12px 0;
  font-size:19px;
  letter-spacing:.02em;
  position:relative;
}

.nav-link.is-active {
  font-weight:700;
}

.nav-link:after {
  content:"";
  position:absolute;
  bottom:3px;
  left:0;
  right:0;
  height:1px;
  background:var(--blue);
  transform:scaleX(0);
  transition:transform .2s;
}

.nav-link:hover:after {
  transform:scaleX(1);
}

.header-actions {
  display:flex;
  align-items:center;
  gap:28px;
}

.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  padding:9px;
}

.icon-button svg {
  width:100%;
  height:100%;
}

.account-button {
  border: 0;
  background: transparent;
  color: var(--blue);
}
.cart-button {
  color: var(--blue);
  position: relative;
}
.cart-button>span:first-child {
  width:100%;
  height:100%;
}

.cart-count {
  position:absolute;
  right:0px;
  top:2px;
  border-radius:50%;
  background:var(--blue);
  color:white;
  font-size:10px;
  width:18px;
  height:18px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.hero img {
  width:100%;
  height:auto;
  display:block;
}

.socials {
  position:fixed;
  left:max(5px,calc((100vw - 1450px)/2));
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:15px;
  z-index:2;
  color:#171e20;
}

.socials .icon-button {
  background:transparent;
  border-radius:0;
}

.socials .icon-button:hover {
  background:transparent;
  color:var(--blue);
}

.collection {
  padding:20px 48px 60px;
  min-height:480px;
}

.collection-toolbar {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-height:42px;
  gap:20px;
  margin-bottom:28px;
}

.collection-note {
  margin:0 auto 0 0;
  font-size:13px;
}

select {
  border:1px solid #bccbd9;
  border-radius:0;
  background:white;
  color:var(--blue);
  padding:10px 32px 10px 13px;
  font-size:13px;
  max-width:100%;
}

.product-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:34px;
}

.product-card {
  min-width:0;
}

.product-button {
  display:block;
  width:100%;
  padding:0;
  text-align:center;
}

.product-images {
  position:relative;
  display:block;
  aspect-ratio:3/4;
  overflow:hidden;
  background:#fff;
}

.artwork {
  display:block;
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}

.artwork img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.artwork--crop {
  aspect-ratio:267/357;
}

.artwork--crop img {
  position:absolute;
  max-width:none;
  width:368.5393%;
  height:auto;
  left:-134.0824%;
  top:-149.8599%;
}

.product-images>.artwork {
  position:absolute;
  inset:0;
  transition:opacity .35s ease;
}

.product-images > .card-image {
  opacity: 0;
  transition: opacity .45s cubic-bezier(.22, 1, .36, 1);
}
.product-images > .card-image.is-current {
  opacity: 1;
}
.image-slider {
  width: 80%;
  height: 32px;
  margin: 16px auto 8px;
  display: flex;
  align-items: center;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.image-slider[aria-disabled="true"] {
  cursor: default;
  touch-action: auto;
}
.image-slider:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.image-slider-track {
  display: block;
  width: 100%;
  height: 3px;
  background: #c5cfd9;
}
.image-slider-thumb {
  display: block;
  height: 100%;
  width: calc(100% / var(--image-count));
  transform: translateX(calc(100% * var(--image-index)));
  background: var(--blue);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.product-caption {
  position: relative;
  min-height: 66px;
  padding: 0 46px;
  text-align: center;
}
.product-label {
  padding: 0;
  max-width: 100%;
}
.product-label .product-title {
  margin-top: 0;
}
.quick-add {
  position: absolute;
  right: 30px;
  top: 7px;
  color: var(--blue);
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.product-card:hover .quick-add,
.product-card:focus-within .quick-add {
  opacity: 1;
}
.quick-add:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.03);
}
.product-card:hover .quick-add:disabled,
.product-card:focus-within .quick-add:disabled {
  opacity: .45;
}
@media(hover:none), (pointer:coarse) {
  .quick-add {
    opacity: 1;
  }
  .quick-add:disabled {
    opacity: .45;
  }
}
@media(max-width:520px) {
  .product-caption {
    padding: 0 32px 0 0;
    text-align: left;
  }
  .quick-add {
    width: 30px;
    height: 34px;
    padding: 6px;
  }
  .image-slider {
    margin-top: 8px;
    margin-bottom: 4px;
  }
}
.product-title,.product-price,.product-note {
  display:block;
}

.product-title {
  margin-top:18px;
  font-size:16px;
}

.product-price {
  margin-top:5px;
  font-size:14px;
}

.product-note {
  margin-top:7px;
  font-size:11px;
  letter-spacing:.06em;
  color:var(--teal);
}

footer {
  margin:0 48px;
  padding:24px 0;
  border-top:1px solid #eceeea;
  display:flex;
  align-items:center;
  gap:22px;
  font-size:12px;
}

footer>span:first-child {
  font-family:Georgia,serif;
  font-size:19px;
  color:var(--teal);
}

footer small {
  margin-left:auto;
  color:var(--muted);
  font-size:10px;
}

.editorial {
  padding:64px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  color:var(--ink);
  line-height:1.8;
}

.eyebrow {
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
  color:var(--teal);
  font-weight:600;
}

h2 {
  font-family:Georgia,serif;
  font-size:34px;
  font-weight:400;
  line-height:1.2;
  color:var(--ink);
  margin:14px 0 24px;
}

h3 {
  font-size:16px;
  font-weight:500;
  margin:0;
}

.muted {
  color:var(--muted);
}

.small {
  font-size:12px;
  line-height:1.7;
}

.editorial form {
  display:flex;
  flex-direction:column;
}

.editorial label {
  font-size:13px;
  margin-bottom:7px;
}

.editorial input,.editorial textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:13px;
  background:#fdfcf9;
  color:var(--ink);
  margin-bottom:18px;
}

.editorial textarea {
  resize:vertical;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--teal);
  color:#fff;
  padding:14px 23px;
  border-radius:var(--radius);
  font-size:14px;
  min-height:46px;
}

.button:hover:not(:disabled) {
  background:#1d6563;
}

.about-art {
  max-width:300px;
  justify-self:center;
  text-align:center;
  font-size:12px;
}

.about-art .artwork {
  height:340px;
  margin-bottom:10px;
}

dialog {
  border:0;
  border-radius:6px;
  color:var(--ink);
  padding:48px;
  width:min(880px,calc(100% - 40px));
  max-height:90dvh;
  overflow:auto;
  box-shadow:0 25px 100px #182f3540;
}

dialog::backdrop {
  background:#1d302d80;
  backdrop-filter:blur(3px);
}

.dialog-open {
  overflow:hidden;
}

.dialog-close {
  position:absolute;
  right:10px;
  top:8px;
  font-size:30px;
  z-index:1;
}

.product-detail {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:36px;
}

.product-description {
  align-self:center;
  line-height:1.8;
}

.detail-price {
  font-size:20px;
}

.product-description .button {
  width:100%;
  margin-top:12px;
  height:48px;
  min-height:48px;
  padding:0 23px;
}

#selected-image {
  height:390px;
}

#selected-image .artwork--crop {
  height:100%;
  width:auto;
  margin:auto;
}

.thumbnails {
  display:flex;
  gap:10px;
  margin-top:14px;
}

.thumbnail {
  width:52px;
  height:64px;
  padding:3px;
  border:1px solid var(--line);
}

.thumbnail[aria-pressed=true] {
  border:2px solid var(--teal);
}

.text-dialog {
  padding:20px 0;
  max-width:540px;
  line-height:1.8;
}

.cart-lines {
  margin-top:25px;
}

.cart-line {
  display:grid;
  grid-template-columns:80px 1fr auto;
  gap:22px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
  align-items:center;
}

.cart-line>.artwork {
  height:104px;
}

.cart-line p {
  font-size:14px;
  margin:8px 0;
}

.quantity {
  display:flex;
  align-items:center;
  gap:8px;
}

.quantity .icon-button {
  border:1px solid var(--line);
  width:32px;
  height:32px;
}

.quantity .icon-button:not(:disabled) {
  background: transparent;
  border-color: var(--line);
  color: var(--blue);
  font-weight: 600;
  padding: 0;
  line-height: 1;
}
#quantity-minus {
  font-weight: 600;
}

.text-button {
  text-decoration:underline;
  font-size:12px;
  padding:10px;
}

.cart-total {
  display:flex;
  justify-content:space-between;
  padding:25px 0;
}

.cart-dialog>.button {
  width:100%;
}

.empty-cart {
  padding:45px 0;
  text-align:center;
}

.notice {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translate(-50%,16px);
  background:#264e49;
  color:white;
  padding:15px 22px;
  border-radius:5px;
  font-size:13px;
  box-shadow:0 5px 25px #0002;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s,transform .2s;
  z-index:5;
  max-width:calc(100% - 30px);
  width:max-content;
}

.notice.is-visible {
  opacity:1;
  transform:translate(-50%,0);
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:10;
  background:white;
  padding:14px;
}

.skip-link:focus {
  top:10px;
}

[hidden] {
  display:none!important;
}

@media(max-width:1440px) {
  .site-shell {
    margin:24px 54px;
  }
  .topbar {
    padding:20px 40px;
    min-height:90px;
  }
  .collection {
    padding:18px 36px 50px;
  }
  .socials {
    left:5px;
  }
  .socials .icon-button {
    width:38px;
    height:38px;
  }
}

@media(max-width:800px) {
  .site-shell {
    margin:0;
    min-height:100vh;
  }
  .topbar {
    padding:18px 22px;
    gap:15px;
    flex-wrap:wrap;
  }
  .topbar nav {
    gap:18px;
  }
  .nav-link {
    font-size:15px;
  }
  .header-actions {
    gap:12px;
    margin-left:auto;
  }
  .product-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:25px;
  }
  .collection {
    padding:18px 24px 40px;
  }
  .editorial {
    padding:36px 28px;
    gap:30px;
    grid-template-columns:1fr;
  }
  .about-art {
    display:none;
  }
  footer {
    margin:0 24px;
    flex-wrap:wrap;
    gap:10px;
  }
  footer small {
    width:100%;
    margin:0;
  }
  .product-detail {
    gap:24px;
  }
  dialog {
    padding:40px 25px;
  }
  #selected-image {
    height:300px;
  }
}

@media(max-width:520px) {
  .topbar {
    padding:14px 16px;
    gap:4px;
  }
  .topbar nav {
    order:2;
    width:100%;
    justify-content:space-between;
    gap:9px;
  }
  .nav-link {
    font-size:12px;
    padding:14px 0;
  }
  .header-actions {
    width:100%;
    justify-content:flex-end;
    gap:14px;
  }
  .header-actions .icon-button {
    width:34px;
    height:34px;
    padding:7px;
  }
  .hero img {
    aspect-ratio:1.9;
    object-fit:cover;
  }
  .collection {
    padding:16px 15px 32px;
  }
  .collection-toolbar {
    margin-bottom:24px;
    flex-wrap:wrap;
  }
  .collection-note {
    font-size:11px;
  }
  .product-grid {
    gap:24px 13px;
  }
  .product-title {
    font-size:13px;
    margin-top:12px;
  }
  .product-price {
    font-size:12px;
  }
  .product-note {
    font-size:9px;
  }
  .socials {
    gap:15px;
  }
  .socials .icon-button {
    width:35px;
    height:35px;
    padding:9px;
  }
  .product-detail {
    grid-template-columns:1fr;
  }
  .product-description {
    font-size:14px;
  }
  #selected-image {
    height:280px;
  }
  h2 {
    font-size:29px;
  }
  .cart-line {
    grid-template-columns:55px 1fr;
    gap:14px;
  }
  .cart-line>.artwork {
    height:76px;
  }
  .cart-line>.text-button {
    grid-column:2;
    justify-self:start;
    padding:0;
  }
  .editorial {
    padding:30px 20px;
  }
  .editorial p {
    font-size:14px;
  }
  footer {
    margin:0 15px;
  }
  footer>span:nth-child(2) {
    display:none;
  }
}

.product-page-open .site-shell {
  max-width: none;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 100vh;
}
.product-page-open .socials {
  left: 5px;
}
.product-page {
  --gallery-height: min(800px, 86dvh);
  --gallery-width: calc(72px + var(--gallery-height) * .812);
  --gallery-inset: clamp(0px, calc(100vw - 1200px), 90px);
  padding: 28px clamp(16px, calc((100vw - 768px) * .07 + 16px), 56px) 64px;
  max-width: 1600px;
  margin: auto;
}
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
  font-size: 13px;
}
.back-link:hover {
  text-decoration: underline;
}
.product-page .product-detail {
  min-height: calc(100dvh - 210px);
  align-items: center;
}
.product-page #selected-image {
  height: var(--gallery-height);
}
.product-description h1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 24px;
}
.product-description h1:focus {
  outline: none;
}
.related-products {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.related-products .product-grid {
  max-width: 1100px;
  gap: 32px;
}
.product-detail {
  grid-template-columns: calc(var(--gallery-width) + var(--gallery-inset)) minmax(260px, 1fr);
  gap: 42px;
}
.product-description {
  min-width: 0;
}
.product-gallery {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: var(--gallery-width);
  margin-left: var(--gallery-inset);
  margin-right: 0;
  align-self: start;
}
@media(max-width:1150px) {
  .product-page .product-detail {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 32px;
  }
  .product-description {
    max-width: 680px;
    grid-row: 1;
    align-self: start;
  }
  .product-gallery {
    grid-row: 2;
  }
}
@media(max-width:767px) {
  .product-page {
    --gallery-width: 100%;
    --gallery-height: clamp(300px, 85vw, 560px);
    padding: 20px 16px 36px;
  }
  .related-products .product-grid {
    gap: 24px 14px;
  }
}
#selected-image img {
  object-position: left top;
}
.image-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.image-sidebar .thumbnails {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  max-height: 400px;
  overflow-y: auto;
  padding: 5px;
}
.thumbnail {
  flex-shrink: 0;
}
#selected-image {
  height: min(580px, 68dvh);
  min-width: 0;
}
#selected-image .artwork--crop {
  width: 100%;
  height: auto;
  max-height: 100%;
}
.product-description h2 {
  margin-top: 0;
}
.product-quantity {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  font-size: 14px;
}
.product-quantity output {
  min-width: 30px;
  text-align: center;
}
.button--outline {
  background: white;
  border: 1px solid var(--teal);
  color: var(--teal);
}
.button--outline:hover:not(:disabled) {
  background: var(--cream);
}
.search-dialog input {
  display: block;
  width: 100%;
  padding: 14px;
  margin: 12px 0 24px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.search-result {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.search-result .artwork {
  height: 64px;
}
.search-result small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
footer {
  justify-content: center;
}
footer small {
  margin: 0;
  text-align: center;
}
@media(max-width:800px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  #selected-image {
    height: 400px;
  }
}
@media(max-width:520px) {
  .product-gallery {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 6px;
  }
  .image-sidebar .thumbnail {
    width: 40px;
    height: 52px;
  }
  .image-sidebar .thumbnails {
    padding: 2px;
    gap: 8px;
  }
  #selected-image {
    height: 300px;
  }
  .search-result {
    gap: 10px;
    font-size: 13px;
  }
}
/* Social links float within the page instead of reserving a side rail. */
.site-shell {
  margin-left: auto;
  margin-right: auto;
}
.socials {
  display: contents;
}
.socials .icon-button {
  position: fixed;
  z-index: 2;
  left: max(12px, calc((100vw - 1320px) / 2 + 12px));
  top: calc(50% + var(--social-offset));
  transform: translateY(-50%);
  color: #fff;
  background: transparent;
  mix-blend-mode: difference;
}
.socials .icon-button:hover {
  color: #fff;
  background: transparent;
}
.socials .icon-button.is-over-hero {
  mix-blend-mode: normal;
  filter: drop-shadow(0 1px 3px #0005);
}
/* Mobile shop navigation and product details. */
@media(max-width:767px) {
  .topbar {
    padding: 10px 16px 12px;
    gap: 0;
  }
  .topbar nav {
    order: 0;
    width: 100%;
    justify-content: space-between;
    gap: 9px;
  }
  .nav-link {
    font-size: clamp(12px, 3.3vw, 15px);
    padding: 10px 0;
  }
  .header-actions {
    order: 1;
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }
  .header-actions .icon-button {
    width: 34px;
    height: 34px;
    padding: 8px;
  }
  .cart-count {
    width: 15px;
    height: 15px;
    font-size: 9px;
  }
  .socials .icon-button {
    left: 2px;
    width: 30px;
    height: 30px;
    padding: 8px;
    transition: transform .3s ease, visibility 0s;
  }
  .product-page-open .socials .icon-button {
    transform: translate(-44px, -50%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, visibility 0s .3s;
  }
  .product-page {
    padding-top: 12px;
  }
  .product-page .back-link {
    margin-bottom: 12px;
  }
  .product-page .product-detail {
    gap: 18px;
  }
  .product-page .product-gallery {
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    width: 100%;
  }
  .product-page #selected-image {
    grid-row: 1;
  }
  .product-page #selected-image img {
    object-position: center;
  }
  .product-page .image-sidebar {
    grid-row: 2;
    min-width: 0;
    flex-direction: row;
    justify-content: center;
  }
  .product-page .image-sidebar .thumbnails {
    flex-direction: row;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 5px;
  }
  .product-page .thumbnail {
    width: 44px;
    height: 54px;
  }
  .product-page .product-description {
    grid-row: 2;
    max-width: none;
    font-size: 14px;
    line-height: 1.5;
  }
  .product-page .product-description h1 {
    font-size: 32px;
    margin-bottom: 8px;
  }
  .product-page .product-description p {
    margin: 8px 0;
  }
  .product-page .detail-price {
    font-size: 18px;
  }
  .product-page .product-quantity {
    margin-top: 14px;
    gap: 6px;
  }
  .product-page .product-description .small {
    line-height: 1.4;
  }
  .product-page .product-description .button {
    height: 40px;
    min-height: 40px;
    margin-top: 8px;
    padding: 0 18px;
  }
  .product-page .related-products {
    margin-top: 32px;
    padding-top: 24px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

/* Motif-led Gelato previews use the existing collection and gallery layout. */
.product-card--gelato .product-caption { padding: 0; }
.gelato-status { text-align: center; margin-top: 10px; }
.gelato-status p { margin: 0 0 6px; }
.gelato-status .text-button { font-size: 12px; }
.image-fallback {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px; width: 100%; height: 100%; padding: 10px; text-align: center;
  color: var(--muted); background: var(--cream); font-size: 12px; line-height: 1.5;
}
.image-fallback small { font-size: 10px; }
.artwork--motif { display: grid; place-items: center; }
.motif-window {
  display: block; position: relative; overflow: hidden;
  width: 76%; aspect-ratio: 4 / 5;
}
.artwork--motif .motif-window img {
  position: absolute; max-width: none; width: 250%; height: auto;
  left: -75%; top: -46%;
}
.gelato-product .product-gallery { width: 100%; margin: 0; grid-template-columns: 92px minmax(0,1fr); gap: 20px; }
.gelato-product .product-detail { grid-template-columns: minmax(0,1.35fr) minmax(280px,1fr); gap: 56px; }
.gelato-product #selected-image { height: min(620px, 68dvh); }
.gelato-product #selected-image > .artwork { display: grid; place-items: center; }
.gelato-product #selected-image img { object-position: center; }
.gelato-product .image-sidebar .thumbnails { max-height: none; }
.gelato-product .fish-thumbnail { width: 76px; height: 108px; padding: 5px; display: flex; flex-direction: column; gap: 4px; }
.fish-thumbnail > .artwork { min-height: 0; flex: 1; }
.fish-thumbnail > span:last-child:not(.artwork) { font-size: 11px; line-height: 1.4; }
.fish-thumbnail[aria-pressed="true"] { border-color: var(--teal); background: var(--cream); box-shadow: 0 0 0 1px var(--teal); }
.fish-thumbnail .image-fallback { font-size: 8px; padding: 2px; }
.fish-thumbnail .image-fallback small { display: none; }
.gelato-product .format-heading { margin-top: 28px; }
.gelato-product .gelato-status { text-align: left; margin-top: 24px; }
.size-picker { border: 0; padding: 0; margin: 20px 0; }
.size-picker legend { padding: 0; margin-bottom: 10px; font-size: 14px; }
.size-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.size-button { min-width: 48px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; }
.size-button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: white; }
.size-button:hover { border-color: var(--teal); }
.size-button:focus-visible, .fish-thumbnail:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media(max-width:1150px) {
  .gelato-product .product-detail { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .gelato-product .product-gallery { grid-row: 1; max-width: 680px; margin: auto; }
  .gelato-product .product-description { grid-row: 2; width: 100%; max-width: 680px; margin: auto; }
}
@media(max-width:767px) {
  .gelato-product .product-gallery { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .gelato-product #selected-image { grid-row: 1; height: clamp(300px, 90vw, 500px); }
  .gelato-product .image-sidebar { grid-row: 2; flex-direction: row; justify-content: center; min-width: 0; }
  .gelato-product .image-sidebar .thumbnails { flex-direction: row; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
  .gelato-product .product-description h1 { margin-bottom: 12px; }
  .prints-open .socials { display: none; }
  .topbar nav { flex-wrap: wrap; }
}

/* Sliding mobile navigation, matching the cream and blue shop palette. */
.menu-toggle, .menu-close, .menu-backdrop { display: none; }
@media(max-width:767px) {
  .topbar { min-height: 60px; flex-wrap: nowrap; padding: 10px 16px; gap: 12px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; flex-shrink: 0; }
  .menu-toggle span { display: block; width: 19px; height: 1px; background: var(--blue); }
  .header-actions { width: auto; margin-left: auto; }
  .topbar nav {
    position: fixed; inset: 0 auto 0 0; z-index: 12;
    width: min(220px, 78vw); height: 100dvh;
    display: flex; flex-direction: column; align-items: stretch;
    justify-content: space-around; gap: 0; padding: 48px 16px 36px;
    background: var(--cream); border-right: 1px solid #bccbd9;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .32s cubic-bezier(.22,1,.36,1), visibility 0s .32s;
  }
  .topbar nav .nav-link { font-size: 16px; padding: 14px 0; opacity: 0; transform: translateX(-12px); transition: opacity .18s, transform .25s; }
  .menu-close { display: block; position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; font-size: 26px; font-weight: 300; }
  .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 11; background: transparent; visibility: hidden; pointer-events: none; }
  .menu-open { overflow: hidden; }
  .menu-open .topbar nav { visibility: visible; transform: translateX(0); transition-delay: 0s; }
  .menu-open .topbar nav .nav-link { opacity: 1; transform: translateX(0); transition-delay: .08s; }
  .menu-open .menu-backdrop { visibility: visible; pointer-events: auto; }
}

@media(prefers-reduced-motion:reduce) {
  .topbar nav, .topbar nav .nav-link { transition: none; }
}

/* Originals image tile in the mobile drawer. */
.nav-originals-art { display: none; }
@media(max-width:767px) {
  .topbar nav [data-page="originals"] { padding: 0; }
  .nav-originals-label { display: none; }
  .nav-originals-art {
    display: block; position: relative; overflow: hidden;
    width: 100%; max-width: 160px; aspect-ratio: 4 / 3;
    margin: 0 auto; border-radius: 10px; background: #102333; box-shadow: 0 8px 22px rgba(32, 47, 64, .18); transform: scale(1); transition: transform .22s ease, box-shadow .22s ease;
  }
  .nav-originals-art img {
    display: block; position: absolute; width: 128%; height: 164%;
    max-width: none; left: -14%; top: -32%; object-fit: cover;
  }
  .topbar nav [data-page="originals"]:after { display: none; }
}

@media(max-width:767px) {
  .nav-originals-art { background: transparent; }
  .nav-originals-art svg { display: block; width: 100%; height: 100%; }
}

@media (hover:hover) and (max-width:767px) {
  .topbar nav [data-page="originals"]:hover .nav-originals-art { transform: scale(1.015); box-shadow: 0 14px 32px rgba(32, 47, 64, .34); }
}

/* Shared image tiles for the mobile navigation drawer. */
.nav-image-link { padding: 0; }
.nav-tile {
  display: block; position: relative; overflow: hidden;
  width: 100%; max-width: 160px; aspect-ratio: 4 / 3; margin: 0 auto;
  border-radius: 10px; background: transparent;
  box-shadow: 0 9px 24px rgba(32, 47, 64, .28);
  transform: scale(1); transition: transform .22s ease;
}
.nav-tile > img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.nav-tile-word {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: transparent; font: 700 clamp(20px, 5vw, 32px)/1 Georgia, serif;
  -webkit-text-stroke: 1px transparent;
}
.nav-tile:has(.nav-tile-word) > img { mask-image: none; }
@media(max-width:767px) {
  .nav-originals-art { box-shadow: 0 9px 24px rgba(32, 47, 64, .28); }
  .topbar nav [data-page="originals"]:hover .nav-originals-art { box-shadow: 0 9px 24px rgba(32, 47, 64, .28); }
  .nav-image-link { padding: 0 !important; }
  .nav-image-link:after { display: none; }
}
@media (hover:hover) and (max-width:767px) {
  .nav-image-link:hover .nav-tile { transform: scale(1.015); }
}

/* Shared image tiles for the mobile navigation drawer. */
.nav-image-link { padding: 0; }
.nav-tile {
  display: block; position: relative; overflow: hidden;
  width: 100%; max-width: 160px; aspect-ratio: 4 / 3; margin: 0 auto;
  border-radius: 10px; background: transparent;
  box-shadow: 0 9px 24px rgba(32, 47, 64, .28);
  transform: scale(1); transition: transform .22s ease;
}
.nav-tile > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-title-mask { position: absolute; inset: 0; width: 100%; height: 100%; }
@media(max-width:767px) {
  .nav-originals-art { box-shadow: 0 9px 24px rgba(32, 47, 64, .28); }
  .topbar nav [data-page="originals"]:hover .nav-originals-art { box-shadow: 0 9px 24px rgba(32, 47, 64, .28); }
  .nav-image-link { padding: 0 !important; }
  .nav-image-link:after { display: none; }
}
@media (hover:hover) and (max-width:767px) { .nav-image-link:hover .nav-tile { transform: scale(1.015); } }

@media(max-width:767px) { .nav-tile { background: var(--cream); } }

@media(max-width:767px) {
  .topbar nav {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    padding: 40px 16px 28px;
  }
  .topbar nav > [data-page] { width: 100%; align-self: center; }
}
/* Slightly stronger persistent tile shadow and hover lift. */
@media(max-width:767px) {
  .nav-tile,
  .nav-originals-art { box-shadow: 0 11px 28px rgba(32, 47, 64, .34); }
}
@media (hover:hover) and (max-width:767px) {
  .nav-image-link:hover .nav-tile,
  .topbar nav [data-page="originals"]:hover .nav-originals-art { transform: scale(1.03); }
}

@media(max-width:767px) {
  .topbar nav { transition: transform .48s cubic-bezier(.22,1,.36,1) 0s, visibility 0s linear .48s; }
  .menu-open .topbar nav { transition: transform .32s cubic-bezier(.22,1,.36,1) 0s, visibility 0s; }
}
@media(max-width:767px) {
  .menu-toggle { width: 44px; align-items: flex-start; gap: 6px; }
  .menu-toggle span { height: 4px; background: var(--blue); border-radius: 0; }
  .menu-toggle span:nth-child(1) { width: 32px; }
  .menu-toggle span:nth-child(2) { width: 22px; }
  .menu-toggle span:nth-child(3) { width: 28px; }
}
@media(max-width:767px) {
  .menu-toggle span { height: 1.5px; }
}
@media(max-width:767px) {
  .menu-toggle { transform: translateX(-3px); }
  .menu-toggle span:nth-child(1) { width: 27px; }
  .menu-toggle span:nth-child(2) { width: 18px; }
  .menu-toggle span:nth-child(3) { width: 23px; }
}
@media(max-width:767px) {
  .menu-toggle span { height: 1px; }
}
@media(max-width:767px) {
  .menu-toggle span { height: 1.5px; }
}
@media (hover:hover) and (max-width:767px) {
  .menu-toggle { transition: transform .2s ease; }
  .menu-toggle:hover { transform: translateX(-3px) scale(1.035); }
}

/* Desktop text navigation; image tiles belong to the mobile drawer. */
@media(min-width:768px) {
  .topbar nav .nav-image-link { padding: 12px 0; }
  .topbar nav .nav-tile { display: none; }
}
@media(max-width:767px) {
  .topbar nav .nav-desktop-label { display: none; }
}
