.azzurro-local-gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.azzurro-local-gallery .e-gallery-item {
    aspect-ratio: 3 / 2;
    display: block;
    overflow: hidden;
    position: relative;
}

.azzurro-local-gallery .e-gallery-image,
.azzurro-local-gallery .elementor-gallery-item__overlay {
    inset: 0;
    position: absolute;
}

.azzurro-local-gallery .e-gallery-image {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1);
    transition: transform 350ms ease;
}

.azzurro-local-gallery .elementor-gallery-item__overlay {
    background: rgba(0, 0, 0, 0);
    transition: background-color 350ms ease;
}

.azzurro-local-gallery .e-gallery-item:hover .e-gallery-image,
.azzurro-local-gallery .e-gallery-item:focus .e-gallery-image {
    transform: scale(1.04);
}

.azzurro-local-gallery .e-gallery-item:hover .elementor-gallery-item__overlay,
.azzurro-local-gallery .e-gallery-item:focus .elementor-gallery-item__overlay {
    background: rgba(0, 0, 0, .16);
}

.azzurro-local-gallery .e-gallery-item:focus-visible {
    outline: 3px solid #014288;
    outline-offset: 2px;
}

.azzurro-local-video-playlist {
    --azzurro-playlist-height: 434px;
    color: #212121;
    width: 100%;
}

.azzurro-local-video-playlist .e-tabs-main-area {
    display: flex;
    flex-direction: row-reverse;
    height: var(--azzurro-playlist-height);
    width: 100%;
}

.azzurro-local-video-playlist .e-tabs-content-wrapper {
    flex: 0 0 67%;
    height: 100%;
    min-width: 0;
}

.azzurro-local-video-playlist .e-tabs-wrapper {
    background: #fff;
    display: flex;
    flex: 0 0 33%;
    flex-direction: column;
    height: 100%;
    min-width: 0;
}

.azzurro-local-video-playlist .e-tabs-header {
    align-items: center;
    display: flex;
    flex: 0 0 81px;
    justify-content: space-between;
    padding: 0 16px;
}

.azzurro-local-video-playlist .e-tabs-title {
    color: #616161;
    font-family: Roboto, Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 60px;
    margin: 0;
    padding: 10px 0;
}

.azzurro-local-video-playlist .e-tabs-toggle-videos-display-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #616161;
    cursor: pointer;
    display: flex;
    font-size: 20px;
    height: 36px;
    justify-content: center;
    padding: 0;
    transition: transform .2s ease;
    width: 36px;
}

.azzurro-local-video-playlist.is-list-collapsed .e-tabs-toggle-videos-display-button {
    transform: rotate(180deg);
}

.azzurro-local-video-playlist .e-tabs-items-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.azzurro-local-video-playlist.is-list-collapsed .e-tabs-items-wrapper {
    display: none;
}

.azzurro-local-video-playlist .e-tabs-items {
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
}

.azzurro-local-video-playlist .e-tab-title {
    background: #fff;
    border: 0;
    box-sizing: content-box;
    color: #212121;
    cursor: pointer;
    display: flex;
    height: 55px;
    line-height: 55px;
    min-height: 0;
    padding: 0 16px;
    position: relative;
}

.azzurro-local-video-playlist .e-tab-title.e-active {
    background: #f1f2f3;
}

.azzurro-local-video-playlist .e-tab-title:focus-visible {
    outline: 3px solid #014288;
    outline-offset: -3px;
}

.azzurro-local-video-playlist .icon-play,
.azzurro-local-video-playlist .icon-watched {
    align-items: center;
    display: flex;
    flex: 0 0 16px;
    font-size: 13px;
    height: 55px;
    justify-content: center;
    line-height: 55px;
    margin: auto 0;
}

.azzurro-local-video-playlist .icon-watched,
.azzurro-local-video-playlist .e-tab-title.e-watched .icon-play {
    display: none;
}

.azzurro-local-video-playlist .e-tab-title.e-watched .icon-watched {
    color: #014288;
    display: flex;
}

.azzurro-local-video-playlist .e-tab-title-text {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 700;
    line-height: 40px;
    margin: auto 8px;
    overflow: hidden;
    padding: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.azzurro-local-video-playlist .e-tab-title.e-active .e-tab-title-text {
    color: #556068;
}

.azzurro-local-video-playlist .e-tab-title-text span {
    line-height: 40px;
}

.azzurro-local-video-playlist .e-tab-duration {
    color: #7b858c;
    flex: 0 0 auto;
    font-size: 12px;
}

.azzurro-local-video-playlist .e-tab-content {
    background: #000;
    display: none;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.azzurro-local-video-playlist .e-tab-content.e-active {
    display: block;
}

.azzurro-local-video-playlist .e-tab-content[hidden] {
    display: none !important;
}

.azzurro-local-video-playlist .e-tab-content > div,
.azzurro-local-video-playlist iframe {
    height: 100%;
    width: 100%;
}

.azzurro-local-video-playlist iframe {
    border: 0;
    display: block;
}

.azzurro-local-video-playlist video,
.azzurro-local-video-playlist .azzurro-local-hosted-video-slot,
.azzurro-local-video-playlist .azzurro-local-youtube-placeholder {
    height: 100%;
    width: 100%;
}

.azzurro-local-video-playlist video {
    background: #000;
    display: block;
    object-fit: contain;
}

.azzurro-local-youtube-placeholder {
    align-items: center;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    padding: 32px;
    text-align: center;
}

.azzurro-local-youtube-placeholder__play {
    align-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    font-size: 22px;
    height: 56px;
    justify-content: center;
    padding-left: 4px;
    width: 56px;
}

.azzurro-local-youtube-placeholder strong {
    color: #fff;
    font-size: 18px;
}

.azzurro-local-youtube-placeholder span:last-child {
    color: #dce4ec;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .azzurro-local-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .azzurro-local-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .azzurro-local-video-playlist .e-tabs-main-area {
        flex-direction: column-reverse;
        height: 479px;
    }

    .azzurro-local-video-playlist .e-tabs-content-wrapper,
    .azzurro-local-video-playlist .e-tabs-wrapper {
        flex-basis: auto;
        width: 100%;
    }

    .azzurro-local-video-playlist .e-tabs-content-wrapper {
        flex: 0 0 150px;
        height: 150px;
    }

    .azzurro-local-video-playlist .e-tabs-wrapper {
        flex: 0 0 329px;
        height: 329px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .azzurro-local-gallery .e-gallery-image,
    .azzurro-local-gallery .elementor-gallery-item__overlay,
    .azzurro-local-video-playlist .e-tabs-toggle-videos-display-button {
        transition: none;
    }
}
