* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    height: 100dvh;
    width: 100dvw;
}

a {
    text-decoration: none;
}

ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.header {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 9;
    width: max-content;
    display: flex;
    align-items: center;
    column-gap: 12px;
    background-color: #ffffff;
    padding: 4px;
    border-radius: 4px;
    font-family: Inter;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.logo {
    max-width: 36px;
    max-height: 36px;
    display: flex;
    align-items: center;
}

.gallery {
    height: 100vh;
    width: 100vw;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    column-gap: 36px;
    color: #ffffff;
    row-gap: 24px;
    overflow: hidden;
}

.gallery h1 {
    font-family: Roboto;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    border-left: 2px solid #048cd0;
    padding-left: 8px;
}

.gallery-wrapper {
    display: flex;
    column-gap: 24px;
    width: 70%;
    max-height: 100%;
    overflow: none;
}

.gallery-options {
    display: flex;
    flex-direction: column;
    font-family: Roboto;
    width: 300px;
    background-color: #000000;
    row-gap: 8px;
}

.gallery-options li {
    padding: 8px;
    border: 1px solid #048cd0;
    cursor: pointer;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    overflow: auto;
    height: 100%;
    width: 100%;
}

.gallery-images li {
    height: fit-content;
    width: max-content;
}

.gallery-images li img {
    width: 250px;
    height: 150px;
    border: 2px solid #048cd0;
    cursor: pointer;
    border-radius: 8px;
}

.gallery-viewer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-image-wrapper {
    position: relative;
    width: 64%;
    height: 70%;
    display: flex;
    align-items: center;
}

.gallery-viewer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev-btn, .next-btn {
    width: max-content;
    height: max-content;
    height: 36px;
    width: 36px;
    border-radius: 50px;
    outline: none;
    border: none;
    background-color: #048cd0;
    color: #ffffff;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    cursor: pointer;
}

.prev-btn {
    left: 14px;
}

.next-btn {
    right: 14px;
}

.controls {
    position: fixed;
    bottom: 12px;
    right: 12px;
    display: flex;
    column-gap: 18px;
}

.controls a {
    background-color: #048cd0;
    font-weight: 400;
    letter-spacing: 2px;
    width: max-content;
    color: #ffffff;
    border-radius: 50px;
    font-size: 14px;
    height: 36px;
    width: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 1399px) and (orientation: landscape) {
    .logo {
        width: 70px;
        max-height: 70px;
        top: 8px;
        left: 8px;
    }

    .full-screen-container {
        height: 30px;
        width: 30px;
        font-size: 36px;
        top: 8px;
        right: 8px;
    }

    .left-controls {
        left: 8px;
    }

    .right-controls {
        flex-direction: column;
        right: 8px;
        row-gap: 8px;
    }

    .right-controls div span {
        display: none;
    }

    .copyright-wrapper {
        display: none;
    }

    .copyright {
        font-size: 12px;
    }

    .filters,
    .villa-info-model {
        bottom: 8px;
        right: 48px;
    } 

    body,
    .viewer-container {
        overflow: auto;
        width: auto;
        height: auto;
        object-fit: contain;
    }   

    .left-controls div div,
    .right-controls div div {
        background-color: #048cd0;
    }

    .gallery-wrapper {
        width: 100%;
        height: 100%;
        padding: 24px;
        align-items: center;
    }

    .controls a {
        height: 36px;
        width: 36px;
    }

    .gallery-images {
        height: 90%;
        width: 100%;
        align-content: center;
    }
}

.rotate-device-orientation-wrapper {
    background-color: #ffffff;
    z-index: 999;
    width: 100vw;
    height: 100vh;
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rotate-device-orientation-text {
    font-size: 24px;
    font-weight: 500;
}


@media screen and (max-width: 1399px) and (orientation: portrait) {
    .rotate-device-orientation-wrapper {
        display: flex;
        overflow: hidden;
    }
}

.back-btn {
    border: none;
    outline: none;
    background-color: #048cd0;
    color: #ffffff;
    cursor: pointer;
    z-index: 9;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: Inter;
    letter-spacing: 1px;
    font-size: 16px;
}

.active-btn {
    background-color: #048cd0 !important;
    color: #ffffff !important;
}

.loader-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: #000000;
}

.loader {
    max-width: 350px;
    max-height: 350px;
}

.hidden-loader {
    display: none;
}

.spim-logo-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 72px;
  padding: 8px;
  background-color: #ffffff;
}

svg {
    background: transparent;
    width: 100%;
    height: 100%;
}

path, rect, polygon {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-opacity: 1;
    stroke-dasharray: 10000; 
    stroke-dashoffset: 0;
    filter: 
        drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.75))
        drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.75));
    transform-origin: center;
    transition: 
        stroke 0.3s ease-in-out,
        stroke-width 0.3s ease-in-out,
        stroke-dashoffset 0.4s ease-in-out,
        stroke-opacity 0.3s ease-in-out;
}

.cls-1 {
  fill: none;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-reveal {
  stroke-dasharray: 10000; /* Large enough to match the full length */
  stroke-dashoffset: 10000;
  animation: draw 10s ease-in-out infinite;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.spim-logo-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 72px;
  padding: 8px;
  background-color: #ffffff;
}

.spim-logo {
  width: 100%;
  height: 100%;
}

svg {
    background: transparent;
    width: 100%;
    height: 100%;
}

path, rect, polygon {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-opacity: 1;
    stroke-dasharray: 10000; 
    stroke-dashoffset: 0;
    filter: 
        drop-shadow(0px 0px 1px rgba(255, 255, 255, 0.75))
        drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.75));
    transform-origin: center;
    transition: 
        stroke 0.3s ease-in-out,
        stroke-width 0.3s ease-in-out,
        stroke-dashoffset 0.4s ease-in-out,
        stroke-opacity 0.3s ease-in-out;
}

.cls-1 {
  fill: none;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.path-reveal {
  stroke-dasharray: 10000; /* Large enough to match the full length */
  stroke-dashoffset: 10000;
  animation: draw 10s ease-in-out infinite;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}