@import './RootStyle.css';

.art-gallery-instruction-span{
    display: none;
}

.art-gallery-instruction-span.desktop {
    display: block;
}

.art-gallery-alt-body {
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto 0;
    padding: 0;
    margin: 0;
}
  
  
  .art-gallery-wrapper {
    width: clamp(250px, 21vw, 500px);
    height: auto;
    position: relative;
    padding: 0;
    margin: 0;
}

  .art-gallery-wrapper .carousel{
    z-index: 2;
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 1) - 0px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    scroll-behavior: smooth;

    scrollbar-width: none;
    opacity: 0;
    transform: translateX(-50%);
    transition: transform 0.5s ease-out, opacity 0.8s ease-out;
  }

  .carousel.active {
    opacity: 1;
    transform: translateX(0%);
  }

  .carousel::-webkit-scrollbar {
    display: none;
  }
  .carousel.no-transition {
    scroll-behavior: auto;
  }
  .carousel.dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .carousel.dragging .card {
    cursor: grab;
    user-select: none;
  }
  .carousel :where(.card, .img) {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .carousel .card {
    scroll-snap-align: start;
    list-style: none;
    flex-direction: column;
    cursor: default;
  }



.art-piece {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.art-piece-image-container{
    z-index: 1;
    position: relative;
    overflow: hidden; /* Ensures the info box is hidden initially */
}

.art-piece img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1/1;
    display: block;
    transition: transform 0.3s ease; /* Image hover effect */
}

.art-piece:hover img {
    transform: scale(1.1); /* Slight zoom on hover */
}

.info-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Ensure this is above the pseudo-element */
    padding: 2% 4%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    /* Removed opacity from here */
    opacity: 0;
    background-color: transparent; /* Set background to transparent */
    width: 100%;
    height: 100%;
    transition: background-color 0.5s ease, opacity 0.5s ease; /* Transition for background */
}

/* Pseudo-element for the background */
.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: whitesmoke; /* Set your desired background color */
    opacity: 0; /* Initial opacity */
    transition: opacity 0.5s ease; /* Transition for opacity */
    z-index: -1; /* Ensure it stays behind the content */
}

.art-piece:hover .info-box::before {
    opacity: 0.8; /* Background opacity on hover */
}

.art-piece:hover .info-box{
    opacity: 1;
}

.info-box-content{
    text-align: center;
}

.info-box-title{
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2%;
}

.info-box-desc{
    display: flex;
    flex-direction: column;
    text-align: center;
}

.info-box-desc span{
    font-weight: 400;
    margin-bottom: 2%;
}

.interested-button{
    cursor: pointer;
    position: absolute;
    right: 4%;
    bottom: 4%;

    background-color: #555;
    padding: 0.5em 0.75em;
    box-shadow: inset 0 0 5px 1px #222;
    border: none;

    color: whitesmoke;
    font-weight: 500;

    transition: transform 0.2s ease-out;
}

.interested-button:hover{
    transform: scale(1.04);
}



.carousel-arrows-container{
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
  }

  .carousel-arrow-container{
    cursor: pointer;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%) translateX(-300%);
    opacity: 0;
    padding: clamp(5px, 0.5vw, 10px);
    transition: scale 0.1s ease, background-color 0.1s ease, transform 0.5s ease-out, opacity 0.8s ease-out;
  }

  .carousel-arrow-container.active{
    transform: translateY(-100%) translateX(0%);
    opacity: 1;
  }

  #left{
    left: -100px;
    transform: rotate(180deg) translateY(100%);
  }

  #right{
    right: -100px;
  }
  
  .arrow-left,
    .arrow-right {
        width: 30px; /* Set your desired width */
        height: 30px; /* Set your desired height */
    }

    .carousel-arrow-container:active{
        scale: 0.9;
        background-color: #ddd;
    }




.interested-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: var(--main-font);
}

.interested-modal-content {
    position: relative;
    background-color: white;
    padding: 1.5%;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 800px; /* Max width for larger screens */
    display: flex;
    flex-direction: column;
}

.interested-modal-content h2{
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 6%;
}

.interested-close-button {
    position: absolute;
    right: 1%;
    top: 0;
    color: #aaa;
    float: right;
    font-weight: bold;
}

.interested-close-button:hover,
.interested-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.interested-form {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
}


.interested-form input {
    font-family: var(--main-font);
    border: none;
    border-bottom: solid 1px #333;
    padding-bottom: 5px;
    font-weight: 500;
    width: 100%; /* Full width */
    margin-bottom: 6%; /* Space between form fields */
}

.form-group{
    position: relative;
    display: flex;
    justify-content: space-between;
}

.error-message{
    display: none;
    position: absolute;
    left: 0;
    transform: translateY(-120%);
    color: red;
}

input::placeholder,
textarea::placeholder{
    opacity: 1;
    font-weight: 500;
    color: black;
}

.interested-form textarea{
    border: none;
    border-bottom: solid 1px #333;
    font-family: var(--main-font);
    width: 100%; /* Full width */
    font-weight: 400;
    margin-bottom: 6%; /* Space between form fields */
}

.interested-form input:focus,
.interested-form textarea:focus {
    outline: none; /* Removes the focus outline */
}


.artModalButton {
    color: whitesmoke;
    background-color: #333;
    padding: 10px;
    border: none;
    cursor: pointer;

    font-weight: 400;

    transition: background-color 0.3s ease, outline 0.1s ease, color 0.4s ease;
}

.artModalButton:hover {
    background-color: rgba(190, 190, 190, 1); /* White background with 70% opacity */
    color: black;
}

.artModalButton:active {
    background-color: rgba(170, 170, 170, 1); /* White background with 70% opacity */
}

#status-message{
    text-align: center;
    color: black;
    font-weight: 400;
}

.art-gallery-instruction-span{
    display: block;
    text-align: center;
    padding-top: 5%;
    font-weight: 400;
    z-index: 1;
    transform: translateY(-100%);
    opacity: 0;

    transition: transform 0.3s ease-out, opacity 0.5s ease-out;
}

.art-gallery-instruction-span.mobile{
    display: none;
}

.art-gallery-instruction-span.active{
    transform: translateY(0);
    opacity: 1;
}

@media screen and (max-width: 1440px){
    .arrow-left,
    .arrow-right {
        width: 20px; /* Set your desired width */
        height: 20px; /* Set your desired height */
    }

    #left{
        left: -60px;
      }
    
      #right{
        right: -60px;
      }

      .interested-modal-content {
        max-width: 700px; /* Max width for larger screens */
    }
}

@media screen and (max-width: 800px){
    .art-gallery-alt-body{
        margin: auto 0;
    }

    .art-gallery-wrapper {
        width: 90%;
        margin: 0px auto;
    }

    .art-piece {
        position: relative;
        overflow: hidden;
        aspect-ratio: 1/1;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
    }
    
    .art-piece-image-container{
        z-index: 1;
        position: relative;
        overflow: hidden; /* Ensures the info box is hidden initially */
    }
    
    .art-piece img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        aspect-ratio: 1/1;
        display: block;
        transition: transform 0.3s ease; /* Image hover effect */
    }

    .interested-button{
        cursor: pointer;
        position: absolute;
        right: 4%;
        bottom: 4%;
    
        background-color: #555;
        padding: 0.5em 0.8em;
        box-shadow: inset 0 0 5px 1px #222;
        border: none;
    
        color: whitesmoke;
        font-weight: 500;
    
        transition: transform 0.2s ease-out;
    }

    .carousel-arrows-container{
        width: 100%;
        margin: 0% auto;
    }

    .carousel-arrow-container.active{
        transform: translateY(0%) translateX(0%);
        opacity: 1;
    }
    
      .carousel-arrow-container{
        position: relative;
        width: 12%;
        display: flex;
        align-items: center;
        aspect-ratio: 1/1;
        background-color: #eee;
        transform: translateY(0%);
        padding: 3.5%;
      }
    
      #left{
        left: 0px;
        transform: rotate(180deg) translateY(0%);
      }
    
      #right{
        right: 0%;
      }
      
      .arrow-left,
        .arrow-right {
            width: 100%; /* Set your desired width */
            height: auto;
            aspect-ratio: 1/1;
            cursor: pointer;
        }
    
        .art-gallery-instruction-span.mobile{
            display: block;
            text-align: center;
            padding: 4%;
        
            font-weight: 400;
            z-index: 1;
            transform: translateY(-100%);
            opacity: 0;
        
            transition: transform 0.3s ease-out, opacity 0.5s ease-out;
        }
        
        .art-gallery-instruction-span.mobile.active{
            transform: translateY(0);
            opacity: 1;
        }

        .art-gallery-instruction-span.desktop{
            display: none;
        }

    
.interested-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none; /* Hidden by default */
    overflow: hidden;
}

.interested-modal-content {
    position: relative;
    background-color: white;
    padding: 3%;
    border: 1px solid #888;
    width: 90%; /* Could be more or less, depending on screen size */
    display: flex;
    flex-direction: column;
}

.interested-modal-content h2{
    font-family: var(--main-font);
    margin-bottom: 6%;
    line-height: 1.6;
}

.interested-close-button {
    position: absolute;
    right: 3%;
    top: 12px;
    color: #aaa;
    float: right;
    font-size: clamp(20px, 6vw, 45px);
}

.interested-close-button:hover,
.interested-close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.interested-form {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    width: 100%;
}


.interested-form input {
    border: none;
    border-bottom: solid 1px #333;
    padding-bottom: 0px;
    font-family: var(--main-font);
    width: 100%; /* Full width */
    margin-bottom: 40px; /* Space between form fields */
}

.form-group{
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.error-message{
    display: none;
    position: relative;
    margin: 0;
    padding: 0;
    right: 0;
    transform: translateY(0%);
    color: red;
}

input::placeholder,
textarea::placeholder{
    opacity: 1;
    color: black;
}

.interested-form textarea{
    border: none;
    border-bottom: solid 1px #333;
    font-family: var(--main-font);
    width: 100%; /* Full width */
    margin-bottom: 6%; /* Space between form fields */
}

.interested-form input:focus,
.interested-form textarea:focus {
    outline: none; /* Removes the focus outline */
}


.artModalButton {
    color: whitesmoke;
    background-color: #333;
    padding: 6px;
    border: none;
    cursor: pointer;

    font-size: clamp(1rem, 2.7vw, 1.3rem);

    transition: background-color 0.3s ease, outline 0.1s ease, color 0.4s ease;
}

.artModalButton:hover {
    background-color: transparent;
    outline: solid 2px #333;
    color: #333;
}

#status-message{
    text-align: center;
    color: black;
    font-family: var(--main-font);
}


}