/* ----------------- */
/* about page styles */
/* ----------------- */

#about__page {
    padding-top: 150px;
}

#about__page h1 { 
    font-size: 64px; 
    text-align: center; 
    color: var(--black);
}

#about__page p { 
    width: 95%;
    max-width: 1220px;
    margin: 20px auto 0 auto;
    font-size: 16px; 
}

#about__page .first-text p{
	margin-top: 0px;
}

#toggle__grid_1:checked,
#toggle__grid_2:checked,
#toggle__grid_3:checked,
#toggle__grid_4:checked,
#toggle__grid_5:checked { 
    display: block; 
    opacity: 1;
}

.about__page__grid { 
    width: 95%;
    max-width: 1240px;
    max-height: 800px;
    margin: 40px auto;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.modal__backdrop {
    content: '';
    position: fixed;
    display: none;
    /* width: 100%;
    height: 100%; */
    inset: 0;
    z-index: 9998;
    background-color: rgb(33 33 33 / 90%);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

#about__page input { 
    width: 50px;
    height: 50px;
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    appearance: none;
    background: url('../icons/icon_cruzar.svg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    display: none;
    transition: all .3s ease-in-out;
    z-index: 99999;
    opacity: 0;
    filter: brightness(0) invert(1);
}

.hide_img {
    position: fixed;
    display: none;
    max-width: 900px;
    width: 80%;
    aspect-ratio: 1.2;
    top: 50%;
    right: 0;
    left: 0;
    margin: auto;
    transform: translateY(-50%);
    z-index: 9999;
    object-fit: cover;
    border-radius: 25px;
    opacity: 0;
    transition: all .3s ease-in-out;
    cursor: pointer;
}

.grid-item input[type="checkbox"]:checked + .modal__backdrop, 
.grid-item input[type="checkbox"]:checked + .modal__backdrop + .hide_img {
    display: block;
    opacity: 1;
}

#about__page .about__page__grid .grid { 
    border-radius: 25px; 
    position: relative;
    z-index: 990;
    overflow: hidden;
}

#about__page .about__page__grid .grid article ul { 
    list-style: decimal; 
    margin-left: 16px; 
}

.grid__hover { 
    cursor: pointer; 
    transition: all .3s ease-in-out;
}

.grid__hover::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 990;
    background-color: rgba(33, 33, 33, 0.2);
    opacity: 0;
    transition: all .3s ease-in-out;
}

.grid__hover::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: url('../icons/icon_lupa.svg') no-repeat center center;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 992;
    opacity: 0;
    transition: all .3s ease-in-out;
}

.grid__hover:hover::after { 
    opacity: 1;
    transform: scale(3);
}

.grid__hover:hover:before { opacity: 1; }

.grid_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#about__page .about__page__grid .grid:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/5;
    background-color: var(--white_variation);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

#about__page .about__page__grid .grid:nth-child(1) h2 {
    color: var(--green);
    margin: 0;
}

#about__page .about__page__grid .grid:nth-child(1) .btn {
    align-self: flex-start
}

#about__page .about__page__grid .grid:nth-child(2) {
    grid-column: 3/5;
    grid-row: 1/4;
}

#about__page .about__page__grid .grid:nth-child(3) {
    grid-column: 5/7;
    grid-row: 1/3;
}

#about__page .about__page__grid .grid:nth-child(4) {
    grid-column: 1/3;
    grid-row: 5/7;
}

#about__page .about__page__grid .grid:nth-child(5) {
    grid-column: 3/5;
    grid-row: 4/7;
}

#about__page .about__page__grid .grid:nth-child(6) {
    grid-column: 5/7;
    grid-row: 3/7;
}

