/**
 * Hero Image Reveal Animation
 * Fullscreen -> 400px height with slide up effect
 */

/* ========================================
   Hero Container
   ======================================== */
.hero-reveal {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    transition: height 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-reveal.is-collapsed {
    height: 510px;
}

/* ========================================
   Post Thumbnail / Image
   ======================================== */
.hero-reveal .post-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
	display: block !important;
}

.hero-reveal .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Optional: Dark overlay for better text contrast if needed */
.hero-reveal .post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 1;
    transition: opacity 1s ease;
}

.hero-reveal.is-collapsed .post-thumbnail::after {
    opacity: 0.5;
}

/* ========================================
   Main Content (Timeline Section)
   ======================================== */
.main-content-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.main-content-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Loading State - Hide scrollbar during animation
   ======================================== */
body.hero-loading {
    overflow: hidden;
}

body.hero-loaded {
    overflow: auto;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-reveal.is-collapsed {
        height: 510px;
    }
}

@media (max-width: 480px) {
    .hero-reveal.is-collapsed {
        height: 509px;
    }
}