/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
    /*========== Colors ==========*/
    --first-color: hsl(30, 16%, 50%);
    --text-color: #fff;
    --text-color-black: hsl(30, 8%, 15%);
    --body-color: hsl(30, 100%, 98%);

    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;
    --h3-font-size: 1rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
    :root {
        --h3-font-size: 1.125rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*=============== BASE ===============*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.body_content {
    font-family: var(--body-font);
    background-color: var(--body-color);
    display: flex;
}

.title {
    color: goldenrod;
    font-size: 1.7em;
    text-align: center;
}


img {
    max-width: 100%;
    height: auto;
}

/*=============== GALLERY ===============*/
.gallery {
    height: 100vh;
    display: grid;
    align-content: center;
    justify-content: center;
}

.gallery-quote {
    height: 50vh;
}

.gallery__card {
    position: relative;
    width: 290px;
    height: 365px;
    border-radius: 3rem;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.gallery__img,
.gallery__card::after,
.gallery__data {
    position: absolute;
}

.gallery__img {
    inset: 0;
    margin: auto;
    transition: transform .3s;
    background: white;
    height: 100%;
}

.gallery__card::after {
    content: '';
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            hsla(0, 0%, 100%, 0) 32%,
            hsla(0, 0%, 0%, .3) 100%);
    top: 0;
    z-index: 1;
}

.gallery__data {
    bottom: 1.5rem;
    left: 1.75rem;
    z-index: 10;
}

.gallery__title,
.gallery__subtitle {
    color: var(--text-color);
    font-weight: 500;
}

.gallery__title {
    font-size: var(--h3-font-size);
}

.gallery__subtitle {
    font-size: var(--smaller-font-size);
}

.gallery__overflow {
    position: relative;
}

.gallery__thumbnail {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
    transition: transform .3s;
}

.gallery__thumbnail-img {
    position: absolute;
    inset: 0;
    margin: auto;
}

/* Swiper class */
.gallery-cards,
.gallery-thumbs {
    width: 290px;
}


.gallery-cards:hover .gallery__img {
    transform: scale(1.1);
    background-color: white;
}


.gallery .swiper-wrapper {
    padding: 2.5rem 0;
}

.gallery-thumbs {
    height: 132px;
}

/* Active thumbnail */
.swiper-slide-active .gallery__thumbnail {
    transform: translateY(-1.25rem) scale(1.2);
}

/* Rotate thumbnail */
.swiper-slide-next .gallery__thumbnail {
    transform: rotate(15deg);
}

.swiper-slide-prev .gallery__thumbnail {
    transform: rotate(-15deg);
}

/* Sliding numbers */
.swiper-pagination-fraction {
    font-size: var(--small-font-size);
    letter-spacing: -1px;
    font-weight: 500;
    color: var(--first-color);
    bottom: 0;
}

/* Arrow buttons */
.swiper-button-next::after,
.swiper-button-prev::after {
    content: '';
}

.swiper-button-next,
.swiper-button-prev {
    font-size: 1.5rem;
    color: var(--text-color-black);
    top: 5.5rem;
}

.swiper-button-next {
    right: -1.5rem;
    transform: rotate(15deg);
}

.swiper-button-prev {
    left: -1.5rem;
    transform: rotate(-15deg);
}

/* Other swiper settings */
.gallery-cards::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}


.swiper-horizontal.swiper-css-mode>.swiper-wrapper {
    scroll-snap-type: initial;
}

.gallery-cards-quote {
    position: relative;
    margin: auto;
    padding: 2rem;
    text-align: center;
}

.advocacy {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0 auto 50px auto;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


.gallery-cards-quote .quote {
    display: inline-block;
    font-style: italic;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    min-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Fade in */
.gallery-cards-quote .quote.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Fade out */
.gallery-cards-quote .quote.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}


@media (min-width: 768px) {
    .gallery-cards-quote .quote {
        font-size: 1.4rem;
    }
}



/* ===== QUOTE STYLE ===== */
.quote {
    background: var(--body-color);
    padding: 1.5rem 1.8rem;
    border-left: 5px solid hsl(30, 80%, 60%);
    border-radius: 10px;
    color: hsl(30, 20%, 20%);
    font-family: "Georgia", serif;
    font-style: italic;
    line-height: 1.8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 620px;
    height: 70%;
    transition: all 0.4s ease;
    align-content: center;
    z-index: 100;
}

.quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.column_gallery {
    width: 40%;
    padding: 10px;

}

.column_text {
    height: 50%;
    width: 60%;
    margin: auto;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 450px) {

    .body_content {
        display: block;
    }

    .title {
        font-size: 1.5em;
    }
    
    .gallery__card {
        width: 290px;
        height: 365px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .gallery {
        height: 66vh;
    }

    .advocacy {
        font-size: 1.5em;
    }

    .gallery-cards-quote .quote {
        min-width: 100px;
    }

    .column_gallery {
        width: 100%;
        padding: 0;
    }

    .column_text {
        height: 100%;
        width: 100%;
    }
}

/* For medium devices */
@media screen and (min-width: 1024px) {
    .gallery__card {
        width: 290px;
        height: 365px;
    }

    .gallery__thumbnail {
        width: 65px;
        height: 65px;
    }

    .gallery-cards,
    .gallery-thumbs {
        width: 290px;
    }

}