.homephoto-main{
    position:relative;
}

.home-photos-container {
    width: 100%;
    overflow: hidden;
}

.photos-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.3s ease;
    cursor: grab;
}

.photos-wrapper:active {
    cursor: grabbing;
}

.home-photo-container {
    min-width: 100%;
    max-width: 100%;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    cursor: default;
    border-radius:10px;
    overflow: hidden
}

.home-photo-container.active {
    display: block;
}

.home-photo-container.dragging {
    cursor: grabbing;
}

/* Add cursor pointer only when there's a URL */
.home-photo-container a {
    cursor: pointer;
}

.home-photo-container img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    /* Add these to prevent dragging */
    -webkit-touch-callout: none;
    -khtml-user-select: none;
}


.photo-nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 5px;
    max-width: fit-content;
    margin: 4px auto;
}

/* Titles Container */
.photo-titles-container {
    display: flex;
    margin: 0 8px;
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    max-width:fit-content
}

.photo-titles-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.photo-titles-scroll::-webkit-scrollbar {
    display: none;
}

.photo-nav-bar .photo-nav {
    flex-shrink: 0;
}

/* Individual Titles */
.photo-title {
    padding: 4px 24px;
    white-space: nowrap;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
    color: black;
    border-bottom:2px solid transparent;
}

.photo-title.active {
    background: rgba(255, 255, 255, 0.2);
    color: black;
    border-bottom:2px solid #e50146;
}

.photo-title:hover {
    color: #e50146 !important
}

/* Navigation Buttons */
.photo-nav {
    background: transparent;
    color:black;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 0;
    border:1px solid black

}

.photo-nav:hover{
    color: #e50146 !important;
    border-color:  #e50146
}

.photo-nav:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Hide navigation for single photo */
.home-photos-container[data-count="1"] .photo-nav-bar {
    display: none;
}

/* Adjust width based on number of items */
.home-photos-container[data-count="2"] .photo-nav-bar,
.home-photos-container[data-count="3"] .photo-nav-bar {
    width: auto;
}

.home-photos-container[data-count="4"] .photo-nav-bar {
    max-width: 80%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-nav-bar {
        bottom: 10px;
        padding: 6px;
    }

    .photo-title {
        width: 8px;
        height: 8px;
        padding: 0;
        background: #ccc;
        margin: 0 4px;
        font-size: 0;
        border-radius:10px;
        transition:none
    }

    .photo-title.active {
        background: #e50146;
    }

    .photo-titles-scroll {
        gap: 4px;
        align-items: center;
    }

    .home-photo-container {
        aspect-ratio: 1/1;
    }

    .home-photo-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.photo-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    /* Add these to prevent dragging */
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none;
}


/* Add these styles */
.autoplay-indicator {
    position: absolute;
    bottom: 63px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
}

.autoplay-indicator:hover {
    opacity: 0.8;
}

.autoplay-indicator svg {
    transform: rotate(-90deg);
}

.autoplay-indicator circle {
    fill: none;
    stroke: #808080;
    stroke-width: 2;
}

.autoplay-indicator circle.progress {
    stroke: #ffffff;
    stroke-dasharray: 56.5487;
    stroke-dashoffset: 56.5487;
    transition: stroke-dashoffset linear;
}

.link-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
}

.link-indicator img {
    width: 100%;
    height: 100%;
    filter: invert(1);
    mix-blend-mode: difference;
}

.link-indicator:hover {
    opacity: 0.8;
} 