
/*!*****************************************************!*\
  !*** ../src/elements/partials/gallery/gallery.scss ***!
  \*****************************************************/
/*******************************
 * Buttons
 ******************************/
/*
 * Applies the complete set of button styles with all desired style variations.
 * This mixin is normally applied to form buttons or links with
 * the desired button classes eg. .button.style-xxx.
 */
/*
 * Contains styles that all of the buttons have in common.
 * Some button styles might opt out or override some of these styles.
 * One benefit of this approach is that all of the buttons will be consistently
 * configurable with the CSS variables defined below.
 */
/*******************************
 * Button Styles
 *
 * Styles should define the way the buttons look. Depending on the project,
 * you may need to optimize each style based on the section / element that
 * a button is used in. For that purpose you can use the predefined CSS
 * variables to easily overwrite the desired colors based on your need.
 ******************************/
/*******************************
 * Inputs
 ******************************/
.gallery-image {
  cursor: pointer;
  box-sizing: border-box;
  align-self: center;
}

.wpce-gallery {
  ---gallery-control-background: var(--gallery-control-background, var(--white));
  margin-bottom: 1px;
  background-color: var(--white);
}
.wpce-gallery .gallery-group-description p {
  margin-top: 0;
}
.wpce-gallery .content {
  display: none;
}
.wpce-gallery.active .content {
  display: flex;
}

.gallery-grid.grid-layout {
  --cols-xs: 12;
  --cols-s: 6;
  --cols-md: 4;
  --cols-lg: 3;
}

.gallery-pagination-container {
  position: absolute;
  inset-inline: 0;
  bottom: 0.5rem;
  z-index: 10;
}

.gallery-caption-pagination {
  position: absolute;
  inset-inline: 0;
  bottom: /* grow(16, 32, $from: sm) */ clamp(1rem, 0.1578947368rem + 1.7543859649vw, 2rem);
  z-index: 10;
}

.gallery-pagination {
  display: flex;
  justify-content: center;
}
.gallery-pagination .gallery-pagination-item {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  font: inherit;
  line-height: 1;
  letter-spacing: inherit;
  word-spacing: inherit;
  white-space: nowrap;
  background: none;
  color: inherit;
  text-align: left;
}
.gallery-pagination .gallery-pagination-item:focus:not(:focus-visible) {
  outline: none;
}
.gallery-pagination .gallery-pagination-item:focus-visible {
  outline: 2px solid var(--focus-color, var(--primary-color));
  outline-offset: var(--focus-offset, 3px);
}
.gallery-pagination .gallery-pagination-item {
  position: relative;
  margin-inline: 0.25rem;
  width: 0.625rem;
  height: 0.5rem;
  box-sizing: border-box;
  border-radius: 100vmax;
  background-color: color-mix(in srgb, var(--white), transparent 40%);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--black), transparent 90%);
  cursor: pointer;
  transition-property: background-color, width;
  transition-duration: 150ms;
}
.gallery-pagination .gallery-pagination-item::before {
  content: "";
  position: absolute;
  inset: -0.25rem;
}
.gallery-pagination .gallery-pagination-item.active {
  background-color: var(--white);
  width: 1.375rem;
}

.gallery-small-buttons {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  top: 50%;
}
.gallery-small-buttons .gallery-control {
  padding: 0.65rem;
  border-radius: 0.75rem;
}
.gallery-small-buttons .gallery-control.control-next {
  right: /* grow(8, 16) */ clamp(0.5rem, 0.3636363636rem + 0.6060606061vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
}
.gallery-small-buttons .gallery-control.control-prev {
  left: /* grow(8, 16) */ clamp(0.5rem, 0.3636363636rem + 0.6060606061vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
}
.gallery-small-buttons .gallery-control svg {
  width: 0.75rem;
  height: 0.75rem;
}
.gallery-small-buttons .gallery-control.control-prev svg {
  transform: translateX(-10%);
}
.gallery-small-buttons .gallery-control.control-next svg {
  transform: translateX(10%);
}

.gallery-small {
  display: grid;
  align-items: center;
}
.gallery-small > * {
  grid-column: 1/span 1;
  grid-row: 1/span 1;
}
.gallery-small img {
  display: block;
  margin-inline: auto;
}

.gallery-control {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  font: inherit;
  line-height: 1;
  letter-spacing: inherit;
  word-spacing: inherit;
  white-space: nowrap;
  background: none;
  color: inherit;
  text-align: left;
  --button-background: var(--form-color, var(--primary-color));
  --button-color: var(--primary-contrast, var(--text-color-inverted));
  --button-border-color: color-mix(in srgb, var(--page-color-950), transparent 80%);
  --button-hover-background: var(--form-hover, var(--primary-color-lighter));
  --button-hover-color: var(--button-color);
  --button-hover-border-color: var(--button-border-color);
  --button-active-background: var(--form-active, var(--primary-color-darker));
  --button-active-color: var(--button-color);
  --button-active-border-color: var(--button-border-color);
  --background: var(--button-background);
  --color: var(--button-color);
  --border-color: var(--button-border-color);
  border: 1px solid var(--border-color);
  background-color: var(--background);
  color: var(--color);
  white-space: normal;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 400;
  border-radius: var(--rounded);
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.gallery-control:focus:not(:focus-visible) {
  outline: none;
}
.gallery-control:focus-visible {
  outline: 2px solid var(--focus-color, var(--primary-color));
  outline-offset: var(--focus-offset, 3px);
}
@media (hover: hover) and (pointer: fine) {
  .gallery-control:where(:not(:disabled):not(.disabled):not([aria-disabled=true]):not(.inert):not([inert]):not(.inert *):not([inert] *)):hover {
    --background: var(--button-hover-background);
    --color: var(--button-hover-color);
    --border-color: var(--button-hover-border-color);
  }
}
.gallery-control:where(:not(:disabled):not(.disabled):not([aria-disabled=true]):not(.inert):not([inert]):not(.inert *):not([inert] *)):active {
  --background: var(--button-active-background);
  --color: var(--button-active-color);
  --border-color: var(--button-active-border-color);
}
.gallery-control:where(:disabled, .disabled, [aria-disabled=true], .inert, [inert], .inert *, [inert] *) {
  cursor: default;
  opacity: 0.4;
}
.gallery-control {
  --button-background: transparent;
  --button-color: var(--black);
  --button-border-color: color-mix(in srgb, var(--page-color-950), transparent 80%);
  --button-hover-background: color-mix(in srgb, var(--page-color-950), var(--white) 90%);
  --button-hover-color: var(--page-color-900);
  --button-active-background: color-mix(in srgb, var(--page-color-950), var(--white) 80%);
  --button-active-color: var(--page-color-950);
}
@container theme style(--theme: dark) {
  .gallery-control {
    --button-color: var(--white);
    --button-border-color: color-mix(in srgb, var(--red-200), transparent 80%);
    --button-hover-background: color-mix(in srgb, var(--red-200), transparent 95%);
    --button-hover-color: var(--white);
    --button-active-background: color-mix(in srgb, var(--red-200), transparent 97.5%);
    --button-active-color: var(--red-200);
  }
}
.gallery-control:where([data-query-theme="3871037065"]) {
  --button-color: var(--white);
  --button-border-color: color-mix(in srgb, var(--red-200), transparent 80%);
  --button-hover-background: color-mix(in srgb, var(--red-200), transparent 95%);
  --button-hover-color: var(--white);
  --button-active-background: color-mix(in srgb, var(--red-200), transparent 97.5%);
  --button-active-color: var(--red-200);
}
.gallery-control {
  padding: 1.25rem 1.75rem;
  line-height: 1.111;
  border: 1px solid var(--button-border-color);
}
.gallery-control:where(:disabled, .disabled, [aria-disabled=true], .inert, [inert], .inert *, [inert] *) {
  opacity: 0.4;
}
.gallery-control {
  padding: 0.875rem;
  --button-background: var(--white);
  position: absolute;
  z-index: 10;
}
.gallery-control svg {
  width: 1.125rem;
  height: auto;
}
.gallery-control.control-close {
  right: /* grow(16, 32, $from: sm) */ clamp(1rem, 0.1578947368rem + 1.7543859649vw, 2rem);
  top: /* grow(16, 32, $from: sm) */ clamp(1rem, 0.1578947368rem + 1.7543859649vw, 2rem);
}
.gallery-control.control-close svg {
  width: auto;
  height: 1rem;
}

.caption-container {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  justify-content: center;
}
.caption-container.active {
  display: flex;
}

.control-caption {
  background-color: var(---gallery-control-background);
  padding: 8px 30px;
  border-radius: var(--border-radius);
  width: 650px;
  max-width: 100%;
}

.gallery-overlay {
  background-color: var(--overlay-color);
  backdrop-filter: blur(var(--overlay-blur, 0px));
  position: fixed;
  z-index: 80;
  left: 0;
  top: var(--admin-bar-height, 0);
  bottom: 0;
  width: 100%;
  user-select: none;
}
@media (width < 768px /* sm */) {
  .gallery-overlay .gallery-control.control-next {
    top: 1rem;
    left: 5rem;
  }
  .gallery-overlay .gallery-control.control-prev {
    top: 1rem;
    left: 1rem;
  }
}
@media (width >= 768px /* sm */) {
  .gallery-overlay .gallery-control.control-next {
    right: /* grow(16, 32, $from: sm) */ clamp(1rem, 0.1578947368rem + 1.7543859649vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
  }
  .gallery-overlay .gallery-control.control-prev {
    left: /* grow(16, 32, $from: sm) */ clamp(1rem, 0.1578947368rem + 1.7543859649vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
  }
}
.gallery-overlay .content {
  position: relative;
  text-align: center;
  height: 100%;
  width: 100%;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
}
.gallery-overlay .content:has(img.loading)::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 2.875rem;
  height: 2.875rem;
  mask-image: url(/wp-content/themes/bexpo.ch/dist/78a8a1ea972a14d7.svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
  background-color: var(--white);
}
.gallery-overlay .content img,
.gallery-overlay .content .gallery-image {
  ---gallery-image-padding: var(--gallery-image-padding, 40px);
  --additional-padding-bottom: 0px;
  animation: gallery-image-reveal linear 0.3s;
  border: 5px solid var(--white);
  max-height: calc(100% - 2 * var(---gallery-image-padding) - var(--additional-padding-bottom) - var(--admin-bar-height));
  max-width: calc(100% - 2 * var(---gallery-image-padding));
  margin-top: calc(-1 * var(--admin-bar-height) - var(--additional-padding-bottom));
  width: auto;
  height: auto;
  flex-shrink: 0;
  flex-grow: 0;
  transition: opacity 200ms;
}
.gallery-overlay .content img.with-caption,
.gallery-overlay .content .gallery-image.with-caption {
  --additional-padding-bottom: 24px;
}

.gallery .gallery-image {
  transition: all ease 200ms;
}
.gallery .gallery-image:hover {
  transform: scale(1.05);
}

/*# sourceMappingURL=css-shared-template--gallery.css.map*/