/* Gallery — vertical shorts-style feed mixing teacher videos and blog "shorts" */

.gallery-page {
    background: #0a0a0a;
    padding: 30px 0 50px;
}

.gallery-intro {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 0 20px;
    text-align: center;
}
.gallery-intro h1 {
    color: #fff;
    font-size: 28px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 6px;
}
.gallery-intro h1 i { color: var(--gold); margin-right: 8px; }
.gallery-intro p { color: rgba(255,255,255,0.65); font-size: 14px; }

.gallery-empty {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 80px 20px;
}
.gallery-empty i { font-size: 48px; margin-bottom: 16px; display: block; }

.gallery-feed {
    max-width: 420px;
    margin: 0 auto;
    height: 80vh;
    min-height: 520px;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    scrollbar-width: none;
}
.gallery-feed::-webkit-scrollbar { display: none; }

.gallery-slide {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

/* Video slides */
.gallery-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.gallery-video-slide .video-watermark {
    position: absolute;
    bottom: 90px;
    right: 14px;
    width: 32px;
    height: 32px;
    opacity: 0.85;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
    z-index: 3;
    pointer-events: none;
    border-radius: 6px;
}
.gallery-mute-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.gallery-side-actions {
    position: absolute;
    right: 12px;
    bottom: 140px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.gallery-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
}
.gallery-action-btn i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: background 0.2s, color 0.2s;
}
.gallery-action-btn.like.active i { background: #1a7a5e; color: #fff; }
.gallery-action-btn.dislike.active i { background: #c0392b; color: #fff; }
.gallery-action-btn span {
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.gallery-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 20px 16px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    color: #fff;
    z-index: 3;
}
.gallery-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 10px;
}
.gallery-author img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.8); }
.gallery-author span { font-weight: 700; font-size: 14px; }
.gallery-caption { font-size: 14px; line-height: 1.5; margin-bottom: 8px; }
.gallery-stats { font-size: 12px; color: rgba(255,255,255,0.75); }
.gallery-stats i { color: var(--gold); margin-right: 4px; }

/* Blog "short" slides */
.gallery-blog-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
}
.gallery-blog-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 10%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.15));
}
.gallery-blog-icon {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    color: rgba(255,255,255,0.25);
}
.gallery-blog-overlay {
    position: relative;
    z-index: 2;
    padding: 20px 18px 26px;
    color: #fff;
    width: 100%;
}
.gallery-blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,169,97,0.9);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.gallery-blog-overlay .gallery-author { margin-bottom: 12px; }
.gallery-blog-overlay h2 {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    color: #fff;
}
.gallery-blog-overlay p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-top: 14px;
    margin-bottom: 10px;
}
.gallery-blog-meta {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}
.gallery-blog-meta i { color: var(--gold); margin-right: 4px; }
.gallery-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
}

@media (max-width: 480px) {
    .gallery-feed { max-width: 100%; border-radius: 0; height: calc(100vh - 260px); }
}
