/* ===== Gallery Page Styles ===== */

/* ---- Page Hero override — rich animated bg ---- */
.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(197,41,145,0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(83,24,72,0.5)  0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(212,175,55,0.12) 0%, transparent 45%),
        linear-gradient(135deg, #0d0010 0%, #1a0030 35%, #0a000d 70%, #000 100%);
}

/* animated floating orbs */
.page-hero::before,
.page-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    animation: heroOrb 8s ease-in-out infinite;
    pointer-events: none;
}

.page-hero::before {
    width: 400px; height: 400px;
    top: -120px; left: -100px;
    background: radial-gradient(circle, rgba(197,41,145,0.22) 0%, transparent 65%);
    animation-delay: 0s;
}

.page-hero::after {
    width: 300px; height: 300px;
    bottom: -80px; right: -60px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 65%);
    animation-delay: -4s;
}

@keyframes heroOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(30px, -20px) scale(1.1); }
    66%       { transform: translate(-20px, 15px) scale(0.95); }
}

/* sparkle dots decoration */
.page-hero h1, .page-hero p { position: relative; z-index: 2; }

/* ---- Gallery section background ---- */
.gallery-page-section {
    position: relative;
    padding: 80px 0 100px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 40%, rgba(197,41,145,0.13) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 70%, rgba(83,24,72,0.2)  0%, transparent 50%),
        radial-gradient(ellipse at 50% 10%, rgba(212,175,55,0.06) 0%, transparent 45%),
        linear-gradient(160deg, #040008 0%, #0e0015 30%, #06000e 60%, #000 100%);
}

/* mesh grid overlay */
.gallery-page-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(197,41,145,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197,41,145,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* content sits above mesh */
.gallery-page-section > * { position: relative; z-index: 1; }

/* ---- Section label ---- */
.gallery-label {
    text-align: center;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.gallery-page-section .section-title {
    margin-bottom: 10px;
}

.gallery-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

/* ---- Scroll-reveal entrance for text block ---- */
.gallery-intro-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.gallery-intro-block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Scroll Track ---- */
.gallery-scroll-wrapper {
    overflow: hidden;
    padding: 14px 0;
    width: 100%;
    max-width: 100vw;
    /* subtle side fades */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gallery-scroll-row {
    display: flex;
    gap: 18px;
    width: max-content;
    padding: 8px 0;
}

/* Row 1 — left to right */
.gallery-scroll-row.row-ltr {
    animation: scrollLTR 35s linear infinite;
}

/* Row 2 — right to left */
.gallery-scroll-row.row-rtl {
    animation: scrollRTL 40s linear infinite;
    margin-top: 18px;
}

/* Pause on hover */
.gallery-scroll-wrapper:hover .gallery-scroll-row {
    animation-play-state: paused;
}

@keyframes scrollLTR {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRTL {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ---- Individual image card ---- */
.gallery-photo {
    position: relative;
    width: 300px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    /* shimmer border */
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 0 0 1px rgba(197,41,145,0.18),
        0 6px 24px rgba(0,0,0,0.5);
}

.gallery-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(197,41,145,0.5), transparent 40%, rgba(212,175,55,0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-photo:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 0 0 1px rgba(197,41,145,0.5),
        0 20px 50px rgba(197,41,145,0.25),
        0 8px 24px rgba(0,0,0,0.6);
}

.gallery-photo:hover::after { opacity: 1; }

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.5s ease;
    display: block;
    filter: brightness(0.88) saturate(1.3) contrast(1.06);
}

.gallery-photo:hover img {
    transform: scale(1.1);
    filter: brightness(0.85) saturate(1.4) contrast(1.1);
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(83,24,72,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-photo:hover .gallery-photo-overlay { opacity: 1; }

.gallery-photo-overlay span {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ---- CTA below gallery ---- */
.gallery-cta {
    text-align: center;
    margin: 70px auto 0;
    padding: 50px 30px;
    background:
        radial-gradient(ellipse at center, rgba(197,41,145,0.12) 0%, transparent 70%),
        linear-gradient(135deg, rgba(13,0,20,0.9), rgba(30,0,50,0.85));
    border: 1px solid rgba(197,41,145,0.25);
    border-radius: 24px;
    max-width: 700px;
    position: relative;
    overflow: hidden;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-accent), var(--gold), transparent);
}

.gallery-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 30px; color: #fff; margin-bottom: 12px;
}

.gallery-cta p {
    color: var(--text-muted);
    font-size: 14px; margin-bottom: 24px; line-height: 1.7;
}

/* ---- WhatsApp float ---- */
/* Base styles defined globally in styles.css */
/* No local overrides needed for gallery page */

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .gallery-photo { width: 220px; height: 170px; }
    .gallery-page-section { padding: 60px 0 70px; }
    .gallery-desc { font-size: 14px; padding: 0 16px; }
    .gallery-cta { margin: 50px 16px 0; padding: 36px 20px; }
    .gallery-cta h3 { font-size: 24px; }
    /* Disable side-fade masks on mobile to prevent overflow artifacts */
    .gallery-scroll-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

@media (max-width: 480px) {
    .gallery-photo { width: 170px; height: 140px; }
    .gallery-scroll-row { gap: 12px; }
    .gallery-cta { padding: 28px 16px; }
    .gallery-cta h3 { font-size: 20px; }
    .page-hero h1 { font-size: 26px; }
}

