/* Stratus Stone Collection Grid — Elementor widget styles */

.ssg-widget {
  --ssg-accent: #a9855f;
  --ssg-label-color: #ffffff;
  --ssg-modal-bg: #f7f5f2;
  --ssg-stone-200: #ddd4c7;
  --ssg-charcoal: #1c1a17;
  --ssg-near-black: #100f0d;
  font-family: inherit;
}

.ssg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ssg-stone-200);
}

.ssg-card {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  cursor: pointer;
  background: #efeae3;
  outline: none;
}
.ssg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.ssg-card:hover img,
.ssg-card:focus-visible img { transform: scale(1.06); }

.ssg-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, rgba(16,15,13,0) 0%, rgba(16,15,13,.78) 100%);
  color: var(--ssg-label-color);
}
.ssg-name { font-size: 1.25rem; line-height: 1.2; font-weight: 600; }
.ssg-finish {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
  margin-top: 3px;
}

@media (max-width: 1000px) {
  .ssg-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .ssg-grid { grid-template-columns: 1fr !important; }
}

/* ---------- Modal / lightbox ---------- */
.ssg-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  background: rgba(16,15,13,.92);
  padding: 40px 20px;
  overflow-y: auto;
}
.ssg-modal.is-open { display: block; }

.ssg-modal-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ssg-modal-bg);
  display: flex;
  flex-direction: column;
  color: var(--ssg-charcoal);
}
.ssg-modal-close {
  position: absolute;
  top: 0;
  right: -58px;
  background: rgba(255,255,255,.92);
  color: var(--ssg-near-black);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}
.ssg-modal-gallery {
  position: relative;
  background: var(--ssg-stone-200);
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.ssg-modal-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ssg-modal-nav {
  /* position: fixed (not absolute) so these escape the .ssg-modal-gallery
     overflow: hidden clip — they're DOM children of the gallery box, but
     visually need to sit outside it. */
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.05rem;
  z-index: 100001;
}
.ssg-modal-nav.ssg-prev { left: calc(50% - 420px); }
.ssg-modal-nav.ssg-next { right: calc(50% - 420px); }
.ssg-modal-dots {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.ssg-modal-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  cursor: pointer;
  display: inline-block;
}
.ssg-modal-dots span.is-active { background: #fff; }

.ssg-modal-info {
  padding: 36px 40px 44px;
  display: flex;
  flex-direction: column;
}
.ssg-eyebrow {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ssg-accent);
  font-weight: 600;
  margin: 0 0 10px;
}
.ssg-modal-name { font-size: 2.1rem; margin: 0 0 6px; line-height: 1.1; }
.ssg-modal-finish {
  color: #6b6155;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 22px;
}
.ssg-modal-desc { line-height: 1.75; font-size: 1.02rem; margin: 0; }

@media (max-width: 860px) {
  .ssg-modal { padding: 56px 16px 40px; }
  .ssg-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(16,15,13,.55);
    color: #fff;
  }
  .ssg-modal-nav.ssg-prev { left: 10px; }
  .ssg-modal-nav.ssg-next { right: 10px; }
  .ssg-modal-nav { background: rgba(16,15,13,.55); color: #fff; }
  .ssg-modal-info { padding: 28px 24px 36px; }
}
