/* Photo Gallery — ultra premium albums & lightbox grid */

.gallery-banner {
    position: relative;
    overflow: hidden;
    padding: clamp(5.5rem, 11vw, 8rem) 0 clamp(3.5rem, 7vw, 5rem);
    background: linear-gradient(145deg, #0f1d45 0%, #1a2f6b 40%, #0d9488 75%, #134e4a 100%);
    background-size: 220% 220%;
    animation: galleryBannerShift 16s ease-in-out infinite alternate;
    color: #fff;
    text-align: center;
}
@keyframes galleryBannerShift {
    0% { background-position: 0% 40%; }
    100% { background-position: 100% 60%; }
}
.gallery-banner__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 100%, rgba(212, 168, 75, 0.2), transparent 68%),
        radial-gradient(circle at 15% 20%, rgba(13, 148, 136, 0.25), transparent 42%),
        radial-gradient(circle at 88% 25%, rgba(212, 168, 75, 0.1), transparent 40%);
    pointer-events: none;
}
.gallery-banner__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
    pointer-events: none;
}
.gallery-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}
.gallery-banner__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
}
.gallery-banner__crumb a {
    color: var(--saffron-light, #f5c842);
    text-decoration: none;
}
.gallery-banner__crumb a:hover { color: #fff; }
.gallery-banner__eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--saffron, #d4a84b);
    margin-bottom: 0.75rem;
}
.gallery-banner__title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(2.4rem, 5.5vw, 3.75rem);
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #fff;
}
.gallery-banner__subtitle {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: rgba(255, 255, 255, 0.78);
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.65;
}
.gallery-banner__line {
    display: block;
    width: 72px;
    height: 3px;
    margin: 1.35rem auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--saffron, #d4a84b), transparent);
}

.gallery-body {
    position: relative;
    padding: clamp(2.75rem, 5.5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
    background: linear-gradient(180deg, #faf8f5 0%, #f0ebe3 50%, #faf8f5 100%);
    overflow: hidden;
}
.gallery-body__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.gallery-body__orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.1), transparent 70%);
}
.gallery-body__orb--1 { width: 360px; height: 360px; top: -110px; right: -80px; }
.gallery-body__orb--2 { width: 300px; height: 300px; bottom: 8%; left: -90px; }

.gallery-intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.75;
    color: #64748b;
}

.gallery-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.gallery-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.35rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(26, 47, 107, 0.08);
    box-shadow: 0 8px 24px rgba(15, 29, 69, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 29, 69, 0.1);
}
.gallery-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--navy, #1a2f6b), var(--navy-dark, #0f1d45));
    color: var(--saffron, #d4a84b);
    font-size: 1.1rem;
}
.gallery-stat__value {
    display: block;
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy, #1a2f6b);
    line-height: 1.1;
}
.gallery-stat__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Album cards */
.gallery-albums {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}
.gallery-album {
    grid-column: span 6;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    background: var(--navy-dark, #0f1d45);
    box-shadow: 0 12px 40px rgba(15, 29, 69, 0.12);
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s ease;
}
.gallery-album:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(15, 29, 69, 0.2);
}
.gallery-album--featured {
    grid-column: span 12;
    min-height: 360px;
}
@media (min-width: 768px) {
    .gallery-album { grid-column: span 4; }
    .gallery-album--featured { grid-column: span 8; min-height: 380px; }
    .gallery-album--side { grid-column: span 4; min-height: 380px; }
}
@media (min-width: 992px) {
    .gallery-album { grid-column: span 3; }
    .gallery-album--featured { grid-column: span 6; }
    .gallery-album--wide { grid-column: span 6; }
}
.gallery-album__media {
    position: absolute;
    inset: 0;
}
.gallery-album__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}
.gallery-album:hover .gallery-album__media img {
    transform: scale(1.08);
    filter: brightness(0.92);
}
.gallery-album__media--empty {
    background: linear-gradient(145deg, var(--navy, #1a2f6b), #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(212, 168, 75, 0.4);
    font-size: 3rem;
}
.gallery-album__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(15, 29, 69, 0.55) 55%, rgba(15, 29, 69, 0.95) 100%);
    transition: background 0.45s ease;
}
.gallery-album:hover .gallery-album__overlay {
    background: linear-gradient(180deg, rgba(15, 29, 69, 0.15) 0%, rgba(15, 29, 69, 0.65) 50%, rgba(15, 29, 69, 0.98) 100%);
}
.gallery-album__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
}
.gallery-album:hover .gallery-album__shine {
    transform: translateX(120%);
}
.gallery-album__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.5rem 1.6rem 1.6rem;
    color: #fff;
}
.gallery-album__count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(212, 168, 75, 0.2);
    border: 1px solid rgba(212, 168, 75, 0.35);
    color: var(--saffron-light, #f5c842);
    margin-bottom: 0.65rem;
}
.gallery-album__title {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    margin: 0 0 0.35rem;
    color: #fff;
    line-height: 1.25;
}
.gallery-album--featured .gallery-album__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.gallery-album__desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-album__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--saffron, #d4a84b);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease, gap 0.3s ease;
}
.gallery-album:hover .gallery-album__cta {
    opacity: 1;
    transform: translateY(0);
}
.gallery-album:hover .gallery-album__cta { gap: 0.65rem; }

.gallery-empty {
    text-align: center;
    padding: clamp(3rem, 6vw, 4.5rem) 2rem;
    border-radius: 24px;
    background: #fff;
    border: 1px dashed rgba(26, 47, 107, 0.15);
    color: #64748b;
}
.gallery-empty i {
    font-size: 2.5rem;
    color: var(--saffron, #d4a84b);
    opacity: 0.6;
    margin-bottom: 1rem;
    display: block;
}

/* Album detail grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}
@media (min-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-grid__item {
    border: none;
    padding: 0;
    background: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    aspect-ratio: 1;
    box-shadow: 0 8px 28px rgba(15, 29, 69, 0.08);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}
.gallery-grid__item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 48px rgba(15, 29, 69, 0.16);
    z-index: 2;
}
.gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.gallery-grid__item:hover img {
    transform: scale(1.1);
}
.gallery-grid__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 29, 69, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}
.gallery-grid__item:hover .gallery-grid__overlay { opacity: 1; }
.gallery-grid__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--saffron, #d4a84b), #c9983f);
    color: var(--navy-dark, #0f1d45);
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(212, 168, 75, 0.4);
}
.gallery-grid__item:hover .gallery-grid__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.gallery-grid__caption {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.gallery-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--navy, #1a2f6b);
    border: 2px solid rgba(26, 47, 107, 0.12);
    background: #fff;
    transition: all 0.35s ease;
}
.gallery-back:hover {
    background: var(--navy, #1a2f6b);
    color: #fff;
    border-color: var(--navy, #1a2f6b);
    transform: translateX(-4px);
}

@media (max-width: 767px) {
    .gallery-banner { animation: none; }
    .gallery-album--featured { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-banner { animation: none; }
    .gallery-album:hover,
    .gallery-grid__item:hover,
    .gallery-stat:hover { transform: none; }
    .gallery-album__cta { opacity: 1; transform: none; }
}
