*{
    padding: 0;
    margin: 0;
    font-family: "Montserrat";
}
header{
    position: relative;
    /* background: linear-gradient(to bottom, #9e0006, #ffffff); */
    padding: 0px 0;
    border-bottom: 2px solid #ddd;

}
.gallery-header{
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* box-sizing: border-box; */
    overflow: hidden;
    padding-top: 20px 0px;
}
.g-logo{
    display: flex;
    font-size: 30px;
    font-weight: 800;
    padding: 0 0px;
    color: #D42027;
    justify-content: space-between;
}.g-logo h2{
    margin-left: 3%;
    padding-bottom: 20px;
}
.g-logo a{
    cursor: pointer;
    padding: 10px 20px;
    font-size: 20px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    top:   20px;
    color: #000;
}
.gallery-header{
    background-color: #D42027;
}
.gallery-header nav ul{
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 10px;
}
.gallery-header li{
    cursor: pointer;
    padding: 10px 20px;
    color: #ddd;
    font-size: 15px;
    transition: background-color 0.3s ease;
    /* transition: opacity 0.3s ease, visibility 0s linear 0.3s; */
}
.gallery-header li:active{
    color: red;
}

.search{
    display: flex;
    margin-right: 80px;
}
.search input {
    border-radius: 20px;                 
    width: 250px;                         
    height: 30px;                         
    border: none;                         
    background-image: url(../../images/temp/searchicon.png); 
    background-position: 15px 7px;       
    background-size: 20px 20px;          
    background-repeat: no-repeat;         
    text-indent: 45px;                   
    transition: border-color 0.3s, background-color 0.3s; 
}

.search input:hover {
    border: 2px solid #D42027;          
    background-color: #f0f8ff;          
}

.search input:focus {
    outline: none;                       
    border: 2px solid #D42027;           
    background-color: #e6f0ff;           
}

.search input::placeholder {
    color: #999;                         
    transition: color 0.3s;             
}

.search input:focus::placeholder {
    color: #D42027;                      
}

.h-line{
    position: absolute;
    width: 97%;
    border-bottom: 2px solid #000;
    margin: 0 20px 0 20px;
    top: 150px;
}
.image-content{
    height: 100vh;
    width: 97%;
    margin: 10px;
    margin-top: 60px;
    display: flex;
    
    flex-direction: row;
    flex-wrap: wrap;

}
.list-image{
    
}
.imageCard{
    width: 100%;
    height: 100%;
    flex-wrap: wrap;
    margin: 10px;
    object-fit: cover;
    z-index: -1;
}
.imageCard img{
    width:100% ;
    height: 200px;
    object-fit: cover;
}
.imageCard{
    background-color: #999;
    z-index: -1;
    
}
.imageAndDesc{
    display: flex;
    z-index: 1;
    flex-wrap: wrap;
    /* width: 21.5%; */
    width: 24%;
    height: 200px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.description{
    background-color: rgba(238, 233, 233, 0.5);
    
    width: 93%;
    height: 100%;
    position: relative;
    bottom: 105%;
    flex-wrap: wrap;
} 
.imageAndDesc .description {
    display: none; 
    opacity: 0;                   
    visibility: hidden;
    transition: opacity 1.3s ease-in-out;
}

.imageAndDesc:hover .description {
    opacity: 1;
    visibility: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    
}