/* =========================================================
   NEXT LEVEL RENOVATIONS & SERVICES
   CARD CAROUSEL CONTROLS (phones and tablets)
   ‹ progress › row under the Gallery folder, Services and
   Projects carousels. Hidden on desktop (cards are a grid).
   ========================================================= */

.cc-controls {
  display: none;
}

@media (max-width: 900px) {
  .cc-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--navy-dark, #071c2d);
  }

  .cc-controls[hidden] {
    display: none !important;
  }

  .cc-button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(7, 28, 45, 0.16);
    border-radius: 999px;
    background: #ffffff;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  }

  /* 44 px touch area (Apple guideline) without changing the 36 px look */
  .cc-button {
    position: relative;
  }

  .cc-button::after {
    content: "";
    position: absolute;
    inset: -4px;
  }

  .cc-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cc-button:disabled {
    opacity: 0.35;
    cursor: default;
  }

  .cc-button:focus-visible {
    outline: 2px solid #547a9b;
    outline-offset: 2px;
  }

  .cc-progress {
    position: relative;
    flex: 1 1 auto;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(7, 28, 45, 0.1);
  }

  .cc-progress span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-radius: 3px;
    background: var(--navy-dark, #071c2d);
    transition: left 0.15s linear, width 0.2s ease;
  }

  /* Dark Gallery page */
  .gallery-public-page .cc-controls {
    color: #ffffff;
  }

  .gallery-public-page .cc-button {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
  }

  .gallery-public-page .cc-progress {
    background: rgba(255, 255, 255, 0.12);
  }

  .gallery-public-page .cc-progress span {
    background: #3d8fe0;
  }
}
