/* A contact sheet for the existing jewellery photographs. The name, picture
   and magnifier share one link, so keyboard and pointer open the same viewer. */
body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four {
  --piece-inset: clamp(.85rem, 1.45vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 1.8vw, 1.7rem);
  margin-top: clamp(1.3rem, 2.7vw, 2.75rem);
}
#contenuto .cso-page-gallery .cso-gallery-grid--four > figure {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #e4dfd9;
  border-radius: var(--cso-photo-radius, 12px);
  background: #fff;
  overflow: visible;
}
body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four > figure > .cso-gallery-open {
  position: static;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  align-self: stretch;
  width: 100%;
  aspect-ratio: 1.17;
  min-height: 0;
  margin: 0;
  padding: 0;
  isolation: auto;
  overflow: visible;
}
body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four > figure > .cso-gallery-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four > figure > .cso-gallery-open > .cso-photo {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  border-radius: var(--cso-photo-radius, 12px) var(--cso-photo-radius, 12px) 0 0 !important;
  overflow: hidden;
}
body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four .cso-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(.5rem, .95vw, 1.1rem) !important;
  object-position: center;
  object-fit: contain !important;
}
/* Keep the label and subject on the same axis across differently shaped originals. */
body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four > figure > figcaption {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: .85rem var(--piece-inset) 1rem !important;
  border-top: 1px solid #efebe6 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  font: 400 clamp(1.1rem, 1.45vw, 1.44rem)/1.28 var(--serif, Georgia, serif);
  color: #292522;
  letter-spacing: .004em;
  overflow-wrap: break-word;
  text-wrap: pretty;
  text-align: start;
}
body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four > figure:first-child figcaption::before {
  content: none;
}
#contenuto .cso-page-gallery .cso-gallery-grid--four .cso-gallery-open__icon {
  inset: auto .65rem .65rem auto;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #d6d0c8;
  border-radius: 50%;
  background: #fff;
  color: #453d36;
}
#contenuto .cso-page-gallery .cso-gallery-grid--four .cso-gallery-open__icon svg {
  width: 1.02rem;
  height: 1.02rem;
}
#contenuto .cso-page-gallery .cso-gallery-grid--four > figure:focus-within {
  outline: 2px solid #705234;
  outline-offset: 3px;
}
#contenuto .cso-page-gallery .cso-gallery-grid--four .cso-gallery-open:focus-visible { outline: 0; }
@media (hover: hover) and (pointer: fine) {
  #contenuto .cso-page-gallery .cso-gallery-grid--four > figure:hover { border-color: #b9afa3; }
  #contenuto .cso-page-gallery .cso-gallery-grid--four > figure:hover .cso-gallery-open__icon {
    background: #302a26;
    color: #fff;
    border-color: #302a26;
  }
}
@media (min-width: 731px) and (max-width: 1140px) {
  body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four {
    --piece-inset: clamp(.7rem, 2.2vw, 1rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
  }
  body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four > figure > .cso-gallery-open { aspect-ratio: 1.06; }
  body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four > figure > figcaption {
    font-size: clamp(1rem, 2.75vw, 1.15rem);
    padding-block: .7rem .85rem !important;
  }
  #contenuto .cso-page-gallery .cso-gallery-grid--four .cso-gallery-open__icon { inset: auto .42rem .42rem auto; width: 1.8rem; height: 1.8rem; }
}
@media (max-width: 369px) {
  body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four { grid-template-columns: minmax(0, 1fr); }
  #contenuto .cso-page-gallery .cso-gallery-grid--four > figure {
    display: grid;
    grid-template-columns: minmax(6.2rem, .76fr) minmax(0, 1.24fr);
    align-items: center;
  }
  body.cso-public-v71 #contenuto .cso-page-gallery .cso-gallery-grid--four > figure > figcaption {
    border-top: 0 !important;
  }
}

/* Collection covers and their existing links follow the same reading lines. */
body.cso-collections-page #contenuto .cso-line-grid--3 {
  align-items: stretch;
  gap: clamp(1.35rem, 2.65vw, 2.7rem);
}
body.cso-collections-page #contenuto .cso-line-grid--3 .cso-line-card:nth-child(n) {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
  padding-top: 0;
}
body.cso-collections-page #contenuto .cso-line-grid--3 .cso-line-card__image { width: 100%; }
body.cso-collections-page #contenuto .cso-line-grid--3 .text-link { margin-top: auto; padding-top: .85rem; }
body.cso-collections-page #contenuto .cso-line-grid--3 .cso-line-card h2 {
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.012em;
}
@media (min-width: 731px) {
  body.cso-collections-page #contenuto .cso-line-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  body.cso-collections-page #contenuto .cso-line-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* The current public shop has three departments. Give each a full heading
   and equal photo space on tablets as well as the large desktop layout. */
@media (min-width: 761px) and (max-width: 1050px) {
  #contenuto.cso-shop-v63 .cso-shop-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
  #contenuto.cso-shop-v63 .cso-shop-categories > .cso-shop-category {
    grid-column: auto;
    grid-template: clamp(8.25rem, 16vw, 11.5rem) 1fr / minmax(0, 1fr);
  }
  #contenuto.cso-shop-v63 .cso-shop-category .cso-shop-category__copy {
    grid-template: auto 1fr auto / minmax(0, 1fr);
    padding: clamp(.9rem, 1.6vw, 1.3rem);
    gap: .65rem;
  }
  #contenuto.cso-shop-v63 .cso-shop-category h2 { margin: 0; font-size: clamp(1.45rem, 2.75vw, 1.9rem); }
}
@media (min-width: 681px) and (max-width: 760px) {
  #contenuto.cso-shop-v63 .cso-shop-categories { grid-template-columns: minmax(0, 1fr); }
  #contenuto.cso-shop-v63 .cso-shop-categories > .cso-shop-category { grid-template: minmax(9.5rem, auto) / minmax(0, .75fr) minmax(0, 1.25fr); }
  #contenuto.cso-shop-v63 .cso-shop-category .cso-shop-category__copy { grid-area: 1 / 2; }
}
#contenuto.cso-shop-v63 .cso-shop-section > .cso-shop-section__heading h2 {
  line-height: 1.12;
  letter-spacing: -.012em;
}
