/* Stream Blocks CSS */

/* Block container spacing */
.post-stream-content {
    margin-top: 2rem;
}

.post-stream-content .block-richtext {
    margin: 1.5rem 0;
}

.post-stream-content .block-product_release {
    margin: 2rem 0;
}

.post-stream-content .block-gallery {
    margin: 2rem 0;
}

.post-stream-content .block-single_image {
    margin: 2rem 0;
}

/* Product Release Block */
.product-release-block {
    background: #f8f9fa;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.product-release-block .section-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #666;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

.product-release-block .product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
}

.product-details {
    display: grid;
    gap: 0.75rem;
}

.product-details .detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.product-details .detail:last-child {
    border-bottom: none;
}

.product-details .label {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.product-details .value {
    font-weight: 700;
    color: #000;
    text-align: right;
}

/* Single Image Block */
.single-image {
    margin: 2rem auto;
    max-width: 1200px;
    width: 100%;
}

.single-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Gallery Block */
.gallery-block {
    margin: 2rem auto;
    max-width: 1200px;
    width: 100%;
}

.gallery-title {
    text-align: left;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #000;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    height: 600px; /* Increased height for bigger gallery */
}

.gallery-indicators {
    position: absolute;
    top: 0rem;
    right: 0rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 15;
}

.gallery-counter {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: default;
}

.gallery-counter:hover {
    background: rgba(0,0,0,0.9) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.gallery-enlarge {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-enlarge:hover {
    background: rgba(0,0,0,0.9) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.gallery-container {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
    width: 100%;
    touch-action: pan-y pinch-zoom;
}

.gallery-slide {
    min-width: 100%;
    flex-shrink: 0;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-image-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
}

.gallery-caption-area {
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding: 0 1rem 1rem 1rem;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gallery-slide img:hover {
    opacity: 0.9;
}

.gallery-caption {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: right;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: auto;
    max-width: none;
}

.gallery-slide.active .gallery-caption {
    opacity: 1;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 80px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active,
.gallery-dot:hover {
    background: #000;
}

/* Dark mode support */
body.dark-mode .product-release-block {
    background: #1a1a1a;
    border-color: #fff;
}

body.dark-mode .product-release-block .section-title {
    color: #ccc;
}

body.dark-mode .product-release-block .product-name {
    color: #fff;
}

body.dark-mode .product-details .detail {
    border-bottom-color: #444;
}

body.dark-mode .product-details .label {
    color: #ccc;
}

body.dark-mode .product-details .value {
    color: #fff;
}

body.dark-mode .image-caption {
    color: #ccc;
}

body.dark-mode .gallery-caption {
    color: #ccc;
}

body.dark-mode .gallery-title {
    color: #fff;
}

body.dark-mode .gallery-slider {
}

body.dark-mode .gallery-dots {
}

body.dark-mode .gallery-dot {
    background: rgba(255,255,255,0.3);
}

body.dark-mode .gallery-dot.active,
body.dark-mode .gallery-dot:hover {
    background: #fff;
}

body.dark-mode .gallery-counter:hover {
    background: rgba(255,255,255,0.9) !important;
    color: #000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 2px 8px rgba(255,255,255,0.3) !important;
}

body.dark-mode .gallery-enlarge:hover {
    background: rgba(255,255,255,0.9) !important;
    color: #000 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 2px 8px rgba(255,255,255,0.3) !important;
}

/* Gallery Overlay Modal */
.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.gallery-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.gallery-overlay-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.gallery-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.gallery-overlay-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    opacity: 0.8;
}

.gallery-overlay-close:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: translateY(-1px);
}

.gallery-overlay-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 50px;
    height: 80px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gallery-overlay-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}

.gallery-overlay-prev {
    left: 20px;
}

.gallery-overlay-next {
    right: 20px;
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile styles for overlay */
@media (max-width: 768px) {
    .gallery-overlay-close {
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }
    
    .gallery-overlay-nav {
        width: 45px;
        height: 70px;
        font-size: 1.3rem;
    }
    
    .gallery-overlay-prev {
        left: 15px;
    }
    
    .gallery-overlay-next {
        right: 15px;
    }
    

    
    .gallery-overlay-content {
        max-width: 100vw;
        max-height: 100vh;
        padding: 60px 10px 10px 10px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .product-release-block {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .product-release-block .product-name {
        font-size: 1.25rem;
    }
    
    .product-details .detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .product-details .value {
        text-align: left;
    }

    .single-image {
        margin: 1.5rem auto;
    }
    
    .image-caption {
        font-size: 0.85rem;
        margin-top: 0.75rem;
    }

    .gallery-block {
        margin: 1.5rem auto;
    }
    
    .gallery-slider {
        height: 400px; /* Increased mobile height */
    }
    
    .gallery-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 70px;
        font-size: 1.25rem;
    }
    
    .gallery-prev {
        left: 0.5rem;
    }
    
    .gallery-next {
        right: 0.5rem;
    }
    
    .gallery-image-area {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-height: 0;
        position: relative;
    }
    
    .gallery-slide img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        display: block;
        object-fit: contain;
        object-position: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        cursor: pointer;
        transition: opacity 0.2s ease;
    }
    
    .gallery-slide img:hover {
        opacity: 0.9;
    }
    
    .gallery-caption-area {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
    
    .gallery-caption {
        font-size: 0.8rem;
    }
    
    .gallery-indicators {
        top: 0.25rem;
        right: 0.25rem;
        gap: 0.25rem;
    }
    
    .gallery-counter {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    .gallery-enlarge {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
} 