/* ================================================
   GALLERY.CSS — Gallery Page Styles
   ================================================ */

/* ── Page Header (Shared) ── */
.page-header {
    background: url('https://images.unsplash.com/photo-1542838132-92c53300491e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    padding: 160px 0 100px;
    position: relative;
    color: white;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.92) 0%, rgba(22, 42, 70, 0.8) 50%, rgba(212, 131, 15, 0.35) 100%);
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 2;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s var(--ease) 0.1s both;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    font-family: var(--font-heading);
}

.page-breadcrumb {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.page-breadcrumb a {
    color: var(--accent);
    font-weight: 600;
    position: relative;
}

.page-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.page-breadcrumb a:hover::after {
    transform: scaleX(1);
}

.page-breadcrumb a:hover {
    color: var(--white);
}

/* ── Photo Gallery Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: border-color 0.4s var(--ease);
    z-index: 3;
    pointer-events: none;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px) scale(1.01);
    z-index: 2;
}

.gallery-item:hover::before {
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 27, 45, 0.85) 0%,
            rgba(15, 27, 45, 0.3) 40%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 28px;
    text-align: center;
    color: white;
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-bounce);
    width: 100%;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.overlay-content h5 {
    font-size: 1.15rem;
    color: white;
    font-family: var(--font-heading);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ── Video Section ── */
.video-section {
    position: relative;
    background: var(--off-white);
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(15, 27, 45, 0.04);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.video-thumbnail {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.4), rgba(15, 27, 45, 0.2));
    transition: var(--transition);
    z-index: 1;
}

.video-card:hover .video-thumbnail::before {
    background: linear-gradient(135deg, rgba(15, 27, 45, 0.6), rgba(15, 27, 45, 0.3));
}

.play-btn {
    width: 66px;
    height: 66px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    z-index: 2;
    padding-left: 4px;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.play-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulse-ring 2s ease-in-out infinite;
}

.video-card:hover .play-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.12);
    box-shadow: 0 8px 30px rgba(212, 131, 15, 0.4);
}

.video-info {
    padding: 24px;
    background: var(--white);
    flex-grow: 1;
}

.video-info h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.video-info p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.6;
}

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

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }
}