/*
 * gallery.css - devotional photo albums (album list + album page).
 */

.album-section {
    position: relative; overflow: hidden; padding: 70px 0 90px;
    background:
        radial-gradient(ellipse 55% 40% at 85% 10%, rgba(255, 196, 102, .22), rgba(255, 196, 102, 0) 70%),
        radial-gradient(ellipse 50% 40% at 5% 70%, rgba(240, 150, 60, .10), rgba(240, 150, 60, 0) 70%),
        linear-gradient(180deg, #fffcf6 0%, #fdf4e4 100%);
}
.album-section > .container { position: relative; z-index: 1; }
.album-mandala {
    position: absolute; z-index: 0; pointer-events: none; width: 760px; height: 760px; right: -260px; top: -220px; opacity: .16;
    background: url('../images/lotus-mandala.svg') center / contain no-repeat;
    animation: nkSpin 260s linear infinite;
}

/* ---------- intro ---------- */
.album-intro { margin-bottom: 36px; }
.album-eyebrow {
    display: inline-block; margin: 0 0 6px; padding: 3px 14px; border-radius: 999px;
    border: 1px solid rgba(217, 164, 65, .6); background: rgba(255, 255, 255, .7); color: #9a6b1f;
    font: 500 14px/1.5 "Noto Sans Devanagari", Poppins, sans-serif; letter-spacing: .06em;
}
.lang-en .album-eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: .14em; }
.album-title { margin: 6px 0 0; color: #8f0b21; font: 600 clamp(26px, 3vw, 38px)/1.25 "Noto Sans Devanagari", Poppins, sans-serif; text-transform: none; letter-spacing: .01em; }
.album-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 0 0 18px; }
.album-count { color: #6b5a4a; font-size: 15px; }
.album-slideshow {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(135deg, #e0701b, #c8102e); color: #fff;
    font: 500 14px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; box-shadow: 0 6px 16px rgba(200, 16, 46, .25);
    transition: transform .3s ease, box-shadow .3s ease;
}
.album-slideshow .nk-icon { font-size: 18px; }
.album-slideshow:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(200, 16, 46, .32); }

.album-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.album-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    background: #fff; color: #7a4a1a !important; border: 1px solid rgba(217, 164, 65, .55);
    font: 500 14px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; transition: all .25s ease;
}
.album-chip span { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #fdecc8; color: #8f0b21; font-size: 12px; text-align: center; }
.album-chip:hover { border-color: #c8102e; color: #c8102e !important; }
.album-chip.is-active { background: linear-gradient(135deg, #e0701b, #c8102e); color: #fff !important; border-color: transparent; }
.album-chip.is-active span { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- album page: masonry of framed photos ---------- */
.album-masonry { column-count: 4; column-gap: 22px; }
@media (max-width: 1199px) { .album-masonry { column-count: 3; } }
@media (max-width: 767px) { .album-masonry { column-count: 2; column-gap: 12px; } }
.album-photo { display: block; break-inside: avoid; margin: 0 0 22px; }
@media (max-width: 767px) { .album-photo { margin-bottom: 12px; } }

.album-photo-frame {
    position: relative; display: block; overflow: hidden; padding: 8px; border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #fff6e8);
    box-shadow: 0 8px 22px rgba(120, 60, 0, .12), inset 0 0 0 1px rgba(217, 164, 65, .45);
    transition: transform .5s cubic-bezier(.2,.65,.3,1), box-shadow .5s ease;
}
.album-photo-frame img { display: block; width: 100%; height: auto; border-radius: 10px; transition: transform 1.2s cubic-bezier(.2,.65,.3,1), filter .6s ease; }
.album-photo-glow {
    position: absolute; inset: 8px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: radial-gradient(circle at 50% 55%, rgba(255, 196, 102, .35), rgba(90, 20, 0, .55) 75%);
    opacity: 0; transition: opacity .45s ease;
}
.album-photo-zoom {
    display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: #c8102e; font-size: 30px; box-shadow: 0 0 0 4px rgba(243, 213, 138, .6);
    transform: scale(.7); transition: transform .45s cubic-bezier(.2,.65,.3,1);
}
.album-photo-label { color: #fff; font: 500 14px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.album-photo:hover .album-photo-frame, .album-photo:focus-visible .album-photo-frame { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(120, 60, 0, .22), inset 0 0 0 1px rgba(217, 164, 65, .8); }
.album-photo:hover img, .album-photo:focus-visible img { transform: scale(1.06); }
.album-photo:hover .album-photo-glow, .album-photo:focus-visible .album-photo-glow { opacity: 1; }
.album-photo:hover .album-photo-zoom, .album-photo:focus-visible .album-photo-zoom { transform: scale(1); }

/* ---------- album list: stacked photo cards ---------- */
.album-stack-grid { row-gap: 40px; }
.album-stack {
    position: relative; display: block; padding: 0 0 6px; text-align: center; color: #3a2a1f !important;
}
.album-stack-photos { position: relative; display: block; height: 290px; margin: 18px 22px 22px; }
.album-stack-sheet {
    position: absolute; inset: 0; border-radius: 14px; border: 8px solid #fff;
    background: #f5e7cf center / cover no-repeat;
    box-shadow: 0 10px 26px rgba(120, 60, 0, .18), 0 0 0 1px rgba(217, 164, 65, .45);
    transition: transform .6s cubic-bezier(.2,.65,.3,1), box-shadow .6s ease;
}
.album-stack-sheet.sheet-3 { transform: rotate(-7deg) translate(-12px, 6px); filter: saturate(.85) brightness(.97); }
.album-stack-sheet.sheet-2 { transform: rotate(5deg) translate(12px, 4px); filter: saturate(.9); }
.album-stack-sheet.sheet-1 { transform: rotate(0); }
.album-stack:hover .album-stack-sheet.sheet-3 { transform: rotate(-12deg) translate(-34px, 10px); }
.album-stack:hover .album-stack-sheet.sheet-2 { transform: rotate(10deg) translate(34px, 8px); }
.album-stack:hover .album-stack-sheet.sheet-1 { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(120, 60, 0, .28), 0 0 0 1px rgba(217, 164, 65, .8); }
.album-stack-badge {
    position: absolute; top: 4px; right: 10px; z-index: 2; padding: 4px 12px; border-radius: 999px;
    background: linear-gradient(135deg, #e0701b, #c8102e); color: #fff; font: 500 13px/1.4 "Noto Sans Devanagari", Poppins, sans-serif;
    box-shadow: 0 4px 12px rgba(200, 16, 46, .3);
}
.album-stack-title { display: block; color: #8f0b21; font: 600 21px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; }
.album-stack-cta { display: inline-block; margin-top: 6px; color: #9a6b1f; font: 500 14px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; }
.album-stack-cta span { display: inline-block; transition: transform .3s ease; }
.album-stack:hover .album-stack-cta span { transform: translateX(4px); }
@media (max-width: 575px) { .album-stack-photos { height: 240px; } }

@media (prefers-reduced-motion: reduce) {
    .album-mandala { animation: none; }
    .album-photo-frame img, .album-stack-sheet { transition: none; }
}
