/* Glazing object photo galleries, desktop + mobile */
.project-card--gallery .project-card__body{z-index:2;pointer-events:none}
.project-card--gallery .project-card__body a{pointer-events:auto}
.project-card__open{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;cursor:zoom-in;z-index:1}
.project-card__open:focus-visible{outline:3px solid white;outline-offset:-5px}
.project-card__gallery-controls{position:absolute;z-index:4;top:17px;left:17px;display:flex;gap:5px}
.project-card__gallery-controls button{width:42px;height:42px;color:white;background:rgba(25,29,26,.62);border:1px solid rgba(255,255,255,.72);cursor:pointer;display:grid;place-items:center;font-size:20px;backdrop-filter:blur(7px)}
.project-card__gallery-controls button:hover{color:#1e2821;background:white}
.project-card__photo-count{position:absolute;top:17px;right:17px;z-index:4;background:rgba(25,29,26,.65);color:#fff;font-size:12px;padding:11px 13px;backdrop-filter:blur(7px);pointer-events:none;font-variant-numeric:tabular-nums;letter-spacing:.09em}
.glz-lightbox-open{overflow:hidden}
.glz-lightbox{position:fixed;padding:0;border:0;width:100vw;height:100dvh;max-width:none;max-height:none;background:#171e19;color:white;overflow:hidden}
.glz-lightbox::backdrop{background:rgba(0,0,0,.96)}
.glz-lightbox__shell{height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto}
.glz-lightbox__close{position:absolute;z-index:11;right:25px;top:20px;width:46px;height:46px;color:white;border:1px solid rgba(255,255,255,.6);background:rgba(15,23,18,.75);font-size:30px;cursor:pointer}
.glz-lightbox__viewer{min-height:0;position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:35px 80px 22px}
.glz-lightbox__photo{display:block;width:100%;height:100%;object-fit:contain;max-width:1450px}
.glz-lightbox__prev,.glz-lightbox__next{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:62px;border:1px solid #58685d;background:#26342b;color:white;font-size:24px;cursor:pointer}
.glz-lightbox__prev{left:17px}.glz-lightbox__next{right:17px}
.glz-lightbox__counter{position:absolute;top:29px;left:30px;letter-spacing:.16em;font-size:12px}
.glz-lightbox__bottom{min-height:150px;padding:18px 38px 25px;display:grid;grid-template-columns:minmax(200px,1fr) minmax(280px,1.2fr) auto;align-items:end;gap:24px;border-top:1px solid rgba(255,255,255,.16);background:#202920}
.glz-lightbox__details small{letter-spacing:.17em;color:#cec4b4;font-size:10px}
.glz-lightbox__title{margin:9px 0 0;font-size:23px;line-height:1.18;letter-spacing:-.045em;font-weight:450}
.glz-lightbox__thumbs{display:flex;gap:7px;justify-content:center}
.glz-lightbox__thumb{width:84px;height:59px;border:2px solid transparent;background:transparent;padding:0;cursor:pointer;opacity:.7;flex-shrink:0}
.glz-lightbox__thumb.is-current{border-color:#d4c3a2;opacity:1}
.glz-lightbox__thumb img{display:block;width:100%;height:100%;object-fit:cover}
.glz-lightbox__quote{display:inline-flex;align-items:center;justify-content:space-between;gap:15px;background:#f0eee6;color:#1c271e;padding:17px 21px;white-space:nowrap;font-size:12px;text-decoration:none}
.glz-lightbox__quote:hover{background:white}
@media(max-width:960px){.glz-lightbox__bottom{grid-template-columns:1fr auto}.glz-lightbox__thumbs{grid-column:1;grid-row:2;justify-content:flex-start}.glz-lightbox__quote{grid-column:2;grid-row:1/3}}
@media(max-width:700px){.project-card__gallery-controls{top:12px;left:12px}.project-card__gallery-controls button{width:37px;height:37px}.project-card__photo-count{top:12px;right:12px;padding:9px 10px}.glz-lightbox__viewer{padding:63px 3px 20px}.glz-lightbox__close{top:11px;right:13px;width:42px;height:42px}.glz-lightbox__counter{top:27px;left:15px}.glz-lightbox__prev,.glz-lightbox__next{top:auto;bottom:20px;transform:none;width:42px;height:44px;font-size:20px}.glz-lightbox__prev{left:7px}.glz-lightbox__next{right:7px}.glz-lightbox__bottom{min-height:210px;padding:14px 16px 20px;display:flex;flex-direction:column;align-items:stretch;gap:15px}.glz-lightbox__title{font-size:19px}.glz-lightbox__thumbs{justify-content:flex-start}.glz-lightbox__thumb{width:65px;height:47px}.glz-lightbox__quote{width:100%;white-space:normal}.glz-lightbox__photo{max-height:100%}}
/* 4 separate photos visible together inside each object card */
.project-card--mosaic .project-card__image{position:absolute;inset:0;z-index:0;display:grid;grid-template-columns:minmax(0,1fr) 30%;grid-template-rows:repeat(3,minmax(0,1fr));gap:3px;background:#1e2420}
.project-card--mosaic .project-card__image>img{position:relative;grid-column:1;grid-row:1/4;display:block;width:100%;height:100%;object-fit:cover;min-width:0;min-height:0;filter:none!important}
.project-card--mosaic .glz-mosaic__tile{grid-column:2;min-width:0;min-height:0;overflow:hidden}
.project-card--mosaic .glz-mosaic__tile:nth-of-type(1){grid-row:1}
.project-card--mosaic .glz-mosaic__tile:nth-of-type(2){grid-row:2}
.project-card--mosaic .glz-mosaic__tile:nth-of-type(3){grid-row:3}
.project-card--mosaic .glz-mosaic__tile img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s;filter:none!important}
.project-card--mosaic:hover .glz-mosaic__tile img{transform:scale(1.015)}
.project-card--mosaic .project-card__open{z-index:2}
.project-card--mosaic .project-card__body{z-index:3;width:70%;right:auto;bottom:0}
.glz-mosaic__count{position:absolute;z-index:4;right:12px;top:12px;background:rgba(17,24,20,.78);color:#fff;letter-spacing:.04em;font-size:11px;padding:10px 12px;pointer-events:none}
@media(max-width:760px){
  .project-card--mosaic .project-card__image{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,2.5fr) minmax(0,1fr)}
  .project-card--mosaic .project-card__image>img{grid-column:1/4;grid-row:1}
  .project-card--mosaic .glz-mosaic__tile{grid-row:2!important}
  .project-card--mosaic .glz-mosaic__tile:nth-of-type(1){grid-column:1}
  .project-card--mosaic .glz-mosaic__tile:nth-of-type(2){grid-column:2}
  .project-card--mosaic .glz-mosaic__tile:nth-of-type(3){grid-column:3}
  .project-card--mosaic .project-card__body{width:100%;bottom:24%;padding:75px 18px 13px;grid-template-columns:1fr}
  .project-card--mosaic .project-card__body h3{font-size:25px}
  .project-card--mosaic .project-card__cta{margin-top:8px}
  .glz-mosaic__count{top:9px;right:9px;padding:7px 9px}
}

/* Use actual number of unique photos: show all present, never duplicate a tile. */
.project-card--mosaic .project-card__image{grid-template-rows:repeat(var(--glz-preview-count,3),minmax(0,1fr))}
.project-card--mosaic .project-card__image>img{grid-row:1/-1}
.project-card--mosaic .glz-mosaic__tile:nth-of-type(n){grid-row:auto}
@media(max-width:760px){
 .project-card--mosaic .project-card__image{grid-template-columns:repeat(var(--glz-preview-count,3),minmax(0,1fr));grid-template-rows:minmax(0,2.5fr) minmax(0,1fr)}
 .project-card--mosaic .project-card__image>img{grid-column:1/-1;grid-row:1}
 .project-card--mosaic .glz-mosaic__tile:nth-of-type(n){grid-column:auto;grid-row:2}
}
