/* Album-first gallery (v5.4): catalog -> album contents */
.gallery-album-page{background:#fafcf9;min-height:460px}
.gallery-hero .page-hero-inner{padding:78px 0 80px}
.gallery-back-top{display:inline-flex;margin-top:20px;font-size:12px;font-weight:800;color:#24563a;text-decoration:underline;text-underline-offset:5px}
.gallery-category-tabs{margin-bottom:38px}
.gallery-heading{margin-bottom:28px;align-items:end}
.gallery-heading h2{margin:10px 0}
.gallery-album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;align-items:stretch}
.gallery-album-card{display:block;min-width:0;background:#fff;border:1px solid #dbe7da;border-radius:22px;overflow:hidden;box-shadow:0 9px 35px rgba(11,46,27,.045);transition:transform .4s cubic-bezier(.2,.8,.2,1),box-shadow .4s,border-color .4s}
.gallery-album-card:hover{transform:translateY(-9px);box-shadow:0 22px 45px rgba(14,52,35,.16);border-color:#acc9b1}
.gallery-album-card:focus-visible{outline:3px solid #78a986;outline-offset:4px}
.gallery-album-picture{position:relative;aspect-ratio:1.38;overflow:hidden;background:#e2eee3;isolation:isolate}
.gallery-album-picture:after{content:"";position:absolute;inset:30% 0 0;background:linear-gradient(transparent,rgba(5,25,16,.74));z-index:1;pointer-events:none}
.gallery-album-picture img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s cubic-bezier(.2,.75,.2,1),filter .5s}
.gallery-album-card:hover .gallery-album-picture img,.gallery-album-card:focus-visible .gallery-album-picture img{transform:scale(1.1);filter:saturate(1.08)}
.gallery-album-placeholder{height:100%;display:grid;place-items:center;background:radial-gradient(circle at 30% 20%,#d7ebd8,#8cbaa2);font-size:80px;color:#527e67}
.gallery-album-badge,.gallery-album-count{position:absolute;z-index:2;font-size:10px;font-weight:800;letter-spacing:.05em;border-radius:100px}
.gallery-album-badge{top:16px;left:16px;background:#f3f9e9ed;color:#214734;padding:9px 13px}
.gallery-album-count{bottom:18px;left:18px;color:#fff;display:inline-flex;gap:7px;align-items:center;font-size:12px}
.gallery-album-open{position:absolute;z-index:2;right:18px;bottom:14px;height:42px;width:42px;display:grid;place-items:center;font-size:22px;border:1px solid rgba(255,255,255,.64);background:#ffffff2a;backdrop-filter:blur(8px);border-radius:50%;color:white;transition:transform .35s,background .35s}
.gallery-album-card:hover .gallery-album-open{transform:rotate(45deg);background:#ffffff66}
.gallery-album-details{padding:22px 23px 24px;display:flex;flex-direction:column;gap:8px;min-height:168px}
.gallery-album-details h3{font-size:21px;margin:0;color:#193e30;line-height:1.3;overflow-wrap:anywhere}
.gallery-album-details p{color:#768779;font-size:12px;line-height:1.7;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gallery-album-cta{margin-top:auto;padding-top:9px;color:#2f7952;font-size:12px;font-weight:850;display:flex;justify-content:space-between;align-items:center;max-width:154px}
.gallery-album-cta span{transition:transform .25s}.gallery-album-card:hover .gallery-album-cta span{transform:translateX(5px)}
.gallery-detail-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:32px}
.gallery-detail-heading h2{margin:8px 0 9px}.gallery-detail-heading p{color:#778c7c;font-size:13px}
.gallery-back-button{border:1px solid #bbd2c0;border-radius:50px;padding:12px 19px;font-size:12px;font-weight:850;color:#21523b;white-space:nowrap;transition:background .2s}.gallery-back-button:hover{background:#e5f0e5}
.gallery-detail-grid .gallery-card{cursor:zoom-in}
.gallery-detail-grid .gallery-card>img{object-fit:cover}
@media(max-width:990px){.gallery-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}}
@media(max-width:600px){.gallery-hero .page-hero-inner{padding:55px 0 60px}.gallery-album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gallery-album-card{border-radius:14px}.gallery-album-picture{aspect-ratio:.93}.gallery-album-badge{top:9px;left:9px;padding:7px 8px;font-size:8px}.gallery-album-count{bottom:12px;left:10px;font-size:10px}.gallery-album-open{right:10px;bottom:9px;width:29px;height:29px;font-size:17px}.gallery-album-details{padding:13px 12px 16px;min-height:152px}.gallery-album-details h3{font-size:15px}.gallery-album-details p{font-size:11px}.gallery-album-cta{font-size:10px}.gallery-detail-heading{align-items:start;flex-direction:column}.gallery-detail-heading h2{font-size:32px}.gallery-heading{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.gallery-album-card,.gallery-album-picture img,.gallery-album-open,.gallery-album-cta span{transition:none!important}.gallery-album-card:hover{transform:none}.gallery-album-card:hover .gallery-album-picture img{transform:none}}
