/* OneCare real repair work gallery page */
.gallery-page .page-hero{
  background:linear-gradient(135deg,#edf7fb 0%,#fff 62%,#fff7e8 100%);
  padding:58px 0 52px;
  text-align:center;
}
.gallery-page .page-hero .container{max-width:820px}
.gallery-page .page-hero h1{
  margin-bottom:15px;
  color:#10212b;
}
.gallery-page .page-hero p:last-child{
  max-width:680px;
  margin:0 auto;
  font-size:1.08rem;
  line-height:1.7;
}
.real-work-gallery{
  padding:52px 0 64px;
  background:#f4f8fb;
}
.gallery-filters{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin:0 auto 34px;
}
.gallery-filter{
  min-height:46px;
  border:1px solid rgba(7,56,76,.14);
  border-radius:999px;
  padding:10px 18px;
  background:#fff;
  color:#07384c;
  font:inherit;
  font-size:.94rem;
  font-weight:900;
  cursor:pointer;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.gallery-filter:hover,
.gallery-filter:focus-visible{
  background:#eaf6fb;
  border-color:rgba(7,56,76,.3);
  transform:translateY(-1px);
}
.gallery-filter.is-active{
  background:#07384c;
  border-color:#07384c;
  color:#fff;
  box-shadow:0 10px 22px rgba(7,56,76,.18);
}
.real-work-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  align-items:start;
}
.real-work-card{
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(7,56,76,.14);
  border-radius:24px;
  box-shadow:0 12px 31px rgba(7,56,76,.075);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease,opacity .18s ease;
}
.real-work-card:hover{
  transform:translateY(-4px);
  border-color:rgba(7,56,76,.24);
  box-shadow:0 19px 41px rgba(7,56,76,.12);
}
.real-work-card[hidden]{display:none!important}
.gallery-image-button{
  display:block;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:#f5f9fb;
  cursor:zoom-in;
  aspect-ratio:1 / 1;
}
.gallery-image-button:focus-visible{
  outline:3px solid #0b6b8f;
  outline-offset:-3px;
}
.gallery-image-button img{
  width:100%;
  height:100%;
  aspect-ratio:1 / 1;
  display:block;
  object-fit:contain;
  object-position:center;
  background:#f5f9fb;
  transition:transform .25s ease;
}
.real-work-card:hover .gallery-image-button img{transform:scale(1.012)}
.gallery-card-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:15px 16px 17px;
}
.gallery-category{
  color:#07384c;
  font-size:.92rem;
  font-weight:900;
  line-height:1.25;
}
.gallery-service-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:39px;
  border-radius:999px;
  padding:8px 13px;
  background:#edf7fb;
  color:#07384c;
  text-decoration:none;
  font-size:.82rem;
  font-weight:900;
  transition:background-color .2s ease,color .2s ease,transform .2s ease;
}
.gallery-service-link:hover{
  background:#07384c;
  color:#fff;
  transform:translateY(-1px);
}
/* Washing-machine-only video gallery below the branded project image grid. */
.repair-video-gallery{
  margin-top:64px;
  padding-top:56px;
  border-top:1px solid rgba(7,56,76,.12);
}
.repair-video-heading{
  max-width:760px;
  margin:0 auto 34px;
  text-align:center;
}
.repair-video-heading h2{
  margin-bottom:13px;
  color:#10212b;
}
.repair-video-heading p:last-child{
  margin:0 auto;
  max-width:690px;
  font-size:1.02rem;
  line-height:1.68;
}
.repair-video-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.repair-video-card{
  overflow:hidden;
  border:1px solid rgba(7,56,76,.13);
  border-radius:21px;
  background:#fff;
  box-shadow:0 10px 27px rgba(7,56,76,.065);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.repair-video-card.is-revealed{
  animation:videoCardReveal .33s ease both;
}
@keyframes videoCardReveal{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
.video-preview-button{
  position:relative;
  width:100%;
  aspect-ratio:16 / 10;
  border:0;
  margin:0;
  padding:0;
  overflow:hidden;
  cursor:pointer;
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 80% 17%,rgba(245,158,11,.24),transparent 31%),
    linear-gradient(135deg,#07384c 0%,#0b5e7e 100%);
  color:#fff;
}
.video-preview-button::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(125deg,rgba(255,255,255,.04),transparent 45%),
    repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 1px,transparent 1px 18px);
}
.video-preview-button:focus-visible{outline:3px solid #f59e0b;outline-offset:-3px}
.repair-video-play{
  position:relative;
  z-index:1;
  width:62px;
  height:62px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#f59e0b;
  box-shadow:0 13px 29px rgba(0,0,0,.25);
  transition:transform .18s ease,background-color .18s ease;
}
.repair-video-play::after{
  content:"";
  margin-left:4px;
  border-top:11px solid transparent;
  border-bottom:11px solid transparent;
  border-left:17px solid #fff;
}
.video-preview-button:hover .repair-video-play,
.video-preview-button:focus-visible .repair-video-play{
  transform:scale(1.07);
  background:#f4a719;
}
.repair-video-body{padding:17px 17px 19px}
.repair-video-pill{
  display:inline-flex;
  margin-bottom:10px;
  border-radius:999px;
  background:#eaf6fb;
  color:#07384c;
  padding:6px 10px;
  font-size:.68rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.repair-video-card h3{
  margin:0;
  color:#10212b;
  font-size:1.13rem;
  line-height:1.4;
  letter-spacing:-.02em;
}
.repair-video-more{
  display:flex;
  justify-content:center;
  margin-top:35px;
}
.repair-video-more .btn{
  width:auto;
  min-width:205px;
}
.gallery-booking-cta{
  max-width:860px;
  margin:54px auto 0;
  padding:34px 28px;
  border-radius:26px;
  text-align:center;
  background:linear-gradient(135deg,#07384c,#0b6b8f);
  box-shadow:0 18px 43px rgba(7,56,76,.16);
}
.gallery-booking-cta h2{color:#fff;margin-bottom:9px}
.gallery-booking-cta p{
  color:#dfedf3;
  max-width:620px;
  margin:0 auto 20px;
}
.gallery-booking-cta .btn{min-height:52px}
/* Image lightbox */
.gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.gallery-lightbox.is-open{display:flex}
.gallery-lightbox-backdrop,
.video-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(5,23,33,.84);
  backdrop-filter:blur(6px);
}
.gallery-lightbox-dialog{
  position:relative;
  z-index:1;
  width:min(820px,96vw);
  max-height:calc(100vh - 48px);
  padding:14px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 85px rgba(0,0,0,.42);
}
.gallery-lightbox-image{
  display:block;
  width:100%;
  max-height:calc(100vh - 77px);
  object-fit:contain;
  border-radius:15px;
  background:#f4f8fb;
}
.gallery-lightbox-close,
.video-lightbox-close{
  position:absolute;
  right:-12px;
  top:-12px;
  z-index:2;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:#07384c;
  color:#fff;
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,.22);
}
.gallery-lightbox-close:hover,
.video-lightbox-close:hover{background:#0b6b8f}
/* Video player modal; iframe exists only after the visitor presses play. */
.video-lightbox{
  position:fixed;
  inset:0;
  z-index:1001;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.video-lightbox.is-open{display:flex}
.video-lightbox-dialog{
  position:relative;
  z-index:1;
  width:min(940px,96vw);
  padding:12px 12px 17px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 30px 85px rgba(0,0,0,.46);
}
.video-player-frame{
  overflow:hidden;
  aspect-ratio:16 / 9;
  border-radius:14px;
  background:#061f2d;
}
.video-player-frame iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}
.video-modal-title{
  margin:14px 7px 0;
  color:#07384c;
  font-weight:900;
  font-size:1rem;
}
body.gallery-modal-open{overflow:hidden}
@media(hover:hover){
  .repair-video-card:hover{
    transform:translateY(-3px);
    border-color:rgba(7,56,76,.22);
    box-shadow:0 17px 37px rgba(7,56,76,.11);
  }
}
@media(max-width:940px){
  .real-work-grid,
  .repair-video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media(max-width:620px){
  .gallery-page .page-hero{padding:40px 0 35px;text-align:left}
  .gallery-page .page-hero h1{font-size:2.12rem}
  .gallery-page .page-hero p:last-child{font-size:.98rem;line-height:1.62;margin:0}
  .real-work-gallery{padding:31px 0 42px}
  .gallery-filters{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;padding:1px 1px 8px;margin-bottom:22px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .gallery-filters::-webkit-scrollbar{display:none}
  .gallery-filter{flex:0 0 auto;min-height:43px;padding:9px 15px;font-size:.87rem}
  .real-work-grid,
  .repair-video-grid{grid-template-columns:1fr;gap:18px}
  .real-work-card,
  .repair-video-card{border-radius:20px}
  .gallery-card-actions{padding:13px 14px 15px}
  .gallery-category{font-size:.9rem}
  .repair-video-gallery{margin-top:40px;padding-top:36px}
  .repair-video-heading{text-align:left;margin-bottom:24px}
  .repair-video-heading h2{font-size:1.82rem;line-height:1.18}
  .repair-video-heading p:last-child{font-size:.96rem;line-height:1.6}
  .repair-video-play{width:57px;height:57px}
  .repair-video-body{padding:15px 15px 17px}
  .repair-video-card h3{font-size:1.06rem}
  .repair-video-more{margin-top:27px}
  .repair-video-more .btn{width:100%;min-width:0}
  .gallery-booking-cta{margin-top:38px;padding:26px 18px;border-radius:21px;text-align:left}
  .gallery-booking-cta .btn{width:100%;margin:5px 0!important}
  .gallery-lightbox,
  .video-lightbox{padding:15px}
  .gallery-lightbox-dialog,
  .video-lightbox-dialog{padding:9px;border-radius:18px}
  .gallery-lightbox-close,
  .video-lightbox-close{right:6px;top:6px;width:40px;height:40px}
  .video-modal-title{padding:0 5px;margin-top:12px;font-size:.9rem}
}
@media(prefers-reduced-motion:reduce){
  .real-work-card,.gallery-image-button img,.gallery-filter,.gallery-service-link,.repair-video-card,.repair-video-play{transition:none}
  .repair-video-card.is-revealed{animation:none}
}
