/* Hobbes3 CSS override from Astral template */

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    background: #EFBF04;
    background: linear-gradient(160deg, rgba(239, 191, 4, 1) 0%, rgba(150, 121, 5, 1) 76%, rgba(117, 71, 1, 1) 100%);
}

#title {
    color: #ffd700
}

/* Replace the static image from the Astral demo to a looping video */
article video {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}

#main > .panel.intro .pic {
    width: 25em;
}

/* Read More functionality */
.read-more-btn {
    color: #777777;
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    cursor: pointer;
    margin: auto;
}

.content-wrapper {
    position: relative;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.fade-box {
    max-height: 300px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease; /* Smooth transition when expanding */
}

.fade-box::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    
    height: 120px; 
    
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 30%, 
        rgba(255, 255, 255, 1) 100%
    );
    
    pointer-events: none; 
    transition: opacity 0.3s ease;
}

.fade-box.expanded {
    max-height: 1000px; /* Set to a size larger than your expected content */
}

.fade-box.expanded::after {
    opacity: 0;
    pointer-events: none;
}

.fade-box p:last-child {
    margin-bottom: 0;
}

/* Auto-caption for the fabric catalog */
.image-card {
    position: relative;
    overflow: hidden; 
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); 
    color: #ffffff;   
    font-size: 0.9em;
    font-weight: 500;
    padding: 10px 30px;
    backdrop-filter: blur(4px); 
}