/* ===== Customers Gallery ===== */
.gallery-section { background: #fff; }
.gallery-section[hidden] { display: none; }

.gallery-heading { margin-bottom: 34px; }
.gallery-title {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;                 /* ExtraBold */
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  color: #000;
}
.gallery-title .gallery-word-black  { color: #000; }
.gallery-title .gallery-word-orange { color: #ff6a00; }
.gallery-sub { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* Masonry: every image keeps its own width : height ratio (nothing is cropped) */
.gallery-grid { column-width: 270px; column-gap: 18px; }
.gallery-item {
  display: block; width: 100%;
  margin: 0 0 18px; padding: 0;
  break-inside: avoid;
  border: 0; background: #ece6dc;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(20, 12, 8, .14);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover, .gallery-item:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(20, 12, 8, .24);
}
.gallery-item img { display: block; width: 100%; height: auto; }

/* ===== Viewer (opens when a design is clicked) ===== */
.gv-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12, 7, 5, .93);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px;
}
.gv-backdrop[hidden] { display: none; }
.gv-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gv-figure img {
  max-width: min(92vw, 100%); max-height: calc(100vh - 150px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 16px; background: #1b1411;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.gv-caption { color: #f3e9e0; font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-weight: 700; font-size: 14px; text-align: center; min-height: 1em; }
.gv-count { color: #b8a79e; font-size: 12px; }
.gv-btn {
  position: absolute; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff;
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.gv-btn:hover, .gv-btn:focus-visible { background: #ff6a00; }
.gv-close { top: 14px; right: 16px; }
.gv-prev  { left: 14px;  top: 50%; margin-top: -23px; }
.gv-next  { right: 14px; top: 50%; margin-top: -23px; }
.gv-btn[hidden]{display:none}
body.gv-open { overflow: hidden; }

@media (max-width: 760px) {
  .gallery-grid { column-width: 150px; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; border-radius: 14px; }
  .gv-backdrop { padding: 60px 12px 28px; }
  .gv-prev, .gv-next { top: auto; bottom: 10px; margin-top: 0; }
  .gv-prev { left: calc(50% - 56px); } .gv-next { right: calc(50% - 56px); }
  .gv-figure img { max-height: calc(100vh - 190px); }
}
@media (prefers-reduced-motion: reduce) { .gallery-item { transition: none; } }

/* ===== Viewer: share / download actions ===== */
.gv-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.gv-act {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 20px; border-radius: 999px;
  border: 2px solid #ff6a00; background: #ff6a00; color: #1a0f0a;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; font-weight: 800; font-size: 13px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.gv-act:hover, .gv-act:focus-visible { background: transparent; color: #ff9a4d; }
.gv-toast {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(10px);
  background: #fff; color: #1a0f0a; padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.gv-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 760px) {
  .gv-figure img { max-height: calc(100vh - 260px); }
  .gv-act { min-height: 40px; padding: 0 16px; font-size: 12px; }
}

/* Keep the image + buttons fully on screen */
.gv-backdrop { padding-bottom: 20px; }
.gv-figure img { max-height: calc(100vh - 250px); }
.gv-toast { bottom: auto; top: 22px; transform: translateX(-50%) translateY(-10px); z-index: 2; }
.gv-toast.is-on { transform: translateX(-50%) translateY(0); }
@media (max-width: 760px) {
  .gv-backdrop { padding-bottom: 16px; }
  .gv-figure img { max-height: calc(100vh - 280px); }
  .gv-prev, .gv-next { bottom: auto; top: 50%; margin-top: -23px; }
  .gv-prev { left: 8px; } .gv-next { right: 8px; }
}
