
/* =====================================================
   GANESH ART - GALLERY / PORTFOLIO
===================================================== */

.ga-gallery-page {
    --ga-navy: #172b4d;
    --ga-orange: #e87924;
    --ga-text: #526174;
    --ga-border: #e8edf3;
    background: #ffffff;
    color: var(--ga-navy);
}

.ga-gallery-page * {
    box-sizing: border-box;
}

.ga-gallery-page .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ga-gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 0 82px;
    text-align: center;
    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(232, 121, 36, 0.10),
            transparent 28%
        ),
        linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
    border-bottom: 1px solid var(--ga-border);
}

.ga-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--ga-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ga-gallery-hero h1 {
    margin: 0 0 18px;
    color: var(--ga-navy);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.ga-gallery-hero h1 span {
    color: var(--ga-orange);
}

.ga-gallery-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--ga-text);
    font-size: 16px;
    line-height: 1.8;
}

.ga-gallery-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ga-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.ga-btn:hover {
    transform: translateY(-2px);
}

.ga-btn-primary {
    background: var(--ga-orange);
    color: #ffffff;
    box-shadow: 0 7px 18px rgba(232, 121, 36, 0.18);
}

.ga-btn-primary:hover {
    background: #cf6417;
    color: #ffffff;
}

.ga-btn-outline {
    border-color: #d7dfeb;
    background: #ffffff;
    color: var(--ga-navy);
}

.ga-btn-outline:hover {
    border-color: var(--ga-orange);
    color: var(--ga-orange);
}

.ga-gallery-section {
    padding: 70px 0 84px;
}

.ga-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.ga-gallery-heading h2,
.ga-gallery-cta h2 {
    margin: 0 0 12px;
    color: var(--ga-navy);
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.25;
    font-weight: 800;
}

.ga-gallery-heading p,
.ga-gallery-cta p {
    margin: 0;
    color: var(--ga-text);
    font-size: 15px;
    line-height: 1.7;
}

.ga-gallery-count {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 88px;
    padding: 12px;
    border: 1px solid var(--ga-border);
    border-radius: 12px;
    background: #ffffff;
}

.ga-gallery-count strong {
    color: var(--ga-orange);
    font-size: 29px;
    line-height: 1.1;
}

.ga-gallery-count span {
    margin-top: 5px;
    color: var(--ga-text);
    font-size: 12px;
}

.ga-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ga-gallery-card {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--ga-border);
    border-radius: 13px;
    background: #ffffff;
    color: var(--ga-navy);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(23, 43, 77, 0.035);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.ga-gallery-card:hover {
    transform: translateY(-5px);
    border-color: #f1c49f;
    box-shadow: 0 14px 32px rgba(23, 43, 77, 0.10);
}

.ga-gallery-card:focus-visible {
    outline: 3px solid rgba(232, 121, 36, 0.45);
    outline-offset: 4px;
}

.ga-gallery-image-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #f0f3f7;
}

.ga-gallery-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ga-gallery-card:hover .ga-gallery-image-wrap img {
    transform: scale(1.055);
}

.ga-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(23, 43, 77, 0.76);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ga-gallery-card:hover .ga-gallery-overlay,
.ga-gallery-card:focus-visible .ga-gallery-overlay {
    opacity: 1;
}

.ga-gallery-view-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    font-size: 23px;
}

.ga-gallery-card-caption {
    display: block;
    min-height: 58px;
    padding: 17px 18px;
    overflow-wrap: anywhere;
    color: var(--ga-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ga-gallery-empty,
.ga-gallery-message {
    padding: 55px 20px;
    border: 1px dashed #d9e1eb;
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
}

.ga-gallery-empty h3 {
    margin: 0 0 10px;
    color: var(--ga-navy);
}

.ga-gallery-empty p,
.ga-gallery-message {
    color: var(--ga-text);
}

.ga-gallery-cta {
    padding: 48px 0;
    background: #f5f8fc;
    border-top: 1px solid var(--ga-border);
}

.ga-gallery-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ga-btn-light {
    flex-shrink: 0;
    background: var(--ga-orange);
    color: #ffffff;
}

.ga-btn-light:hover {
    background: #cf6417;
    color: #ffffff;
}

/* Image preview */

.ga-lightbox {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 30px;
    background: rgba(9, 18, 33, 0.93);
}

.ga-lightbox.is-open {
    display: flex;
}

.ga-lightbox-content {
    width: min(100%, 1100px);
    max-height: 100%;
    text-align: center;
}

.ga-lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 150px);
    margin: 0 auto;
    border-radius: 5px;
    object-fit: contain;
}

.ga-lightbox-content p {
    margin: 16px 0 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
}

.ga-lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 31px;
    cursor: pointer;
}

.ga-lightbox-close:hover {
    background: var(--ga-orange);
    border-color: var(--ga-orange);
}

@media (max-width: 991px) {
    .ga-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .ga-gallery-hero {
        padding: 70px 0;
    }

    .ga-gallery-section {
        padding: 55px 0 65px;
    }
}

@media (max-width: 600px) {
    .ga-gallery-page .container {
        width: calc(100% - 28px);
    }

    .ga-gallery-hero {
        padding: 55px 0;
    }

    .ga-gallery-hero h1 {
        letter-spacing: -0.8px;
    }

    .ga-gallery-hero-actions {
        flex-direction: column;
    }

    .ga-gallery-hero-actions .ga-btn {
        width: 100%;
    }

    .ga-gallery-heading {
        align-items: start;
        flex-direction: column;
    }

    .ga-gallery-count {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        min-height: auto;
        padding: 12px 16px;
    }

    .ga-gallery-count span {
        margin-top: 0;
    }

    .ga-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ga-gallery-image-wrap {
        aspect-ratio: 4 / 3;
    }

    .ga-gallery-cta-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .ga-gallery-cta-inner .ga-btn {
        width: 100%;
    }

    .ga-lightbox {
        padding: 65px 12px 20px;
    }

    .ga-lightbox-close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ga-gallery-card,
    .ga-gallery-image-wrap img,
    .ga-gallery-overlay,
    .ga-btn {
        transition: none;
    }
}
