@charset "utf-8";

/* CSS Document */

/*Main Galley Section
===========================================*/

.gallery {
    position: relative;
    padding: 30px 20px 0px 20px;
    background-color: var(--bg-clr);
}

.gallery-container {
    max-width: 1600px;
    margin: 0 auto 30px auto;
}

.gallery-header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    background: url(../images/gallery-quote.svg);
    background-repeat: no-repeat;
    background-position: center;
    margin: 1.5rem 0 2rem 0;
}

.gallery-statement h2 {
    text-align: center;
    margin-bottom: 0.5em;
}

.gallery-desc {
    max-width: 80ch;
    margin: 1rem auto 2rem;
    text-align: center;
}


.gallery-rule {
    border: none;
    height: 1px;
    margin: 0 2rem 0 2rem;
    background-color: var(--border-clr);

}

.gallery-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    overflow-y: hidden;
    margin-top: 2.5rem;
}

/* Gallery Thumbnails
===========================================*/

.thumb-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #000000;
	cursor: pointer;
    overflow: hidden;
    opacity: 0;
}

.thumb-container.showthumb {
    animation: fade-in-up 1000ms ease-in-out forwards;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
}

.gallery-thumb > img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
}

.gallery-thumb:hover > img{
    transform: scale(1.2);
}

.gallery-thumb > .thumb-overlay {
    opacity: 0  ;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    inset: 0;
    padding: 1rem;
    text-align: center      ;
    background-color: rgba(0, 0, 0, 0.7);
}

.gallery-thumb > .thumb-overlay:hover {
    opacity: 1;
}


.gallery-thumb > img ,
.gallery-thumb > .thumb-overlay {
    transition: var(--transition);
}

.gallery-thumb > .thumb-overlay p {
    color: #ffffff;
    text-transform: capitalize;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0.8em;
}

.gallery-thumb > .thumb-overlay h3 {
    text-transform: capitalize;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
}

.gallery-thumb > .thumb-overlay hr {
    border: 2px solid var(--accent-clr);
    width: 0%;
    margin-top: 1em;
    transition: var(--transition);
}

.gallery-thumb:hover > .thumb-overlay hr {
    border: 2px solid var(--accent-clr);
    width: 30%;
    margin-top: 1em;
}


/* .gallery-thumb {
    display: block;
    width: 100%;
    transform: scale(1);
    transition: var(--transition);
}

.gallery-thumb:hover {
    transform: scale(1.2);
}


.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumb-overlay {
    position: absolute;
    display: flex;
    text-align: center;
    overflow-wrap: normal;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #eee;
    opacity: 0;
    transform: scale(1.5);
    transition: var(--transition);
}

.thumb-overlay:hover, .thumb-overlay:focus {
    opacity: 1;
    transform: scale(1);
}

.thumb-overlay h3 {
    font-size: 1.8rem;
    flex-wrap: wrap;
    color: var(--lgt-text-clr);
    margin-bottom: 0.2em;
}

.thumb-overlay p {
    text-transform: capitalize;
    color: var(--lgt-text-clr);
    font-size: 0.8rem;
} */




/*Animations
===========================================*/

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
