@import './configs.css';


section#my-projects-section {
    padding: 12vh 6vw;
}

.articles-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

@media (min-width: 690px) {
    .articles-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        justify-content: unset;
    }
}

@media (min-width: 1040px) {
    .articles-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 18px;
    }
}

.project {
    height: 245px;
    width: var(--works-card-width);
    overflow: hidden;
    position: relative;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(240, 248, 255, 0.15);
    margin: 6px 0;
    display: flex;
    flex-direction: row-reverse;
    backdrop-filter: blur(3px);
}

.project-info {
    display: none;
    padding: 6px;
}

.project-info > p {
    padding: 12px 0;
}

.project-cover-img {
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-width: var(--works-card-width);
}

.project-hamburguer {
    --x-width: calc(var(--hambuguer-height) * 1.41421356237);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: var(--hambuguer-bar-gap);
    width: max-content;
    z-index: 2;
    margin: 6px;
    position: absolute;
}

.ham-bg {
    padding: 4px 3px;
    background-color: rgba(110, 110, 112, 0.35);
    border-radius: 2px;
}

.project-hamburguer::before,
.project-hamburguer::after,
.project-hamburguer input {
    content: "";
    width: var(--hambuguer-bar-width);
    height: var(--hambuguer-bar-height);
    background-color: var(--color-white);
    border-radius: 6px;
    transform-origin: left center;
    transition: opacity var(--hambuguer-animation), width var(--hambuguer-animation),
        rotate var(--hambuguer-animation), translate var(--hambuguer-animation);
}

.project-hamburguer input {
    appearance: none;
    outline: none;
    pointer-events: none;
}

.project-hamburguer input:checked {
    opacity: 0;
    width: 0;
}

.project-hamburguer:has(input:checked)::before {
    rotate: 45deg;
    width: var(--x-width);
    translate: 0 calc(var(--hambuguer-bar-height) / -2);
}

.project-hamburguer:has(input:checked)::after {
    rotate: -45deg;
    width: var(--x-width);
    translate: 0 calc(var(--hambuguer-bar-height) / 2);
}

.show-project-info {
    display: block;
}

.hide-project-img {
    display: none;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.title-container h3 {
    font-weight: 600;
    padding-right: 6px;
}

.title-container svg {
    padding: 0 6px;
}

.title-container svg:hover {
    cursor: pointer;
}

.title-container h2:hover ~ svg,
.title-container svg:hover {
    fill: var(--color-yellow);
}

.project img {
    height: 245px;
    width: 303px;
    background-color: rgba(240, 248, 255, 0.3);
}

.gallery-modal {
    display: none;
    height: 100vh;
    width: 100vw;
}

.gallery-image {
    max-height: 90vh;
    max-width: 80vw;
    min-width: 60vw;
    padding: 6px;
}

.image-container {
    width: 80vw;
    text-align: center;
}

@media (min-width: 690px) {
    .gallery-image {
        max-width: 60vw;
        min-width: 45vw;
        padding: 0 12px;
    }
    .image-container {
        width: 60vw;
    }
}

.gallery-container {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-open {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.500);
    backdrop-filter: blur(2px);
}

.block-scroll {
    overflow: hidden;
}

.gallery-btn {
    cursor: pointer;
}

.exit-modal-btn-container {
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: end;
}

.exit-modal-btn {
    padding: 4px 12px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.disable-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
