/* Gallery Navigation Controls for Debate Items */

/* Top navigation (hover controls) */
.gallery-component:hover .top-nav-wrapper {
    display: flex;
    opacity: 1;
    justify-content: center;
    align-items: center;
    float: left;
    position: absolute;
    z-index: 2;
    height: 42px;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.top-nav-wrapper {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
    align-items: center;
}

.nav-item {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(54, 54, 54, 0.4);
    color: #FFF;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item:nth-child(1) {
    border-bottom-left-radius: 20px;
    border-top-left-radius: 20px;
}

.nav-item:nth-child(4) {
    width: 50px;
    height: 50px;
    background-color: rgb(54, 54, 54, 0.8);
    font-size: 25px;
    font-weight: bold;
    pointer-events: none;
}

.nav-item:nth-last-child(1) {
    border-bottom-right-radius: 20px;
    border-top-right-radius: 20px;
}

.nav-item:hover {
    background-color: rgb(54, 54, 54, 0.8);
}

/* Arrow navigation */
.component-image-navigation {
    position: absolute;
    width: 100%;
    height: 40px;
    top: 40%;
    display: flex;
    z-index: 2;
    align-items: center;
}

.previous-image-nav-button {
    position: absolute;
    left: 5px;
    top: calc(40% - 20px);
    width: 40px;
    height: 40px;
    background-image: var(--list_sprite_image);
    background-size: var(--list_sprite_size);
    background-position: -120px -480px;
    transform: rotate(-90deg);
    cursor: pointer;
    z-index: 1;
    display: none;
}

.next-image-nav-button {
    position: absolute;
    right: 5px;
    top: calc(40% - 20px);
    width: 40px;
    height: 40px;
    background-image: var(--list_sprite_image);
    background-size: var(--list_sprite_size);
    background-position: -120px -480px;
    transform: rotate(90deg);
    cursor: pointer;
    z-index: 1;
}

/* Thumbnail navigation */
.thumbnail-navigation-wrapper {
    position: absolute;
    width: 100%;
    height: 40px;
    bottom: 1rem;
    display: flex;
    align-items: center;
}

.thumbnails-list {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-component:hover .thumbnails-list {
    display: flex;
    opacity: 1;
    justify-content: center;
    gap: 10px;
    align-items: center;
    float: left;
    position: absolute;
    z-index: 2;
    height: 42px;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    background-color: transparent;
}

.component-thumbnail {
    margin-bottom: 10px;
    width: 40px;
    height: 40px;
    opacity: .6;
    cursor: pointer;
    transition: opacity 0.3s ease, display 0.3s ease;
}

.component-thumbnail.active {
    opacity: 1;
}

/* Dot navigation */
.thumbnails-dot-list {
    position: absolute;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-component:hover .thumbnails-dot-list {
    display: none;
}

.thumbnail-dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.thumbnail-dot:nth-child(1) {
    background-color: rgb(91, 171, 249);
}

/* Images list */
.images-list {
    width: 100%;
}

.images-list getty-image {
    width: 100%;
}

.images-list iframe {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    width: 100%;
    margin-left: unset !important;
    margin-top: unset !important;
    display: block;
}

.getty-image {
    display: block;
    width: 100% !important;
}

.images-list li {
    display: none;
}

.images-list li:nth-child(1) {
    display: block;
}

.embed-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
}

/* Play button for slideshow */
.thumbnails-navigation-play-button {
    display: none;
}

.gallery-component:hover .thumbnails-navigation-play-button {
    display: block;
    cursor: pointer;
    float: right;
    width: 30px;
    height: 30px;
    background-image: var(--list_sprite_image);
    background-size: var(--list_sprite_size);
    background-position: -40px -40px;
    transition: opacity 0.3s ease, display 0.3s ease;
}

/* Maximize button */
.content-max-mode-wrapper {
    display: block;
    position: absolute;
    right: 10px;
    padding: 5px;
    background-color: var(--black_transparent);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--white_shadow);
    z-index: 2;
    transition: var(--btn_bgcolor_animation);
}

.maximize-button {
    display: block;
    cursor: pointer;
    float: right;
    width: 30px;
    height: 30px;
    background-image: var(--list_sprite_image);
    background-size: var(--list_sprite_size);
    background-position: -40px 0;
    transform: scale(.9);
    transition: all .3s;
}