/* v0.1.94: homepage-only layout fixes. Existing card controls and appearance styles retained. */
.uw3d192-home .uw3d192-showcase.uw3d2-shell {
  width:min(calc(100% - 52px),1760px);
  max-width:1760px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  gap:18px;
}
.uw3d192-home .uw3d192-showcase__panel {
  min-width:0;
  align-self:stretch;
  padding:15px 17px 17px;
}
.uw3d192-home .uw3d193-collection__header {
  margin-bottom:14px;
  min-height:38px;
}
/* View all scans now sits in the top-right, like View all sites. */
.uw3d192-home #featured-scans .uw3d193-collection__top-cta,
.uw3d192-home #featured-sites .uw3d193-collection__top-cta {
  margin-left:auto;
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.uw3d192-home .uw3d193-button {
  font-family:Quantico,'Arial Narrow',system-ui,sans-serif;
  font-weight:var(--uw193-weight,800);
  letter-spacing:var(--uw193-letter-spacing,0px);
  line-height:var(--uw193-line-height,1.25);
  white-space:normal;
}
/* More breathing space for both cards in the same-sized sections. */
.uw3d192-home .uw3d192-showcase .uw3d193-collection__grid {
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)!important;
  grid-template-rows:repeat(2,minmax(254px,auto))!important;
  gap:10px!important;
}
.uw3d192-home .uw3d193-collection__grid>article:nth-child(2),
.uw3d192-home .uw3d193-collection__grid>article:nth-child(3) {
  grid-template-columns:minmax(112px,40%) minmax(0,60%)!important;
  overflow:visible!important;
  position:relative;
}
/* Keep custom image positions/scales while displaying more of the entire object. */
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__media,
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__image {
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  border-radius:5px 0 0 5px;
  border-right:1px solid #15566b!important;
  overflow:hidden!important;
  background:radial-gradient(ellipse at 50% 55%,#103f4d,#020e16 90%);
}
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__media img,
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__media-link img,
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__image img {
  object-fit:contain!important;
  object-position:center center;
  width:100%;height:100%;
  filter:contrast(1.06) saturate(1.02);
}
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card:hover .uw3d2-card__media img,
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child):hover .uw3d2-card__media img {transform:none!important}
/* Retain editor-provided underwater-photo focal points and zoom. */
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__image img {
  object-position:var(--uw3d2-site-x,50%) var(--uw3d2-site-y,50%)!important;
}
/* Do not crop the card's editable label/icon. */
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__category {
  left:8px;top:8px;max-width:calc(100% - 16px)!important;
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 7px;font-size:9px!important;line-height:1.25;
  overflow:visible!important;white-space:normal!important;overflow-wrap:break-word;
  background:#041923f0;border-color:#258fa5;z-index:5;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__category svg,
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__category .uw3d2-icon {
  display:block!important;width:21px!important;height:21px!important;min-width:21px!important;
  max-width:none!important;stroke-width:2;color:var(--uw-card-icon-color,#ff6900);
}
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__badges {
  top:7px;left:7px;right:7px;bottom:auto;
  display:flex;flex-direction:column;align-items:flex-start;gap:5px;
  max-width:calc(100% - 14px);z-index:5;
}
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__badges>* {
  writing-mode:horizontal-tb!important;text-orientation:mixed!important;
  max-width:100%!important;min-width:0;
  padding:4px 5px;font-size:9px!important;line-height:1.25;
  overflow-wrap:break-word;white-space:normal;
  gap:4px;
}
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__badges svg {
  min-width:16px;width:16px!important;height:16px!important;flex:none;
}
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__empty {
  gap:8px;padding:8px 5px;text-align:center;
}
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__empty svg {max-width:55px;width:60%!important;height:auto}
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__empty span {
  font-size:8px;letter-spacing:.5px;max-width:100%;overflow-wrap:break-word;
}
/* Larger, more legible compact-card typography while honoring individually saved sizes. */
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__body,
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__body {
  padding:12px 11px!important;
  min-width:0!important;
  overflow:visible;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) h3 {
  font-size:clamp(12px,var(--uw-card-title-size,14px),17px)!important;
  line-height:1.33!important;
  letter-spacing:.04px;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__location {
  font-size:clamp(10px,var(--uw-card-label-size,10px),13px)!important;
  line-height:1.4;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__metric {
  grid-template-columns:minmax(0,42%) minmax(0,58%);
  gap:5px;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__metric small {
  font-size:10px!important;line-height:1.35;font-family:inherit;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__metric b {
  font-size:11px!important;line-height:1.45;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__metric svg {
  width:14px;max-width:14px;height:14px;max-height:14px;
}
.uw3d192-home .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__button {
  min-height:34px!important;font-size:10px!important;
  padding:7px 6px!important;
}
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__stat,
.uw3d192-home #featured-sites .uw3d193-collection__grid>article:not(:first-child) .uw3d2-site-card__stat small {
  font-size:10px;line-height:1.35;
}
/* Larger DETAILS popup attached to the card, outside the tiny right column.
 * Full-sentence previews usually fit without a scroll bar. */
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__detail-panel {
  left:auto!important;right:0!important;
  bottom:42px!important;
  width:min(410px,calc(100vw - 42px))!important;
  max-width:none!important;
  max-height:min(420px,75vh)!important;
  overflow-y:auto;
  padding:16px 17px;
  z-index:80;
  font-size:12px;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__detail-panel p {
  font-size:12px;line-height:1.65;
}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__actions,
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:not(:first-child) .uw3d2-card__detail-control {position:static;}
.uw3d192-home #featured-scans .uw3d193-collection__grid>article:has(.uw3d2-card__detail-control[open]) {z-index:25}
/* Maintain matched panel heights. No artificial extra bottom row for scans. */
.uw3d192-home .uw3d193-collection__footer {display:none!important}
@media(max-width:1450px){
  .uw3d192-home .uw3d192-showcase.uw3d2-shell {
    grid-template-columns:1fr;max-width:910px;
  }
}
@media(max-width:760px){
  .uw3d192-home .uw3d192-showcase .uw3d193-collection__grid {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-rows:repeat(2,minmax(245px,auto))!important;
  }
  .uw3d192-home .uw3d193-collection__grid>article:nth-child(2),
  .uw3d192-home .uw3d193-collection__grid>article:nth-child(3){
    grid-template-columns:minmax(95px,35%) minmax(0,65%)!important;
  }
}
@media(max-width:640px){
  .uw3d192-home .uw3d192-showcase .uw3d193-collection__grid {
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
  }
  .uw3d192-home .uw3d193-collection__grid>article:nth-child(2),
  .uw3d192-home .uw3d193-collection__grid>article:nth-child(3){
    grid-column:1!important;grid-row:auto!important;
    min-height:220px;
  }
}
