/* ---------- mobile ---------- */

.graph-module {
    margin-bottom: 96px;
}

.graph-module .graph-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.graph-module .graph-wrapper .graph-container h2 {
    text-align: center;
    margin-bottom: 72px;
}

.graph-module .graph-wrapper .graph-container p {
    text-align: center;
    margin-bottom: 72px;
}

.graph-selector {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery {
    padding: 48px;
    box-shadow: 0 0 12px 0 rgba(145, 145, 145, 0.16666);
    border-radius: 32px;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .custom-button {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    color: #000000;
    background-color: #ffffff;
    border: 1px solid black;
    border-radius: 6rem;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    margin-bottom: 48px;
    position: relative;
    display: flex;
    align-items: center;
    max-width: 30rem;
}

.custom-button .arrow {
    position: absolute;
    right: 24px;
    content: "";
    display: inline-block;
    width: 0.33333em;
    height: 0.33333em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.5em;
    vertical-align: middle;
    transition: transform 200ms ease;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 30rem;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    margin-top: 0px;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin: 0 auto;
    text-align: center;
    position: absolute;
    top: calc(16px * 1.33333 + 12px + 12px + 2px + 12px);
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list.visible {
    opacity: 1;
    pointer-events: auto;
    border-radius: 16px;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list li {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list li:last-child {
    border-bottom: none;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list li:hover {
    background-color: #f0f0f0;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list::-webkit-scrollbar {
    display: none;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list {
    scrollbar-width: none;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list::-webkit-scrollbar-track {
    display: none;
}

.graph-module .graph-wrapper .graph-container .graphs-gallery .graph-list::-webkit-scrollbar-thumb {
    display: none;
}

.graph-module .graph-wrapper .graph-container .graph-selector:has(.graph-list.visible) .custom-button .arrow {
    transform: rotate(225deg);
}   

.graph-module .graph-wrapper .graph-container small {
    display: block;
    text-align: center;
    margin-bottom: 12px;
    font-size: 20px;
    font-style: italic;

    &:last-of-type {
        margin-bottom: 0;
    }
}

.graph-module .graph-wrapper .graph-container .graphs-gallery object {
    min-width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 24px;
}

/* ---------- tablet ---------- */

@media screen and (min-width: 48rem) {}

/* ---------- laptop ---------- */

@media screen and (min-width: 90rem) {
    .graph-module {
        margin-bottom: 192px;
    }

    .graph-module .graph-wrapper .graph-container small {
        max-width: 83.33333%;
        margin-bottom: 24px;
        margin: 0 auto 24px auto;

        &:last-of-type {
            margin-bottom: 0;
        }
    }
}