body {
    background-color: #f8f8f8;
    text-align: center;
    justify-items: center;
    align-content: center;
    align-items: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
    padding-top: 125px;
}

footer {
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    color: rgba(0, 0, 0, 0.5);
    font-size: 20px;
    font-style: italic;
    font-family: Helvetica;
    text-align: center;
}

h3 {
    color: rgb(0, 0, 0);
    font-size: 25px;
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

h4  {
    color: rgb(0, 0, 0);
    font-size: 16px;
    font-style: Bold;
    font-family: Helvetica;
    text-align: center;
}

h4:hover {
    color: rgb(25, 144, 255);
}

p {
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 10px;
}

a {
    color: rgb(177, 11, 11);
    text-decoration: none;
    font-size: 30px;
}

a:hover {
    color: rgb(123, 1, 1);
}

.selector {
    display: grid;
    width: 95%;
    padding: auto;
    margin: 30px auto;
    grid-template-columns: repeat(auto-fill, minmax(200px, 500px));
    justify-content: center;
    align-content: center;
    align-items: center;
    text-align: center;
    gap: 20px 20px;
}

.topbar {
    background-image: url('./media/nickleoutwebsitebanner.jpg');
    background-size:cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 400px;
    margin: -190px 0 0 0;
}

#galleryheader {
    background-image: url('./media/VGtransp.png');
    background-color: #f8f8f8f8;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 30%;
    padding: 0px 15%;
    height: 100px;
    margin: 25px auto;
    position: fixed;
    top: 0;
    left: 21%;
    z-index: 1000;
    box-shadow: 0 0 30px #f8f8f8d0, 0 0 50px #f8f8f8c4, 0 0 75px #f8f8f8a8;
    border-radius: 25px;
    animation: gentle-float 4s ease-in-out infinite;
}

/*
.desktop {
    border: 2px solid red;
}
*/

#folder_pics {
    width: 20%;
    position: fixed;
    right: 60%;
    top: 40%;
}

#folder_pics:hover {
    background-color: aliceblue;
    border: 2px solid rgb(154, 210, 255)
}

#folder_vids {
    width: 20%;
    position: fixed;
    top: 25%;
    left: 60%;
}

#folder_vids:hover {
    background-color: aliceblue;
    border: 2px solid rgb(154, 210, 255)
}

/*taskbar icons*/

.taskbar {
    overflow: hidden;
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 275px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(233, 233, 233);
    box-shadow: 8px 6px 9px rgba(170, 170, 170, 0.5);
    border: 1px solid rgb(150, 150, 150);
    border-radius: 10px;
    padding: 10px 0;
    z-index: 2100;
    transition: all 0.5s ease;
}

.taskbar.expanded {
    width: 645px;
}

#ig {
    display: none;
    width:auto;
    height: 125px;
    border: 4px solid rgb(170, 170, 170);
    border-style: outset;
    border-radius: 10px;
    background-image: url('./media/firmanewnickleout.png');
    background-size: contain;
    background-position: center;
    aspect-ratio: 1;
}

#ig:hover {
    border-style: inset;
}

#back {
    width:250px;
    height: 125px;
    background-image: url(./media/arrow_back.png);
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: 35% center;
    border: 4px solid rgb(170, 170, 170);
    border-style: outset;
    border-radius: 10px;
    aspect-ratio: 2;
    animation: all 0.5s ease;
}

#back:hover {
    border-style: inset;
}

#top {
    width:auto;
    height: 125px;
    border: 4px solid rgb(170, 170, 170);
    border-style: outset;
    border-radius: 10px;
    background-image: url('./media/arrow_up.png');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1;
    animation: fadeInSlideUp 0.5s ease;
    
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#top:hover {
    border-style: inset;
}

/* Mobile navigation buttons */
.mobile-nav-button {
    width: auto;
    height: 125px;
    border: 4px solid rgb(170, 170, 170);
    border-style: outset;
    border-radius: 10px;
    background-color: rgb(233, 233, 233);
    color: black;
    font-size: 48px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 999;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left-bottom;
}

.mobile-nav-button:hover {
    border-style: inset;
}

#mobile-prev-button {
    order: -1;
}

#mobile-prev-button.visible {
    opacity: 1;
    pointer-events: auto;
    animation: appear 0.4s ease;
    transform: scaleX(1);
    position: relative;
    overflow: hidden;
}

#mobile-prev-button.visible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./media/arrow_up.png');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
    z-index: -1;
}

#mobile-next-button {
    order: 10;
    align-self: center;
}

#mobile-next-button.visible {
    opacity: 1;
    pointer-events: auto;
    animation: appear 0.4s ease;
    transform: scaleX(1);
    position: relative;
    overflow: hidden;
    align-self: center;
}

#mobile-next-button.visible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./media/arrow_up.png');
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(90deg);
    z-index: -1;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: scale(0.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#folder_postcards {
    width: 18.5%;
    position: absolute;
    top: 55%;
    right: 15%;
}

#folder_postcards:hover {
    background-color: aliceblue;
    border: 2px solid rgb(154, 210, 255)
}

#folder_analog {
    width: 25%;
    position: absolute;
    top: 45%;
    left: 10%;
}

#folder_analog:hover {
    background-color: aliceblue;
    border: 2px solid rgb(154, 210, 255)
}

#folder_greece {
    width: 28%;
    position: absolute;
    top: 23%;
    left: 45%;
}

#folder_greece:hover {
    background-color: aliceblue;
    border: 2px solid rgb(154, 210, 255)
}

#filmgold {
    width: 25%;
    position: absolute;
    top: 15%;
    left: 32%;
    transition: transform 0.3s ease;
}

#filmgold:hover {
    transform: scale(1.2);
}

#filmportra4 {
    width: 25%;
    position: absolute;
    top: 30%;
    right: 7%;
    transition: transform 0.3s ease;
}

#filmportra4:hover {
    transform: scale(1.2);
}

#filmultramax {
    width: 25%;
    position: absolute;
    top: 35%;
    left: 10%;
    transition: transform 0.3s ease;
}

#filmultramax:hover {
    transform: scale(1.2);
}

#filmsuperia {
    width: 25%;
    position: absolute;
    top: 42%;
    left: 40%;
    transition: transform 0.3s ease;
}

#filmsuperia:hover {
    transform: scale(1.2);
}

#filmtmax {
    width: 25%;
    position: absolute;
    top: 55%;
    left: 70%;
    transition: transform 0.3s ease;
}

#filmtmax:hover {
    transform: scale(1.2);
}

#filmretro {
    width: 30%;
    position: absolute;
    top: 57%;
    left: 15%;
    transition: transform 0.3s ease;
}

#filmretro:hover {
    /*background-color: aliceblue;
    border: 2px solid rgb(154, 210, 255);*/
    transform: scale(1.2);
}

#collection {
    font-family: Helvetica, sans-serif;
    font-size: 30pt;
    /* font-style: oblique; */
    font-weight:600;
    /* text-decoration: underline 3px; */
    color: black;
    margin-top: 10px;
}

.showcase {
    width: auto;
    top: 0;
    padding: 0px;
    text-align: center;
}

#img {
    height: 0px;
    max-width: 95%;
    transition: height 0.3s ease;
}

#img[src]:not([src=""]) {
    width: auto;
    height: 400px;
    object-fit: contain;
}

#name {
    font-family: Arial, Helvetica, sans-serif;
    font-style: italic;
    color: black;
}

.detaildisplay {
    display: none;
}

.imagedisplay {
    display: flexbox;
    flex-flow: row wrap;
    text-align: center;
    align-items: center;
    justify-items: center;
}

#thumbnail {
    max-width: 25%;
    margin: 20px;
    /* border: 2px solid black; */
    transition: transform 0.4s ease;
}

#thumbnail:hover {
    /* border: 5px solid rgb(154, 210, 255); */
    transform: scale(1.1);
}

.galleryvid {
    text-align: center;
    border: 2px solid rgb(154, 210, 255);
    border-radius: 20px;
    padding: 20px 0;
    margin: 20px 0;
}

button {
    font-size: 20px;
    font-weight: bold; 
    border:2px solid rgb(0, 0, 0);
    border-radius: 10px;
    width: 200px;
    height: 50px;
}

button:hover {
    background-color: rgb(209, 209, 209);
}

iframe {
    width: 95%;
    border-radius: 10px;
}

.virtgalleryselector {
    height: auto;
    min-height: 50vh;
    margin: 50px auto;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.marchive {
    border: 3px solid black;
    border-radius: 20px;
    background-image: url('./logos/marchivebanner.png');
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
    height: 300px;
    width: 100%;
}

.marchive:hover {
    border: 3px solid rgb(245, 227, 25);
    background-image: url('./logos/marchivehover.png');
}

.twistdiv {
    background-image: url('./logos/possibletwistlogo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 500px;
    width: 100%;
    grid-area: 2 / 2 / 3 / 3;
    text-align: center;
    border: 3px solid rgb(0, 0, 0);
    border-radius: 20px;
    margin: 20px auto;
    padding: auto;
}

.twistdiv:hover {
    background-image: url('./logos/twistlogoV2.png');
    border: 3px solid rgb(177, 11, 11);
}

.gallerydiv {
    background-image: url('./logos/VGSqr.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 300px;
    width: 100%;
    grid-area: 1 / 1 / 2 / 2;
    text-align: center;
    border: 3px solid rgb(0, 0, 0);
    border-radius: 20px;
    margin: 20px auto;
    padding: 0; 
}

.gallerydiv:hover {
    background-image: url('./logos/VGSqr2.png');
    border: 3px solid rgb(151, 198, 214);
}

.twist {
    width: 400px;
    height: 400px;
    border-radius: 20px;
}

.twistback {
    background-color: #e0e0e0;
}

.centered {
    text-align: center;
}


.videos {
    text-align: center;
    width: 75%;
    margin: 0 auto;
    padding: 4px 0;
}

#VidTitle {
    display: none;
}

/* Mobile and tablet layout - keep videos centered */
@media only screen and (max-width: 1080px) {
    .videos {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .video-row {
        width: 100%;
        display: block;
        position: relative;
    }

    .galleryvid {
        width: 100%;
        max-width: 720px;
        margin: 20px 0;
        position: relative;
    }

    .video-description {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        background-color: rgba(154, 210, 255, 0.1);
        border: 2px solid rgb(154, 210, 255);
        border-radius: 10px;
        margin: 10px 0 20px 0;
        padding: 0 20px;
        box-sizing: border-box;
        width: 100%;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .video-description.mobile-expanded {
        max-height: 400px;
        opacity: 1;
        padding: 20px;
    }

    .video-description h3 {
        font-size: 28px;
        margin: 0;
        color: rgb(0, 0, 0);
    }

    .video-description p {
        font-size: 20px;
        line-height: 1.4;
        margin: 0 0 10px 0;
        color: rgb(50, 50, 50);
    }

    .mobile-description-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 95%;
        max-width: 720px;
        padding: 12px;
        background-color: rgba(154, 210, 255, 0.8);
        border: 2px solid rgb(154, 210, 255);
        border-radius: 10px;
        margin: 10px 2.5%;
        cursor: pointer;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 20px;
        font-weight: bold;
        color: rgb(0, 0, 0);
        transition: background-color 0.3s ease, transform 0.2s ease;
        box-sizing: border-box;
    }

    .mobile-description-toggle:hover {
        background-color: rgba(154, 210, 255, 1);
        transform: translateY(-1px);
    }

    .mobile-description-toggle:active {
        transform: translateY(0);
    }

    .toggle-text {
        font-size: 14px;
    }

    .toggle-icon {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    #VidTitle {
        display: none;
    }
}

#spacer {
    height: 100px;
}

#pics {
    border: 2px solid black;
    border-radius: 5px;
    background-image: url(./logos/Pictures.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 300px;
    aspect-ratio: 1.5;
    margin: 20px;
}

#pics:hover {
    border: 3px solid rgb(154, 210, 255);
    box-shadow: 10px 5px 10px rgb(154, 210, 255);
    background-image: url(./logos/PicturesHvr.png);
}

#vids {
    border: 2px solid black;
    border-radius: 5px;
    background-image: url(./logos/Videos.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 300px;
    aspect-ratio: 1.5;
    margin: 20px;
}

#vids:hover {
    border: 3px solid rgb(154, 210, 255);
    box-shadow: 10px 5px 10px rgb(154, 210, 255);
    background-image: url(./logos/VideosHvr.png);
}

#piccollection {
    border: 2px solid black;
    border-radius: 5px;
    /* background-image: url(./logos/Pictures.png); */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 200px;
    aspect-ratio: 1.5;
    margin: 20px;
}

#piccollection:hover {
    border: 3px solid rgb(154, 210, 255);
    box-shadow: 10px 5px 10px rgb(154, 210, 255);
    /*background-image: url(./logos/VideosHvr.png);*/
}

#muchotexto {
    width: 90%;
    text-align: center;
    margin: 100px auto;
}

#twistheader {
    background-image: url('./media/twistlogotransp.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 90%;
    height: 150px;
    margin: 0px auto;
    margin-bottom: 20px;
    margin-top: -150px;
}

#twistfonts {
    border: 0px solid rgb(177, 11, 11);
    width: 100%;
    margin: auto;
}

#twistrender {
    border: 0px solid rgb(177, 11, 11);
    width: 100%;
    margin: 0;
}

#twistwb {
    border: 2px solid rgb(177, 11, 11);
    background-color: rgb(255, 255, 255);
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 2;
    grid-template-rows: 3;
    gap: 20px;
    padding: 20px 0px;
}
.twistvid {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 10px;
    overflow: hidden;
}

.twistvid iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.postit {
    border: 1px solid rgb(0, 0, 0);
    border-radius: 2px;
    width: 45%;
    margin: 0 20px;
    position: relative;
    top: 0;
    filter: grayscale(100%);
    /*transition: all 0.5s ease;*/
}

.postit:hover {
    border: 2px solid rgb(177, 11, 11);
    cursor: pointer;
}

.postit#CAfragment1 {
    rotate: 6deg;
    right: 25%;
}

.postit#CAfragment2 {
    rotate: -3deg;
    left: 25%;
}


/*
#recap22 {
    text-align: center;
    border: 2px solid rgb(154, 210, 255);
    border-radius: 20px;
    padding-bottom: 20px;
    margin: 20px 0;
}

#Almeria23 {
    text-align: center;
    border: 2px solid rgb(154, 210, 255);
    border-radius: 20px;
    padding-bottom: 20px;
    margin: 20px 0;
}

#LilVolcano {
    text-align: center;
    border: 2px solid rgb(154, 210, 255);
    border-radius: 20px;
    padding-bottom: 20px;
    margin: 20px 0;
} */

#prefoot {
    text-align: center;
    margin: 40px auto;
}

@keyframes move-background {
    from {
        background-position: 50% 0%;
    }
    to {
        background-position: 50% 100%;
    }
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

#marchiveheader {
    height: 200px;
    border: 5px solid rgb(0, 0, 0);
    background-image: url(./logos/marchivebanner.png);
    background-size:15%;
    background-repeat: repeat;
    background-position: center;
}

#marchiveheader:hover {
    animation: 7s linear move-background;
}

#marchivesubmissions {
    width: 80%;
    border: 3px solid black;
    padding: 20px;
    padding-bottom: 40px;
    margin: 100px auto;
}

#sendsubmission {
    height: 40px;
    font-size: 12pt;
    background-color: rgb(240, 240, 240);
    border: 1px solid black;
    border-radius: 15px;
}

#sendsubmission:hover {
    border: 2px solid rgb(245, 227, 25);
    color: rgb(245, 227, 25);
    background-color: rgb(252, 255, 170);
}

#archivepics {
    display: grid;
    gap: 30px;
    margin: 100px 10px;
    grid-template-columns: repeat(auto-fill, 30%);
    grid-template-rows: auto;
    align-content: center;
    align-items: center;
    justify-content: center;
}

#mpic {
    width: 50%;
    border: 3px solid rgb(0, 0, 0);
    filter: grayscale(60%);
}

#mpic:hover {
    filter: grayscale(0%);
}

/* check if the screen size is at least 1080px */
@media only screen and (min-width: 1080px) {

    #galleryheader {
        width: 25%;
        left: 22.5%
    }

    .detaildisplay {
        display:none;
    }
    #thumbnail:hover {
        border: 2px black solid;
    }

    #filmgold {
        width: 15%;
        position: absolute;
        top: 30%;
        left: 52%;
    }
    
    #filmportra4 {
        width: 15%;
        position: absolute;
        top: 27%;
        right: 7%;
    }
    
    #filmultramax {
        width: 15%;
        position: absolute;
        top: 30%;
        left: 10%;
    }
    
    #filmsuperia {
        width: 15%;
        position: absolute;
        top: 25%;
        left: 30%;
    }
    
    #filmtmax {
        width: 15%;
        position: absolute;
        top: 50%;
        left: 60%;
    }
    
    #filmretro {
        width: 20%;
        position: absolute;
        top: 50%;
        left: 25%;
    }
    
    .videos {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .video-row {
        width: 100%;
        display: flex;
        align-items: stretch;
        margin: 40px 0;
        position: relative;
        gap: 30px;
    }

    .galleryvid {
        width: 60%;
        margin: 0;
    }

    .video-description {
        width: 30%;
        background-color: rgba(154, 210, 255, 0.1);
        border: 2px solid rgb(154, 210, 255);
        border-radius: 20px;
        padding: 20px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .video-description h4 {
        font-size: 24px;
        font-weight: bold;
        margin: 0 0 15px 0;
        color: rgb(0, 0, 0);
    }

    .video-description p {
        font-size: 18px;
        line-height: 1.4;
        margin: 0;
        color: rgb(50, 50, 50);
    }

    /* Alternating positioning for desktop */
    .video-row:nth-of-type(odd) {
        justify-content: center;
        margin: 40px auto;
        width: 90%;
    }

    .video-row:nth-of-type(odd) .galleryvid {
        order: 1;
    }

    .video-row:nth-of-type(odd) .video-description {
        order: 2;
    }

    .video-row:nth-of-type(even) {
        justify-content: center;
        margin: 40px auto;
        width: 90%;
    }

    .video-row:nth-of-type(even) .galleryvid {
        order: 2;
    }

    .video-row:nth-of-type(even) .video-description {
        order: 1;
    }

    .mobile-description-toggle {
        display: none;
    }

    #folder_pics {
        width: 12%;
        top: 35%;
        left: 30%;
    }

    #folder_vids {
        width: 12%;
        top: 45%;
        right: 30%;
    }

    #folder_postcards {
        width: 12%;
        top: 55%;
        right: 15%;
    }
    
    #folder_analog {
        width: 18%;
        top: 45%;
        left: 10%;
    }
    
    #folder_greece {
        width: 19%;
        top: 33%;
        left: 40%;
    }

    #image-zoom-content {
        height: 65%;
    }
}

/* Dynamic Carousel Styles */
.carousel-container {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 50px 0;
}

.carousel {
    display: flex;
    align-items: center;
    gap: -120px;
    padding: 40px;
}

.carousel-item {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    border: 3px solid rgb(177, 11, 11);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease 50ms;
    position: relative;
    z-index: 1000;
    margin-left: -120px;
    box-shadow: 0 6px 20px rgba(177, 11, 11, 0.2);
    transform: rotate(-2deg);
}

.carousel-item:nth-child(2n) {
    transform: rotate(1deg);
}

.carousel-item:nth-child(3n) {
    transform: rotate(-1deg);
}

.carousel-item:nth-child(4n) {
    transform: rotate(2deg);
}

.carousel-item:first-child {
    margin-left: 0;
}

.carousel-item:hover {
    transform: scale(1.15) translateY(-15px) rotate(0deg);
    z-index: 10;
    margin-left: 40px;
    margin-right: 40px;
    box-shadow: 0 12px 40px rgba(177, 11, 11, 0.4);
    border-color: rgb(150, 8, 8);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 250, 250, 1));
}

.carousel-item:hover + .carousel-item {
    margin-left: 20px;
}

/* Selected item styles */
.carousel.has-selection .carousel-item {
    margin-left: -160px;
    transition: all 0.6s ease;
}

.carousel.has-selection .carousel-item:first-child {
    margin-left: 0;
}

.carousel.has-selection .carousel-item:not(.selected) {
    transform: scale(0.85) rotate(-3deg);
    opacity: 0.7;
    z-index: 1;
}

.carousel-item.selected {
    transform: scale(1.5) translateY(-10px) rotate(0deg) !important;
    z-index: 1005 !important;
    margin-left: 60px !important;
    margin-right: 60px !important;
    box-shadow: 0 15px 25px rgba(177, 11, 11, 0.5) !important;
    border-color: rgb(150, 8, 8) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 250, 250, 1)) !important;
}

.carousel-item.selected + .carousel-item {
    margin-left: 40px;
}

.item-content {
    text-align: center;
    padding: 20px 5px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-content h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: rgb(177, 11, 11);
}

.item-content p {
    margin: 0;
    font-size: 14px;
    color: rgb(100, 100, 100);
    text-align: center;
}

/* Audio component styling */
.item-content audio {
    width: 90%;
    max-width: 90%;
}

/*mobile*/
@media only screen and (max-width: 1080px) {

    #image-zoom-overlay {
        /* Mobile: push image further down */
        padding-top: 20% !important;
        padding-bottom: 15%; /* Ensure image isn’t covered by taskbar */
        width: 100%;
    }

    /* Make spotlight image taller on mobile */
    #image-zoom-content {
        max-height: 67%;
        /*min-width: 67%;*/
        max-width: 100%;
    }
 
    .carousel-container {
        height: auto;
        margin: 30px 0;
        padding: 20px;
        overflow: visible;
        scroll-behavior: smooth;
    }
    .carousel {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 20px;
        padding: 20px 0;
        width: 100%;
        align-items: center;
    }
    .carousel-item {
        width: 50%;
        height: auto;
        aspect-ratio: 1;
        margin-left: 0;
        margin-top: -100px;
        flex: 0 0 auto;
        transform: rotate(-1deg);
    }
    .carousel-item:nth-child(2n) {
        transform: rotate(1deg);
    }
    .carousel-item:nth-child(3n) {
        transform: rotate(-0.5deg);
    }
    .carousel-item:nth-child(4n) {
        transform: rotate(1.5deg);
    }
    .carousel-item:first-child {
        margin-top: 0;
        margin-left: 0;
    }
    .carousel-item:hover {
        transform: scale(1.05) rotate(0deg);
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
    }
    .carousel-item:hover + .carousel-item {
        margin-top: 0;
        margin-left: 0;
    }
    .item-content {
        padding: 15px;
    }
    .item-content h4 {
        font-size: 16px;
    }
    .item-content p {
        font-size: 12px;
    }
    /* Mobile selected item styles */
    .carousel.has-selection .carousel-item {
        margin-top: 0;
        margin-left: 0;
        transition: all 0.6s ease;
    }
    .carousel.has-selection .carousel-item:first-child {
        margin-top: 0;
        margin-left: 0;
    }
    .carousel.has-selection .carousel-item:not(.selected) {
        transform: scale(0.9) rotate(-1deg);
        opacity: 0.7;
    }
    .carousel-item.selected {
        transform: scale(1.4) rotate(0deg) !important;
        z-index: 1005 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .carousel-item.selected + .carousel-item {
        margin-top: 0;
        margin-left: 0;
    }
}

/* Image zoom overlay */
#image-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: flex-start; /* start from top so image isn't blocked by taskbar */
    padding-top: 50px; /* give space for fixed header */
    z-index: 2000;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
    display: flex; /* keep flex for alignment */
}

#image-zoom-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#image-zoom-content {
    max-width: 90%;
    cursor: default;
    transform: scale(0.8);
    transition: transform 0.4s ease-in-out;
}

#image-zoom-overlay.visible #image-zoom-content {
    transform: scale(1);
}

/* Navigation buttons for image gallery */
.nav-button {
    position: absolute;
    align-items: center;
    justify-content: center;
    align-content: center;
    height: 80px;
    width: 80px;
    /*  top: 50%; */
    /* transform: translateY(-50%); */
    background: rgba(255, 255, 255, 0);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    color: white;
    font-size: 50px;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 2001;
}

.nav-button:hover {
    background: rgba(150, 200, 255, 0.5);
    border: 2px solid rgb(154, 210, 255);
    border-radius: 10px;
}

#prev-button {
    display: none;
    left: 10%;
}

#next-button {
    display: none;
    right: 10%;
}

#prev-button.visible {
    display: block;
    left: 10%;
}

#next-button.visible {
    display: block;
    right: 10%;
}