/*
  CMS-driven SEE MORE blocks.
  These styles mirror the Collections grid behavior without sharing selectors.
*/

:root {
  --see-more-cell-width: 382px;
  --see-more-image-ratio: 382 / 306;
  --see-more-column-gap: 50px;
  --see-more-row-gap: 80px;
  --see-more-top-gap: 160px;
  --see-more-header-grid-gap: 60px;
  --see-more-header-line-gap: 0px;
  --see-more-name-top-gap: 24px;
  --see-more-line-top-gap: 22px;
  --see-more-motion-duration: 0.3s;
}

.see-more-section {
  width: 100%;
  margin-top: var(--see-more-top-gap);
}

.see-more-section__header {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.see-more-section__title {
  flex: 0 0 auto;
  margin: 0;
  color: #c9a875;
  font-family: var(--site-font-title);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.see-more-section__header-line {
  flex: 1 1 auto;
  height: 1px;
  margin-top: 25px;
  margin-left: var(--see-more-header-line-gap);
  background: #c9a875;
}

.see-more-grid {
  display: grid;
  margin-top: var(--see-more-header-grid-gap);
}

.see-more-grid--desktop {
  --see-more-column-count: 1;
  position: relative;
  contain: layout;
  grid-template-columns: repeat(var(--see-more-column-count), var(--see-more-cell-width));
  column-gap: var(--see-more-column-gap);
  row-gap: var(--see-more-row-gap);
  justify-content: center;
}

.see-more-grid--mobile {
  grid-template-columns: minmax(0, 1fr);
  row-gap: var(--see-more-row-gap);
  width: 100%;
}

.see-more-card {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.see-more-card--desktop {
  width: var(--see-more-cell-width);
}

.see-more-card--mobile {
  width: 100%;
}

.see-more-card:focus-visible {
  outline: 1px solid #c9a875;
  outline-offset: 8px;
}

.see-more-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--see-more-image-ratio);
  overflow: hidden;
  background: #1c1c1c;
}

.see-more-card__media::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(77, 77, 77, 0.7);
  content: "";
  pointer-events: none;
}

.see-more-card__media > img,
.see-more-card__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1);
  will-change: transform;
  transition:
    opacity var(--see-more-motion-duration) ease-out,
    transform var(--see-more-motion-duration) cubic-bezier(0.2, 0, 0.2, 1);
}

.see-more-card__media > .is-active.is-grid-media-ready {
  opacity: 1;
}

.see-more-card:hover .see-more-card__media > img,
.see-more-card:hover .see-more-card__media > video,
.see-more-card:focus-within .see-more-card__media > img,
.see-more-card:focus-within .see-more-card__media > video {
  transform: scale(1.04);
}

.see-more-card__name {
  min-height: 20px;
  margin: var(--see-more-name-top-gap) 0 0;
  overflow: hidden;
  color: #fff;
  font-family: var(--site-font-body);
  font-size: 19px;
  font-style: normal;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  transition: color var(--see-more-motion-duration) ease-out;
}

.see-more-card:hover .see-more-card__name,
.see-more-card:focus-within .see-more-card__name {
  color: #c9a875;
}

.see-more-card__line {
  width: 100%;
  height: 1px;
  margin-top: var(--see-more-line-top-gap);
  background: #4e402a;
}

@media (min-width: 936px) {
  .see-more-grid--desktop {
    --see-more-column-count: 2;
  }
}

@media (min-width: 1368px) {
  .see-more-grid--desktop {
    --see-more-column-count: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .see-more-card__media > img,
  .see-more-card__media > video,
  .see-more-card__name {
    transition: none;
    will-change: auto;
  }
}
