* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.noscroll{
    overflow: hidden !important;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overscroll-behavior-y:none;
}

header {
    z-index: 1003;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: sticky;
    top: 0;
}

header::before {
    content: "";
    background-image: url(../media/DAR_A056408_358776.4500xmax.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation-name: kenburns;
    animation-duration: 25s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    z-index: -1;
    background-color: white;
}

@keyframes kenburns {
    0% {
        transform: scale3d(1, 1, 1);
        transform-origin: 50%;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
        transform-origin: 10%;
    }
    75% {
        transform: scale3d(1.2, 1.2, 1);
        transform-origin: 90%;
    }
    100% {
        transform: scale3d(1.3, 1.3, 1);
        transform-origin: 20%;
    }
}

#image {
    top: -80px;
    left: -155px;
    position: fixed;
    transform: scale(30%);
    z-index: 99;
}

#menu{
    position: fixed;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 3.6rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 1;
    transition: opacity .5s ease;
    -webkit-tap-highlight-color: transparent;
}


.btn {
    font-family: "Helvetica Neue", Helvetica, Arials, sans;
    display: inline-block;
    background: transparent;
    text-transform: uppercase;
    font-weight: 500;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: rgb(255, 255, 255);
    border-radius: 0;
    padding: 8px 15px 8px;
    transition: all 0.7s ease-out;
    background: linear-gradient(270deg, rgb(255, 255, 255), rgba(192, 192, 192, 0.8), rgba(130, 130, 130, 0), rgba(73, 73, 73, 0));
    background-position: 1% 50%;
    background-size: 300% 300%;
    text-decoration: none;
    margin: 0.625rem;
    border: 2px solid rgb(255, 255, 255);
    position: absolute;
    top: 11px;
    right: 80px;
}
  
.btn:hover {
    color: #535353b0;
    border: 2px solid rgba(0, 0, 0, 0);
    background-position: 99% 1%;
    cursor: pointer;
}

#checkout {
    font-family: "Helvetica Neue", Helvetica, Arial, sans;
    display: inline-block;
    background: transparent;
    text-transform: uppercase;
    font-weight: 500;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: rgba(0, 0, 0, 0.603);
    border-radius: 0;
    padding: 8px 15px 8px;
    transition: all 0.7s ease-out;
    background: linear-gradient(270deg, rgb(255, 212, 70), rgba(255, 241, 81, 0.8), rgba(130, 130, 130, 0), rgba(73, 73, 73, 0));
    background-position: 1% 50%;
    background-size: 300% 300%;
    text-decoration: none;
    margin: 0.625rem;
    position: absolute;
    bottom: 30px;
    right: 15px;
    overflow: hidden;
    border: none;
    height: 50px;
    width: 80px;
    /* display: none;  */
}

#checkout::before, #checkout::after {
    content: "";
    width: 0;
    height: 2px;
    position: absolute;
    transition: all 0.2s linear;
    background: black; /* Border color */
}

#checkout::before {
    top: 0;
    right: 0;
}

#checkout::after {
    left: 0;
    bottom: 0;
}

#checkout:hover::before, #checkout:hover::after {
    width: 100%;
    transition-delay: 0.2s;
}

#checkout span::before, #checkout span::after {
    content: "";
    width: 2px;
    height: 0;
    position: absolute;
    transition: all 0.2s linear;
    background: black; /* Border color */
}

#checkout span::before {
    left: 0;
    top: 0;
}

#checkout span::after {
    right: 0;
    bottom: 0;
}

#checkout:hover span::before, #checkout:hover span::after {
    height: 100%; /* Expand to full height on hover */
    transition-delay: 0s;
}

#checkout:hover {
    color: #000000;
    background-position: 99% 1%;
    cursor: pointer;
}

#checkout.sold{
    background-color: #fff !important;
    border: rgb(255, 83, 83) 1.5px solid !important;
    color: rgb(255, 83, 83) !important;
    pointer-events: none !important;
}

#checkout.on-demand{
    width: 120px;
    right: -5px;
}

.material-symbols-outlined {
    visibility: hidden;
    font-variation-settings:
    'FILL' 0,
    'wght' 550,
    'GRAD' 0,
    'opsz' 24
}

.fonts-loaded .material-symbols-outlined {
    visibility: visible;
}
  


#nav {
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

#nav.open {
    opacity: 1;
    visibility: visible;
    z-index: 1005;
}

#nav ul {
    list-style-type: none;
    text-align: center;
}

#nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    display: block;
    padding: 0.5rem;
    transition: all 0.3s;
}

#nav a:hover {
    transform: scale(1.2);
}

#arrow_gallery {
    margin-bottom: 6rem;
    text-decoration: none;
    color: #fff;
    font-size: 4rem;
    animation-name: bounce;
    animation-duration: 1s;
    animation-timing-function: ease-in;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    z-index: -1;
    -webkit-tap-highlight-color: transparent;
}


#arrow_home{
    margin-bottom: 6rem;
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
    animation-name: bounce;
    animation-duration: 1s;
    animation-timing-function: ease-in;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    z-index: -1;
    transform: rotate(180deg) !important;
    position: fixed;
    top: 20px;
    left: 20px;
    opacity: 0;
    transition: opacity .3s ease;
    -webkit-tap-highlight-color: transparent;
}

@keyframes bounce {
    from {
        transform: translate(0, -0.8rem);
    }
    to {
        transform: translate(0, 0.8rem);
    }
}

section {
    z-index: 1004;
    position: relative;
    background-color: #1a1a1a;
    padding: 4rem 2rem 0 2rem;
}

section h1 {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    /* text-transform: uppercase; */
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.1rem;
}

#about {
    height: 150vh;
    position: relative;
    padding: 0%;
    scroll-margin-top: -350px;
}

#container {
    font-family: 'Poppins', sans-serif;
    background: url('../media/IMG_6029.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
}


#first{
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
}


#first p{
    opacity: 100%;
    color: transparent;
    transition: color 1.4s;
}

#first p.visible {
    color: white;
}


#pfp {
    display: block;
    width: 240px;
    border-radius: 50%;
    margin-bottom: 4rem;
    margin-left: auto;
    margin-right: auto;
}

#logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem
}

h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}


#grid {
    display: grid;
    grid-template-columns: repeat(99, 1px);
    grid-template-rows: repeat(768, 1px);
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
}

#grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

/*#region Grid*/

@media (min-width: 769px) {

    #grid div:nth-child(1) {
        grid-row: 120 / 210;
        grid-column: 1 / 60;
    }

    #grid div:nth-child(2) {
        grid-row: 1 / 57;
        grid-column: 30 / 80;
    }

    #grid div:nth-child(3) {
        grid-row: 210 / 250;
        grid-column: 1 / 60;
    }

    #grid div:nth-child(4) {
        grid-row: 57 / 120;
        grid-column: 30 / 100;
    }

    #grid div:nth-child(5) {
        grid-row: 20 / 57;
        grid-column: 80 / 100;
    }

    #grid div:nth-child(6) {
        grid-row: 338 / 385; 
        grid-column: 1 / 50;
    }

    #grid div:nth-child(7) {
        grid-row: 1 / 20;
        grid-column: 80 / 100;
    }

    #grid div:nth-child(8) {
        grid-row: 220 / 300;
        grid-column: 60 / 100;
    }

    #grid div:nth-child(9) {
        grid-row: 300 / 338;
        grid-column: 1 / 40;
    }

    #grid div:nth-child(10) {
        grid-row: 300 / 338;
        grid-column: 40 / 100;
    }

    #grid div:nth-child(11) {
        grid-row: 70 / 120;
        grid-column: 1 / 30;
    }

    #grid div:nth-child(12) {
        grid-row: 338 / 383; 
        grid-column: 50 / 100;
    }

    #grid div:nth-child(13) {
        grid-row: 120 / 150;
        grid-column: 60 / 100;
    }

    #grid div:nth-child(14)  {
        grid-row: 25 / 70;
        grid-column: 1 / 30;
    }

    #grid div:nth-child(15) {
        grid-row: 1 / 25;
        grid-column: 1 / 30;
    }

    #grid div:nth-child(16) {
        grid-row: 545 / 635; 
        grid-column: 1 / 50;
    }

    #grid div:nth-child(17) {
        grid-row: 385 / 445; 
        grid-column: 1 / 50;
    }

    #grid div:nth-child(18) {
        grid-row: 383 / 470; 
        grid-column: 50 / 100;
    }

    #grid div:nth-child(19) {
        grid-row: 445 / 495; 
        grid-column: 1 / 50;
    }

    #grid div:nth-child(20) {
        grid-row: 470 / 500; 
        grid-column: 50 / 100;
    }

    #grid div:nth-child(21) {
        grid-row: 635 / 665;
        grid-column: 22 / 100;
    }

    #grid div:nth-child(22) {
        grid-row: 500 / 565; 
        grid-column: 50 / 100;
    }

    #grid div:nth-child(23) {
        grid-row: 495 / 545;
        grid-column: 1 / 50;
    }

    #grid div:nth-child(24) {
        grid-row: 700 / 755; 
        grid-column: 45 / 75;
    }

    #grid div:nth-child(25) {
        grid-row: 635 / 665;
        grid-column: 1 / 22;
    }

    #grid div:nth-child(26) {
        grid-row: 690 / 755; 
        grid-column: 75 / 100;
    }

    #grid div:nth-child(27) {
        grid-row: 700 / 755;
        grid-column: 1 / 45;
    }

    #grid div:nth-child(28) {
        grid-row: 565 / 635; 
        grid-column: 50 / 100;
    }

    #grid div:nth-child(29) {
        grid-row: 665 / 700;
        grid-column: 1 / 75;
    }

    #grid div:nth-child(30) {
        grid-row: 150 / 220;
        grid-column: 60 / 100;
    }

    #grid div:nth-child(31) {
        grid-row: 250 / 300;
        grid-column: 1 / 60;
    }

    #grid div:nth-child(32){
        grid-row: 665 / 690;
        grid-column: 75 / 100;
    }

}



@media (max-width: 768px) {

    #menu{
        color: #000000;
        position: absolute;
        top: 8px;
        right: 12px;
    }

    #arrow_gallery{
        color: #000;
    }

    #btn{
        color: #000;
        border: #000 2px solid;
    }

    header::before {
        background-image: url(../media/KS1.webp);
        background-size: 70%;
        animation: none !important;
    }

    #image{
        transform: scale(20%);
        top: -95px;
        left: -185px;
        position: absolute;
    }

    #arrow_home{
        display: none;
    }

    #about{
        height: 150vh;
    }

    #container {
        background: url('../media/marbre.jpg') no-repeat center;
        background-size: 100% 100%;
    }

    #pfp{
        width: 140px;
        margin-bottom: 30px;
    }


    #gallery{
        padding-top: 40px;
        margin-bottom: 120px;
    }


    #grid {
        /* display: grid; */
        grid-template-columns: none;
        grid-template-rows: none;
    }

    /*#region Grid*/
        #grid div:nth-child(1) {
            grid-row: 38 / 66;
            grid-column: 1 / 19;
        }
        
        #grid div:nth-child(2) {
            grid-row: 1 / 18;
            grid-column: 10 / 25;
        }
        
        #grid div:nth-child(3) {
            grid-row: 66 / 81;
            grid-column: 1 / 19;
        }
        
        #grid div:nth-child(4) {
            grid-row: 18 / 38;
            grid-column: 10 / 31;
        }
        
        #grid div:nth-child(5) {
            grid-row: 6 / 18;
            grid-column: 25 / 31;
        }
        
        #grid div:nth-child(6) {
            grid-row: 106 / 120;
            grid-column: 1 / 15;
        }
        
        #grid div:nth-child(7) {
            grid-row: 1 / 6;
            grid-column: 25 / 31;
        }
        
        #grid div:nth-child(8) {
            grid-row: 69 / 95;
            grid-column: 19 / 31;
        }
        
        #grid div:nth-child(9) {
            grid-row: 95 / 106;
            grid-column: 1 / 16;
        }
        
        #grid div:nth-child(10) {
            grid-row: 95 / 106;
            grid-column: 16 / 31;
        }
        
        #grid div:nth-child(11) {
            grid-row: 22 / 38;
            grid-column: 1 / 10;
        }
        
        #grid div:nth-child(12) {
            grid-row: 106 / 120;
            grid-column: 15 / 31;
        }
        
        #grid div:nth-child(13) {
            grid-row: 38 / 48;
            grid-column: 19 / 31;
        }
        
        #grid div:nth-child(14) {
            grid-row: 8 / 22;
            grid-column: 1 / 10;
        }
        
        #grid div:nth-child(15) {
            grid-row: 1 / 8;
            grid-column: 1 / 10;
        }
        
        #grid div:nth-child(16) {
            grid-row: 180 / 200;
            grid-column: 1 / 16;
        }
        
        #grid div:nth-child(17) {
            grid-row: 120 / 140;
            grid-column: 1 / 16;
        }
        
        #grid div:nth-child(18) {
            grid-row: 120 / 155;
            grid-column: 16 / 31;
        }
        
        #grid div:nth-child(19) {
            grid-row: 140 / 165;
            grid-column: 1 / 16;
        }
        
        #grid div:nth-child(20) {
            grid-row: 155 / 167;
            grid-column: 16 / 31;
        }
        
        #grid div:nth-child(21) {
            grid-row: 200 / 210;
            grid-column: 8 / 31;
        }
        
        #grid div:nth-child(22) {
            grid-row: 167 / 185;
            grid-column: 16 / 31;
        }
        
        #grid div:nth-child(23) {
            grid-row: 165 / 180;
            grid-column: 1 / 16;
        }
         
        #grid div:nth-child(24) {
            grid-row: 223 / 247;
            grid-column: 1 / 16;
        }
        
        #grid div:nth-child(25) {
            grid-row: 200 / 210;
            grid-column: 1 / 8;
        }
        
        #grid div:nth-child(26) {
            grid-row: 210 / 223;
            grid-column: 25 / 31;
        }
        
        #grid div:nth-child(27) {
            grid-row: 223 / 247;
            grid-column: 16 / 31;
        }
        
        #grid div:nth-child(28) {
            grid-row: 185 / 200;
            grid-column: 16 / 31;
        }
        
        #grid div:nth-child(29) {
            grid-row: 210 / 223;
            grid-column: 1 / 25;
        }
        
        #grid div:nth-child(30) {
            grid-row: 48 / 69;
            grid-column: 19 / 31;
        }
        
        #grid div:nth-child(31) {
            grid-row: 81 / 95;
            grid-column: 1 / 19;
        }
    /*#endregion*/

    
    #grid div::before,
    #grid div::after {
        display: none;
    }

    #grid div figcaption {
        display: none;
    }

    .text{
        white-space: pre-line;
    }

    html,body{
        overflow-x: hidden;
    }

    /* General styles for the popup window */
    .popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0vw !important;
        height: 0vh !important; 
        background-color: transparent; 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
        opacity: 0;
        padding: 10px !important;
        transition: opacity 1s ease, width 1s ease 1s, height 1s ease 1s;
    }

    .popup.clicked{
        width: 90vw !important;
        height: 85vh !important; 
        opacity: 1;
        transition: opacity 1s ease;
    }

    .veil{
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 85vh !important; 
        background-color:rgb(255, 255, 255); 
        transition: width .7s ease;
    }

    .veil.clicked{
        width: 90vw !important;
        transition: width 1.125s ease;
    }

    /* Borders */
    .top-border, .right-border, .bottom-border, .left-border {
        position: fixed;
        background-color: rgb(255, 255, 255);
        opacity: 0.8;
        z-index: 1001;
    }

    /* Initial states */
    .top-border {
        top: 0;
        left: 0;
        height: 4px;
        width: 0; /* Start from 0 */
        transition: width .7s ease;
    }

    .right-border {
        top: 0;
        right: 0;
        width: 4px;
        height: 0; /* Start from 0 */
        transition: height .7s ease;
    }

    .bottom-border {
        bottom: 0;
        right: 0;
        height: 4px;
        width: 0; /* Start from 0 */
        transition: width .7s ease;
    }

    .left-border {
        bottom: 0;
        left: 0;
        width: 4px;
        height: 0; /* Start from 0 */
        transition: height .7s ease;
    }

    .popup.clicked .top-border {
        width: 100%; /* Animate to full width */
        transition: width 1s ease-out;
    }

    .popup.clicked .right-border {
        height: 100%; /* Animate to full height */
        transition: height 1s ease-out;
    }

    .popup.clicked .bottom-border {
        width: 100%; /* Animate to full width */
        transition: width 1s ease-out; /* Delay after top border animation */
    }

    .popup.clicked .left-border {
        height: 100%; /* Animate to full height */
        transition: height 1s ease-out; /* Delay after right border animation */
    }

    /* Popup content styling */
    .popup-content {
        position: relative;
        padding: 20px;
        /* Center content inside the borders */
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        opacity: 0;
        transition: opacity .1s ease;
        overflow: hidden;
    }

    .popup-content.clicked{
        opacity: 1;
        transition: opacity 1s ease .8s;
    }

    /* Styles for the background overlay */
    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
        opacity: 0;
        transition: opacity 1s ease;
        pointer-events: none;
    }

    .popup-overlay.clicked{
        opacity: 1;
        transition: opacity 1s ease;
        pointer-events: all;
    }

    /* Close button in the top-right corner */
    .popup-close {
        position: absolute;
        top: 10px;
        right: 18px;
        cursor: pointer;
        font-size: 24px;
        font-weight: bold;
        color: black;
        transition: rotate .5s ease;
        z-index: 1002;
    }

    .popup-close:hover{
        rotate: 90deg;
        transition: rotate .5s ease;
    }

    .popup-content {
        display: flex;
        flex-direction: column !important;
        align-items: center;
        /* border: red solid 3px; */
        /* justify-content: space-between !important; */
        width: 100%;
        height: 100%;
        padding: 0 !important;
    }

    .popup-content-text{
        display: flex;
        flex-direction: column;
        /* border: red solid 2px; */
        width: 100% !important;
        max-height: 30% !important;
        justify-content: start !important;
        line-height: 1.3 !important;
    }
    /* Title inside the popup */
    .popup-title {
        font-size: 6vw !important;
        font-weight:bold;
        text-shadow: .3px 0 black, 0 .3px black, -0.3px 0 black, 0 -0.3px black;
        width: 90%;
        height: auto;
        padding: 0 !important;
    }

    .popup-title.thinner{
        font-size: 5vw !important;
    }

    .popup-artist{
        color: black;
        font-size: 3vw !important;
        text-decoration: none;
    }

    .popup-details{
        font-style: italic;
        font-size: 3vw !important;
    }

    .popup-text {
        margin-top: 17px !important;
        font-size: 3vw !important;
        line-height: 1.25 !important;
        overflow-y: auto;
        height: auto !important;
        max-height: 80px !important;
    }

    .popup-text .simplebar-track.simplebar-vertical {
        background-color: #f0f0f0;
        width: 4px;
        border-radius: 10px;
        right: 2px;
        top: 0px !important;
        z-index: 1 !important;
        height: auto !important;
    }
    
    .popup-text .simplebar-scrollbar {
        background-color: #888;
        border-radius: 6px;
    }
    
    .popup-text .simplebar-scrollbar:hover {
        background-color: #555;
    }

    /* .popup-text .simplebar-content{
        height: 131px !important;
    } */

    .popup-content-image{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between !important;
        margin: 0px !important;
        width: 100% !important;
        /* height: auto !important; */
        overflow: hidden;
        /* border: red solid 2px; */
    }

    .popup-image {
        max-width: 115%;
        height: 100% !important;
        object-fit: contain !important;
        overflow: hidden;
        /* padding: 10px; */
        transform: scale(0.9);
        justify-content: center;
        /* border: red solid 1px; */
    }

    .popup-navigation {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        /* padding: 10px; */
        /* overflow: hidden; */
        width: 150px !important;
        max-height: 70px !important;
        min-height: 70px !important;
        margin: 0px !important;
        gap: 13px !important;
        /* border: red solid 2px; */
        margin-bottom: 10px !important;
        position: relative;
        left: -65px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popup-navigation .simplebar-track.simplebar-horizontal {
        background-color: #f0f0f0;
        height: 4px;
        border-radius: 10px;
    }

    .popup-navigation .simplebar-content{
        padding: 10px 0px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 150px;
        max-height: 70px;
        min-height: 70px;
        gap: 13px;
        position: relative;
        margin: 0px;
        margin-bottom: 10px;
        margin-left: -13px;
    }
    
    .popup-navigation .simplebar-scrollbar {
        background-color: #888;
        border-radius: 6px;
    }
    
    .popup-navigation .simplebar-scrollbar:hover {
        background-color: #555;
    }

    .popup-navigation.alone{
        left: 0px;
        width: auto !important;
    }

    .popup-thumb{
        height: 100% !important;
        object-fit: cover;
        width: auto !important;
        max-height: 50px !important;
    }

    .icon{
        bottom: 5px !important;
        right: 5px !important;
        height: 20px !important;
        width: 20px !important;
    }

    #checkout.sold{
        padding: 4px 2px 2px 4px !important;

    }

    #checkout{
        font-size: 0.65rem !important;
        padding: 0 !important;
        right: 30px !important;
        bottom: 10px !important;
    }

    #checkout.on-demand{
        width: 90px !important;
        right: 30px !important;
        bottom: 10px !important;
    }
}

/*#endregion*/


#grid div {
    transform: translate(0, 8rem);
    opacity: 0;
}

#grid div.inviewport {
    transform: translate(0, 0);
    opacity: 1;
}

#grid div:nth-child(odd) {
    transition: all 0.6s;
}

#grid div:nth-child(even) {
    transition: all 1.2s;
}

.grid-item{
    position: relative;
    overflow: hidden;
}

.add{
    display: none;
}

.icon{
    position: absolute;
    bottom: 20px;
    right: 20px;
    height: 30px;
    width: 30px;
    z-index: 1005;
    transform: none !important;
    opacity: 0 !important;
    transition: opacity 1.5s ease .5s !important;
}

#grid div.inviewport .icon{
    opacity: 1 !important;
}

.icon::before{
    border: none !important;
}

.icon::after{
    border: none !important;
}

.sold .icon, .sold .icon img{
    display: none !important;
}

.soon .icon, .soon .icon img{
    display: none !important;
}

.tooltip-box {
    position: fixed; 
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 2px;
    white-space: nowrap;
    z-index: 1004;
    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

.tooltip-box::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #333 transparent transparent transparent; 
}


/* Caption Styles */
#grid div:hover::before,
#grid div:hover::after {
  border-width: 16px;
  cursor: pointer;
}

#grid div::before,
#grid div::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 6px solid rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
  will-change: border;
}

#grid div::after {
  border-width: 0;
}

#grid div:hover::before {
  border-width: 9px;
}

#grid div:hover::after {
  border-width: 20px;
}

#grid div.soon::before,
#grid div.soon::after {
  border-width: 16px;
  cursor: pointer !important;
}

#grid div.soon::before {
  border-width: 9px;
}

#grid div.soon::after {
  border-width: 20px;
}

/* Caption Text */
#grid div figcaption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0);
    padding: 1em;
    transition: all 0.2s ease;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    box-sizing: border-box;
    /* border: red solid 4px; */
    /* width: 60%;  */
}

.wide {
    width: 60%; 
}

.wider {
    width: 80%; 
}

.widerr{
    width: 90%;
}

#grid div:hover figcaption {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease 0.3s;
}

#grid div figcaption::before,
#grid div figcaption::after {
    content: '';
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    padding: 1em;
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

#grid div figcaption::before {
    right: 100%;
    bottom: 100%;
    opacity: 0;
}

#grid div figcaption::after {
    left: 100%;
    top: 100%;
    opacity: 0;
}

#grid div:hover figcaption::before {
    right: -1.5em;
    bottom: -1.5em;
    opacity: 1;
    z-index: -1;
}

#grid div:hover figcaption::after {
    left: -1.5em;
    top: -1.5em;
    opacity: 1;
    z-index: -1;
} 

figcaption p{
    font-style: italic;
}


/* General styles for the popup window */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0vw;
    height: 0vh;
    background-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    padding: 0px;
    opacity: 0;
    transition: opacity 1s ease, width 1s ease 1s, height 1s ease 1s;
}

.popup.clicked{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    height: 90vh;
    background-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    padding: 20px;
    opacity: 1;
    transition: opacity 1s ease;
}

.veil{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 89vh; 
    background-color:rgb(255, 255, 255); 
    transition: width .7s ease;
}

.veil.clicked{
    width: 92vw;
    transition: width 1.125s ease;
}

/* Borders */
.top-border, .right-border, .bottom-border, .left-border {
    position: fixed;
    background-color: rgb(255, 255, 255);
    opacity: 0.8;
    z-index: 1001;
}

/* Initial states */
.top-border {
    top: 0;
    left: 0;
    height: 4px;
    width: 0; /* Start from 0 */
    transition: width .7s ease;
}

.right-border {
    top: 0;
    right: 0;
    width: 4px;
    height: 0; /* Start from 0 */
    transition: height .7s ease;
}

.bottom-border {
    bottom: 0;
    right: 0;
    height: 4px;
    width: 0; /* Start from 0 */
    transition: width .7s ease;
}

.left-border {
    bottom: 0;
    left: 0;
    width: 4px;
    height: 0; /* Start from 0 */
    transition: height .7s ease;
}

.popup.clicked .top-border {
    width: 100%; /* Animate to full width */
    transition: width 1s ease-out;
}

.popup.clicked .right-border {
    height: 100%; /* Animate to full height */
    transition: height 1s ease-out;
}

.popup.clicked .bottom-border {
    width: 100%; /* Animate to full width */
    transition: width 1s ease-out; /* Delay after top border animation */
}

.popup.clicked .left-border {
    height: 100%; /* Animate to full height */
    transition: height 1s ease-out; /* Delay after right border animation */
}

/* Popup content styling */
.popup-content {
    position: relative;
    padding: 20px;
    /* Center content inside the borders */
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    opacity: 0;
    transition: opacity .1s ease;
    overflow: hidden;
}

.popup-content.clicked{
    opacity: 1;
    transition: opacity 1s ease .8s;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.popup-overlay.clicked{
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: all;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 18px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: black;
    transition: rotate .5s ease;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
}

.popup-close:hover{
    rotate: 90deg;
    transition: rotate .5s ease;
}

/* Content inside the popup */
.popup-content{
    display: flex;
    width: 0;
    height: 0;
    padding: 0;
}
.popup.clicked .popup-content {
    display: flex;
    flex-direction: row;
    /* align-items: center; */
    /* border: red solid 3px; */
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.popup-content-text{
    display: flex;
    flex-direction: column;
    /* border: red solid 2px; */
    width: 40%;
    height: auto;
    justify-content: center;
}
/* Title inside the popup */
.popup-title {
    font-size: 2vw;
    font-weight:bold;
    text-shadow: .3px 0 black, 0 .3px black, -0.3px 0 black, 0 -0.3px black;
}

.popup-artist{
    font-size: 1.4vw;
    color: black;
    text-decoration: none;
}

.popup-details{
    font-style: italic;
}

.popup-text {
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.5;
    overflow-y: auto;
    padding-right: 10px;
    height: 500px;
}

.popup-text::-webkit-scrollbar {
    width: 4px;
}
  
.popup-text::-webkit-scrollbar-track {
    background-color: #f0f0f0 !important;
    border-radius: 6px;
}

.popup-text:hover::-webkit-scrollbar-thumb {
    background-color: #888 !important;
    border-radius: 6px;
}

.popup-text::-webkit-scrollbar-thumb:hover {
    background-color: #555 !important;
}


.popup-content-image{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-right: -45px;
    width: 55%;
    height: 100%;
    /* overflow: hidden; */
    /* border: red solid 2px; */
}

.popup-image {
    max-width: 100%;
    height: auto;
    overflow: hidden;
    padding: 10px;
    transform: scale(0.9);
    /* border: red solid 1px; */
}

.popup-icon{
    position: absolute;
    bottom: 45px;
    right: 640px;
    height: 30px;
    width: 30px;
    z-index: 1005;
    transform: none !important;
}

.popup-icon img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

.popup-navigation {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 0 10px 0;
    overflow: hidden;
    width: auto;
    max-width: 60%;
    max-height: 105px;
    min-height: 105px;
    height: 105px;
    margin: 5px;
    gap: 10px;
    overflow-x: auto;
    /* scroll-snap-type: x mandatory; */
    /* border: red solid 2px; */
}

.popup-navigation img, .popup-navigation video {
    margin: 0;
    padding: 0;
    flex-shrink: 0; /* SUPER important to avoid shrinking */
    /* scroll-snap-align: start; Optional: matches with scroll-snap-type */
}

.popup-thumb{
    width: auto;
    max-height: 100%;
}

.popup-navigation::-webkit-scrollbar {
    height: 4px;
}
  
.popup-navigation::-webkit-scrollbar-track {
    background-color: #f0f0f0 !important;
}

.popup-navigation::-webkit-scrollbar-thumb {
    background-color: #888 !important;
    border-radius: 6px;
}

.popup-navigation::-webkit-scrollbar-thumb:hover {
    background-color: #555 !important;
}

/* 
.popup-thumb:hover{
} */


/* Contact & Footer */

#contact {
    padding-bottom: 4rem;
    margin-top: -8rem;
    z-index: 1003;
    /* display: none; */
}

#form {
    display: block;
    max-width: 600px;
    margin: auto;
}

#form div {
    margin-bottom: 1rem;
}

label {
    cursor: pointer;
    color: #999;
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

#user_email, #user_name, #message {
    width: 100%; 
    font-family: inherit;
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
    background-color: #222;
    border: 1px solid #454545;
    color: #fff;
}

#user_email:focus, #user_name:focus, #message:focus {
    outline: none;
    border-color: #999797;
}

#message {
    height: 10rem;
    resize: none;
}

#form button {
    font-family: inherit;
    padding: 1rem 1.2rem;
    text-transform: uppercase;
    font-weight: 600;
    display: none;
    cursor: pointer;
    transition: all 0.2s;
    /* border: 1px white solid; */
}

#form button:hover {
    transform: scale(1.2);
}

#form #btnsubmit {
    background-color: #ffffff;
    color: #000;
}

#form div:last-child {
    display: flex;
    justify-content: end;
    gap: 1.2rem;
    margin-top: 1rem;
}

::placeholder {
    color: #3c3c3c;
}

/* Error state styling */
input.error {
    border-color: red;
    color: red;
}

input.error::placeholder {
    color: red;
}

/* Icon for error */
.error-icon {
    position: relative;
}

.error-icon::after {
    content: '⚠️'; /* Use an icon here */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: red;
}

/* Error message styling */
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 4px;
    display: none;
}


footer {
    /* z-index: 99; */
    background-color: #1a1a1a;
    height: 120px;
    /* padding: 2rem 1rem; */
    color: #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1003;
}

a.email-link {
    color: #d2feff; 


    text-decoration: none;
    font-weight: bold;
}

a.email-link:hover {
    color: #ffbdc7;
    

    text-decoration: underline; 
}

footer .legal-link {

    font-size: 0.8rem;
    opacity: 0.7;
    color: #ffffff;
    z-index: 9;
    text-decoration: none;
}

footer .legal-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/*FONTS*/

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v205/kJEhBvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oFsI.woff2) format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

@font-face {
    font-family: 'Great Vibes';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/greatvibes/v19/RWmMoKWR9v4ksMfaWd_JN9XFiaQ.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


