:root {
    --dark-blue-semi-opaque: rgb(13 71 161 / 0.5);
    --dark-gradient: linear-gradient(127.09deg, rgba(6, 11, 40, 0.94) 19.41%, rgba(6, 11, 40, 0.64) );
    
    --blue-500: oklch(62.3% 0.214 259.815);
}

html {
    margin: 0;
    font-family: "Roboto", sans-serif !important;
    height: 100dvh;
}

body {
    margin: 0;
    background-image: url("./bg-abstract.png");
    background-repeat: repeat;
    background-size: cover;
}

.project-wrap {
    color: white;
    max-width: 100%;
    padding: 16px;
    margin: 16px 15% 0 15%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    row-gap: 16px;    
}

.project-title {
    font-weight: 500;
    margin: 0;
    text-align: center;
    background: var(--dark-gradient);
    border-radius: 16px;
    padding: 16px 0;
    width: 100%;
    color: var(--blue-500);
    user-select: none;
    font-size: 32px;
}

.project-company-info {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    color: var(--blue-500);
    gap: 16px;
    background: var(--dark-gradient);
    width: fit-content;
    align-self: end;
    border-radius: 8px;
    padding: 4px 12px;
}

.project-contact-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--blue-500);
    transition: color 0.2s linear;
}

.project-contact-link:hover {
    color: white;
}

.project-share-button {
    height: 16px;
    cursor: pointer;
}

.project-company-info > p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--blue-500);
}

.project-subtitle {
    color: var(--blue-500);
    margin: 0;
    font-weight: 400;
    padding: 16px 0;
}

.project-attribute-title {
    color: white;
    margin: 8px 0 4px 0;
    font-size: 16px;
    font-weight: 400;
}

.project-media {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 16px;
    background: var(--dark-gradient);
    box-sizing: border-box;
    padding: 16px;
    border-radius: 16px;
}

.project-media-row {
    display: flex;
    gap: 16px;
    max-width: 100%;
    overflow-x: auto;
}

.project-media-item-main {
    width: 100%;
    max-height: 400px;
    height: 400px;
    object-fit: cover;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    object-position: center;
}

.project-media-item {
    min-width: 150px;
    min-height: 100px;
    max-width: 150px;
    max-height: 100px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-media-item img, .project-media-youtube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-media-item-main img, .project-media-item-main.project-media-youtube {
    width: 100%;
    height: 100%;
    height: 400px;
    background-color: transparent;
    object-fit: contain;
    object-position: center;
}

.project-media-youtube {
    position:relative;
    overflow: hidden;
}

.project-media-youtube::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 48px;
    background-color: #FF0000;
    box-shadow: 0px 0px 4px 0px black;
    border-radius: 25%;
    z-index: 20;
}

.project-media-youtube::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    z-index: 30;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.project-inspect-youtube {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: 10;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: transparent;
}

.project-media-item:hover .project-inspect-youtube, .project-media-item-main:hover .project-inspect-youtube {
    background-color: rgba(45, 45, 45, 0.65);
}
.project-inspect-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: 10;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: transparent;
}

.project-media-item:hover .project-inspect-image, .project-media-item-main:hover .project-inspect-image {
    background-color: rgba(45, 45, 45, 0.65);
    color: white;
}

.project-type {
    font-weight: 100;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
}

.project-tag-row {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 16px;
}

.project-grid-item {
    background: var(--dark-gradient);
    padding: 0 16px 16px 16px;
    box-sizing: border-box;
    width: 100%;
    border-radius: 16px;
}

.project-address {
    margin: 0;
    font-size: 16px;
}

.project-description {
    font-weight: 300;
    margin: 0;
    font-size: 16px;
    max-height: 200px;
    overflow-y: auto;
    line-height: 20px;
    width: 100%;
    padding: 0 16px 0 0;
    box-sizing: border-box;
}

.project-tag-item, #project-tags-plus {
    background-color: var(--dark-blue-semi-opaque);
    padding: 4px 8px;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#tags-view-all {
    width: 100%;
    display: block;
    margin: 4px 0 0 0;
    user-select: none;
}

#tags-view-all:hover {
    text-decoration: underline;
    color: var(--blue-500);
    cursor: pointer;
    user-select: none;
}

.project-review-title-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.project-review-text {
    max-height: 200px;
    overflow-y: auto;
    margin: 16px 0 0 0;
}

.project-no-review {
    font-weight: 300;
    font-size: 16px;
    margin: 4px 0 0 0;
}

.project-review-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: auto;
    transition: all 0.3s ease-in-out;
    border-radius: 16px;
    width: 26px;
    height: 26px;
}

.project-review-link:hover {
    background-color: white;
    width: 110px;
}

.project-review-link > img {
    width: 20px;
    height: 20px;
    padding: 2px;
    background-color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.project-review-link > a {
    overflow: hidden;
    max-width: 0px;
    opacity: 0;
    text-decoration: none;
    color: var(--blue-500);
    white-space: nowrap;
    transition: max-width 0.25s ease-in-out, opacity 0.15s ease-in-out, padding 0.15s ease-in-out;
    padding: 0;
    box-sizing: border-box;
    font-size: 14px;
}

.project-review-link:hover > a {
    max-width: 80px;
    opacity: 1;
    padding: 0 0 0 8px;
}

.project-review-link > a:hover {
    color: darkblue;
}

@media (max-width: 1024px) {
    .project-wrap {
        margin: 16px 16px 0 16px;
    }
    
    .project-wrap {
        margin: 16px 16px 0 16px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 32px;
        font-weight: 800;
    }

    .project-subtitle {
        font-size: 24px;
    }

    .project-attribute-title {
        font-size: 16px;
    }

    .project-type, .project-tag-item, .project-address, .project-review-text {
        font-size: 16px;
        font-weight: 300;
    }

    .project-tag-item {
        padding: 8px 24px;
    }
}

.scrollbar-custom::-webkit-scrollbar {
    width: 8px;
}

.scrollbar-custom::-webkit-scrollbar-track {
    background: rgb(18, 18, 18);
    
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    background-color: transparent;
}

.scrollbar-custom {
    scrollbar-width: thin;
    scrollbar-color: var(--dark-blue-semi-opaque) transparent;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.2s linear;
}

.modal-box {
    background: var(--dark-gradient);
    backdrop-filter: blur(4px);
    padding: 20px;
    width: 400px;
    max-width: 90%;
    box-sizing: border-box;
    border-radius: 8px;
    font-family: "Roboto", sans-serif !important;
    position: relative;
    transition: all 0.2s ease-out;
}

.modal-box h2 {
    color: var(--blue-500);
    margin-top: 4px;
}

.modal-box textarea {
    width: 100%;
    box-sizing: border-box;
    height: 120px;
    margin-top: 10px;
    resize: none;
    background-color: transparent;
    border: solid 2px var(--blue-500);
    border-radius: 8px;
    outline: none;
    color: white;
    font-family: inherit;
    padding: 4px 8px;
}

.modal-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: end;
    flex-wrap: wrap;
    gap: 8px;
}

#share-close-button {
    color: white;
    font-size: 12px;
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease-out;
    padding: 12px 12px;
    border-radius: 8px;
    font-family: inherit;
    text-transform: uppercase;
    font-weight: 700;
}

#share-close-button:hover {
    background-color: rgba(255, 255, 255, .2);
}

#share-copy-button {
    text-transform: uppercase;
    font-weight: 700;
    outline: none;
    font-size: 12px;
    background-color: var(--blue-500);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s ease-out;
    font-family: inherit;
}

#share-copy-button:hover {
    box-shadow: 0px 0px 6px 0px var(--blue-500);
}

#alert-box {
    position: fixed;
    display: flex;
    min-height: 40px;
    border-radius: 8px;
    box-sizing: border-box;
    width: fit-content;
    max-width: 90%;
    left: 50%;
    top: 24px;
    padding: 4px 8px;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease-out;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 8px;
}