/* ============================================
   GALERI.CSS - Gallery Page Specific Styles
   Gading Resort Residences
   ============================================ */

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, #2D7A6E 0%, #1a5a50 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* FILTER BUTTONS */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--primary-green);
    background: white;
    color: var(--primary-green);
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-green);
    color: white;
}

/* GALLERY CATEGORY */
.gallery-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--primary-green);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-orange);
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.gallery-item-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    object-fit: cover;
}

/* When actual images are added, use this style */
.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-caption {
    padding: 20px;
    background: white;
}

.gallery-item-caption h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.gallery-item-caption p {
    font-size: 14px;
    color: var(--text-medium);
}

/* LIGHTBOX MODAL */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -50px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, #2D7A6E 0%, #1a5a50 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-phone {
    font-size: 32px;
    font-weight: bold;
    margin: 30px 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 32px;
    }

    .page-header {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .category-title {
        font-size: 24px;
    }

    .gallery-item-image {
        height: 220px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-phone {
        font-size: 24px;
    }

    /* Lightbox adjustments for mobile */
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 35px;
    }

    .lightbox-caption {
        font-size: 16px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 26px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .gallery-item-caption h3 {
        font-size: 16px;
    }

    .gallery-item-caption p {
        font-size: 13px;
    }
}