/* =========================================
   ADAPTACCESSOIRES — GALAXY GALLERY
   ========================================= */

.aa-gallery {
    position: relative;

    overflow: hidden;

    background: var(--aa-white);
}


/* =========================================
   HEADER
   ========================================= */

.aa-gallery__header {
    position: relative;

    z-index: 5;
}


/* =========================================
   GALAXY
   ========================================= */

.aa-gallery__galaxy {
    position: relative;

    width: 100%;

    max-width: 1100px;

    height: 720px;

    margin: 20px auto 0;
}


/* =========================================
   ORBITS
   ========================================= */

.aa-gallery__orbit {
    position: absolute;

    top: 50%;
    left: 50%;

    border: 1px solid rgba(37, 150, 190, 0.16);

    border-radius: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;
}


.aa-gallery__orbit--one {
    width: 360px;
    height: 360px;

    animation: aaGalaxyRotate 30s linear infinite;
}


.aa-gallery__orbit--two {
    width: 520px;
    height: 520px;

    border-color: rgba(255, 105, 0, 0.14);

    animation: aaGalaxyRotateReverse 40s linear infinite;
}


.aa-gallery__orbit--three {
    width: 680px;
    height: 680px;

    border-color: rgba(37, 150, 190, 0.08);

    animation: aaGalaxyRotate 55s linear infinite;
}


/* =========================================
   CENTER
   ========================================= */

.aa-gallery__center {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 3;

    display: flex;

    width: 150px;
    height: 150px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(37, 150, 190, 0.20);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            var(--aa-primary-light),
            var(--aa-white) 70%
        );

    box-shadow:
        0 15px 50px rgba(37, 150, 190, 0.12);
}


.aa-gallery__center-star {
    margin-bottom: 4px;

    color: var(--aa-secondary);

    font-size: 25px;

    line-height: 1;
}


.aa-gallery__center-text {
    color: var(--aa-dark);

    font-family: var(--aa-font-heading);

    font-size: 19px;

    font-weight: 700;
}


.aa-gallery__center-subtext {
    color: var(--aa-primary);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================
   PRODUCT ITEMS
   ========================================= */

.aa-gallery__item {
    position: absolute;

    z-index: 4;

    display: block;

    width: 150px;

    color: var(--aa-dark);

    text-align: center;

    text-decoration: none;

    transition:
        transform var(--aa-transition),
        z-index 0s;
}


.aa-gallery__item-image {
    display: flex;

    width: 150px;
    height: 150px;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 5px solid var(--aa-white);

    border-radius: 50%;

    background: var(--aa-surface-soft);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.12);

    transition:
        transform var(--aa-transition),
        box-shadow var(--aa-transition);
}


.aa-gallery__item-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform var(--aa-transition-slow);
}


.aa-gallery__item:hover {
    z-index: 10;
}


.aa-gallery__item:hover .aa-gallery__item-image {
    transform: scale(1.08);

    box-shadow:
        0 20px 50px rgba(37, 150, 190, 0.20);
}


.aa-gallery__item:hover .aa-gallery__item-image img {
    transform: scale(1.08);
}


/* =========================================
   PRODUCT NAME
   ========================================= */

.aa-gallery__item-name {
    display: block;

    margin-top: 12px;

    padding-inline: 5px;

    color: var(--aa-dark);

    font-family: var(--aa-font-heading);

    font-size: 15px;

    font-weight: 700;

    line-height: 1.2;
}


/* =========================================
   POSITIONS
   ========================================= */

.aa-gallery__item--1 {
    top: 5%;
    left: 42%;

    animation: aaGalaxyFloatOne 6s ease-in-out infinite;
}


.aa-gallery__item--2 {
    top: 20%;
    right: 8%;

    animation: aaGalaxyFloatTwo 7s ease-in-out infinite;
}


.aa-gallery__item--3 {
    right: 2%;
    bottom: 25%;

    animation: aaGalaxyFloatThree 6.5s ease-in-out infinite;
}


.aa-gallery__item--4 {
    right: 35%;
    bottom: 4%;

    animation: aaGalaxyFloatFour 7.5s ease-in-out infinite;
}


.aa-gallery__item--5 {
    bottom: 20%;
    left: 7%;

    animation: aaGalaxyFloatTwo 6.8s ease-in-out infinite;
}


.aa-gallery__item--6 {
    top: 20%;
    left: 7%;

    animation: aaGalaxyFloatThree 7.2s ease-in-out infinite;
}


.aa-gallery__item--7 {
    top: 43%;
    left: 0;

    animation: aaGalaxyFloatOne 6.4s ease-in-out infinite;
}


/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes aaGalaxyFloatOne {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }

}


@keyframes aaGalaxyFloatTwo {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(13px) rotate(2deg);
    }

}


@keyframes aaGalaxyFloatThree {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10px, -14px);
    }

}


@keyframes aaGalaxyFloatFour {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(17px);
    }

}


@keyframes aaGalaxyRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


@keyframes aaGalaxyRotateReverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1024px) {

    .aa-gallery__galaxy {
        height: 620px;
    }


    .aa-gallery__orbit--three {
        width: 590px;
        height: 590px;
    }


    .aa-gallery__orbit--two {
        width: 460px;
        height: 460px;
    }


    .aa-gallery__item,
    .aa-gallery__item-image {
        width: 125px;
    }


    .aa-gallery__item-image {
        height: 125px;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .aa-gallery__galaxy {
        height: 650px;

        margin-top: 10px;
    }


    .aa-gallery__orbit--one {
        width: 220px;
        height: 220px;
    }


    .aa-gallery__orbit--two {
        width: 360px;
        height: 360px;
    }


    .aa-gallery__orbit--three {
        width: 500px;
        height: 500px;
    }


    .aa-gallery__center {
        width: 110px;
        height: 110px;
    }


    .aa-gallery__center-star {
        font-size: 20px;
    }


    .aa-gallery__center-text {
        font-size: 15px;
    }


    .aa-gallery__center-subtext {
        font-size: 8px;
    }


    .aa-gallery__item,
    .aa-gallery__item-image {
        width: 90px;
    }


    .aa-gallery__item-image {
        height: 90px;

        border-width: 3px;
    }


    .aa-gallery__item-name {
        margin-top: 7px;

        font-size: 11px;
    }


    .aa-gallery__item--1 {
        top: 5%;
        left: 38%;
    }


    .aa-gallery__item--2 {
        top: 18%;
        right: 3%;
    }


    .aa-gallery__item--3 {
        right: 0;
        bottom: 25%;
    }


    .aa-gallery__item--4 {
        right: 34%;
        bottom: 5%;
    }


    .aa-gallery__item--5 {
        bottom: 20%;
        left: 2%;
    }


    .aa-gallery__item--6 {
        top: 18%;
        left: 2%;
    }


    .aa-gallery__item--7 {
        top: 44%;
        left: -2%;
    }

}


/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .aa-gallery__orbit,
    .aa-gallery__item {
        animation: none !important;
    }

}
