/* Gallery Page Styles - Instagram Grid */

.bp-gallery-hero {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 50%, #26de81 100%);
    padding: 140px 0 70px;
    text-align: center;
    color: #fff;
}
.bp-gallery-hero h1 { font-size: 2.5rem; margin-bottom: 8px; font-family: 'Baloo 2', cursive; }
.bp-gallery-hero p { font-size: 1.1rem; opacity: 0.9; }

/* Instagram follow link */
.bp-gallery-ig-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 24px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}
.bp-gallery-ig-link:hover { background: rgba(255,255,255,0.35); color: #fff; }

/* Smash Balloon Instagram Feed styling */
.bp-instagram-feed {
    max-width: 960px;
    margin: 0 auto;
}
.bp-instagram-feed #sb_instagram,
.bp-instagram-feed .sbi {
    padding: 0 !important;
}
.bp-instagram-feed #sb_instagram #sbi_images,
.bp-instagram-feed .sbi_items {
    gap: 4px !important;
}
.bp-instagram-feed .sbi_item {
    border-radius: 0 !important;
}

/* Instagram-style Grid - uniform squares */
.bp-gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-width: 960px;
    margin: 0 auto;
}

.bp-gallery-masonry-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Perfect square */
    background: #f0f0f0;
}

.bp-gallery-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bp-gallery-masonry-item:hover img {
    transform: scale(1.05);
}

.bp-gallery-masonry-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    gap: 6px;
}
.bp-gallery-masonry-item:hover .bp-gallery-masonry-overlay { opacity: 1; }

.bp-gallery-masonry-zoom {
    font-size: 1.8rem;
    filter: grayscale(1) brightness(10);
}
.bp-gallery-masonry-caption {
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    padding: 0 12px;
    font-weight: 600;
}

/* Lightbox */
.bp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.bp-lightbox.active { display: flex; }

.bp-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.94);
    cursor: pointer;
}

.bp-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bp-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.bp-lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.bp-lightbox-close,
.bp-lightbox-prev,
.bp-lightbox-next {
    position: fixed;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 3;
}
.bp-lightbox-close:hover,
.bp-lightbox-prev:hover,
.bp-lightbox-next:hover { background: rgba(255,255,255,0.25); }

.bp-lightbox-close { top: 20px; right: 20px; }
.bp-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.bp-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* No Gallery */
.bp-no-gallery {
    text-align: center;
    padding: 80px 20px;
}
.bp-no-gallery span { font-size: 4rem; display: block; margin-bottom: 20px; }
.bp-no-gallery h3 { font-size: 1.5rem; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .bp-gallery-hero { padding: 110px 0 50px; }
    .bp-gallery-hero h1 { font-size: 1.8rem; }
    .bp-gallery-masonry { gap: 3px; }
}
@media (max-width: 480px) {
    .bp-gallery-masonry { grid-template-columns: repeat(3, 1fr); gap: 2px; }
    .bp-lightbox-prev, .bp-lightbox-next { width: 38px; height: 38px; font-size: 1.4rem; }
}
