/******************** 
   Home Page Items 
*********************/

.gallery-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    height: 18rem;
    margin-top: 1rem;
    background-color: #e4e4e4;
    overflow: hidden;
    box-sizing: border-box;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    z-index: 1;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        #f9f9f9 0%,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0) 90%,
        #f9f9f9 100%
    );
    z-index: 2;
}

.gallery-item:nth-child(even) {
    flex-direction: row-reverse; /* Alternate layout */
    text-align: right;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
    animation-delay: 0.3s;
}
.gallery-item:nth-child(3) {
    animation-delay: 0.5s;
}

.gallery-item > * {
    position: relative;
    z-index: 0; /* Bring content above the gradient overlay */
}

.description-wrapper {
    width: 40%;
    padding: 0rem;
    line-height: 1.5;
}

.description-header {
    padding: 1rem;
    color: #202020;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: bold;
    line-height: 1.5;
}

.description-body {
    padding: 1rem;
    padding-top: 0rem;
    color: #333;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.5;
}

.image-wrapper {
    position: relative;
    width: 60%;
    height: 100%;
    overflow: hidden;
}

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

/* Gradient overlay *//*
.image-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, 
        #f9f9f9 0%, 
        rgba(255, 255, 255, 0) 10%, 
        rgba(255, 255, 255, 0) 90%, 
        #f9f9f9 100%);
}*/
