body {
    background-color: var(--color-bg);
}

/* GALLERY */
.gallery {
    position: relative;
    display: grid;
    padding: 20rem;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10rem;
    width: 100%;
    overflow: hidden;
    
}

.gallery:after {
    content: '';
    display: block;
    width: 200rem;
    height: 200rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -70%);
    border-radius: 50%;
    background-image: linear-gradient(150deg, rgba(21, 86, 181, .8) 20%, rgba(11, 46, 97, .9) 50%), url(../../img/06_Zafari/2.JPG);
    z-index: -1;
}

.gallery__heading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-white);
}

.gallery__figure {
    display: inline-block;
    width: 100%;
    height: 21vw;
    outline: 1.2rem solid var(--color-white);
    box-shadow: 0.2rem 0.2rem 3rem rgba(0,0,0,0.5);
    transition: .3s;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__text {
    text-align: center;
    margin-top: 2rem;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: .3rem;
}

@media(hover: hover) {
    .gallery__figure:hover {
        transform: scale(.95);
        box-shadow : 0.2rem 0.2rem 3rem rgba(0,0,0,0);
        outline-color: var(--color-blue);
        outline-offset: 1.7rem;
    }
}

/* PAGINATION */
.gallery__pagination {
    display: flex;
    padding-bottom: 4vh;
    justify-content: center;
    align-items: center;
    column-gap: 2%;
    grid-column: 1 / -1;
    width: 100%;
}

.gallery__page {
    width: 20%;
    padding: 1rem 2rem;
    font-size: 4rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    text-align: center;
    background-color: var(--color-white);
    border: none;
    border-radius: 30rem;
    outline: none;
}

.gallery__page:focus {
    outline: 2px solid var(--color-blue-dark);
    box-shadow: 2px 2px 1.2rem rgba(0,0,0,0.45);
}

.gallery__button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 7rem;
    height: 7rem;
    border: none;
    border-radius: 30rem;
    background-image: linear-gradient(to right bottom, var(--color-blue-light), var(--color-blue-dark));
    cursor: pointer;
}

.gallery__icon {
    width: 50%;
    height: 50%;
    object-fit: cover;
}

/* GO UP BUTTON */
.go-up-anchor {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 101%);
    padding: 1rem 3rem;
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: .2rem;
    background-image: linear-gradient(var(--color-blue-light), var(--color-blue-dark));
    border-radius: 10rem;
    transition: transform .3s;
}

.go-up-anchor.go-up-anchor--show {
    transform: translate(-50%, -35%);
}


/* MEDIA QUERRIES */
/* 1800px */
@media(max-width: 112.5em) {
    html { font-size: 56%; }
}

/* 1620px */
@media(max-width: 101.25em) {
    html { font-size: 54%; }
}

/* 1544.96px */
@media(max-width: 96.56em) {
    html { font-size: 50%; }
}

/* 1440px */
@media(max-width: 90em) {
    html { font-size: 46%; }
}

/* 1344px */
@media(max-width: 84em) {
}

/* 1210px */
@media(max-width: 75.625em) {
    html { font-size: 40% }

    /* PAGINATION */
    .gallery__pagination { column-gap: 4%; }
    .gallery__page { font-size: 6rem; }
    .gallery__button { width: 10rem; height: 10rem; }

    /* GO-UP-ANCHOR */
    .go-up-anchor {  font-size: 4rem; }
}

/* 1040px 
 - navigation trigger */
 @media(max-width: 65em) { 
    html { font-size: 38%; } 

    /* GALLERY */
    .gallery { 
        grid-template-columns: repeat(2, 1fr); 
        grid-gap: 15rem;
    }

    .gallery__figure { height: 30vw; }

    .gallery__text { font-size: 4.5rem; }
}

 /* 1000px */
@media(max-width: 62.5em) {
}

/* 860px */
@media(max-width: 53.75em) {
    html { font-size: 35% }

    /* GALLERY */
    .gallery { grid-gap: 10rem; }
}

/* 720px */
@media(max-width: 45em) {
    html { font-size: 32%; }

    /* GALLERY */
    .gallery { grid-template-columns: 1fr; }

    .gallery__figure { height: 60vw; }

    .gallery__text { font-size: 6rem; }
    
    /* PAGINATION */
    .gallery__page { padding-inline: auto; }

    /* GO-UP-ANCHOR */
    .go-up-anchor--show { transform: translate(-50%, -120%); }
}

/* 560px */
@media(max-width: 35em) {
    html { font-size: 30%; }

    /* GALLERY */
    .gallery {  padding: 10rem; }
    .gallery__figure { height: 75vw; }
}

/* 400 */
@media(max-width: 25em) {
}