﻿/* Styles for the product gallery */
.ra-product-gallery__main-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    background-color: #EEEEEE;
}

    .ra-product-gallery__main-card a {
        display: block;
    }

.rounded {
    border-radius: 8px;
}

.ra-product-gallery {
    max-width: 800px; 
    /*margin-left: auto;*/ 
    margin-right: auto; 
}

.ra-product-gallery__thumbnails {
    gap: 0.5rem;
    justify-content: center !important;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem; 
}

.ra-product-gallery__thumbnail-link {
    display: block;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    position: relative;
}

.ra-product-gallery__thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ra-product-gallery__see-more-link {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    /*width: 80px;*/ 
    height: 80px; 
    /*border: 1px solid #ccc;*/ 
    /*border-radius: 4px;*/ 
    cursor: pointer;
    color: #333; 
    font-size: 0.9em; 
    position: relative;
    padding-top: 40px;
}

.thumbnail-play-button {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for exact centering */
    z-index: 1; /* Ensure it's above the image */
    width: 30px; /* Adjust this value as needed */
    height: 30px; /* Adjust this value as needed */
    max-width: 100%; /* Prevent it from overflowing if parent is too small */
    object-fit: contain; /* Ensures the image fits within the bounds without stretching */
}

.thumbnail-play-button-big {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for exact centering */
    z-index: 1; /* Ensure it's above the image */
    max-width: 100%; /* Prevent it from overflowing if parent is too small */
    object-fit: contain; /* Ensures the image fits within the bounds without stretching */
}

.ra-product-gallery__installation-link {
    display: block;
}

.ra-product-gallery__installation-placeholder {
    min-height:80px;
}

.rounded-bottom {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.ra-product-gallery__main-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
}

    .ra-product-gallery__main-navigation button {
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 8px;
        border-radius: 5px;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }

.ra-product-gallery__main-card:hover .ra-product-gallery__main-navigation button {
    opacity: 1;
}

.ra-product-gallery__main-navigation svg {
    width: 1.2em;
    height: 1.2em;
    display: block;
}

.ra-button--icon {
    min-width: auto;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .ra-product-gallery__thumbnails {
        justify-content: center;
    }

    .ra-product-gallery__thumbnail-link {
        width: 80px; 
        flex: 0 0 auto; 
        margin-right: 0.5rem;
    }

    .ra-product-gallery__thumbnails > *:last-child {
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .ra-product-gallery__thumbnails {
        flex-direction: row;
        align-items: center;
    }

    .ra-product-gallery__thumbnail-link {
        width: 70px; 
        height: auto; 
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }

    .ra-product-gallery__thumbnails > *:last-child {
        margin-right: 0;
    }

    .ra-product-gallery__see-more-link {
        display: flex;
        justify-content: center;
        align-items: center;
        /*width: 70px;*/
        height: 70px;
        /*border: 1px solid #ccc;*/
        border-radius: 4px;
        cursor: pointer;
        color: #333;
        font-size: 0.9em;
        position: relative;
        padding-top: 35px;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .ra-product__gallery-container {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        margin-top: 0;
        margin-bottom: 0;
        max-width: 60%;
    }

    .ra-product-gallery__thumbnails {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        padding-bottom: 0;
        gap: 0.25rem;
    }

    .ra-product-gallery__thumbnail-link {
        width: 50px; 
        margin-right: 0.1rem;
    }

    .typo-body-small {
        margin-top: 0.25rem;
        margin-bottom: 0.1rem;
        font-size: 0.7em; 
    }

    .ra-product-gallery__main-card {
        max-height: 250px;
        margin-bottom: 0.25rem;
    }
}
.ra-badge {
    position: absolute;
    z-index: 10; 
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    pointer-events: none; 
}

.ra-badge--primary {
    background-color: var(--content-primary); 
}

.ra-badge--accent {
    background-color: var(--primitives-accent);
    color: var(--content-primary);
}

.ra-badge--top-left {
    top: 10px;
    left: 10px;
}

.ra-badge--top-right {
    top: 10px;
    right: 10px;
}
.ra-product-page-reviews-tag
{
    margin-bottom : 20px;
}