/* FH Jayabaya — albums and lightbox, safely scoped to the gallery pages */
.fh-gallery-page{--fh-maroon:#902323;--fh-gold:#d7a05e;background:#fbf8f5;min-height:65vh;color:#211e29}
.fh-gallery-page .container{max-width:1230px}
.fh-gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 28px}
.fh-gallery-eyebrow{color:#902323;font-size:.77rem;font-weight:800;letter-spacing:.15em}
.fh-gallery-heading h1{font-family:'Plus Jakarta Sans',Inter,system-ui,sans-serif!important;font-size:clamp(1.65rem,2.7vw,2.45rem)!important;line-height:1.25!important;font-weight:800!important;letter-spacing:-.025em;margin:7px 0 10px;overflow-wrap:anywhere}
.fh-gallery-heading p{max-width:760px;color:#67616a;margin:0;font-size:.95rem;line-height:1.7}
.fh-gallery-count{border:1px solid #e7d9cf;background:white;border-radius:100px;padding:7px 14px;color:#902323;white-space:nowrap;font-size:.82rem;font-weight:700}
.fh-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.fh-album-tile{display:flex;flex-direction:column;min-width:0;background:white;border-radius:15px;border:1px solid #f0e7e2;overflow:hidden;text-decoration:none!important;color:inherit!important;box-shadow:0 5px 22px rgba(116,28,28,.07);transition:transform .2s ease,box-shadow .2s ease}
.fh-album-tile:hover,.fh-album-tile:focus-visible{transform:translateY(-4px);box-shadow:0 15px 35px rgba(116,28,28,.13)}
.fh-album-tile:focus-visible,.fh-gallery-photo:focus-visible{outline:3px solid var(--fh-gold);outline-offset:3px}
.fh-album-tile-image{height:230px;position:relative;overflow:hidden;background:#eae4e0}
.fh-album-tile-image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s ease}
.fh-album-tile:hover img{transform:scale(1.04)}
.fh-album-tile-tag{position:absolute;right:13px;bottom:13px;border-radius:24px;background:rgba(116,28,28,.89);padding:8px 12px;color:white;font-size:.77rem;font-weight:700}
.fh-album-tile-content{padding:18px 19px 20px;display:flex;flex-direction:column;flex:1;gap:9px;min-width:0}
.fh-album-tile-content h2{font-family:'Plus Jakarta Sans',Inter,system-ui,sans-serif!important;font-size:1rem!important;font-weight:750;line-height:1.45;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.fh-album-tile-content p{font-size:.86rem;color:#6d646a;line-height:1.55;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.fh-album-tile-link{margin-top:auto;padding-top:5px;font-weight:700;color:var(--fh-maroon);font-size:.84rem}
.fh-gallery-back{display:inline-flex;align-items:center;gap:8px;color:var(--fh-maroon);font-size:.9rem;font-weight:700;text-decoration:none;margin-bottom:26px}
.fh-gallery-back:hover{text-decoration:underline}
.fh-gallery-heading-detail{align-items:center}
.fh-gallery-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.fh-gallery-photo{position:relative;display:block;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:13px;background:#ebe5e0;box-shadow:0 5px 17px rgba(116,28,28,.09)}
.fh-gallery-photo img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease}
.fh-gallery-photo:hover img{transform:scale(1.04)}
.fh-gallery-photo-zoom{position:absolute;top:12px;right:12px;background:#401e2ab8;color:#fff;border-radius:50%;height:35px;width:35px;display:grid;place-items:center}
.fh-gallery-photo-caption{position:absolute;bottom:0;left:0;right:0;color:#fff;background:linear-gradient(transparent,rgba(20,9,16,.86));padding:25px 12px 12px;font-size:.78rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.fh-gallery-empty{text-align:center;background:white;border:1px dashed #d7c6c2;border-radius:15px;padding:65px 18px;color:#6b626b}
.fh-gallery-empty i{font-size:2.5rem;color:var(--fh-maroon)}
.fh-gallery-empty h2{font-size:1.15rem;margin:15px 0 6px}
.fh-gallery-lightbox{border:0;border-radius:14px;padding:0;background:#1b171d;color:#fff;width:min(1200px,96vw);max-width:96vw;max-height:94vh;box-shadow:0 22px 80px rgba(0,0,0,.5)}
.fh-gallery-lightbox::backdrop{background:rgba(13,8,15,.9);backdrop-filter:blur(5px)}
.fh-gallery-lightbox-shell{padding:12px 16px 16px}
.fh-gallery-lightbox-top{display:flex;justify-content:space-between;align-items:center;min-height:34px;color:#dcd3d8;font-size:.83rem}
.fh-gallery-lightbox button{background:#ffffff20;color:#fff;border:1px solid #ffffff32;border-radius:50%;height:40px;width:40px;display:grid;place-items:center;flex:0 0 auto;cursor:pointer}
.fh-gallery-lightbox button:hover,.fh-gallery-lightbox button:focus-visible{background:#ffffff44}
.fh-gallery-lightbox button:disabled{opacity:.25;cursor:default}
.fh-gallery-lightbox-main{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:100px}
.fh-gallery-lightbox-main img{min-width:0;max-width:calc(100% - 105px);width:auto;height:auto;max-height:calc(94vh - 140px);object-fit:contain;margin:auto}
.fh-gallery-lightbox-caption{text-align:center;font-size:.92rem;color:#f7ebf1;line-height:1.5;margin:10px 12px 0;max-height:65px;overflow:auto;overflow-wrap:anywhere}
@media(max-width:991px){.fh-album-grid,.fh-gallery-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575px){.fh-gallery-heading{align-items:flex-start;flex-direction:column;gap:12px}.fh-album-grid{grid-template-columns:1fr}.fh-gallery-photo-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.fh-album-tile-image{height:220px}.fh-gallery-lightbox-main{gap:4px}.fh-gallery-lightbox-main img{max-width:calc(100% - 82px)}.fh-gallery-lightbox button{width:35px;height:35px}.fh-gallery-lightbox-shell{padding:8px}.fh-gallery-photo-zoom{height:28px;width:28px;top:8px;right:8px}}
@media(prefers-reduced-motion:reduce){.fh-album-tile,.fh-album-tile-image img,.fh-gallery-photo img{transition:none}}
