/* Photo.tpl
============================================================ */

.customer-photos .grid {
    border: 1px solid var(--lightblue);
    border-radius: 4px;
    border-bottom: 0;
}

.customer-photos .grid .table-head {
    background-color: var(--lightblue);
    font-weight: 700;
}

.customer-photos .grid .table-head div:first-child {
    border-right: 1px solid white;
}

.customer-photos .grid .grid-row {
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
    border-bottom: 1px solid var(--lightblue);
}

.customer-photos .grid .grid-row div {
    padding: 10px;
    min-width: 0;
}

.customer-photos .grid .grid-row div:last-child {
    border-left: 1px solid var(--lightblue);
}

@media (max-width: 767px) {
    .customer-photos {
        padding-top: 30px;
    }

    .customer-photos .grid .grid-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-photos .grid .grid-row .btn {
        text-transform: inherit;
        font-weight: 400;
        padding: 5px 8px;
    }

    .customer-photos .grid .grid-row:not(.table-head) div:first-child {
        border-right: 1px solid var(--lightblue);
    }

    .customer-photos .grid .grid-row div:last-child {
        border-left: 0;
    }
}

/* Upload.tpl
============================================================ */

.upload-form {
    border: 1px solid var(--lightblue);
    border-radius: 4px;
    padding: 15px;
}

.upload-form input[type="file"] {
    padding: 0;
    border: 0;
    border-radius: 0;
}

.back-to-list {
    display: block;
    width: fit-content;
    margin-top: 30px;
}

@media (max-width: 767px) {
    #module-customerphotos-upload h1 {
        padding-top: 30px;
    }
}

/* Hook Customer_photos.tpl
============================================================ */

.customer-photos-carousel {
    padding: 0 15px;
    margin: 80px 0;
}

.customer-photos-carousel .title {
    text-align: center;
    font-family: "new-spirit", sans-serif;
    font-size: 30px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary);
}

.customer-photos-carousel .title .highlight {
    color: var(--primary);
}

.customer-photos-carousel .description {
    max-width: 450px;
    display: block;
    margin: 0 auto;
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--secondary);
}

.customer-photos-carousel .swiper-button-prev {
    left: 30px;
}

.customer-photos-carousel .swiper-button-next {
    right: 30px;
}

.customer-photos-carousel .swiper-button-prev::after,
.customer-photos-carousel .swiper-button-next::after {
    content: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" viewBox="0 0 35 35"><g id="Fleche_carrousel_photo" data-name="Fleche carrousel photo" transform="translate(35 35) rotate(180)" opacity="0.8"><g id="Ellipse_15" data-name="Ellipse 15" fill="%23fff" stroke="%2318546a" stroke-width="1"><circle cx="17.5" cy="17.5" r="17.5" stroke="none"/><circle cx="17.5" cy="17.5" r="17" fill="none"/></g><path id="Icon_ionic-ios-arrow-back" data-name="Icon ionic-ios-arrow-back" d="M2.573,7.462,8.221,1.818A1.067,1.067,0,0,0,6.71.312L.311,6.706A1.065,1.065,0,0,0,.28,8.177l6.426,6.439A1.067,1.067,0,0,0,8.216,13.11Z" transform="translate(23.039 24.964) rotate(180)" fill="%2318546a"/></g></svg>');
}

.customer-photos-carousel .swiper-button-next::after {
    rotate: 180deg;
}

.customer-photos-carousel .swiper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.customer-photos-carousel .swiper-slide {
    border-radius: 8px;
    position: relative;
    aspect-ratio: 1/0.6;
}

.customer-photos-carousel .swiper-slide::before {
    content: '';
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    border: 2px solid white;
    border-radius: 8px;
    position: absolute;
    top: 12.5px;
    left: 12.5px;
}

.customer-photos-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}