/**
 * Portrait Carousel CSS
 * Custom CSS for portrait-oriented image carousels
 * Updated: Removed all padding, borders, and margins from carousel images
 */

/* Portfolio Header Styles */
.portfolio-detail-header {
    height: 50vh;
    background-image: url('dabareshoot1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.portfolio-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
}

.portfolio-detail-header .container {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

.portfolio-detail-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.portfolio-detail-description {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.back-to-portfolio {
    margin-bottom: 40px;
    display: inline-block;
}

.back-to-portfolio svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Photo Collection Styles */
.photo-collection {
    margin-bottom: 100px;
}

.collection-header {
    margin-bottom: 30px;
}

.collection-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.collection-meta {
    display: flex;
    margin-bottom: 20px;
}

.collection-meta-item {
    margin-right: 30px;
}

.collection-meta-item strong {
    display: inline-block;
    min-width: 100px;
    font-weight: 600;
}

/* Portrait Carousel Styles */
.portrait-carousel-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.portrait-carousel {
    position: relative;
    height: 700px; /* Increased height for better portrait display */
    background-color: #000;
}

.portrait-track {
    display: flex;
    position: absolute;
    left: 0;
    transition: transform 0.5s ease-out;
    height: 100%;
    gap: 10px; /* Reduced gap between slides */
}

.portrait-slide {
    width: 420px; /* Adjusted width for portrait ratio */
    height: 100%;
    padding: 0; /* Removed padding */
    margin: 0; /* Removed margin between slides */
    box-sizing: border-box;
    flex-shrink: 0;
}

.portrait-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserve aspect ratio */
    object-position: center; /* Center the image within its container */
    transition: transform 0.3s ease;
    border: none; /* Removed border */
    box-shadow: none; /* Removed box-shadow */
    outline: none; /* Removed outline */
    padding: 0; /* Removed padding */
    margin: 0; /* Removed margin */
}

.portrait-slide:hover img {
    transform: scale(1.02) !important; /* Added !important to override active state */
}

/* Navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* Active slide highlighting (without borders) */
.portrait-slide.active img {
    transform: scale(1.05);
    box-shadow: none;
    border: none;
    outline: none;
}

/* Make sure active slides still respond to hover */
.portrait-slide.active:hover img {
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 1600px) {
    .portrait-carousel {
        height: 650px;
    }
    
    .portrait-slide {
        width: 380px;
    }
}

@media (max-width: 1200px) {
    .portrait-carousel {
        height: 600px;
    }
    
    .portrait-slide {
        width: 350px;
    }
}

@media (max-width: 992px) {
    .portrait-carousel {
        height: 550px;
    }
    
    .portrait-slide {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .portrait-carousel {
        height: 500px;
    }
    
    .portrait-slide {
        width: 100vw;
        padding: 0;
        margin: 0;
        border: none;
    }
    
    .portrait-slide img {
        border: none;
        box-shadow: none;
        outline: none;
        padding: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .portrait-track {
        gap: 0;
    }
    
    .collection-meta {
        flex-direction: column;
    }
    
    .collection-meta-item {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}