/* Art Prof Group real reference photographs from customer-provided sources.
   Curated by service and linked to the existing quote request, without prices. */
.apg-user-gallery{padding-top:28px;padding-bottom:54px}
.apg-user-gallery-heading{display:flex;align-items:end;gap:22px;justify-content:space-between;margin-bottom:22px}
.apg-user-gallery-heading>div{max-width:900px}
.apg-user-gallery-heading h2{font-size:clamp(30px,3.4vw,45px);font-weight:500}
.apg-user-gallery-heading p{font-size:16px;color:#576367;line-height:1.5;margin-top:8px}
.apg-gallery-to-quote{flex:0 0 auto;white-space:normal}
.apg-user-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.apg-user-gallery-card{min-width:0;background:white;border:1px solid #e4d8c3;
 border-radius:11px;overflow:hidden;box-shadow:0 5px 24px #222c3010;
 display:flex;flex-direction:column}
.apg-user-gallery-photo,.apg-gallery-zoom-photo{
 display:block;border:0;background-color:#fbfbf9;
 background-repeat:no-repeat;background-size:300% 300%;aspect-ratio:14/15;
 width:100%;position:relative
}
.apg-user-gallery-photo{cursor:zoom-in}
.apg-user-gallery-photo:hover{filter:brightness(.98)}
.apg-user-gallery-photo:focus-visible{outline:3px solid #a77b26;outline-offset:-4px}
.apg-user-gallery-photo>span{position:absolute;right:9px;bottom:9px;color:#fff;font-size:22px;line-height:1;
 width:37px;height:35px;border-radius:8px;background:#163b56d9;display:grid;place-items:center}
.apg-user-gallery-body{padding:14px;display:flex;flex:1;flex-direction:column;gap:9px}
.apg-user-gallery-body h3{font-size:17px;line-height:1.33;font-weight:850;min-height:45px}
.apg-user-gallery-body p{font-size:14px;line-height:1.4;color:#55636b;min-height:40px}
.apg-user-gallery-price{font-size:14px;color:#84602a;font-weight:800}
.apg-user-gallery-width{display:grid;gap:6px;font-size:14px;font-weight:800}
.apg-user-gallery-width select{min-height:38px;border:1px solid #c3a873;font-size:16px;background:#fff}
.apg-user-gallery-select{margin-top:auto;min-height:43px;padding:8px 12px;
 background:#e3f1ff;border:1px solid #6389ad;border-radius:7px;
 color:#174976;font-weight:850;font-size:15px;line-height:1.3}
.apg-user-gallery-select[aria-pressed=true]{background:#e7f5e7;color:#17603b;border-color:#65ad79}
.apg-gallery-disclaimer{color:#68747a;font-size:13px;margin-top:12px;line-height:1.4}
.apg-user-gallery-lightbox[open]{position:fixed;inset:0;margin:auto;z-index:1000;
 width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 25px);
 background:#fff;border:2px solid #ddd1ba;border-radius:11px;padding:13px;overflow:auto;
 box-shadow:0 20px 60px #1119}
.apg-user-gallery-lightbox::backdrop{background:#061b2dda}
.apg-gallery-lightbox-top{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:9px}
.apg-gallery-lightbox-top strong{font-size:17px;line-height:1.3}
.apg-gallery-lightbox-top button{background:#184d76;color:#fff;border:0;border-radius:7px;
 min-height:40px;padding:8px 13px;font-size:15px;font-weight:850}
.apg-gallery-zoom-photo{max-height:calc(100dvh - 125px);width:min(100%,475px);margin:auto}
@media(max-width:1150px){.apg-user-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:780px){.apg-user-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .apg-user-gallery-heading{align-items:start;flex-direction:column}
 .apg-user-gallery-body h3{min-height:0}
 .apg-user-gallery-body p{min-height:0}
}
@media(max-width:480px){.apg-user-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .apg-user-gallery-body{padding:9px;gap:7px}
 .apg-user-gallery-body h3{font-size:14px}
 .apg-user-gallery-body p{font-size:12px}
 .apg-user-gallery-select{font-size:12px;padding:7px 5px;min-height:42px}
 .apg-user-gallery-heading h2{font-size:27px}
 .apg-user-gallery-price{font-size:12px}
 .apg-user-gallery-width{font-size:12px}
 .apg-user-gallery-width select{font-size:14px}
}

/* Actual individual uploaded photo tiles, no collage or sprite. */
.apg-user-gallery-photo{padding:0;overflow:hidden;display:block;aspect-ratio:4/5}
.apg-user-gallery-photo img{display:block;width:100%;height:100%;object-fit:contain;
 background:#edf3f6;filter:none!important;opacity:1!important}
.apg-user-gallery-photo:hover img{transform:scale(1.015)}
.apg-user-gallery-photo>span{pointer-events:none}
.apg-user-gallery-lightbox .apg-gallery-zoom-photo{
 display:block;width:auto;max-width:100%;max-height:calc(100dvh - 125px);
 height:auto;object-fit:contain;aspect-ratio:auto;background:#edf3f6
}
body[data-service="dakwerken-dakkapellen"] .apg-user-gallery-card:first-child .apg-user-gallery-photo img,
body[data-service="dakwerken-dakkapellen"] .apg-user-gallery-card:last-child .apg-user-gallery-photo img{
 object-fit:contain;background:#f9fafb
}


/* Aanbouw quotation: image/work reference takes the place of MATERIAL CARDS
   in step 2, without adding a second full-width gallery below the form. */
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .product-checkboxes,
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-material-work-scope,
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-material-work-empty,
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .quote-block-head {display:none!important}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-gallery-in-quote {width:100%;max-width:100%;margin:0;padding:10px 0 0;min-width:0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-heading {margin:0 0 13px;gap:8px;align-items:start}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-heading h2 {font-size:clamp(21px,2.5vw,29px);margin:0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-heading p {font-size:15px;line-height:1.35;margin:3px 0 0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-heading .overline,
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-gallery-to-quote{display:none!important}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-grid {grid-template-columns:minmax(0,1fr);gap:0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-card {display:grid;grid-template-columns:minmax(210px,43%) minmax(0,1fr);max-width:100%;gap:0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-photo {height:275px;aspect-ratio:auto;min-width:0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-photo img{width:100%;height:100%;object-fit:cover}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-body {padding:16px;justify-content:center;gap:8px;min-width:0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-body h3{font-size:20px;min-height:0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-body p{font-size:15px;min-height:0}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-user-gallery-select{margin-top:8px}
body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
 .apg-gallery-disclaimer{margin:7px 0 0;font-size:12px}
@media(max-width:650px){
 body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
  .apg-user-gallery-card{grid-template-columns:minmax(0,1fr)}
 body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
  .apg-user-gallery-photo{height:240px;aspect-ratio:auto}
 body[data-service="aanbouw-uitbouw"] #quote-product-select.apg-quote-photo-step
  .apg-user-gallery-body{padding:12px}
}


/* Windows and door installation references INSIDE stage 02 of the quotation.
   Never show mismatched supplier-material cards on this service page. */
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .product-checkboxes,
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-material-work-scope,
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-material-work-empty,
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .quote-block-head{display:none!important}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-gallery-in-quote{
 width:100%;max-width:100%;margin:0;padding:10px 0 0;min-width:0
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-heading{
 margin:0 0 14px;gap:8px;align-items:start
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-heading h2{
 font-size:clamp(21px,2.5vw,29px);margin:0
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-heading p{
 font-size:15px;line-height:1.35;margin:3px 0 0
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-heading .overline,
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-gallery-to-quote{display:none!important}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-grid{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:12px
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-card{
 display:grid;grid-template-columns:minmax(120px,43%) minmax(0,1fr);
 max-width:100%;min-width:0;gap:0
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-photo{
 height:215px;aspect-ratio:auto;min-width:0
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-photo img{
 width:100%;height:100%;object-fit:contain
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-body{
 padding:12px;justify-content:center;gap:7px;min-width:0
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-body h3{
 font-size:17px;min-height:0;line-height:1.2
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-body p{
 font-size:14px;min-height:0;line-height:1.3
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-user-gallery-select{
 margin-top:7px;min-height:40px;font-size:14px
}
body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
 .apg-gallery-disclaimer{margin:10px 0 0;font-size:12px}
@media(max-width:950px){
 body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
  .apg-user-gallery-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:650px){
 body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
  .apg-user-gallery-card{grid-template-columns:minmax(0,1fr)}
 body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
  .apg-user-gallery-photo{height:210px;aspect-ratio:auto}
 body[data-service="kozijnen-ramen-deuren"] #quote-product-select.apg-quote-window-step
  .apg-user-gallery-body{padding:12px}
}

/* Roof and dormer installation references INSIDE stage 02 of the quotation.
   Never show mismatched supplier-material cards on this service page. */
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .product-checkboxes,
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-material-work-scope,
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-material-work-empty,
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .quote-block-head{display:none!important}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-gallery-in-quote{
 width:100%;max-width:100%;margin:0;padding:10px 0 0;min-width:0
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-heading{
 margin:0 0 14px;gap:8px;align-items:start
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-heading h2{
 font-size:clamp(21px,2.5vw,29px);margin:0
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-heading p{
 font-size:15px;line-height:1.35;margin:3px 0 0
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-heading .overline,
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-gallery-to-quote{display:none!important}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-grid{
 grid-template-columns:repeat(2,minmax(0,1fr));gap:12px
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-card{
 display:grid;grid-template-columns:minmax(120px,43%) minmax(0,1fr);
 max-width:100%;min-width:0;gap:0
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-photo{
 height:215px;aspect-ratio:auto;min-width:0
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-photo img{
 width:100%;height:100%;object-fit:contain
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-body{
 padding:12px;justify-content:center;gap:7px;min-width:0
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-body h3{
 font-size:17px;min-height:0;line-height:1.2
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-body p{
 font-size:14px;min-height:0;line-height:1.3
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-select{
 margin-top:7px;min-height:40px;font-size:14px
}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-gallery-disclaimer{margin:10px 0 0;font-size:12px}
@media(max-width:950px){
 body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
  .apg-user-gallery-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:650px){
 body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
  .apg-user-gallery-card{grid-template-columns:minmax(0,1fr)}
 body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
  .apg-user-gallery-photo{height:210px;aspect-ratio:auto}
 body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
  .apg-user-gallery-body{padding:12px}
/* Roof: two clean rows; width selector stays with the selected dormer model. */
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-card:last-child{grid-column:1/-1;grid-template-columns:minmax(230px,35%) minmax(0,1fr)}
body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
 .apg-user-gallery-width{max-width:220px}
@media(max-width:950px){
 body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
  .apg-user-gallery-card:last-child{grid-column:auto;grid-template-columns:minmax(120px,43%) minmax(0,1fr)}
}
@media(max-width:650px){
 body[data-service="dakwerken-dakkapellen"] #quote-product-select.apg-quote-roof-step
  .apg-user-gallery-card:last-child{grid-template-columns:minmax(0,1fr)}
}

/* 2026-11-05: exact 4x thumbnail enlargement, capped by viewport. */
.apg-user-gallery-lightbox[open]{
 width:min(96vw,1300px);
 max-width:calc(100vw - 24px);
 box-sizing:border-box;
 padding:14px 16px;
}
.apg-user-gallery-lightbox[open] .apg-gallery-zoom-photo{
 display:block;
 width:100%;
 height:auto;
 max-width:100%;
 max-height:calc(100dvh - 118px);
 object-fit:contain;
 aspect-ratio:auto;
 margin:0 auto;
}
@media(max-width:650px){
 .apg-user-gallery-lightbox[open]{
  max-width:calc(100vw - 14px);
  padding:9px;
 }
 .apg-user-gallery-lightbox[open] .apg-gallery-lightbox-top strong{font-size:14px}
 .apg-user-gallery-lightbox[open] .apg-gallery-lightbox-top button{
  font-size:14px;min-height:42px;flex-shrink:0
 }
}
