.dropdown {
    width: 100%;
    align-self: center;
    height: 50px;
    border-radius: 30px;
}

@media (hover:hover) and (pointer:fine) {
    .dropdown:hover h2 {
      border-radius: 30px 30px 0 0;
    }
  
    .dropdown:hover li {
      padding: 10px;
      pointer-events: auto;
      border-top: 1px rgb(56, 56, 56) solid;
      height: auto;
      overflow: auto;
      opacity: 1;
    }
  
    .dropdown:hover li:last-child {
      border-radius: 0 0 30px 30px;
    }
  }

  .dropdown.dropdown-open h2 {
    border-radius: 30px 30px 0 0;
  }
  
  .dropdown.dropdown-open li {
    padding: 10px;
    border-top: 1px rgb(56, 56, 56) solid;
    height: auto;
    overflow: auto;
    opacity: 1;
  }
  
  .dropdown.dropdown-open li:last-child {
    border-radius: 0 0 30px 30px;
  }
  


.dropdown h2 {
    display: inline-block;
    margin: 0;
    padding: 10px 0;
    position: relative;
    background: #181818;
    color: red;
    font-size: 20px;
    font-weight: bold;
    border-radius: 30px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s linear 0s;
}

li b {
    color: red;
    font-weight: normal;
    font-size: 20px;
}

.dropdown ul {
    display: block;
    position: relative;
    list-style: disc;
    padding-left: 0;
    margin: 0;
    z-index: 10;
}

.dropdown li {
    height: 0;
    pointer-events: none;
    padding: 0 10px;
    background: #181818;;
    color: black;
    text-align: left;
    border: 0;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transition-property: all, background-color;
    transition-duration: 0.2s, 0.4s;
}

.dropdown li:hover, .dropdown li.selected {
    background-color: #555555;
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50% { box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.3); border-color: #ffffff; }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.dropdown.attention-please {
    animation: pulse-shadow 0.6s ease-in-out 2;
}
  
  .svg-aligner {
    display: flex;
    align-self: flex-start;
  }
  
  .subtitle {
    display: flex;
  }
  
  .s2 {
    padding-left: 560px;
  }

.project-container {
    display: flex;
    width: 100%;
    height: 800px;
    background-color: #181818;
    align-self: center;
    border-radius: 50px;
    flex-direction: row;
    padding: 20px;
    box-sizing: border-box;
    gap: 20px;
}

.activated{
    display: flex;
    height: 100%;
}

.deactivated{
    display: none;
}

.project-elements-container {
    display: flex;
    flex-direction: row;
    width: 95%;
    justify-content: space-between;
    margin: 0 auto;
}

.project-details-section {
    width: 25%;
    padding-right: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
}


.project-description h2 {
    font-family: "Joan", serif;
    color: red;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.project-description p {
    font-family: "Tinos", serif;
    font-size: 20px;
    line-height: 1.6;
    color: #dbd8d8;
    text-align: justify;
    text-overflow: ellipsis;
    overflow: hidden;
}


.project-gallery-section {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.main-image-display {
    width: 100%;
    height: 610px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
    z-index: 9;
}

.big-sc {
    width: 1000px;
    height: 125%;
    margin: 0;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    color: red;
    font-weight: normal;
    text-align: center;
    cursor: pointer;
    border-radius: 30px;
}

.thumbnail-navigation-area {
    align-items: center;
    justify-content: center;
    height: 120px;
    margin-top: 20px;
    background-color: #282828;
    border-radius: 30px;
}

.nav-button {
    background-color: rgb(177, 14, 14);
    color: #dbd8d8;
    border: none;
    padding: 40px 2px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    margin: 0 10px;
    flex-shrink: 0; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: background-color 0.2s ease;
}

.nav-button svg {
    width: 35px;
    height: 35px;
    display: block; 
    margin: 0;
    padding: 0;
}

.nav-button:hover {
    background-color: #6a0000;
}

.thumbnails-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    align-items: center;
    overflow-x: scroll;
    white-space: nowrap;
    &::-webkit-scrollbar {
        height: 8px;
        background-color: transparent;
    }

    &::-webkit-scrollbar-track {
        background: #181818;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
        background: #8B0000;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #6a0000;
    }
}

.thumbnails-inner-container {
    display: flex;
    height: 100%;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    align-items: center;
    padding: 0 10px;
}

.thumbnail-item {
    height: 100px;
    width: 180px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.thumbnail-item:hover {
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: rgb(177, 14, 14);
}

.thumbnail-navigation-area {
    display: none;
}

@media (max-width: 1350px){
    .project-elements-container{
        flex-direction: column;
        gap: 40px;
    }

    .project-container{
        align-self: center;
        width: 95%;
        margin-bottom: 40px;
    }

    .dropdown{
        padding-left: 2.5%;
    }

    .project-description p {
        font-size: 15px;
    }
}

@media (max-width: 1000px){
    .dropdown{
        margin-top: 80px;
    }

    .main-image-mobile-wrapper {
        position: relative;
        height: 350px;
    }

    .main-image-display {
        width: 100%;
        object-fit: cover;
    }


    .nav-button.nav-left {
        left: 10px;
    }

    .nav-button.nav-right {
        right: 10px;
    }

    .nav-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 850px){
    .project-container{
        padding: 5px;
        display: flex;
        flex-direction: column;
    }
    .main-image-mobile-wrapper{
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .main-image-display{
        width: 100%;
    }

    .project-details-section {
        width: fit-content;
        padding: 0;
    }

    .big-sc {
        width: 100%;
        height: 500px;
    }

    .project-gallery-section{
        justify-content: space-around;
        align-self: center;
        width: 100%;
    }
    .main-image-mobile-wrapper{
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        width: 100%;
        height: 350px;
    }

    .main-image-display {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        border-radius: 10px;
    }

    .dropdown{
        display: flex;
        flex-direction: column;
        align-content: center;
        align-self: center;
        width: 320px;
        padding: 0;
        z-index: 11;
    }
}

.fullscreen-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
  }
  
  .fullscreen-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
  }
  
  .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    cursor: pointer;
    border: transparent;
  }
  
  .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  
  .nav-btn.left { left: 20px; }
  .nav-btn.right { right: 20px; }
  
  .close-btn:hover,
  .nav-btn:hover {
    color: #f00;
  }

  @media (max-width: 460px) {
      .nav-button{
        margin: 0 5px;
        z-index: 10;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        background-color: red;
        opacity: 50%;
    }
  }
  