/*
 * Work section — production styles. Literal values only (this section's
 * own needs), not the full design-token contract. Values sourced from
 * booth-repo 04-docs/wordpress/home-page-figma-build-and-migration/
 * Uk-site-design-tokens.md, cross-checked against live Elementor JSON
 * (post 2086). Radius 30px/20px and photo crop heights (650/470/450) are
 * live's actual values, not in the token table — specific to this gallery.
 */

#work.work { box-sizing: border-box; }
#work.work *,
#work.work *::before,
#work.work *::after { box-sizing: border-box; }

#work.work {
  --color-carousel-dot: #ffffff;
  --carousel-dot-inactive-opacity: 0.55;
  --color-carousel-arrow-bg: #006bce; /* carousel/arrow-bg-alt — solid blue, matches other carousels, visible on dark photos */
  --color-carousel-arrow-bg-hover: #0051b5; /* --color-blue-hover, same hover convention as the rest of the site */

  background: #dce5ea80; /* --color-wash at 50%, matches live */
  padding: 100px 120px; /* --header-pad */
  font-family: "Poppins", sans-serif;
  color: #222222; /* --color-ink */
}

#work .work-copy-row,
#work .work-gallery {
  width: min(1196px, 100%);
  margin-left: auto;
  margin-right: auto;
}

#work .work-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 40px;
  row-gap: 16px;
  align-items: center;
}

#work .work-title { grid-column: 1; grid-row: 1; margin: 0; }
#work .work-button-col { grid-column: 2; grid-row: 1; }
#work .work-body { grid-column: 1 / -1; grid-row: 2; }

#work .work-title {
  margin: 0 0 16px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 38px;
  letter-spacing: -1px;
  color: #006bce; /* --color-blue */
}

#work .work-body {
  font-size: 16px;
  line-height: 27px;
}
#work .work-body p { margin: 0 0 16px; }
#work .work-body p:last-child { margin-bottom: 0; }
#work .work-body a { color: #006bce; }

#work .work-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 30px;
  border-radius: 100px; /* radius/pill */
  background: #006bce; /* --color-blue */
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 27px;
  text-decoration: none;
  white-space: nowrap;
}
#work .work-button:hover { background: #d87819; } /* --color-orange */

#work .work-gallery {
  margin-top: 40px;
  background: #ffffff;
  border-radius: 30px;
  padding: 0;
}

#work .work-gallery-track {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #dce5ea; /* --color-wash */
}

#work .work-gallery-slides { position: relative; height: 650px; }
#work .work-gallery-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 650px;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
}
#work .work-gallery-slides img.active { opacity: 1; }

#work .work-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--color-carousel-arrow-bg);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .2s ease;
  z-index: 2;
}
#work button.work-arrow {
  box-shadow: none !important;
  min-height: 0 !important;
  width: 40px !important;
  height: 40px !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 50% !important;
}
#work .work-arrow svg {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
#work .work-arrow:hover { background: var(--color-carousel-arrow-bg-hover); }
#work .work-arrow--prev { left: 28px; }
#work .work-arrow--next { right: 28px; }

#work .work-pagination {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
#work .work-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-carousel-dot);
  opacity: var(--carousel-dot-inactive-opacity);
  border: none;
  padding: 0;
  cursor: pointer;
}
#work .work-dot.active { opacity: 1; }

/* Tablet: up to 1024 */
@media (max-width: 1024px) {
  #work.work { padding: 80px 20px; }
  #work .work-copy-row { grid-template-columns: 1fr; text-align: center; }
  #work .work-title,
  #work .work-body,
  #work .work-button-col { grid-column: 1; }
  #work .work-button-col { display: none; } /* dropped on tablet/mobile per confirmed spec */
  #work .work-gallery-slides, #work .work-gallery-slides img { height: 470px; }
}

/* Mobile: up to 767 */
@media (max-width: 767px) {
  #work .work-gallery { padding: 0; }
  #work .work-gallery-slides, #work .work-gallery-slides img { height: 450px; }
  #work .work-arrow,
  #work button.work-arrow {
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
  }
  #work .work-arrow svg {
    width: 20px;
    height: 20px;
  }
}

