.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;
}

.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;
}

/* Navigation Bar - position it outside the sliding area */
.photo-nav-bar {
    position: absolute;
    bottom:10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    opacity: 0.8;
    max-width: 90%;
    margin: 0 auto;
    justify-content: center;
}

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

.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 12px;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.3s ease;
}

.photo-title.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Navigation Buttons */
.photo-nav {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    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;

}

.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 {
        padding: 0;
        margin: 0 4px;
        transition: all 0.3s ease;
    }

    .photo-title.active {
        width: auto;
        height: auto;
        padding: 3px 10px;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.2);
        font-size: 12px;
        margin: 0 4px;
    }

    .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;
}

/* Hover effect for navbar */
.home-photos-container:hover .photo-nav-bar {
    opacity: 0.3;
}

.photo-nav-bar:hover {
    opacity: 1 !important;
}

/* Add these styles */
.autoplay-indicator {
    position: absolute;
    bottom: 10px;
    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;
} 