%PDF- %PDF-
| Direktori : /dom645759/wp-content/plugins/fusion-builder/inc/lib/assets/css/ |
| Current File : /dom645759/wp-content/plugins/fusion-builder/inc/lib/assets/css/awb-lightbox-viewer.css |
/* @bem awb-lightbox-viewer */
/* Locks the page while the viewer is open. The scrollbar width is set by the viewer script. */
:where(:root:has(.awb-lightbox-viewer:modal)) {
overflow: hidden;
padding-inline-end: var(--awb-lightbox-scrollbar, 0);
}
/* Colors come from the palette in scope: the page's, or the one set by data-awb-color-palette on the viewer. */
.awb-lightbox-viewer {
--awb-lightbox-bg: var(--awb-color1);
--awb-lightbox-color: var(--awb-color8);
--awb-lightbox-accent: var(--awb-color5);
--awb-lightbox-muted: color-mix(in srgb, var(--awb-lightbox-color) 70%, transparent);
--awb-lightbox-control: color-mix(in srgb, var(--awb-lightbox-color) 8%, transparent);
--awb-lightbox-control-hover: color-mix(in srgb, var(--awb-lightbox-color) 16%, transparent);
/* The control sizes; Scale Controls shrinks them on smaller screens, see the modifiers. */
--awb-lightbox-toolbar-icon: var(--lightbox_toolbar_icon_size, 18px);
--awb-lightbox-arrow-icon: var(--lightbox_arrow_icon_size, 28px);
--awb-lightbox-arrow-button: calc(var(--awb-lightbox-arrow-icon) * 1.7);
--awb-lightbox-arrow-inset: 12px;
--awb-lightbox-thumb: var(--lightbox_thumbs_size, 64px);
/* At 0 spacing the toolbar buttons join into one bar: inner corners go square, the outer ones keep the radius. */
--awb-lightbox-toolbar-gap: var(--lightbox_toolbar_spacing, 6px);
--awb-lightbox-toolbar-radius: min(var(--lightbox_toolbar_radius, 50px), var(--awb-lightbox-toolbar-icon) * 1.225);
--awb-lightbox-toolbar-inner-radius: min(var(--awb-lightbox-toolbar-radius), var(--awb-lightbox-toolbar-gap) * 999);
--awb-lightbox-shadow: 0 8px 30px rgb(0 0 0 / 0.25);
--awb-lightbox-spinner-track: var(--awb-lightbox-control-hover);
--awb-lightbox-spinner-head: var(--awb-lightbox-accent);
position: fixed;
inset: 0;
box-sizing: border-box;
width: 100%;
max-width: none;
height: 100%;
max-height: none;
margin: 0;
padding: 0;
overflow: hidden;
border: 0;
outline: 0;
background: color-mix(in srgb, var(--awb-lightbox-bg) calc(var(--awb-lightbox-opacity, 0.9) * 100%), transparent);
color: var(--awb-lightbox-color);
-webkit-backdrop-filter: none;
backdrop-filter: none;
font-size: 14px;
line-height: 1.5;
overscroll-behavior: contain;
transition: -webkit-backdrop-filter var(--awb-lightbox-speed, 400ms) ease-out, backdrop-filter var(--awb-lightbox-speed, 400ms) ease-out;
}
.awb-lightbox-viewer:modal {
display: grid;
grid-template: "bar" auto "stage" minmax(0, 1fr) "thumbs" auto / minmax(0, 1fr);
animation: awb-lightbox-viewer-in var(--awb-lightbox-speed, 400ms) ease-out;
}
.awb-lightbox-viewer::backdrop {
background: transparent;
}
.awb-lightbox-viewer__bar {
position: relative;
z-index: 2;
display: grid;
grid-area: bar;
grid-template: "counter . actions" auto / auto minmax(0, 1fr) auto;
align-items: center;
gap: 12px;
padding: 12px 16px;
transition: opacity 0.3s, visibility 0.3s;
}
.awb-lightbox-viewer__bar--left {
grid-template: "actions . counter" auto / auto minmax(0, 1fr) auto;
}
/* Equal outer columns keep the buttons centered, whatever the counter's width. */
.awb-lightbox-viewer__bar--center {
grid-template: "counter actions ." auto / minmax(0, 1fr) auto minmax(0, 1fr);
}
.awb-lightbox-viewer__counter {
grid-area: counter;
margin: 0;
color: var(--awb-lightbox-muted);
font-variant-numeric: tabular-nums;
}
.awb-lightbox-viewer__actions {
display: flex;
grid-area: actions;
gap: var(--awb-lightbox-toolbar-gap);
}
.awb-lightbox-viewer__button,
.awb-lightbox-viewer__arrow {
/* The background options are 1 or 0: without one, the buttons show only a muted icon that brightens on hover. */
--awb-lightbox-button: color-mix(in srgb, var(--awb-lightbox-control) calc(var(--awb-lightbox-button-background) * 100%), transparent);
--awb-lightbox-button-hover: color-mix(in srgb, var(--awb-lightbox-control-hover) calc(var(--awb-lightbox-button-background) * 100%), transparent);
--awb-lightbox-button-color: color-mix(in srgb, var(--awb-lightbox-color) calc(70% + var(--awb-lightbox-button-background) * 30%), transparent);
display: inline-grid;
place-items: center;
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
background: var(--awb-lightbox-button);
color: var(--awb-lightbox-button-color);
font: inherit;
line-height: 1;
cursor: pointer;
text-decoration: none;
transition: background-color 0.2s, color 0.2s, opacity 0.3s, visibility 0.3s;
appearance: none;
}
.awb-lightbox-viewer__button {
--awb-lightbox-button-background: var(--lightbox_toolbar_background, 1);
width: calc(var(--awb-lightbox-toolbar-icon) * 2.45);
height: calc(var(--awb-lightbox-toolbar-icon) * 2.45);
border-radius: var(--awb-lightbox-toolbar-inner-radius);
font-size: var(--awb-lightbox-toolbar-icon);
}
/* Counted among the visible buttons, so the corners follow whichever buttons the settings show. */
.awb-lightbox-viewer__button:nth-child(1 of :not(.is-hidden)) {
border-start-start-radius: var(--awb-lightbox-toolbar-radius);
border-end-start-radius: var(--awb-lightbox-toolbar-radius);
}
.awb-lightbox-viewer__button:nth-last-child(1 of :not(.is-hidden)) {
border-start-end-radius: var(--awb-lightbox-toolbar-radius);
border-end-end-radius: var(--awb-lightbox-toolbar-radius);
}
.awb-lightbox-viewer__button:hover,
.awb-lightbox-viewer__arrow:hover {
background: var(--awb-lightbox-button-hover);
color: var(--awb-lightbox-color);
}
.awb-lightbox-viewer__button:focus-visible,
.awb-lightbox-viewer__arrow:focus-visible,
.awb-lightbox-viewer__thumb:focus-visible,
.awb-lightbox-viewer__share-item:focus-visible,
.awb-lightbox-viewer__consent:focus-visible {
outline: 2px solid currentColor;
outline-offset: 2px;
}
.awb-lightbox-viewer__button:disabled,
.awb-lightbox-viewer__arrow:disabled {
opacity: 0.35;
cursor: default;
}
.awb-lightbox-viewer__close::before,
.awb-lightbox-viewer__download::before,
.awb-lightbox-viewer__fullscreen::before,
.awb-lightbox-viewer__play::before,
.awb-lightbox-viewer__zoom::before,
.awb-lightbox-viewer__share-toggle::before,
.awb-lightbox-viewer__arrow::before {
font-family: "awb-icons";
font-size: 1em;
}
.awb-lightbox-viewer__close::before {
content: "\e904";
}
.awb-lightbox-viewer__zoom::before {
content: "\e61d";
}
.awb-lightbox-viewer__share-toggle::before {
content: "\e90f";
}
/* The theme's link rules would recolour the icon, so it inherits the button's color. */
.awb-lightbox-viewer__download::before {
color: inherit;
content: "\e914";
}
.awb-lightbox-viewer__play::before {
content: "\e915";
}
.awb-lightbox-viewer__fullscreen::before {
content: "\e917";
}
.awb-lightbox-viewer__share {
position: absolute;
z-index: 3;
inset-block-start: calc(100% - 4px);
inset-inline-end: 16px;
display: flex;
flex-direction: column;
min-width: 220px;
max-height: 60vh;
padding: 6px;
overflow: auto;
border-radius: 10px;
background: var(--awb-lightbox-bg);
box-shadow: var(--awb-lightbox-shadow);
}
.awb-lightbox-viewer__share-item {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 12px;
border: 0;
border-radius: 6px;
background: none;
color: inherit;
font: inherit;
text-align: start;
text-decoration: none;
cursor: pointer;
}
.awb-lightbox-viewer__share-item:hover {
background: var(--awb-lightbox-control);
color: inherit;
}
.awb-lightbox-viewer__share-item::before {
display: inline-grid;
flex: 0 0 auto;
place-items: center;
width: 18px;
color: inherit;
font-family: "awb-icons";
font-size: 16px;
line-height: 1;
content: "\e90f";
}
.awb-lightbox-viewer__stage {
position: relative;
grid-area: stage;
min-width: 0;
min-height: 0;
}
.awb-lightbox-viewer__track {
display: flex;
height: 100%;
overflow-x: auto;
overflow-y: hidden;
scroll-snap-type: x mandatory;
scrollbar-width: none;
overscroll-behavior-x: contain;
touch-action: pan-x;
}
.awb-lightbox-viewer__track::-webkit-scrollbar {
display: none;
}
/* The vertical Slide Direction: slides stack, and swipes up and down move between them. */
.awb-lightbox-viewer__track--vertical {
flex-direction: column;
overflow-x: hidden;
overflow-y: auto;
scroll-snap-type: y mandatory;
overscroll-behavior: contain;
touch-action: pan-y;
}
.awb-lightbox-viewer__slide {
position: relative;
display: flex;
flex: 0 0 100%;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
box-sizing: border-box;
min-width: 0;
height: 100%;
margin: 0;
padding: 0 calc(var(--awb-lightbox-arrow-button) + 24px) 16px;
scroll-snap-align: start;
scroll-snap-stop: always;
}
/* Careful: after the rule above, which it overrides. The arrows sit at the top and bottom instead of the sides. */
:where(.awb-lightbox-viewer__track--vertical) .awb-lightbox-viewer__slide {
padding: calc(var(--awb-lightbox-arrow-button) + 24px) 24px;
}
/* The Arrow Position "Overlay": images take the space kept free for the arrows otherwise, as on small screens, and the
arrows sit on them. Other media keep the arrows beside them. */
:where(.awb-lightbox-viewer--arrows-overlay) .awb-lightbox-viewer__slide[data-type="image"] {
padding-inline: 24px;
}
:where(.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__track--vertical) .awb-lightbox-viewer__slide[data-type="image"] {
padding: 0 24px 16px;
}
.awb-lightbox-viewer__media {
position: relative;
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: center;
width: 100%;
min-height: 0;
container-type: size;
}
/* The spinner is the shared fusion-slider-loading block; this part only recolours it for the colour scheme. */
.awb-lightbox-viewer__spinner {
border-color: var(--awb-lightbox-spinner-track);
border-bottom-color: var(--awb-lightbox-spinner-head);
pointer-events: none;
}
.awb-lightbox-viewer__image {
display: block;
width: auto;
max-width: 100%;
height: auto;
max-height: 100%;
object-fit: contain;
user-select: none;
transition: transform var(--awb-lightbox-speed, 400ms) ease;
}
.awb-lightbox-viewer__frame,
.awb-lightbox-viewer__video {
display: block;
width: min(100%, var(--awb-lightbox-video-width, 1280px));
max-height: 100%;
aspect-ratio: var(--awb-lightbox-video-ratio, 1.7778);
border: 0;
background: #000;
}
@supports (width: 1cqh) {
.awb-lightbox-viewer__frame,
.awb-lightbox-viewer__video {
width: min(100cqw, var(--awb-lightbox-video-width, 1280px), 100cqh * var(--awb-lightbox-video-ratio, 1.7778));
}
}
.awb-lightbox-viewer__caption {
display: flex;
flex-direction: column;
align-items: center;
box-sizing: border-box;
max-width: min(100%, 800px);
text-align: center;
}
.awb-lightbox-viewer__caption-body {
display: flex;
flex-direction: column;
gap: 2px;
box-sizing: border-box;
max-width: 100%;
}
/* Above the media. */
.awb-lightbox-viewer__caption--top {
order: -1;
}
/* Aligned left or right, the caption lines up with the image's edge, as measured by the viewer script. Left and right
are logical, like the toolbar's. */
.awb-lightbox-viewer__caption--left,
.awb-lightbox-viewer__caption--right {
width: var(--awb-lightbox-media-width, 100%);
max-width: 100%;
}
.awb-lightbox-viewer__caption--left {
align-items: flex-start;
text-align: start;
}
.awb-lightbox-viewer__caption--right {
align-items: flex-end;
text-align: end;
}
/* Over the image's bottom or top edge, where the viewer script measured it ( over the area kept for other media ), on a
fade of the background color so it stays readable over any image. The inline padding keeps clear of overlay arrows. */
.awb-lightbox-viewer__caption--overlay {
--awb-lightbox-caption-edge: 24px;
--awb-lightbox-caption-inline: 24px;
--awb-lightbox-caption-fade: color-mix(in srgb, var(--awb-lightbox-bg) 90%, transparent), color-mix(in srgb, var(--awb-lightbox-bg) 60%, transparent) 55%, transparent;
position: absolute;
z-index: 1;
inset-block: auto var(--awb-lightbox-media-bottom, 16px);
inset-inline-start: var(--awb-lightbox-media-start, 0px);
width: var(--awb-lightbox-media-width, 100%);
max-width: none;
padding: 64px var(--awb-lightbox-caption-inline) var(--awb-lightbox-caption-edge);
background: linear-gradient(to top, var(--awb-lightbox-caption-fade));
pointer-events: none;
transition: opacity 0.3s, visibility 0.3s;
}
.awb-lightbox-viewer__caption--overlay.awb-lightbox-viewer__caption--top {
inset-block: var(--awb-lightbox-media-top, 0px) auto;
padding-block: var(--awb-lightbox-caption-edge) 64px;
background: linear-gradient(to bottom, var(--awb-lightbox-caption-fade));
}
/* Overlay captions and arrows belong to the image, so they wait while it flies in from the clicked thumbnail, and
captions step aside while it's zoomed. */
:root[data-awb-lightbox-transition="image"] .awb-lightbox-viewer__caption--overlay,
:root[data-awb-lightbox-transition="image"] .awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow,
.awb-lightbox-viewer__media.is-zoomed ~ .awb-lightbox-viewer__caption--overlay {
opacity: 0;
visibility: hidden;
}
/* Hidden by a tap on the image ( touch screens ), see the viewer script. */
.awb-lightbox-viewer.is-captions-hidden .awb-lightbox-viewer__caption--overlay {
opacity: 0;
visibility: hidden;
}
/* Zooming in, the caption goes at once, or the image would grow past its edges while it fades. It fades back in. */
.awb-lightbox-viewer__media.is-zoomed ~ .awb-lightbox-viewer__caption--overlay {
transition: none;
}
/* The Overlay Background "Glass": a frosted panel around the text, floating inside the image's edge. */
.awb-lightbox-viewer__caption--glass {
--awb-lightbox-caption-edge: 16px;
--awb-lightbox-caption-inline: 16px;
padding-block: 0 var(--awb-lightbox-caption-edge);
background: none;
}
.awb-lightbox-viewer__caption--glass.awb-lightbox-viewer__caption--top {
padding-block: var(--awb-lightbox-caption-edge) 0;
background: none;
}
.awb-lightbox-viewer__caption--glass .awb-lightbox-viewer__caption-body {
padding: 10px 18px;
border: 1px solid color-mix(in srgb, #fff 30%, transparent);
border-radius: 16px;
background: color-mix(in srgb, var(--awb-lightbox-bg) 35%, transparent);
box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent), 0 8px 32px rgb(0 0 0 / 0.18);
-webkit-backdrop-filter: blur(16px) saturate(1.3);
backdrop-filter: blur(16px) saturate(1.3);
}
/* The Overlay Background "None": only a soft halo of the background color behind the letters. */
.awb-lightbox-viewer__caption--plain {
padding-block-start: 16px;
background: none;
text-shadow: 0 0 2px var(--awb-lightbox-bg), 0 0 10px var(--awb-lightbox-bg);
}
.awb-lightbox-viewer__caption--plain.awb-lightbox-viewer__caption--top {
padding-block-end: 16px;
background: none;
}
/* Arrows over the image: horizontally they sit halfway up its sides, vertically on its top and bottom edges. */
:where(.awb-lightbox-viewer--arrows-overlay) .awb-lightbox-viewer__track:not(.awb-lightbox-viewer__track--vertical) .awb-lightbox-viewer__slide[data-type="image"] .awb-lightbox-viewer__caption--overlay {
--awb-lightbox-caption-inline: calc(var(--awb-lightbox-arrow-button) + var(--awb-lightbox-arrow-inset) + 8px);
}
:where(.awb-lightbox-viewer--arrows-overlay) .awb-lightbox-viewer__track--vertical .awb-lightbox-viewer__slide[data-type="image"] .awb-lightbox-viewer__caption--overlay {
--awb-lightbox-caption-edge: calc(var(--awb-lightbox-arrow-button) + var(--awb-lightbox-arrow-inset) + 12px);
}
.awb-lightbox-viewer__caption-title {
font-family: var(--lightbox_title_typography-font-family, inherit);
font-size: var(--lightbox_title_typography-font-size, 15px);
font-style: var(--lightbox_title_typography-font-style, normal);
font-weight: var(--lightbox_title_typography-font-weight, 600);
line-height: var(--lightbox_title_typography-line-height, 1.5);
letter-spacing: var(--lightbox_title_typography-letter-spacing, normal);
}
.awb-lightbox-viewer__caption-text {
color: var(--awb-lightbox-muted);
font-family: var(--lightbox_caption_typography-font-family, inherit);
font-size: var(--lightbox_caption_typography-font-size, 14px);
font-style: var(--lightbox_caption_typography-font-style, normal);
font-weight: var(--lightbox_caption_typography-font-weight, 400);
line-height: var(--lightbox_caption_typography-line-height, 1.5);
letter-spacing: var(--lightbox_caption_typography-letter-spacing, normal);
}
.awb-lightbox-viewer__notice {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
max-width: 420px;
margin: 0;
text-align: center;
}
.awb-lightbox-viewer__notice-text {
margin: 0;
}
.awb-lightbox-viewer__consent {
padding: 10px 20px;
border: 0;
border-radius: 999px;
background: var(--awb-lightbox-accent);
color: var(--awb-lightbox-bg);
font: inherit;
cursor: pointer;
}
.awb-lightbox-viewer__arrow {
--awb-lightbox-button-background: var(--lightbox_arrow_background, 1);
position: absolute;
z-index: 1;
top: 50%;
width: var(--awb-lightbox-arrow-button);
height: var(--awb-lightbox-arrow-button);
border-radius: min(var(--lightbox_arrow_radius, 50px), 50%);
font-size: var(--awb-lightbox-arrow-icon);
translate: 0 -50%;
}
.awb-lightbox-viewer__thumbs {
display: flex;
grid-area: thumbs;
flex-direction: row;
justify-content: safe center;
gap: 8px;
padding: 0 16px 16px;
overflow: auto;
scrollbar-width: none;
transition: opacity 0.3s, visibility 0.3s;
}
.awb-lightbox-viewer__thumbs::-webkit-scrollbar {
display: none;
}
.awb-lightbox-viewer__thumb {
position: relative;
display: grid;
flex: 0 0 auto;
place-items: center;
box-sizing: border-box;
width: var(--awb-lightbox-thumb);
height: var(--awb-lightbox-thumb);
padding: 0;
overflow: hidden;
border: 2px solid transparent;
border-radius: var(--lightbox_thumbs_radius, 6px);
background: var(--awb-lightbox-control);
color: inherit;
opacity: 0.55;
cursor: pointer;
transition: opacity 0.2s, border-color 0.2s;
}
.awb-lightbox-viewer__thumb:hover {
opacity: 1;
}
.awb-lightbox-viewer__thumb-image {
width: 100%;
height: 100%;
object-fit: cover;
}
.awb-lightbox-viewer__status {
position: absolute;
width: 1px;
height: 1px;
margin: 0;
overflow: hidden;
white-space: nowrap;
clip-path: inset(50%);
}
/* Modifiers. */
/* Dark scheme on a site without a separate dark mode palette: the light palette, with background and text swapped. */
.awb-lightbox-viewer--inverted {
--awb-lightbox-bg: var(--awb-color8);
--awb-lightbox-color: var(--awb-color1);
}
/* Custom Colors: the three colors of the options. Every shade the viewer uses is mixed from them. */
.awb-lightbox-viewer--custom-colors {
--awb-lightbox-bg: var(--lightbox_background_color, var(--awb-color1));
--awb-lightbox-color: var(--lightbox_text_color, var(--awb-color8));
--awb-lightbox-accent: var(--lightbox_accent_color, var(--awb-color5));
}
/* Scale Controls: the sizes shrink with the viewport below 1280px, never under the default sizes ( or the set size, if
smaller ). tan( atan2() ) turns the viewport width into a plain number. */
@supports (width: calc(1px * tan(atan2(1px, 1px)))) {
.awb-lightbox-viewer--scale {
--awb-lightbox-scale: clamp(0.5, 0.4 + 0.6 * tan(atan2(100vw, 1280px)), 1);
--awb-lightbox-toolbar-icon: max(min(var(--lightbox_toolbar_icon_size, 18px), 18px), var(--lightbox_toolbar_icon_size, 18px) * var(--awb-lightbox-scale));
--awb-lightbox-arrow-icon: max(min(var(--lightbox_arrow_icon_size, 28px), 28px), var(--lightbox_arrow_icon_size, 28px) * var(--awb-lightbox-scale));
--awb-lightbox-thumb: max(min(var(--lightbox_thumbs_size, 64px), 48px), var(--lightbox_thumbs_size, 64px) * var(--awb-lightbox-scale));
}
}
/* Shows overlay captions only while the pointer is on the image or an arrow. Touch screens can't hover, so they always
show there. */
@media (hover: hover) {
.awb-lightbox-viewer--caption-hover .awb-lightbox-viewer__caption--overlay {
opacity: 0;
}
.awb-lightbox-viewer--caption-hover .awb-lightbox-viewer__slide:has(.awb-lightbox-viewer__image:hover, .awb-lightbox-viewer__frame:hover, .awb-lightbox-viewer__video:hover) .awb-lightbox-viewer__caption--overlay,
.awb-lightbox-viewer--caption-hover:has(.awb-lightbox-viewer__arrow:hover) .awb-lightbox-viewer__slide.is-active .awb-lightbox-viewer__caption--overlay {
opacity: 1;
}
}
.awb-lightbox-viewer--thumbs-top:modal {
grid-template: "bar" auto "thumbs" auto "stage" minmax(0, 1fr) / minmax(0, 1fr);
}
.awb-lightbox-viewer--thumbs-right:modal {
grid-template: "bar bar" auto "stage thumbs" minmax(0, 1fr) / minmax(0, 1fr) auto;
}
.awb-lightbox-viewer--thumbs-left:modal {
grid-template: "bar bar" auto "thumbs stage" minmax(0, 1fr) / auto minmax(0, 1fr);
}
.awb-lightbox-viewer__thumbs--top {
padding: 0 16px 12px;
}
.awb-lightbox-viewer__thumbs--vertical {
flex-direction: column;
justify-content: flex-start;
}
.awb-lightbox-viewer__share--left {
inset-inline: 16px auto;
}
.awb-lightbox-viewer__share--center {
inset-inline: 0;
width: fit-content;
margin-inline: auto;
}
.awb-lightbox-viewer__share--grid {
display: grid;
grid-template-columns: repeat(4, 44px);
gap: 6px;
min-width: 0;
padding: 10px;
}
.awb-lightbox-viewer__share-item--icon-only {
justify-content: center;
width: 44px;
height: 44px;
padding: 0;
border-radius: min(var(--lightbox_toolbar_radius, 50px), 50%);
background: var(--awb-lightbox-control);
}
.awb-lightbox-viewer__share-item--facebook::before {
content: "\e604";
}
.awb-lightbox-viewer__share-item--twitter::before {
content: "\e90b";
}
.awb-lightbox-viewer__share-item--bluesky::before {
content: "\e90e";
}
.awb-lightbox-viewer__share-item--linkedin::before {
content: "\e60f";
}
.awb-lightbox-viewer__share-item--mastodon::before {
content: "\e90c";
}
.awb-lightbox-viewer__share-item--reddit::before {
content: "\e60d";
}
.awb-lightbox-viewer__share-item--whatsapp::before {
content: "\f232";
}
.awb-lightbox-viewer__share-item--telegram::before {
content: "\f1d8";
}
.awb-lightbox-viewer__share-item--threads::before {
content: "\e90d";
}
.awb-lightbox-viewer__share-item--tumblr::before {
content: "\e613";
}
.awb-lightbox-viewer__share-item--pinterest::before {
content: "\e602";
}
.awb-lightbox-viewer__share-item--vk::before {
content: "\f189";
}
.awb-lightbox-viewer__share-item--xing::before {
content: "\e4d8";
}
.awb-lightbox-viewer__share-item--mail::before {
content: "\e616";
}
.awb-lightbox-viewer__share-item--copy::before {
content: "\e919";
}
.awb-lightbox-viewer__arrow--prev {
inset-inline-start: var(--awb-lightbox-arrow-inset);
}
.awb-lightbox-viewer__arrow--next {
inset-inline-end: var(--awb-lightbox-arrow-inset);
}
.awb-lightbox-viewer__arrow--left::before {
content: "\f104";
}
.awb-lightbox-viewer__arrow--right::before {
content: "\f105";
}
.awb-lightbox-viewer__arrow--up,
.awb-lightbox-viewer__arrow--down {
inset-inline: 0;
margin-inline: auto;
translate: none;
}
.awb-lightbox-viewer__arrow--up {
top: var(--awb-lightbox-arrow-inset);
}
.awb-lightbox-viewer__arrow--down {
top: auto;
bottom: var(--awb-lightbox-arrow-inset);
}
.awb-lightbox-viewer__arrow--up::before {
content: "\f106";
}
.awb-lightbox-viewer__arrow--down::before {
content: "\f107";
}
/* The Arrow Position "Overlay": on the current image, where the viewer script measured it. Without a measurement ( other
media, small images ) at the stage's edges, as with "Beside". They move along when the image size changes. */
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow {
transition: background-color 0.2s, color 0.2s, opacity 0.3s, visibility 0.3s, inset 0.3s ease;
}
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow--prev,
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow--next {
inset-block: var(--awb-lightbox-arrows-top, 0px) var(--awb-lightbox-arrows-bottom, 0px);
margin-block: auto;
translate: none;
}
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow--prev {
inset-inline-start: calc(var(--awb-lightbox-arrows-start, 0px) + var(--awb-lightbox-arrow-inset));
}
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow--next {
inset-inline-end: calc(var(--awb-lightbox-arrows-end, 0px) + var(--awb-lightbox-arrow-inset));
}
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow--up,
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow--down {
inset-inline: var(--awb-lightbox-arrows-start, 0px) var(--awb-lightbox-arrows-end, 0px);
margin-block: 0;
}
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow--up {
inset-block: calc(var(--awb-lightbox-arrows-top, 0px) + var(--awb-lightbox-arrow-inset)) auto;
}
.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__arrow--down {
inset-block: auto calc(var(--awb-lightbox-arrows-bottom, 0px) + var(--awb-lightbox-arrow-inset));
}
/* Opening, they're there at once. */
.awb-lightbox-viewer__stage.is-placing .awb-lightbox-viewer__arrow {
transition: none;
}
.awb-lightbox-viewer__image--zoom {
cursor: zoom-in;
}
.awb-lightbox-viewer__frame--page {
width: 100%;
max-width: 1200px;
height: 100%;
aspect-ratio: auto;
background: #fff;
}
.awb-lightbox-viewer__thumb--video::after {
position: absolute;
width: 0;
height: 0;
border-width: 8px 0 8px 13px;
border-style: solid;
border-color: transparent transparent transparent #fff;
filter: drop-shadow(0 0 3px rgb(0 0 0 / 0.6));
content: "";
}
/* The slideshow progress; its width is animated by the viewer script. */
.awb-lightbox-viewer__progress {
position: absolute;
z-index: 3;
inset-block-start: 0;
inset-inline-start: 0;
width: 100%;
height: 3px;
background: var(--awb-lightbox-accent);
pointer-events: none;
/* The viewer script animates the scale: a width animation would lay out the page on every frame. */
transform: scaleX(0);
transform-origin: left;
}
.awb-lightbox-viewer__progress:dir(rtl) {
transform-origin: right;
}
.awb-lightbox-viewer__progress--bottom {
inset-block: auto 0;
}
/* States. */
.awb-lightbox-viewer.is-transitioning {
animation: none;
}
/* The blur fades in after the opening: a view transition's snapshot of the page can't show it. The viewer script
leaves it off at a Backdrop Blur of 0, as any backdrop filter keeps the browser rendering the page behind. */
.awb-lightbox-viewer.is-blurred {
-webkit-backdrop-filter: blur(var(--lightbox_backdrop_blur, 8px));
backdrop-filter: blur(var(--lightbox_backdrop_blur, 8px));
}
.awb-lightbox-viewer__button.is-hidden,
.awb-lightbox-viewer__arrow.is-hidden,
.awb-lightbox-viewer__counter.is-hidden,
.awb-lightbox-viewer__thumbs.is-hidden,
.awb-lightbox-viewer__share.is-hidden {
display: none;
}
/* Auto-Hide Controls: they fade out while idle, unless one of them has the keyboard focus. */
.awb-lightbox-viewer.is-idle {
cursor: none;
}
:where(.awb-lightbox-viewer.is-idle:not(:has(:focus-visible))) .awb-lightbox-viewer__bar,
:where(.awb-lightbox-viewer.is-idle:not(:has(:focus-visible))) .awb-lightbox-viewer__arrow,
:where(.awb-lightbox-viewer.is-idle:not(:has(:focus-visible))) .awb-lightbox-viewer__thumbs {
opacity: 0;
visibility: hidden;
}
.awb-lightbox-viewer__zoom.is-active::before {
content: "\e61c";
}
.awb-lightbox-viewer__play.is-active::before {
content: "\e916";
}
.awb-lightbox-viewer__fullscreen.is-active::before {
content: "\e918";
}
.awb-lightbox-viewer__track.is-animating {
scroll-snap-type: none;
}
.awb-lightbox-viewer__track.is-zoomed {
overflow: hidden;
touch-action: none;
}
.awb-lightbox-viewer__media.is-zoomed {
overflow: hidden;
}
.awb-lightbox-viewer__image.is-zoomed {
cursor: zoom-out;
}
/* Pinching, panning and the wheel follow the hand, so they skip the zoom animation. */
.awb-lightbox-viewer__image.is-moving {
transition-duration: 0s;
}
.awb-lightbox-viewer__thumb.is-active {
border-color: var(--awb-lightbox-accent);
opacity: 1;
}
@media (max-width: 640px) {
.awb-lightbox-viewer--thumbs-right:modal,
.awb-lightbox-viewer--thumbs-left:modal {
grid-template: "bar" auto "stage" minmax(0, 1fr) "thumbs" auto / minmax(0, 1fr);
}
.awb-lightbox-viewer__thumbs--vertical {
flex-direction: row;
justify-content: safe center;
}
.awb-lightbox-viewer__bar {
padding: 8px;
}
.awb-lightbox-viewer__actions {
--awb-lightbox-toolbar-gap: min(var(--lightbox_toolbar_spacing, 6px), 4px);
}
.awb-lightbox-viewer {
--awb-lightbox-arrow-button: calc(var(--awb-lightbox-arrow-icon) * 1.45);
--awb-lightbox-arrow-inset: 4px;
}
/* Scale Controls has its own sizes for small screens. */
.awb-lightbox-viewer:not(.awb-lightbox-viewer--scale) {
--awb-lightbox-thumb: calc(var(--lightbox_thumbs_size, 64px) * 0.75);
}
.awb-lightbox-viewer__slide,
:where(.awb-lightbox-viewer--arrows-overlay) .awb-lightbox-viewer__slide[data-type="image"] {
padding: 0 8px 12px;
}
.awb-lightbox-viewer__caption--overlay {
--awb-lightbox-caption-edge: 16px;
--awb-lightbox-caption-inline: 12px;
}
:where(.awb-lightbox-viewer__track--vertical) .awb-lightbox-viewer__slide {
padding: calc(var(--awb-lightbox-arrow-button) + 24px) 8px;
}
:where(.awb-lightbox-viewer--arrows-overlay .awb-lightbox-viewer__track--vertical) .awb-lightbox-viewer__slide[data-type="image"] {
padding: 0 8px 12px;
}
.awb-lightbox-viewer__thumbs {
padding: 0 8px 8px;
}
}
/* The opening view transition, timed by the Opening Speed option. Scoped, so page transitions keep their own timing. */
:root[data-awb-lightbox-transition]::view-transition-group(*),
:root[data-awb-lightbox-transition]::view-transition-old(*),
:root[data-awb-lightbox-transition]::view-transition-new(*) {
animation-duration: var(--awb-lightbox-transition-speed, 400ms);
}
:root[data-awb-lightbox-transition]::view-transition-group(awb-lightbox-image) {
animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* The Zoom effect between items: the old one shrinks away as the new one settles in. Fade is the default cross-fade. */
:root[data-awb-lightbox-transition="zoom"]::view-transition-old(awb-lightbox-track) {
animation-name: awb-lightbox-viewer-zoom-out;
}
:root[data-awb-lightbox-transition="zoom"]::view-transition-new(awb-lightbox-track) {
animation-name: awb-lightbox-viewer-zoom-in;
}
@keyframes awb-lightbox-viewer-zoom-out {
to {
opacity: 0;
scale: 0.92;
}
}
@keyframes awb-lightbox-viewer-zoom-in {
from {
opacity: 0;
scale: 1.08;
}
}
@keyframes awb-lightbox-viewer-in {
from {
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.awb-lightbox-viewer:modal {
animation: none;
}
.awb-lightbox-viewer,
.awb-lightbox-viewer__image {
transition: none;
}
}