/* Artwork-led home, within the existing Apameh design. */
.apg-home-gallery{padding-block:64px 72px}
.apg-home-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,255px);gap:26px}
.apg-home-gallery-item{display:flex;flex-direction:column;min-width:0;min-height:0}
.apg-home-gallery-item:first-child{grid-column:span 2;grid-row:span 2}
.apg-home-gallery-image{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;background:#edece4;border:1px solid var(--apg-line);padding:15px;overflow:hidden}
.apg-home-gallery-image img{width:100%;height:100%;object-fit:contain;transition:transform .3s}
.apg-home-gallery-image:hover img{transform:scale(1.02)}
.apg-home-gallery-item:first-child .apg-home-gallery-image{background:#e4e8dd;padding:28px}
.apg-home-gallery-item:nth-child(3) .apg-home-gallery-image{background:#eae4d9}
.apg-home-gallery-item:nth-child(5) .apg-home-gallery-image{background:#e0e7e3}
.apg-home-gallery-caption{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-top:11px}
.apg-home-gallery-caption h3{font-size:13px;margin:0;font-weight:650}
.apg-home-gallery-caption>span{font-size:10px;color:var(--apg-muted)}
.apg-home-gallery-arrow{position:absolute;bottom:12px;left:12px;background:var(--apg-paper);width:28px;height:28px;display:grid;place-items:center;border:1px solid var(--apg-line);font-size:18px}
@media(max-width:1000px){.apg-home-gallery-grid{grid-template-rows:repeat(2,220px);gap:20px}.apg-home-gallery-caption{display:block}.apg-home-gallery-caption>span{font-size:9px}.apg-home-gallery-item:first-child .apg-home-gallery-image{padding:20px}}
@media(max-width:700px){.apg-home-gallery{padding-block:42px}.apg-home-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:25px 15px}.apg-home-gallery-item:first-child{grid-column:1/-1;grid-row:auto}.apg-home-gallery-image{flex:none;aspect-ratio:1;padding:10px}.apg-home-gallery-item:first-child .apg-home-gallery-image{aspect-ratio:1.05;padding:20px}.apg-home-gallery-caption h3{font-size:12px}.apg-home-gallery-caption>span{font-size:9px}.apg-home-gallery-arrow{bottom:8px;left:8px}}
@media(prefers-reduced-motion:reduce){.apg-home-gallery-image img{transition:none}}

.apg-hero-slide[hidden],.apg-slider-controls[hidden]{display:none}
.apg-hero-slider .apg-hero-caption strong{display:block;min-height:2em}
.apg-slider-controls{display:flex;align-items:center;gap:12px;border-top:1px solid #6d8a7855;margin-top:16px;padding-top:12px;color:var(--apg-white)}
.apg-slider-controls button{display:grid;place-items:center;min-width:36px;min-height:36px;padding:3px 10px;background:transparent;color:inherit;border:1px solid #6d8a78;font-size:19px}
.apg-slider-controls button:hover{background:#ffffff15;color:#fff}
.apg-slider-controls [data-slide-count]{font-size:11px;font-variant-numeric:tabular-nums;direction:ltr}
.apg-slider-controls .apg-slider-pause{margin-inline-start:auto;font-size:11px}
/* Both artworks travel together inside a stationary viewport. */
.apg-hero-slider{overflow:hidden}
.apg-slider-viewport{touch-action:pan-y pinch-zoom;display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden;isolation:isolate;align-items:start}
.apg-slider-viewport>.apg-hero-slide{grid-area:1/1;min-width:0;width:100%}

@media(max-width:700px){.apg-stat-strip>.apg-shell{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.apg-stat-strip>.apg-shell>span:last-child{display:block}.apg-stat-strip>.apg-shell>span{font-size:9px;line-height:1.8}.apg-stat-strip strong{display:block;margin-inline-end:0;font-size:24px}}
