/* =========================================================
   COASTLINE CAFE - COMMUNITY PAGE STYLING
   "A Cup of Kindness" • Staff-Managed Gallery • Facebook Reels
   ========================================================= */

.community-main {
    min-height: calc(100vh - 80px);
    background: var(--cream);
    color: #694624;
}

/* =========================================================
   1. COMMUNITY HERO
   ========================================================= */
.community-hero {
    position: relative;
    padding: 70px 20px 50px;
    background: #F4ECE3;
    border-bottom: 1px solid rgba(105, 70, 36, 0.12);
    text-align: center;
    overflow: hidden;
}

.community-hero-wrapper {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.community-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #FFF;
    border: 1px solid rgba(105, 70, 36, 0.18);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #694624;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(105, 70, 36, 0.05);
}

.community-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.community-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    color: #694624;
    margin: 0 0 16px;
}

.community-hero-desc {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.7;
    color: #4A3018;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================================================
   2. STAFF-MANAGED CAFE PHOTO GALLERY (MAIN VISUAL FEATURE)
   ========================================================= */
.gallery-section {
    padding: 60px 20px 70px;
    background: #FAF4ED;
    border-bottom: 1px solid rgba(105, 70, 36, 0.12);
}

.gallery-container {
    max-width: 1180px;
    margin: 0 auto;
}

.gallery-header-simple {
    margin-bottom: 28px;
    text-align: left;
}

.gallery-kicker {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.gallery-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    color: #694624;
    line-height: 1.2;
    margin: 0;
}

.staff-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .staff-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .staff-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.staff-photo-card {
    background: #FFFFFF;
    border: 1px solid rgba(105, 70, 36, 0.16);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(105, 70, 36, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.staff-photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105, 70, 36, 0.12);
    border-color: rgba(105, 70, 36, 0.35);
}

.staff-photo-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #F4ECE3;
    overflow: hidden;
}

@media (max-width: 600px) {
    .staff-photo-img-wrap {
        aspect-ratio: 1 / 1;
    }
}

.staff-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.staff-photo-card:hover .staff-photo-img {
    transform: scale(1.03);
}

.staff-photo-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #FFFFFF;
}

.staff-photo-caption {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4A3018;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-photo-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(105, 70, 36, 0.65);
    font-weight: 500;
}

@media (max-width: 600px) {
    .staff-photo-body {
        padding: 6px 8px;
        gap: 2px;
    }
    .staff-photo-caption {
        font-size: 11.5px;
    }
    .staff-photo-date {
        font-size: 10px;
    }
}

.staff-photo-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border: 1px dashed rgba(105, 70, 36, 0.25);
    border-radius: 8px;
    color: #694624;
}

.staff-photo-empty h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    margin: 0 0 8px;
}

.staff-photo-empty p {
    font-size: 13.5px;
    color: #8C5325;
    margin: 0;
}

/* =========================================================
   3. SECONDARY FEATURE: FACEBOOK REELS
   ========================================================= */
.reels-section {
    padding: 60px 20px 70px;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(105, 70, 36, 0.12);
}

.reels-container {
    max-width: 1180px;
    margin: 0 auto;
}

.reels-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.reels-kicker {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.reels-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 700;
    color: #694624;
    line-height: 1.2;
    margin: 0 0 8px;
}

.reels-subtitle {
    font-size: 14.5px;
    line-height: 1.6;
    color: #4A3018;
    margin: 0;
    max-width: 600px;
}

.reels-fb-follow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background: #1877F2;
    color: #FFFFFF;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.reels-fb-follow-link:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .reels-grid {
        grid-template-columns: 1fr;
    }
}

.reel-card {
    background: #FFFFFF;
    border: 1px solid rgba(105, 70, 36, 0.16);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(105, 70, 36, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105, 70, 36, 0.12);
}

.reel-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 15;
    background: #111;
    overflow: hidden;
}

.reel-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.reel-card-info {
    padding: 14px 16px;
    background: #FFF;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.reel-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #694624;
    margin: 0 0 4px;
}

.reel-card-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #4A3018;
    margin: 0 0 10px;
    flex: 1;
}

.reel-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid rgba(105, 70, 36, 0.1);
    padding-top: 8px;
}

.reel-watch-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1877F2;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    transition: color 0.15s ease;
}

.reel-watch-link:hover {
    color: #0d5cb6;
    text-decoration: underline;
}

/* =========================================================
   4. FULL-SIZE PHOTO VIEWER MODAL
   ========================================================= */
.photo-viewer-card {
    background: #FFFFFF;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.photo-viewer-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.photo-viewer-close-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.photo-viewer-img-wrap {
    width: 100%;
    max-height: calc(90vh - 70px);
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-viewer-img-wrap img {
    max-width: 100%;
    max-height: calc(90vh - 70px);
    object-fit: contain;
    display: block;
}

.photo-viewer-caption {
    padding: 14px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #4A3018;
    background: #FFFFFF;
    border-top: 1px solid rgba(105, 70, 36, 0.12);
}

