/* Portfolio card refinement: presentation only; keep original images and interactions. */
body[data-portfolio-hero-v185] .v62-immersive {
  width: calc(100% - 64px);
  max-width: 1320px;
  margin: 48px auto 0;
}
body[data-portfolio-hero-v185] #product-gallery.v62-stage {
  display: flex;
  flex-direction: column;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}
body[data-portfolio-hero-v185] .v62-slide {
  position: relative;
  inset: auto;
  order: 2;
  width: 100%;
  height: auto;
  margin: 0;
  opacity: 1;
  visibility: visible;
}
body[data-portfolio-hero-v185] #product-gallery .v62-overlay {
  position: static;
  order: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 24px;
  padding: 0 0 30px !important;
  background: none;
  color: #29372e;
  pointer-events: auto;
}
body[data-portfolio-hero-v185] .v62-overlay h1 {
  color: #29372e !important;
  font-size: clamp(28px, 3.2vw, 44px) !important;
  line-height: 1.4 !important;
  text-shadow: none;
}
body[data-portfolio-hero-v185] .v62-eyebrow {
  margin-bottom: 14px !important;
  color: #69705f !important;
  letter-spacing: .18em;
}
body[data-portfolio-hero-v185] .v62-hero-actions {
  flex: 0 0 auto;
  padding-bottom: 8px;
}
body[data-portfolio-hero-v185] .v62-hero-actions .v62-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 10px 16px;
  white-space: nowrap;
  color: #344331;
  background: transparent;
  border: 1px solid #b7beac;
  border-radius: 4px;
}
body[data-portfolio-hero-v185] .v62-hero-actions .v62-button:first-child {
  background: #36442f;
  color: #fffdf8;
  border-color: #36442f;
}
body[data-portfolio-hero-v185] .v62-slide .album-image-stage {
  display: block;
  height: auto;
  min-height: 0;
  aspect-ratio: 1672 / 941;
  border: 0;
  border-radius: 6px;
  background: #eeece5;
}
body[data-portfolio-hero-v185] .v62-slide img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none !important;
}
body[data-portfolio-hero-v185] .v62-scene-bar {
  padding-inline: 0 !important;
  border: 0;
}
@media (max-width: 700px) {
  body[data-portfolio-hero-v185] .v62-immersive {width: calc(100% - 40px); margin-top: 28px;}
  body[data-portfolio-hero-v185] #product-gallery .v62-overlay {flex-direction: column; align-items: flex-start; gap: 20px; padding-bottom: 24px !important;}
  body[data-portfolio-hero-v185] .v62-hero-actions {padding: 0;}
}
.portfolio-detail-page .progressive-album-portfolio .progressive-album-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px 24px;
}
.portfolio-detail-page .progressive-album-portfolio .progressive-album-grid > figure {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.portfolio-detail-page .progressive-album-portfolio .album-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.portfolio-detail-page .progressive-album-portfolio .album-image-stage {
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 6px;
  background: #eeece5;
}
.portfolio-detail-page .progressive-album-portfolio .album-image-stage::before,
.portfolio-detail-page .progressive-album-portfolio .album-image-stage::after {
  display: none;
}
.portfolio-detail-page .progressive-album-portfolio .album-image-stage img {
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  filter: none;
}
.portfolio-detail-page .progressive-album-portfolio .portfolio-photo-caption {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 7px 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.portfolio-detail-page .progressive-album-portfolio .portfolio-photo-code {
  flex: 0 0 auto;
  color: #667064;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .07em;
  line-height: 1.5;
}
.portfolio-detail-page .progressive-album-portfolio .v69-ref-button {
  display: inline-flex;
  flex: 0 1 auto;
  justify-content: center;
  align-items: center;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #344331;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
  text-underline-offset: 5px;
}
.portfolio-detail-page .progressive-album-portfolio .v69-ref-button > span {
  display: none;
}
.portfolio-detail-page .progressive-album-portfolio .quiet-photo-caption > .quiet-save {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #faf9f5ed;
  color: #475341;
  box-shadow: none;
}
.portfolio-detail-page .progressive-album-portfolio .quiet-photo-caption > .quiet-save[aria-pressed="true"] {
  background: #e7ecdc;
  border-color: #bbc7aa;
}
.portfolio-detail-page .progressive-album-portfolio button:focus-visible {
  outline: 2px solid #596647;
  outline-offset: -3px;
}
@media (hover: hover) {
  .portfolio-detail-page .progressive-album-portfolio .v69-ref-button:hover {
    background: transparent;
    text-decoration: underline;
  }
}
@media (min-width: 1100px) {
  .portfolio-detail-page .progressive-album-portfolio .progressive-album-grid {
    max-width: 1320px;
    margin-inline: auto;
  }
}
@media (max-width: 1099px) {
  .portfolio-detail-page .progressive-album-portfolio .progressive-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }
}
@media (max-width: 580px) {
  .portfolio-detail-page .progressive-album-portfolio .progressive-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .portfolio-detail-page .progressive-album-portfolio .portfolio-photo-caption {
    flex-wrap: wrap;
    gap: 0 6px;
    min-height: 44px;
    padding: 4px 0;
  }
  .portfolio-detail-page .progressive-album-portfolio .portfolio-photo-code {
    font-size: 11px;
  }
  .portfolio-detail-page .progressive-album-portfolio .v69-ref-button {
    flex: 0 0 auto;
    padding: 8px 0;
    font-size: 12px;
  }
  .portfolio-detail-page .progressive-album-portfolio .quiet-photo-caption > .quiet-save {
    top: 6px;
    right: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-detail-page .progressive-album-portfolio .progressive-album-grid > figure,
  .portfolio-detail-page .progressive-album-portfolio .v69-ref-button {
    transition: none;
  }
}

/* Each quote action belongs visibly to one photo and includes its reference. */
.portfolio-detail-page .progressive-album-portfolio .portfolio-photo-caption {
  padding: 8px 0 0;
  min-height: 52px;
}
.portfolio-detail-page .progressive-album-portfolio .portfolio-photo-caption:has(> .v69-ref-button:not([hidden])) > .portfolio-photo-code {
  display: none;
}
.portfolio-detail-page .progressive-album-portfolio .v69-ref-button {
  width: 100%;
  flex: 1 1 100%;
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid #c8cebf;
  border-radius: 4px;
  background: #f7f6f0;
  white-space: normal;
}
@media (hover: hover) {
  .portfolio-detail-page .progressive-album-portfolio .v69-ref-button:hover {
    background: #eeefe6;
  }
}
