.gallery-hero {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.gallery-hero-content .button {
    position: absolute;
    bottom: 100px;
}

.gallery-hero h1 {
    font-size: 5rem;
}

.gallery-hero h3 {
    font-weight: 400;
}

.gallery-hero h1, h3 {
    text-align: center;
    padding: 0px 10px;
}

.gallery-hero img {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.gallery-hero-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    color: white;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, .1);
    backdrop-filter: brightness(50%);
}

.gallery-header {
    text-align: center;
    padding: 60px;
}

.gallery-header p {
    font-size: 1.75rem;
    margin: 30px;
}

.gallery-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 50px 0px;
    justify-content: center;
    column-gap: 30px;
    row-gap: 50px;
}

.gallery-card {
    background-color: var(--main-color);
    width: 300px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px gray;
    transition: all 0.3s ease-in-out;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card-image-wrap {
    width: 90%;
    height: 90%;
    border-radius: 5px;
    overflow: hidden;
    transition: filter 0.4s ease-in-out;
}

.gallery-card:hover .gallery-card-image-wrap{
    filter: brightness(50%);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-card-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
    background-color: rgba(255, 255, 255);
    border-radius: 0px 0px 10px 10px;
    color: #333; 
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 3;
    font-size: 1.75rem;
}

.gallery-card:hover .gallery-card-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-line {
    position: absolute;
    width: 0%;
    height: 2px;
    border: none;
    margin: 0;
    background-color: var(--compliment-color);
    left: 0;
    bottom: -30px;
    transition: width 0.4s ease-in-out;
}

.gallery-card:hover .gallery-line {
    width: 100%;
}