/**
 * Photography Homepage Template Styles
 * For Twenty-Twenty-Five Child Theme
 * 
 * Add this to your child theme's style.css or create a separate CSS file
 */

/* ========================================
   Homepage Layout
   ======================================== */

.photography-home .homepage-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile: stack sidebar below slideshow */
@media (max-width: 968px) {
    .photography-home .homepage-layout {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Slideshow Container
   ======================================== */

.slideshow-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ========================================
   Slide Captions
   ======================================== */

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.caption-text {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.6;
}

.caption-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: border-color 0.3s ease;
}

.caption-link:hover {
    border-bottom-color: #fff;
}

/* ========================================
   Slideshow Navigation Dots
   ======================================== */

.slideshow-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.slide-dot:hover,
.slide-dot.active {
    background-color: #fff;
}

/* ========================================
   Homepage Sidebar
   ======================================== */

.homepage-sidebar {
    padding-top: 0;
}

.homepage-sidebar .widget {
    margin-bottom: 40px;
}

.homepage-sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

/* ========================================
   About Widget
   ======================================== */

.about-widget .about-avatar {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.about-widget .about-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

.about-widget .about-links {
    display: flex;
    gap: 15px;
}

.about-widget .about-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.3s ease;
}

.about-widget .about-links a:hover {
    border-bottom-color: #000;
}

/* ========================================
   Recent Posts Widget
   ======================================== */

.recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.recent-posts-list li {
    margin-bottom: 12px;
}

.recent-posts-list a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.recent-posts-list a:hover {
    border-bottom-color: #000;
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .photography-home .homepage-layout {
        padding: 0 15px;
    }
    
    .slideshow-wrapper {
        min-height: 400px;
    }
    
    .slide-caption {
        padding: 15px 20px;
    }
    
    .caption-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .slideshow-wrapper {
        min-height: 300px;
    }
    
    .slide-caption {
        padding: 10px 15px;
    }
    
    .caption-text {
        font-size: 12px;
    }
}
