[hidden] {
  display: none !important;
}

#mapa-wieliczka,
#mapa-lanckorona {
  scroll-margin-top: 2rem;
}

.local-gallery {
  --columns: var(--gallery-columns);
}

.local-gallery.e-gallery--lazyload .e-gallery-image:not(.e-gallery-image-loaded) {
  background-image: none !important;
}

.studio-gallery-title {
  width: auto;
  max-width: 100%;
  border-radius: 1em;
  padding: .45em .85em;
  background: rgb(0 0 0 / .65);
  font: 600 .875rem/1.35 Montserrat, sans-serif;
  opacity: 0;
  transition: opacity var(--content-transition-duration, 800ms);
}

.e-gallery-item:is(:hover, :focus-visible) .studio-gallery-title { opacity: 1; }

.e-gallery-item:focus-visible:has(.studio-gallery-title) .elementor-gallery-item__overlay {
  background-color: rgb(0 0 0 / .5);
}

@media (max-width: 1024px) {
  .local-gallery { --columns: 2; }
}

@media (max-width: 767px) {
  .local-gallery { --columns: 1; }
}

@media (max-width: 921px) {
  body:not(.local-menu-ready) #ast-desktop-header { display: block; }
  .local-menu-ready #ast-mobile-header { display: block; }
  .local-menu-ready #ast-desktop-header { display: none; }
  #mobile-navigation { display: block; }
}

.local-lightbox {
  margin: auto;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  border: 0;
  color: white;
  background: rgba(0, 0, 0, .93);
}

.local-lightbox::backdrop { background: #000; }

.local-lightbox[open] {
  display: grid;
  grid-template-columns: minmax(38px, 8vw) minmax(0, 1fr) minmax(38px, 8vw);
  align-items: center;
  justify-items: center;
}

.local-lightbox img {
  max-width: 100%;
  max-height: 84dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.local-lightbox button {
  color: white;
  background: transparent;
  font: 32px/1 Arial, sans-serif;
  border: 0;
  padding: .2em .35em;
}

.local-lightbox button:hover,
.local-lightbox button:focus-visible { background: #303030; }

.local-lightbox-close {
  position: absolute;
  top: 12px;
  right: 14px;
}

.local-lightbox-count {
  position: absolute;
  top: 18px;
  left: 20px;
  margin: 0;
}

.local-lightbox-studio {
  color: #d5d5d5;
  background: rgba(0, 0, 0, .8);
  overflow: hidden;
}

.local-lightbox-studio::backdrop { background: transparent; }
.local-lightbox-studio[open] { grid-template-columns: minmax(0, 1fr); }

.local-lightbox-studio img {
  grid-area: 1 / 1;
  max-width: calc(100% - 140px);
  max-height: calc(100dvh - 140px);
  border-radius: 2px;
  box-shadow: 0 0 30px rgb(0 0 0 / .3), 0 0 8px -5px rgb(0 0 0 / .3); /* taste-skill-ignore: original lightbox shadow */
}

.local-lightbox-studio[open] img { animation: studio-lightbox-in .3s both; }
.local-lightbox-studio.local-lightbox-zoomed img { scale: 2; }

.local-lightbox-studio button,
.local-lightbox-tools a {
  position: relative;
  z-index: 1;
  background: transparent;
  color: inherit;
  font-size: 20px;
  padding: .25em;
  line-height: 1;
}

.local-lightbox-studio button:hover,
.local-lightbox-tools a:hover {
  color: #fff;
  background: transparent;
}

.local-lightbox-studio .local-lightbox-close {
  position: absolute;
  top: 13px;
  right: 15px;
  z-index: 3;
}

.local-lightbox-studio .local-lightbox-prev,
.local-lightbox-studio .local-lightbox-next {
  position: absolute;
  top: 0;
  height: 100%;
  width: 15%;
}

.local-lightbox-studio .local-lightbox-prev { left: 0; }
.local-lightbox-studio .local-lightbox-next { right: 0; }
.local-lightbox:not(.local-lightbox-studio) button i,
.local-lightbox-studio button span { display: none; }

.local-lightbox-tools {
  position: absolute;
  top: 13px;
  right: 58px;
  z-index: 3;
  display: flex;
  gap: 14px;
  align-items: center;
}

.local-lightbox-tools button { font-family: eicons; }

.local-lightbox-caption {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  font-weight: 700;
  pointer-events: none;
}

@keyframes studio-lightbox-in {
  from { opacity: 0; transform: scale(.3); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 767px) {
  .local-lightbox-studio img { max-width: 100%; }
  .local-lightbox-studio .local-lightbox-prev,
  .local-lightbox-studio .local-lightbox-next {
    display: flex;
    align-items: center;
    width: 20%;
    padding: 0;
  }
  .local-lightbox-studio .local-lightbox-next { justify-content: flex-end; }
  .local-lightbox-studio .local-lightbox-prev i,
  .local-lightbox-studio .local-lightbox-next i {
    padding: 10px;
    background: rgb(0 0 0 / .5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .local-lightbox-studio[open] img { animation: none; }
  .local-gallery.e-gallery--lazyload .e-gallery-image { transition: none; }
  .studio-gallery-title { transition: none; }
}

.local-contact-link,
.local-contact-link:hover {
  color: inherit;
  text-decoration: inherit;
}

.osm-map-container {
  min-height: 500px;
  background: #e7e5e1;
  z-index: 0;
}

.elementor-widget-osm-map-elementor .elementor-widget-container {
  position: relative;
}

.local-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  background: #fff;
  padding: .75rem;
}

.local-notice {
  position: fixed;
  right: 1em;
  bottom: 1em;
  z-index: 1000;
  width: min(24em, calc(100% - 2em));
  padding: 2em;
  font: 400 16px/1.5 'Poppins', sans-serif;
  color: #fff;
  background: #ffb100;
}

.local-notice p { margin: 0 0 1em; }

.local-notice button {
  width: 100%;
  color: #8a5b00;
  background: #fff;
  border-radius: 0;
  padding: .55em 1em;
}

.local-notice button:hover,
.local-notice button:focus-visible { background: #f5f0e7; }

.local-coming-soon {
  padding: 7rem 1.5rem;
  text-align: center;
}

/* Keep the WordPress cookie banner sizing and colors in the local preview. */
.local-notice.cc-window {
  background: #ffb100;
  color: #fff;
  font-family: Poppins, sans-serif;
}

.local-notice.cc-window .cc-btn {
  background: #fff;
  color: #a66a00;
}

dialog.mr-map-ov {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
}
dialog.mr-map-ov[open] { display: flex; }
dialog.mr-map-ov::backdrop { background: transparent; }
body:has(#mr-booking[open]) { overflow: hidden; }
