.footer-portfolio {
    position: relative;
    z-index: 11;
}

#main {
    height: 100vh;
    position: relative;
    z-index: 20;
    background: #fff;
    transition: transform 0.6s ease;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* @media (min-width: 640px) {
    #main {
        padding: 1em;
   }
} */
.fake-section {
    background: #eee;
    height: 300px;
}

.card-button {
    width: 100%;
    /* margin-bottom: 1rem; */
    border: none;
    background-color: black;
    color: #fff;
    padding: 0.5rem;
    transition: all 200ms ease-in-out;
}

.tiles-b {
    width: 100%;
}
.tiles-b ul {
    margin: 0;
    padding: 1rem;
}
.tiles-b li {
    list-style: none;
}

.tiles-a {
    width: 100%;
    position: relative;
    overflow: hidden;    
}

.tiles-a_1:hover .card-button_1 {
    color: #e5097f;
}

.tiles-a_2:hover .card-button_2 {
    color: #e5097f;
}

.tiles-a_3:hover .card-button_3 {
    color: #e5097f;
}

.tiles-a_4:hover .card-button_4 {
    color: #e5097f;
}

.tiles-a ul {
    margin: 0;
    padding: 0 0 2rem;
}
.tiles-a li {
    list-style: none;
}

.grid-pic {
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-sizing: border-box;
}

.pic-border {
    border: 1px solid #cec8c8;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.tiles-a a {
    margin: 1rem;
    display: block;
    background: #222;
    padding-top: 73%;
    height: 0;
}
#aside {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: #eee;
    overflow-y: scroll;
    z-index: 10;
}
#aside img {
    width: 100%;
    height: auto;
    vertical-align: top;
}
#aside .wrapper {
    padding: 1em;
}
#aside .close {
    width: 25px;
    display: block;
    position: absolute;
    top: 1em;
    right: 1em;
    background-color: rgba(0, 0, 0, .5);
    border-radius: 50%;
}
.show-detail {
    overflow: hidden;
}
.show-detail #main {
    transform: translateX(-60%);
}
.visually-hidden {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

@media screen and (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

@media screen and (max-width: 800px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
@media (min-width: 640px) {
    .tiles-a {
        padding: 1rem 1rem 3.8rem;
    }
    .tiles-a li {
        float: left;
        width: 33.33%;
   }
   .tiles-a_bi li {
    width: 33.2%;
   }
}

@media screen and (max-width: 640px) {
    .tiles-a a {
        margin: 1rem 1rem 4rem;
    }
}

@media screen and (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

